adr
Write an Architecture Decision Record (ADR) for a feature — Context / Decision / Status / Consequences / Alternatives, filed as…
Universal multi-source research orchestration. Use for any research/investigate/analyze request needing synthesis across web, codebase, and community evidence — especially broad, mixed, or ambiguous intent. Triggers on: 'research this', 'deep research', 'investigate', 'analyze
Claude Code
$ npx -y skills add sd0xdev/sd0x-harness --skill deep-research --agent claude-code
Codex
$ npx skills add sd0xdev/sd0x-harness --skill deep-research -a codex -y
Cursor
$ npx skills add sd0xdev/sd0x-harness --skill deep-research -a cursor -y
Gemini CLI
$ npx skills add sd0xdev/sd0x-harness --skill deep-research -a gemini-cli -y
GitHub Copilot
$ npx skills add sd0xdev/sd0x-harness --skill deep-research -a github-copilot -y
OpenCode
$ npx skills add sd0xdev/sd0x-harness --skill deep-research -a opencode -y
Windsurf
$ npx skills add sd0xdev/sd0x-harness --skill deep-research -a windsurf -y
name: deep-research description: "Universal multi-source research orchestration. Use for any research/investigate/analyze request needing synthesis across web, codebase, and community evidence — especially broad, mixed, or ambiguous intent. Triggers on: 'research this', 'deep research', 'investigate', 'analyze from multiple angles', 'comprehensive analysis', 'explore this topic', 'study', 'survey the landscape', 'look into', 'understand deeply', '了解', '調查', '分析', '研究'. When intent is clearly single-dimension (code-only tracing, checklist-style compliance audit, or bounded option-ranking), dispatcher may prefer a narrower skill. Otherwise route here. Supports low/medium/high budget tiers." allowed-tools: Read, Grep, Glob, Bash, Write, WebSearch, WebFetch, Agent, Skill
| Scenario | Alternative | |----------|------------| | Code review / PR review | `/codex-review-fast` | | Bug fix / implementation | `/bug-fix` or `/feature-dev` | | Adversarial debate only (no research) | `/codex-brainstorm` |
> **Soft routing hint**: If intent is clearly single-dimension (code-only lookup, compliance-checklist audit, bounded option ranking), the dispatcher may prefer a specialized skill. For broad or mixed research needs, `/deep-research` is the default entry point — use `--budget low` for lightweight research. > > **MECE boundary**: `/deep-research` produces a **discovery synthesis** (claim registry + coverage matrix + score). `/best-practices` produces a **conformance judgment** (verdict + gap + debate proof). "What are best approaches for X?" -> `/deep-research`. "Does our code follow best practices for X?" -> `/best-practices`.
❌ git add | git commit | git push — per @rules/git-workflow.md
<budget:token_budget>200000</budget:token_budget>
flowchart TD
U[User: /deep-research topic] --> P0[Phase 0: Scope & Plan]
P0 --> R[Phase 1: Parallel Research]
R --> |2-3 agents| A1[Researcher: Web/Official]
R --> |background| A2[Researcher: Code/Impl]
R --> |background| A3[Researcher: Community/Cases]
A1 --> S[Phase 2: Synthesis + GapDetect]
A2 --> S
A3 --> S
S --> |claim registry| GATE{Score + Conflicts?}
GATE --> |high score, no conflict| REPORT[Output Report]
GATE --> |unresolved conflict or low score| V[Phase 3: Validation]
V --> |validator micro-loop| VM[Dispute checks]
VM --> |resolved| REPORT
VM --> |still unresolved| DB[/codex-brainstorm]
DB --> REPORTAnalyze the user's research question and prepare a research plan.
| Intent | Detection | Behavior | |--------|-----------|----------| | `exploratory` | "How does X work?", "What are options?" | Default scoring weights, debate on conflict only | | `compliance` | "Are we following best practices?" | Stricter scoring, always debates | | `decision` | "Should we use X or Y?" | Debate on any unresolved conflict |
If Phase 0 detects a narrow intent, output a suggestion but always continue:
| Detected Pattern | Suggestion | |-----------------|------------| | "best practices" + "audit" + no other dimension | Consider `/best-practices` for structured 4-phase audit. Continuing with broad research... | | "compare X vs Y" + exactly 2-3 named options | Consider `/feasibility-study` for quantified comparison. Continuing with broad research... | | code-only keywords + no web research intent | Consider `/deep-explore` for code-only exploration. Continuing with broad research... |
The suggestion is informational -- Phase 1 always proceeds.
When Phase 0 detects narrow single-dimension intent AND user did not explicitly set `--budget`:
| Detected Intent | Auto Downgrade | Rationale | |----------------|---------------|-----------| | Single-dimension (code-only, audit-only, ranking-only) | `--budget low` (1 agent, no debate) | Avoid unnecessary multi-agent cost | | Broad/mixed/ambiguous | Keep default `--budget medium` | Full research pipeline warranted | | User explicitly set `--budget` | Respect user choice | User override takes priority |
**Precedence**: `--mode` constraints > user explicit flags > auto-routing hints. Example: `--mode compliance` forces debate regardless of auto-downgrade.
Divide the research into 2-3 non-overlapping shards based on source type:
| Agent | Shard | Focus | |-------|-------|-------| | A | Official/Web | Official documentation, API references, standards, specifications | | B | Code/Implementation | Existing codebase patterns, related modules, current architecture | | C | Community/Cases | Blog posts, real-world implementations, conference talks, anti-patterns |
When `--agents 2`: merge A+C into one web-focused agent, keep B as code-focused.
The `--budget` flag controls token investment by adjusting agent count and debate behavior:
| Budget | Agents | Debate | Estimated Cost | |--------|--------|--------|---------------| | `low` | 1 (sequential inline research) |
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) +…
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.