Skip to content

Commit 7a7c40d

Browse files
committed
fix(skill): expose real --query on incident list, drop nonexistent --title
The flashduty-incident skill documented and exemplified a --title flag on `incident list` that the command never had — only --query exists (internal/cli/incident.go). An agent following the skill hits cobra `unknown flag: --title` and falls back to a full TOON dump + grep. Replace the doc-only --title flag/examples with the real --query (free-text search across title/labels/content). Three drift sites fixed: the flag table and example in references/flashduty-incident-list.md, and the merge-workflow example in SKILL.md. Docs-only; no CLI behavior change. Found by the AI-SRE production session audit (audit-2026-06-11, sess_JUm6ZDTmUmdUGE2bH4nFLz).
1 parent b1b4841 commit 7a7c40d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

skills/flashduty-incident/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Consolidate multiple incidents caused by the same underlying issue.
8181

8282
```bash
8383
# 1. Find related incidents by keyword
84-
flashduty incident list --title "database" --progress Triggered
84+
flashduty incident list --query "database" --progress Triggered
8585

8686
# 2. Review the results and identify the primary incident
8787

skills/flashduty-incident/references/flashduty-incident-list.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ flashduty incident list [flags]
1515
| `--progress` | string | | Filter by state: `Triggered`, `Processing`, `Closed` |
1616
| `--severity` | string | | Filter by severity: `Critical`, `Warning`, `Info` |
1717
| `--channel` | int | | Filter by channel ID |
18-
| `--title` | string | | Search by title keyword |
18+
| `--query` | string | | Free-text search across title, labels, and content |
1919
| `--since` | string | `24h` | Start time (duration like `24h`, date, datetime, or unix timestamp) |
2020
| `--until` | string | `now` | End time |
2121
| `--limit` | int | `20` | Max results (max 100) |
@@ -31,8 +31,8 @@ ID, TITLE, SEVERITY, PROGRESS, CHANNEL, CREATED.
3131
# Critical incidents in the last hour
3232
flashduty incident list --severity Critical --since 1h
3333

34-
# Triggered incidents containing "database" in the title
35-
flashduty incident list --progress Triggered --title "database"
34+
# Triggered incidents matching "database" (title, labels, or content)
35+
flashduty incident list --progress Triggered --query "database"
3636

3737
# Closed incidents from a specific channel, page 2
3838
flashduty incident list --progress Closed --channel 12345 --page 2

0 commit comments

Comments
 (0)