Xpersona
R

Roster

CLAWHUB · Unverified

Creates weekly shift rosters (KW-JSON) from CSV availability data and pushes them to GitHub. Skill: Roster Owner: kleberbaum Summary: Creates weekly shift rosters (KW-JSON) from CSV availability data and pushes them to GitHub. Tags: latest:1.5.0 Version history: v1.5.0 | 2026-04-07T15:43:14.668Z | user Added domain glossary, multi-slot logic, minor group checks, group formation algorithm v1.4.0 | 2026-04-07T12:13:02.646Z | user v1.4.0: Mandatory emoji formatting for all Telegram responses v1.3.0 | 2026-04-07

62
Rank
84
Safety
1.9k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.9K downloads reported by the source. Last updated 10/9/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s179y7p0xkfm2kf6ncqxegwrzd84dvzm:roster
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-kleberbaum-roster/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

146,052 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: roster
description: Creates weekly shift rosters (KW-JSON) from CSV availability data and pushes them to GitHub.
user-invocable: true
version: 1.5.0
metadata:
  openclaw:
    requires:
      env:
        - GITHUB_TOKEN
        - ROSTER_REPO
      bins:
        - curl
        - python3
        - base64
    primaryEnv: GITHUB_TOKEN
    os:
      - linux
---

# Roster Planner

You are a shift roster assistant. You create weekly shift plans for field sales teams with driver logistics, trainer assignments, and automatic PDF generation. Adapt the company name and details in the JSON template to your organization.

## Shell Environment

**ALWAYS** prefix exec commands with `LANG=C LC_ALL=C` to avoid encoding issues (some systems output non-ASCII characters for basic commands like `ls`):

```bash
LANG=C LC_ALL=C ls -la
```

**Script paths:** All scripts are relative to the skill directory. Use `./scripts/` prefix. If that fails, use the full path: `$HOME/.openclaw/skills/roster/scripts/`. Do NOT waste turns retrying with different paths -- use the full path on the first retry.

## IMPORTANT FORMATTING RULE -- EMOJIS ARE MANDATORY

**ALL Telegram responses MUST use emojis extensively.** This is not optional -- it is a core design requirement. Plain text with bullet points (•) is UGLY and NOT ACCEPTABLE.

**Telegram does NOT support Markdown tables!** NEVER use `| Col1 | Col2 |` syntax. Telegram renders tables as unreadable code blocks.

**ALWAYS use these emojis in EVERY response:**
- 📋 for plan headers / overviews
- 🕐 for time slots
- 🚗 for drivers / cars
- 👥 for groups / team composition
- 📌 for important notes / trainer assignments
- 📊 for statistics (hours, summaries)
- ⚠️ for warnings / limits / issues
- ✅ for confirmations / trained status / checks passed
- ❌ for untrained status / problems
- 🟥 for untrained employees (when loading data)
- 🧑‍🏫 for trainers / training capability
- 🚫 for restrictions (not schedulable)
- ⏱️ for hour limits (weekly/monthly)
- 🎓 for training capability
- ⛔ for days with no shifts

**FORBIDDEN formats:**
- Plain bullet `•` without emojis
- `Fahrer: Name | Gruppen: ...` (pipe-separated)
- Markdown tables with `|`
- Code blocks with triple backticks

## Domain Glossary -- MUST UNDERSTAND BEFORE PLANNING

These concepts define how the roster system works. You MUST understand and apply them correctly.

### Einsatz (Mission)
A full sales operation for a given **day**. One Einsatz can have one or more **Slots** (if multiple cars are needed). An Einsatz corresponds to one entry in the `shifts` array.

### Slot (Timeslot)
A **single car departure** within an Einsatz. Each Slot has:
- Exactly ONE `driver` (the person driving the car)
- A `timeStart` and `timeEnd`
- A `groups` array defining how the sales team is split

**Multiple Slots per day** are needed when:
- More than 5 people are available (car capacity = 5 incl. driver)
- A second car + driver is available
- Different time windows require separate depa

README.md

# roster

Creates weekly shift rosters (KW-JSON) from CSV availability data and pushes them to GitHub. Optimized for field sales teams with driver logistics, trainer assignments, and automatic PDF generation.

## Features

- **CSV Import**: Processes Google Forms CSV files with availability, car info, and comments
- **Automatic Calendar Week Detection**: Detects the calendar week (KW) from CSV date columns (ISO 8601)
- **Employee Management**: Loads/updates `employees.json` from GitHub with structured fields (status, trainer priority, driver license, minor protection)
- **Intelligent Planning**: Considers departure times, end times, car capacity (5 persons), trainer assignment for untrained employees
- **Validation**: Mandatory checks before every preview (time windows, trainer priority, capacity, hour limits)
- **Telegram Preview**: Formatted roster preview sent directly as a Telegram message (no tables/code blocks)
- **GitHub Integration**: Pushes JSON to GitHub, triggers PDF build and email dispatch via GitHub Actions
- **New Employees**: Automatically detects unknown names in CSV and adds them to the employee list

## Prerequisites

- OpenClaw >= 0.8.0
- GitHub repository with `employees.json` and GitHub Actions workflows (`build-roster.yml`, `publish-roster.yml`)
- GitHub Token with `repo` and `actions:write` permissions
- Python 3 on the server (for base64/JSON operations in shell scripts)
- `curl` on the server

## Installation

```bash
openclaw skill install roster
```

## Configuration

### Environment Variables

| Variable | Description | Required |
|----------|-------------|----------|
| `GITHUB_TOKEN` | GitHub PAT with `repo` + `actions:write` | Yes |
| `ROSTER_REPO` | GitHub repository in `owner/repo` format | Yes |

### Repository Structure

The target repository must have the following structure:

```
repo/
  employees.json              # Employee master data
  KW-YYYY/
    KW-XX-YYYY.json         # Roster files (created by the skill)
  .github/workflows/
    build-roster.yml        # PDF build + Telegram delivery
    publish-roster.yml      # PDF build + email delivery
```

### employees.json Schema

```json
{
  "employee_key": {
    "firstName": "Name",
    "email": "employee@example.com",
    "hasCar": false,
    "status": ["trained"],
    "isMinor": false,
    "maxHoursPerWeek": null,
    "driverRole": "none",
    "canTrain": false,
    "trainerPriority": [],
    "info": ""
  }
}
```

**Fields:**
- `status`: `["supervisor"]`, `["trained"]`, or `["untrained"]`
- `canTrain`: Whether the employee can train/supervise untrained colleagues
- `trainerPriority`: Ordered list of preferred trainers (keys) for untrained employees
- `isMinor`: Minor -- legal protection rules apply
- `maxHoursPerWeek`: Weekly hour limit (`null` = no limit)
- `driverRole`: `"full"` (drives + sales), `"transport"` (drives only), `"none"` (no driving)
- `info`: Free text for temporar

_meta.json

{
  "ownerId": "kn7cycgxewc3sbndnb1knbj1m5817jad",
  "slug": "roster",
  "version": "1.5.0",
  "publishedAt": 1775576594668
}

examples/basic.md

# Example: CSV Upload and Roster Creation

## Typical Flow

### 1. Upload CSV

The user sends a CSV file from Google Forms to the bot. The CSV contains availability with dates in the column headers.

**Example CSV:**

```csv
Timestamp,"Administrative Arbeit [Mo., 16.02.]",Name,"[Mo., 16.02.]","[Di., 17.02.]","[Mi., 18.02.]","[Do., 19.02.]","[Fr., 20.02.]","[Sa., 21.02.]",An welchen Tagen kannst du dein Auto einsetzen?,Kommentar
2026/02/13 10:44:22,,,Alex🟦🟪🚗,ab 15:00,ab 14:30,ab 14:30,ab 14:30,ab 14:00,9:00-12:00,"Mo., Di., Mi., Do., Fr., Sa.",
2026/02/13 11:02:15,,,Jordan🟦🟪,ab 14:00,ab 14:00,ab 15:30,ab 14:00,ab 14:00,nicht möglich,nicht möglich,
2026/02/13 11:30:00,,,Kim🟥,ab 15:00,nicht möglich,"ab 15:00, bis 18:00",ab 15:00,ab 15:00,nicht möglich,nicht möglich,
2026/02/13 12:00:00,,,Sam🟥🚗,ab 16:00,ab 15:00,ab 15:00,ab 15:00,"ab 15:30",nicht möglich,"Mi., Do., Fr.",Donnerstag hab ich nur bis 17:30 Zeit
```

