implement
Guided implementation with research, exploration, and validation. Scales from quick inline edits to multi-subagent workflows based on task complexity.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guided implementation with research, exploration, and validation. Scales from quick inline edits to multi-subagent workflows based on task complexity.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Read and write the second brain — a git-backed Obsidian vault at ~/SourceRoot/brain (PARA structure + a top-level wiki/ knowledge tree). Use whenever the user mentions "brain", "second brain", "knowledge base", "note", "remember", "look up", "find note", "capture", "wiki", or "okf". Also use for any request to save, retrieve, or organize personal knowledge that belongs in the brain rather than in a repo-specific doc.
Write, draft, and polish prose through a human-owned 7-step pipeline. Use whenever the user says "distill", "write article", "draft", "summarize into", "create content", "synthesize", or "publish". Also use for any task where the output is a piece of long-form writing — the pipeline keeps prose quality out of coding sessions.
RETIRED — manage the (now decommissioned) per-machine mlx-audio TTS/STT stack; TTS/STT moved to the cloud audio-gateway (VPS)
Operate the Mac mini remote dev host — connecting from the MacBook over mosh or herdr --remote, running and reattaching many Claude Code agents, herdr workspaces/panes and its socket API, claude --bg durable daemons, the Uptime Kuma readiness heartbeat, and the failure modes specific to a headless always-on Mac. Use when the user mentions herdr, mosh, the mini, "remote dev", "dev host", detaching or reattaching agents, "did my agent survive", sessions dying on lid-close, or asks how to reach a dev server running on the mini.
Manage the personal image stack — public CDN uploads/transform URLs and the private image-share layer. Use whenever an image needs a URL (public or private) for an article, blog post, vault note, README, OpenGraph tag, or a one-off share; or when the user says "upload this image", "share this image", "private image", "publish image", "host this screenshot", "get me a CDN link", "resize this", mentions "image-share", or asks where an image lives.
Bidirectionally sync ALL git repos across two machines — this MacBook and the always-on Mac mini — over SSH, using GitHub/GitLab as the transport. Commits and pushes uncommitted work on both sides, then rebases/fast-forwards each so they converge, with per-repo subagents resolving rebases and merge conflicts. This is a MULTI-repo, TWO-machine operation — distinct from /commit, /ship, or /git-cleanup, which act on a single repo. Use whenever the user wants to sync their machines/repos, "catch up" the laptop to the Mac mini or push laptop work back, is about to travel or just got back, has uncommitted work scattered across many repos, or wants to reconcile branches that diverged between the two machines. Trigger even on a bare "sync", "sync my machines", or "get my repos up to date".
| name | implement |
| description | Guided implementation with research, exploration, and validation. Scales from quick inline edits to multi-subagent workflows based on task complexity. |
Context-aware implementation flow. Scales its approach based on task complexity — from quick focused edits to multi-subagent orchestration. Not a full /ralph loop, but capable of handling substantial tasks while keeping the main agent's context window lean.
sideclaw tools are async.
mcp__sideclaw__{check,review}return{ jobId }, not the result — thenmcp__sideclaw__job_wait({ jobId })(loop whilestillRunning) yields the structured output. (/researchis the separate research-gateway MCP — a blocking call, no jobId.) Implementation runs on the native@implementerSonnet subagent (synchronous, on Max, its own prompt cache — no orchestrator-cache penalty), not on sideclaw. See the async-job contract in global CLAUDE.md.
/grill, a PRD, or a direct request)When the user runs /implement, they've already decided to ship it. Scope is assumed clear; the agent decides along the way. Default to action — don't gate on confirmation, don't propose alternatives, don't ask "should I proceed?". Research and minor judgment calls happen inline as needed.
Only stop to ask when:
Otherwise: pick the obvious option, note it in the plan bullet, and go. The user can redirect in the sign-off step.
Assess the task first and pick the appropriate tier:
| Tier | Signal | Approach |
|---|---|---|
| Quick | 1-2 files, clear pattern, no research needed | Skip tasks, skip explore subagent, implement inline, run /check |
| Standard | 3-8 files, some unknowns, familiar libraries | Full process below — explore subagent, plan, inline impl, /check |
| Heavy | 9+ files, multiple concerns, external libs, or high uncertainty | Full process + implementation delegated to the @implementer Sonnet subagent (parallel, one per disjoint file group; an Opus subagent for novel-hard logic) + runtime validation |
For Quick tasks: skip the formality, just implement and validate. State the tier upfront.
Primary goal: keep the orchestrator's context window small.
All subagent work uses the native Agent tool with an explicit subagent_type. Subagents have their own prompt cache — switching models inside a subagent does not invalidate the orchestrator's cache. The @implementer subagent runs Sonnet 4.6 at high effort (the implementor-tier default — ≈ Opus on SWE-bench at ~1/5 the cost). Fan out Sonnet implementers on disjoint file groups freely; reserve Opus subagents for novel-hard reasoning. Note: parallel subagents run on Max — they buy detachment and context isolation, not free parallelism.
| Phase | Quick | Standard | Heavy |
|---|---|---|---|
| Explore | Skip | Agent with subagent_type: Explore | Agent with subagent_type: Explore |
| Research | Skip | /research (MCP) if external libs | /research (MCP) if external libs |
| Plan | 1-liner inline | 3-5 bullets inline | Agent with subagent_type: Plan for non-trivial plans, else inline; wait for approval |
| Implement | Inline | Inline or @implementer (Sonnet) subagent | @implementer (Sonnet) subagent, one call per independent file group in parallel; Agent with subagent_type: general-purpose, model: opus for novel-hard logic — see below |
| Validate (static) | /check (MCP) | /check (MCP) | /check (MCP) |
| Validate (runtime) | Only if obvious | Assess need | Always assess |
Heavy implementer choice (delegate to protect orchestrator CONTEXT — implementation now runs on Max/Sonnet):
@implementer (native Sonnet 4.6, effort high). Pass a complete brief — exact paths, the change/shape, acceptance criteria, intent, and explicit scope limits (no extra features, no refactoring untouched code). It loads the CLAUDE.md rules automatically (house-style fidelity a foreign worker can't match) and returns a diff summary. It has Read/Grep, so pass file pointers, not pre-extracted snippets, to save orchestrator context. Review the actual diff before committing.@implementer calls in one turn (one per group). Parallelize only on disjoint file sets — never two implementers on the same file. Remember parallel = N× Sonnet-on-Max (detachment, not free).Agent with subagent_type: general-purpose, model: opus, effort: high. The worker is a literal executor, not a planner.@implementer subagents on disjoint groups, or the for f in ...; claude -p ... --allowedTools fan-out (optionally pointed at the IU endpoint to keep it off Max). The retired sideclaw implement worker is not an option.Explore agents in parallel (single message, multiple Agent tool calls) — Explore already defaults to fast.cwd, and by default its Edit/Write land in your LIVE checkout — so create the worktree with Claude Code's native worktree feature and run the whole /implement flow there (or set isolation: worktree on a one-off Agent call for a single risky run). Don't spawn a separate worktree-isolated background agent and reconcile trees afterward.Never do exploration or research inline in Standard/Heavy tiers.
State the tier. Then use TaskCreate (native deferred tool) to create one task per phase:
Mark each complete via TaskUpdate as soon as it's done — don't batch.
Launch both in a single message (multiple Agent tool calls in one block — they run concurrently):
Agent with subagent_type: Explore — be specific about what to find:
/research <query> via the Skill tool — only if the task involves:
Mark both tasks complete when done. Summarize findings in 3-5 bullets max — do NOT echo full subagent output.
State your approach in 3-5 bullets and proceed. Include:
Do not wait for approval by default. Only pause when a major uncertainty / user-owned decision (per the Action Bias section) is genuinely open. Otherwise, state the plan and start implementing in the same turn.
Quick (≤2 files): implement inline.
Standard / Heavy settled work: delegate to the @implementer subagent (native Sonnet 4.6, high effort). Heavy novel-hard logic: Agent with subagent_type: general-purpose, model: opus, effort: high. Either way the executor has zero prior context, so the task + context must include:
@implementer subagent returns a diff summary + validation result + assumptions — treat it as a claim: review the actual diff against source before committing. It has Read/Grep, so pass file pointers rather than pre-extracted snippets to save orchestrator contextDuring implementation (inline or subagent):
Mark the Implement task complete.
Static — always run /check as a subprocess. Never skip. Fix errors in YOUR changed files only. Report but don't fix issues in untouched files.
Runtime — assess whether the change needs runtime verification:
| Scenario | Tool | Notes |
|---|---|---|
| UI/frontend change | /browse skill | haiku fork — screenshots, console, DOM inspection |
| Backend/API change with OTEL | /otel skill | query traces/logs for the affected service |
| Server not running | Ask the user | Check for Makefile first (make dev, make start), then package.json scripts — suggest ! make dev so output lands in session |
| Server already running | /browse or HTTP check | Use what's available |
To find the right start command:
Makefile — prefer make dev or make startpackage.json scripts (dev, start)If runtime validation is warranted but requires a server the user hasn't started:
"To validate visually, please start the dev server (
! make dev). I'll inspect it via/browseonce it's up."
Mark the Validate task complete.
Always end with a short summary and an explicit ask:
Ask the user to confirm the outcome looks correct before considering the task done.
If you discovered a gotcha, a constraint, or a reusable pattern:
Agent with subagent_type: Explore + /research (MCP)/check before declaring doneMakefile before package.json for server start commands!@implementer subagent runs Sonnet at high effort and loads CLAUDE.md automatically — do not re-specify the rules in the brief; do specify exact paths, the change, acceptance criteria, intent, and scope limits