auto
You MUST follow this exact sequence. @auto is a fully automated pipeline — no user confirmation between stages except during…
You MUST follow this exact sequence. @debug is a fully automated debugging pipeline — no user confirmation between stages. The goal is systematic root cause analysis, not guess-and-check.
$ npx -y skills add kaimingwan/oh-my-kiro --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/debugContext preview
What this command does when you run it.
You MUST follow this exact sequence. @debug is a fully automated debugging pipeline — no user confirmation between stages. The goal is systematic root cause analysis, not guess-and-check.
You MUST follow this exact sequence. @debug is a fully automated debugging pipeline — no user confirmation between stages. The goal is systematic root cause analysis, not guess-and-check.
NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST
Before starting any investigation, check for existing investigation documents:
1. List `docs/investigations/` — look for files matching the current bug topic 2. If a matching document exists:
3. If no matching document exists:
**Session Resume Protocol:** Every new session MUST check `docs/investigations/` first. The investigation document is the single source of truth for cross-session continuity.
1. Read `knowledge/episodes.md` — check if this bug pattern has occurred before 2. Build Architectural Context around the bug:
3. Classify failure type:
| Category | Signal | |----------|--------| | Logic/Semantic | Test fails, wrong output | | Environment/Config | Works locally, fails elsewhere | | Concurrency/Timing | Intermittent | | Invalid Invocation | Schema error, 400 response | | Under-specified Intent | Need more context |
4. Write triage summary to the investigation document (`docs/investigations/{date}-{topic}.md`):
Follow `skills/omk-debugging/SKILL.md` Phase 1 + `references/root-cause-protocol.md`.
Tool sequence — use LSP tools, NOT grep:
| Step | Action | |------|--------| | 1 | `get_diagnostics` on failing file(s) | | 2 | `search_symbols` → `goto_definition` → `find_references` on involved symbols | | 3 | Read error messages / stack traces completely | | 4 | Reproduce the bug consistently | | 5 | Check recent changes (`git diff`, recent commits) |
Produce **Diagnostic Evidence** before proceeding:
Diagnostic Evidence: - failure_type: [category] - get_diagnostics: [errors found] - search_symbols: [symbols located] - find_references: [callers/usage sites] - key_variables: - var_name / expected / actual / location - Root cause hypothesis: [conclusion]
**Gate:** Without Diagnostic Evidence, DO NOT proceed to Stage 3.
**完成后:** Update investigation document — add L0 diagnostic evidence to Evidence Table, update Status Overview with findings and next steps.
Follow `skills/omk-debugging/SKILL.md` Phase 2-3 + `references/pattern-analysis.md`.
1. Find working examples of similar code in the codebase 2. Compare working vs broken — list ALL differences 3. Form ONE hypothesis: "X is the root cause because Y" 4. Test with the SMALLEST possible change — one variable at a time 5. If hypothesis fails → form NEW hypothesis, don't stack fixes
Append to scratch:
- Hypothesis: <statement> - Test: <what minimal change was tried> - Result: confirmed | rejected → <next hypothesis if rejected>
**Gate:** Hypothesis must be confirmed before proceeding to Stage 4.
**完成后:** Update investigation document — record hypothesis and test results in Decision Log, add experiments to Experiment Log, update Status Overview.
Follow `skills/omk-debugging/SKILL.md` Phase 4 + `references/implementation-fix.md`.
1. `get_diagnostics` → record baseline 2. Create failing test case (if possible) 3. Implement SINGLE fix addressing root cause — no bundled changes 4. `get_diagnostics` → zero new diagnostics, or revert 5. Run tests → verify fix, no regressions 6. Self-explain: root cause → fix logic → side effects (check against Architectural Context)
**3-Strike Rule:** If 3 fix attempts fail → STOP, question the architecture, discuss with user.
**完成后:** Update investigation document — update Status Overview to final state (🟢 Resolved or 🟡 Partial), record final decision in Decision Log.
Generate the final report from the investigation document (`docs/investigations/{date}-{topic}.md`):
## Debug Report - **Bug:** <description> - **Root Cause:** <what was actually wrong> - **Fix:** <what was changed and why> - **Verification:** <test results> - **Side Effects:** <none | list>
If bug is a new pattern, append one-line summary to `knowledge/episodes.md`.
If at ANY stage you catch yourself:
→ **STOP. Return to Stage 2.** Load `references/red-flags.md` for full list.
--- User's bug report: {content}
Your AI agent forgets everything. Mine doesn't. oh-my-kiro is a framework that gives your AI coding agent persistent memory, deterministic workflows, and self-evolving intelligence. Like oh-my-zsh for Zsh — but for AI agents. Day 1: generic agent.
You MUST follow this exact sequence. @auto is a fully automated pipeline — no user confirmation between stages except during…
Checkout a branch in a submodule, with fuzzy search support. (CK = Checkout)
Commit all changes, push to remote, and create a Pull Request. (CPR = Commit Push PR)
Commit all changes, push to remote, and complete branch lifecycle. (CPU = Commit Push Update-readme)
Lightweight command for small tasks (< 1 hour). No plan file, no review dispatch. Prevents context drift across multi-turn…
1. If the user specifies a path after @evaluate (e.g., `@evaluate worktrees/omk-foo`), use that path. 2. Otherwise, check…