Skip to content

fix(skill): expose real --query on incident list, drop nonexistent --title#41

Merged
ysyneu merged 1 commit into
mainfrom
fix/incident-list-skill-query-not-title
Jun 11, 2026
Merged

fix(skill): expose real --query on incident list, drop nonexistent --title#41
ysyneu merged 1 commit into
mainfrom
fix/incident-list-skill-query-not-title

Conversation

@ysyneu

@ysyneu ysyneu commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

What

The flashduty-incident skill documented and exemplified a --title flag on incident list that does not exist on that command — only --query does (internal/cli/incident.go newIncidentListCmd).

Root cause

Doc-vs-code drift. An agent following the skill runs incident list --title "…", hits cobra unknown flag: --title, and falls back to dumping the full incident list (61K chars / 1918 lines of TOON) and grepping it — wasting tokens to locate one incident by title.

Fix (docs-only)

Per maintainer direction: drop the nonexistent --title, expose the real --query (free-text search across title/labels/content). No alias, no CLI behavior change. Three drift sites:

  • references/flashduty-incident-list.md — flag-table row + example
  • SKILL.md — merge-workflow keyword-search example

(incident create/update keep their genuine --title flags — untouched.)

Verification

go build ./... clean; go test ./internal/cli/ green. Docs-only.

Provenance

AI-SRE production session audit audit-2026-06-11, session sess_JUm6ZDTmUmdUGE2bH4nFLz. Supersedes #40 (which took the wrong approach — adding a --title alias instead of removing it).

…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).
@ysyneu ysyneu merged commit e2f155d into main Jun 11, 2026
12 checks passed
@ysyneu ysyneu deleted the fix/incident-list-skill-query-not-title branch June 11, 2026 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant