fix(skill): expose real --query on incident list, drop nonexistent --title#41
Merged
Merged
Conversation
…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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The
flashduty-incidentskill documented and exemplified a--titleflag onincident listthat does not exist on that command — only--querydoes (internal/cli/incident.gonewIncidentListCmd).Root cause
Doc-vs-code drift. An agent following the skill runs
incident list --title "…", hits cobraunknown 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 + exampleSKILL.md— merge-workflow keyword-search example(
incident create/updatekeep their genuine--titleflags — untouched.)Verification
go build ./...clean;go test ./internal/cli/green. Docs-only.Provenance
AI-SRE production session audit
audit-2026-06-11, sessionsess_JUm6ZDTmUmdUGE2bH4nFLz. Supersedes #40 (which took the wrong approach — adding a--titlealias instead of removing it).