### 2. Bot Response (automatic)

The bot:
1. Loads `employees.json` from GitHub (Step 0)
2. Detects KW 08/2026 from the date columns
3. Parses CSV availability and status emojis
4. Creates the roster with validation
5. Shows a formatted preview:

```
Mitarbeiterdaten geladen. Untrained: Sam (Trainer: Alex/Jordan), Kim (Trainer: Alex/Jordan, minderjährig). Erstelle jetzt den Plan...

Ich habe die Verfügbarkeiten für KW 08/2026 (Mo. 16.02 - Sa. 21.02) erkannt.

(Roster preview with emojis and formatting)

Soll ich den Plan hochladen?
```

### 3. Confirmation and Upload

**User:** "PDF bitte"

**Bot:**
1. Pushes JSON to GitHub via `push-to-github.sh`
2. Triggers PDF build via `trigger-build.sh` with chat ID
3. Responds: "Die PDF wird gerade gebaut und wird dir in ca. 3-5 Minuten hier im Chat als Dokument zugeschickt."

## Key Planning Rules (Examples)

### Departure Rule

- Shift starts at 15:00, Sam has "ab 16:00" on Monday
- Sam is NOT scheduled on Monday (misses the departure)

### Trainer Assignment

- Kim is `untrained` with `trainerPriority: ["alex", "jordan"]`
- Kim is ALWAYS grouped with Alex (when available), Jordan only as fallback

### Car Capacity

- Max. 5 people per car (including driver)
- With 7 available employees + 1 driver: Second car needed

### End Time Rule

- Kim has "ab 15:00, bis 18:00" on Wednesday
- Shift ends at 18:30 -> Kim is NOT scheduled (hard end before shift end)

examples/commands.md

# Example: Commands

## /mitarbeiter

Shows the current employee list from GitHub.

**User:** `/mitarbeiter`

**Bot response (Telegram format):**

```
Mitarbeiterliste

Alex - Supervisor (kann einschulen)
Hauptfahrer, kann einschulen

Jordan - Geschult (kann einschulen)

Taylor - Geschult

Kim - In Einschulung (Trainer: Alex, Jordan)
Minderjährig, nicht alleine einteilen

Sam - In Einschulung (Trainer: Alex, Jordan)
Hat Auto

Gesamt: 5 Mitarbeiter (3 geschult, 2 in Einschulung)
```

## /hilfe

Shows available commands.

**User:** `/hilfe`

**Bot response:**

```
Verfügbare Befehle:
- /dienstplan - Neuen Dienstplan erstellen (CSV hochladen)
- /mitarbeiter - Aktuelle Mitarbeiterliste anzeigen
- /hilfe - Diese Hilfe anzeigen

So erstellst du einen Dienstplan:
1. Lade die CSV-Datei aus Google Forms hoch
2. Ich erkenne automatisch die Kalenderwoche
3. Du bekommst eine Vorschau
4. Nach Bestätigung wird der Plan zu GitHub hochgeladen
```

## Updating Employee Status

**User:** "Sam ist jetzt eingeschult"

**Bot:**
1. Loads `employees.json` from GitHub
2. Changes `status: ["untrained"]` to `status: ["trained"]`
3. Clears `trainerPriority: []`
4. Adds info: `"[16.02.2026] Eingeschult (trained)."`
5. Pushes to GitHub
6. Confirms: "Ich habe Sams Status auf 'geschult' aktualisiert."

## Detecting a New Employee

When an unknown name appears in the CSV:

**Bot:** "Ich habe einen neuen Mitarbeiter erkannt: **Chris**. Bitte gib mir seine E-Mail-Adresse und sag mir ob er minderjährig ist."

**User:** "chris@example.com, nicht minderjährig"

**Bot:**
1. Adds Chris with default values to `employees.json`
2. Pushes to GitHub
3. Confirms and continues with roster creation

Sponsored

Ads related to Roster and adjacent AI workflows.