(339c65a) Add comment command

This commit is contained in:
2026-05-15 11:11:40 +02:00
parent a1bf4df880
commit bc3ee0c53b
5 changed files with 273 additions and 14 deletions
+51 -12
View File
@@ -15,17 +15,13 @@ rendering:
# Worklane Kanban Skill
Use this skill when creating, listing, or managing Kanban-style tickets via the `worklane` CLI.
When asked to "create a ticket", use the `worklane add` command.
When asked to "implement", "work on" or "read" a ticket, use the `worklane show` command.
When using backticks in the command arguments, escape them so the terminal doesn't execute them.
## Commands
### `worklane init`
Initialize worklane in the current project (creates the worklane data file if it doesn't exist).
```
worklane init
```
### `worklane add`
Add a new ticket to the backlog.
@@ -71,9 +67,52 @@ Show the full details of a single ticket by UUID or title.
worklane show "ticket title or uuid"
```
### `worklane mv`
Move a ticket between statuses.
**Positional arguments:**
- `<id>`: Ticket UUID (8+ characters) or title
**Required options:**
- `--status <target>`: Target status (`backlog`, `committed`, `reviewing`, `done`)
**Options:**
- `-f`: Force move (allows skipping stages and backward moves)
**Default behavior:** Only allows forward moves, one stage at a time (`backlog` -> `committed` -> `reviewing` -> `done`).
Examples:
```bash
worklane mv ticket-id --status committed # Move forward one stage
worklane mv ticket-title --status reviewing -f # Force skip stages
worklane mv a1b2c3d4 --status committed # Move by UUID prefix
worklane mv "My Ticket" --status done -f # Move by title with force
```
### `worklane comment`
Add a comment to a ticket.
**Positional arguments:**
- `<ticket>`: Ticket UUID (8+ characters) or title
- `<body>`: Comment text
Comments are stored as timestamped markdown files in `.worklane/comments/<ticket-uuid>/` and include the git author and timestamp.
Examples:
```bash
worklane comment ticket-id "Reviewed, looks good"
worklane comment "My Ticket" "Needs changes to the UI"
worklane comment a1b2c3d4 "LGTM, approved"
```
## Workflow
1. Run `worklane init` before using other commands (if not already done)
2. Use `worklane add` to create tickets with all relevant details
3. Use `worklane ls [status]` to view tickets by status
4. Use `worklane show <id>` to view full ticket details
1. Use `worklane add` to create tickets with all relevant details
2. Use `worklane ls [status]` to view tickets by status
3. Use `worklane show <id>` to view full ticket details
4. Use `worklane mv <id> --status <target>` to move tickets through the workflow
5. Use `worklane comment <ticket> <body>` to add notes to tickets