ワンクリックで
file-bug
Record a bug with spec context so it's actionable for a future /feature-change session. Does not fix the bug — just documents it.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Record a bug with spec context so it's actionable for a future /feature-change session. Does not fix the bug — just documents it.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Universal entry point for any change to the project — new features, bug fixes, refactors, config changes, anything. Classifies the change; delegates contract-introducing changes (new feature, behavior change) to /plan-feature for ADR + verifier authoring; runs the dev-harness -> verify-suite loop until `sdd verify && verify[]` exits 0. Bug fixes and pure refactors against existing invariants skip ADR authoring per ADR-0078.
Universal entry point for any change to the project — new features, bug fixes, refactors, config changes, anything. Classifies the change; delegates contract-introducing changes (new feature, behavior change) to /plan-feature for ADR + verifier authoring; runs the dev-harness -> verify-suite loop until `sdd verify && verify[]` exits 0. Bug fixes and pure refactors against existing invariants skip ADR authoring per ADR-0078.
Universal entry point for any change to the project — new features, bug fixes, refactors, config changes, anything. Authors an ADR for the request, updates impacted specs (verified by spec-evaluator), and runs dev-harness -> implementation-evaluator loop until CLEAN. Handles spec backpressure via /plan-feature rules.
Given an ADR with an Invariant Delta block, invokes the invariant-compiler subagent to author per-invariant verifier code (test stubs, lint rules, schemas) for every Added entry and remove verifiers for every Withdrawn entry. Invokable inline by /plan-feature or standalone.
Multi-round ambiguity audit loop for a design document. Calls /design-evaluator (fresh-context agent) repeatedly, fixing gaps between rounds until CLEAN. Logs all findings, fixes, and decisions to .agent/audits/.
Design a new feature through structured Q&A. Produces an ADR (and updates impacted specs) after resolving all ambiguities. Also owns spec maintenance — handles backpressure when dev-harness discovers spec/ADR gaps during implementation.
| name | file-bug |
| description | Record a bug with spec context so it's actionable for a future /feature-change session. Does not fix the bug — just documents it. |
| version | 1.0.0 |
| user_invocable | true |
| argument-hint | <description of the bug> |
Record a bug with spec context so it's actionable for a future /feature-change session. Does not fix the bug — just documents it.
Bugs live in .agent/bugs/ as numbered markdown files. When a bug is fixed (by dev-harness), it moves to .agent/bugs/fixed/.
/file-bug <description>
Examples:
/file-bug login response returns internal URL when public URL env var is empty/file-bug KV key format doesn't include location segment/file-bug SPA heartbeat monitor doesn't unsubscribe on session switchUse search_docs from the docs MCP to find the spec or ADR that covers the buggy behavior. Extract keywords from the bug description and search:
search_docs("<keywords from bug description>")
Review the results to find the most relevant spec or ADR. Read the relevant section to confirm the spec describes the correct behavior.
If no spec covers this behavior, note that — it may need /plan-feature first to establish the expected behavior before the bug can be classified.
Find the specific file(s) and line(s) where the behavior diverges from the spec. Use Grep/Glob/Read — don't guess.
Check .agent/bugs/ for duplicates and docs/audits/ for prior audit findings that already identified this gap:
ls .agent/bugs/
grep -r "<keyword>" docs/audits/
If an audit already caught it, reference the finding. If a bug already exists, update it instead of creating a duplicate.
Read existing files in .agent/bugs/ to find the highest ID:
ls .agent/bugs/*.md | sort -V | tail -1
Increment by 1. Format: NNN (zero-padded to 3 digits).
Create .agent/bugs/{NNN}-{slug}.md:
# BUG-{NNN}: {Short title}
**Severity**: Critical | High | Medium | Low
**Component**: {component name}
**Reported**: {YYYY-MM-DD}
**Status**: open
## Symptoms
{What the user sees or what fails. Observable behavior.}
## Root Cause
{Why it happens. Reference specific code paths. If unknown, say "Needs investigation" and list hypotheses.}
## Spec Reference
**Spec**: `{path-to-design-doc.md}`, section "{section name}"
{Quote or paraphrase the spec's description of correct behavior.}
## Evidence
{Logs, error messages, audit findings, code references with file:line.}
## Audit Reference
{Link to docs/audits/ finding, or "none — found during manual review".}
## Fix
{Describe the fix approach. Reference specific files and what needs to change.}
## Files
{List of affected files with line numbers.}
If the bug is user-facing or needs tracking beyond the local file:
gh issue create \
--title "bug({component}): {short description}" \
--body "$(cat .agent/bugs/{NNN}-{slug}.md)"
Display the bug ID, file path, severity, and fix path.
/feature-change to fix./plan-feature first..agent/bugs/.