adr
Write an Architecture Decision Record (ADR) for a feature — Context / Decision / Status / Consequences / Alternatives, filed as…
Bug fix workflow. Use when: fixing bugs, resolving issues, regression fixes. Not for: new features (use feature-dev), understanding code (use code-explore). Output: fix + regression test + review gate.
Claude Code
$ npx -y skills add sd0xdev/sd0x-harness --skill bug-fix --agent claude-code
Codex
$ npx skills add sd0xdev/sd0x-harness --skill bug-fix -a codex -y
Cursor
$ npx skills add sd0xdev/sd0x-harness --skill bug-fix -a cursor -y
Gemini CLI
$ npx skills add sd0xdev/sd0x-harness --skill bug-fix -a gemini-cli -y
GitHub Copilot
$ npx skills add sd0xdev/sd0x-harness --skill bug-fix -a github-copilot -y
OpenCode
$ npx skills add sd0xdev/sd0x-harness --skill bug-fix -a opencode -y
Windsurf
$ npx skills add sd0xdev/sd0x-harness --skill bug-fix -a windsurf -y
name: bug-fix description: "Bug fix workflow. Use when: fixing bugs, resolving issues, regression fixes. Not for: new features (use feature-dev), understanding code (use code-explore). Output: fix + regression test + review gate." allowed-tools: Read, Grep, Glob, Edit, Write, Bash, AskUserQuestion, Skill
❌ git add | git commit | git push — per @rules/git-workflow.md
This skill fixes bugs but does **not** commit. `/precommit` is a quality gate only. To commit, offer the menu per `rules/git-workflow.md` § Proactive Offer — a commit option on any real branch, a push option only where `review-state.js offer` allows one — and invoke `/smart-commit --execute` on selection; never print the command for the user to copy.
Investigate → Locate → Fix → Test + Review → Precommit Gate
│ │ │ │ │
▼ ▼ ▼ ▼ ▼
gh issue Grep Edit /verify /precommit
/git-investigate Read tests /codex-test-review
/codex-review-fastAt the start, run `node "${CLAUDE_PLUGIN_ROOT}/skills/agentctl-setup/scripts/agentctl-setup.js" status` once. Only when `state` is `installed/enabled`, offer to draft a task proposal from the ticket per `@skills/agentctl-setup/references/workflow-integration.md` — the user accepts it with `/agentctl accept`; any other state, say nothing about agentctl and continue. It is never a gate: every review and precommit obligation in this skill is unchanged, and its evidence is context beside a verdict, never the verdict.
Before fixing: if the bug maps to a feature under `docs/features/`, read `docs/features/<key>/intent-<key>.md` when it exists — a fix that contradicts one of its `INV-*` invariants or Non-goals stops and asks the user (cite the line). No identifiable feature → nothing to load; proceed.
| Source | Action | |--------|--------| | GitHub Issue | `gh issue view <number>` | | Error message | `Grep("error message")` | | Code history | `/git-investigate` |
**Output root cause analysis**:
| Principle | Description | |-----------|-------------| | Minimal changes | Only modify what is necessary | | No new issues | Confirm changes don't affect other features | | Design preserved | Choose the smallest root-cause fix that keeps current responsibilities. If the fix moves a boundary or adds an abstraction, say which shape you chose and why — "direct fix; existing design retained" is the expected common answer |
Follow `@rules/testing.md` for conventions (AAA, naming, evidence model). Follow `@rules/testing-project.md` for project-specific overrides.
**Bug fixes must have tests at the corresponding level:**
| Bug Type | Required | Recommended | |----------|----------|-------------| | Logic error | Unit | - | | Service issue | Unit | Integration | | API issue | Integration | E2E | | Cross-service/data flow | Integration | E2E | | User flow | E2E | - |
/verify → all tests pass? Yes → Step 2 No → fix failures → re-run /verify
/codex-test-review → ✅ Tests sufficient? Yes → Step 3 No → close gaps (Step 2a) → /codex-test-review --continue <threadId>
| Gap Type | Remediation | |----------|-------------| | Unit test missing | `/codex-test-gen` → write tests → `/verify` | | Integration/E2E missing | `/post-dev-test` → write tests → `/verify` |
/codex-review-fast → ✅ Ready? Yes → Precommit Gate No → fix issues → re-run /codex-review-fast (auto-loop)
If code changes after the latest `✅ Tests sufficient` gate (e.g., fixes from code review), rerun `/verify` then `/codex-test-review --continue <threadId>` before proceeding to precommit gate.
**MUST re-review after fix until PASS** (per @rules/auto-loop.md)
Fix → Review → Issues found → Fix again → ... → ✅ Pass → Next step
Doc Sync is governed by `@rules/auto-loop.md` (behavior-layer rule). After precommit pass, triggers conditionally when changes map to `docs/features/`.
## Bug Fix Report - **Root cause**: <analysis> - **Fix**: <description of changes> - **Regression test**: <test result> - **Gate**: ✅ Fixed / ⛔ Needs further investigation
Input: Fix issue #123 - calculation error Action: gh issue view → locate → fix → write Unit Test → /verify → /codex-test-review → /codex-review-fast → /precommit
Input: API returning 500 error Action: Grep error → read code → fix → write Integration Test → /verify → /codex-test-review → /codex-review-fast → /precommit
Language: English | 繁體中文 | 简体中文 | 日本語 | 한국어 | Español The harness layer for Claude Code. Let the model choose the path. Keep "done" verifiable. Claude has discretion inside a closed, test-pinned anchor set.
Write an Architecture Decision Record (ADR) for a feature — Context / Decision / Status / Consequences / Alternatives, filed as…
Install and set up the optional agentctl mod (task scope, refusal before execution, evidence that goes stale, model-free…
Architecture design and documentation. Produces 3-architecture.md with component diagrams, data flow, integration points, and…
Context-aware Q&A with auto context gathering. Use when: user has a quick question about codebase, git history, rules, docs, or…
Industry best practices conformance audit with mandatory adversarial debate. Produces audit artifact: verdict (OK/WARN/FAIL) +…
Bump package and plugin version in sync. Updates package.json, .claude-plugin/plugin.json, and install-state manifest to the same…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.