architecture
Use when the user asks to improve architecture, find refactoring opportunities, surface deepening opportunities, consolidate…
Use when encountering any bug, test failure, build break, or unexpected behavior — runs a 4-phase systematic debugging process before proposing any fix. Iron Law: NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST. Produces a `.orchestrator/debug/` artifact the fixer agent must
Claude Code
$ npx -y skills add Kanevry/session-orchestrator --skill debug --agent claude-code
Codex
$ npx skills add Kanevry/session-orchestrator --skill debug -a codex -y
Cursor
$ npx skills add Kanevry/session-orchestrator --skill debug -a cursor -y
Gemini CLI
$ npx skills add Kanevry/session-orchestrator --skill debug -a gemini-cli -y
GitHub Copilot
$ npx skills add Kanevry/session-orchestrator --skill debug -a github-copilot -y
OpenCode
$ npx skills add Kanevry/session-orchestrator --skill debug -a opencode -y
Windsurf
$ npx skills add Kanevry/session-orchestrator --skill debug -a windsurf -y
name: debug description: >- Use when encountering any bug, test failure, build break, or unexpected behavior — runs a 4-phase systematic debugging process before proposing any fix. Iron Law: NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST. Produces a `.orchestrator/debug/` artifact the fixer agent must reference. model: inherit color: red user-invocable: true argument-hint: "[bug-description-or-issue-ref]" tools: Read, Grep, Glob, Bash, Write
> 4-phase root-cause investigation. Iron Law: no fix without root cause.
The user invokes `/debug` with arguments: **$ARGUMENTS**.
The optional argument is a short bug description or issue reference (e.g. `"test timeout in CI"` or `#408`). If absent, inspect recent errors and `git log` to surface the most likely candidate, then confirm it with the user before starting Phase 1.
The four phases (Root Cause → Pattern → Impact → Solution) run in order, and the Phase-1 artifact at `.orchestrator/debug/<session-id>-<sequence>.md` is written before any fix code exists — it is a prerequisite for Phase 4, not optional documentation.
The gate belongs to the Session Orchestrator plugin. First look for its gate file at `../_shared/bootstrap-gate.md`, resolved against this skill's base directory (the directory that contains this SKILL.md), never against the project working directory. The project you work on is usually a different repo, so a lookup relative to the working directory proves nothing. Inside the plugin the same file is named `skills/_shared/bootstrap-gate.md` from the plugin root.
<HARD-GATE> When the gate file exists, do NOT proceed past Phase 0 if GATE_CLOSED. There is no bypass. Refer to `skills/_shared/bootstrap-gate.md` for the full HARD-GATE constraints. A gate file missing from this skill's base directory (checked as above) is the only reason to skip Phase 0; urgency, a small bug or a request to skip are not. </HARD-GATE>
> **NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.**
No matter how obvious the fix looks, complete Phase 1 (Root Cause Investigation) and produce the artifact BEFORE writing any fix code. This is non-negotiable.
The "2-hour obviously a typo" case has been the root cause of every multi-day debugging session in every project's history. Treat the obvious fix as a hypothesis to verify, not a conclusion to act on.
Quote the exact error message, full stack trace, and exit code in the artifact. Do not paraphrase. Paraphrasing introduces your assumptions before investigation begins.
Document the exact command and environment that triggers it. If reproduction is flaky, that itself is a data point — write down the failure rate.
# minimum reproduction attempt <exact command> # env: Node version, OS, env vars relevant to the failure
git log --oneline -20 git diff HEAD~5..HEAD -- <affected paths>
Identify the smallest set of commits that could have introduced this. Do not assume the most recent commit is the culprit without checking.
Add temporary logging at each input/output point along the failing path's modules. Capture actual values, not assumptions about what they should be. Run with instrumentation in place and record results.
Start from the failure point and walk upstream. At each step, verify what you think is true with an actual Read or Bash call. "I assume X is Y" is not data.
Write to `.orchestrator/debug/<session-id>-<sequence>.md` (sequence = 1, 2, 3 within session). Without a Session Orchestrator session there is no session id: use today's date (`YYYY-MM-DD`) in its place.
**Artifact MUST be written before proceeding to Phase 2.** See "Artifact contract" section below.
After the Phase 1 artifact is written:
grep -rn "<suspect pattern>" --include="*.ts" --include="*.mjs" git grep "<symbol>"
Record findings in the artifact's Phase 2 section.
**Optional operator-side companion:** `/tmux-layout --layout debug` renders a 4-pane layout (scratch shell + `npm test --watch` + `tail -F .orchestrator/debug/*.md` + `watch -n 2 'git diff --stat'`) so you can observe hypothesis tests, debug artifacts, and diff progression peripherally. Pure observability — the `/debug` skill works identically with or without the layout (per ADR-0007 + GitLab #562).
grep -rn "<function or symbol name>"
Your coding agents get an agreed plan, a check after each round of changes and a handover to the next session. A free, MIT-licensed workflow plugin for people running Claude Code, Codex CLI, Cursor IDE or Pi on a git repository.
Use when the user asks to improve architecture, find refactoring opportunities, surface deepening opportunities, consolidate…
Use this skill when running an autonomous session-orchestration loop. Chains session-start → session-plan → wave-executor →…
Use this skill when scaffolding the minimum repository structure required by session-orchestrator. Invoked automatically by the…
Use when you have a feature idea but the scope or UX is still ambiguous — runs a lightweight Socratic design dialogue (3-5 AUQ…
Use when detecting drift between CLAUDE.md (or AGENTS.md, the Codex CLI alias) / _meta narrative and live repository state. Ten…
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.