/boshu2:implement [feature-description]from boshu2
Full-power feature implementation with parallel subagents. Use when implementing, building, or creating features.
Ships in boshu2. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Parallel subagent execution for feature implementation with scope control and reflection.
/ork:implement user authentication
/ork:implement real-time notifications
/ork:implement dashboard analytics
FEATURE_DESC = "$ARGUMENTS" # Full argument string, e.g., "user authentication"
# $ARGUMENTS[0] is the first token, $ARGUMENTS[1] second, etc. (CC 2.1.59)
Run BEFORE any other step. Detect available MCP servers and check for resumable state.
# Probe MCPs (parallel — all in ONE message):
ToolSearch(query="select:mcp__memory__search_nodes")
ToolSearch(query="select:mcp__context7__resolve-library-id")
Write(".claude/chain/capabilities.json", JSON.stringify({
"memory": <true if found>,
"context7": <true if found>,
"timestamp": now()
}))
# Resume check:
Read(".claude/chain/state.json")
# If exists and skill == "implement":
# Read last handoff (e.g., 04-architecture.json)
# Skip to current_phase
# "Resuming from Phase {N} — architecture decided in previous session"
# If not: write initial state
Write(".claude/chain/state.json", JSON.stringify({
"skill": "implement", "feature": FEATURE_DESC,
"current_phase": 1, "completed_phases": [],
"capabilities": capabilities
}))
Load:
Read("${CLAUDE_PLUGIN_ROOT}/skills/chain-patterns/references/checkpoint-resume.md")
BEFORE any work, detect the project tier. This becomes the complexity ceiling for all patterns.
Scan codebase for signals: README keywords (take-home, interview), .github/workflows/, Dockerfile, terraform/, k8s/, CONTRIBUTING.md.
| Signal | Tier | Architecture Ceiling |
|---|---|---|
| README says "take-home", time limit | 1. Interview (load ${CLAUDE_SKILL_DIR}/references/interview-mode.md) | Flat files, 8-15 files |
| < 10 files, no CI | 2. Hackathon | Single file if possible |
.github/workflows/, managed DB | 3. MVP | MVC monolith |
| Module boundaries, Redis, queues | 4. Growth | Modular monolith, DI |
| K8s/Terraform, monorepo | 5. Enterprise | Hexagonal/DDD |
| CONTRIBUTING.md, LICENSE | 6. Open Source | Minimal API, exhaustive tests |
If confidence is low, use AskUserQuestion to ask the user. Pass detected tier to ALL downstream agents — see scope-appropriate-architecture.
| Tier | Phases | Max Agents |
|---|---|---|
| 1. Interview | 1, 5 only | 2 |
| 2. Hackathon | 5 only | 1 |
| 3. MVP | 1-6, 9 | 3-4 |
| 4-5. Growth/Enterprise | All 10 | 5-8 |
| 6. Open Source | 1-7, 9-10 | 3-4 |
Use AskUserQuestion to verify scope (full-stack / backend-only / frontend-only / prototype) and constraints.
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 and complexity >= 2.5ORCHESTKIT_FORCE_TASK_TOOL=1 to overrideRead("${CLAUDE_SKILL_DIR}/references/orchestration-modes.md")For features touching 5+ files, offer worktree isolation to prevent conflicts with the main working tree:
AskUserQuestion(questions=[{
"question": "Isolate this feature in a git worktree?",
"header": "Isolation",
"options": [
{"label": "Yes — worktree (Recommended)", "description": "Creates isolated branch via EnterWorktree, merges back on completion", "markdown": "```\nWorktree Isolation\n──────────────────\nmain ─────────────────────────────▶\n \\ /\n └─ feat-{slug} (worktree) ───┘\n ├── Isolated directory\n ├── Own branch + index\n └── Auto-merge on completion\n\nSafe: main stays untouched until done\n```"},
{"label": "No — work in-place", "description": "Edit files directly in current branch", "markdown": "```\nIn-Place Editing\n────────────────\nmain ──[edit]──[edit]──[edit]───▶\n ▲ ▲ ▲\n │ │ │\n direct modifications\n\nFast: no branch overhead\nRisk: changes visible immediately\n```"},
{"label": "Plan first", "description": "Research and design in plan mode before writing code", "markdown": "```\nPlan Mode Flow\n──────────────\n 1. EnterPlanMode($ARGUMENTS)\n 2. Read existing code\n 3. Research patterns\n 4. Design approach\n 5. ExitPlanMode → plan\n 6. User approves plan\n 7. Execute implementation\n\n Best for: Large features,\n unfamiliar codebases,\n architectural decisions\n```"}
],
"multiSelect": false
}])
If 'Plan first' selected: Call EnterPlanMode("Research and design: $ARGUMENTS"), perform research using Read/Grep/Glob only, then ExitPlanMode with the plan for user approval before proceeding.
If worktree selected:
EnterWorktree(name: "feat-{slug}") to create isolated branchgit checkout {original-branch} && git merge feat-{slug}AskUserQuestionLoad worktree details: Read("${CLAUDE_SKILL_DIR}/references/worktree-isolation-mode.md")
Create tasks with TaskCreate BEFORE doing any work. Each phase gets a subtask. Update status with TaskUpdate as you progress.
| Phase | Activities | Agents |
|---|---|---|
| 1. Discovery | Research best practices, Context7 docs, break into tasks | — |
| 2. Micro-Planning | Detailed plan per task (load ${CLAUDE_SKILL_DIR}/references/micro-planning-guide.md) | — |
| 3. Worktree | Isolate in git worktree for 5+ file features (load ${CLAUDE_SKILL_DIR}/references/worktree-workflow.md) | — |
| 4. Architecture | 4 parallel background agents | workflow-architect, backend-system-architect, frontend-ui-developer, llm-integrator |
| 5. Implementation + Tests | Parallel agents, single-pass artifacts with mandatory tests | backend-system-architect, frontend-ui-developer, llm-integrator, test-generator |
| 6. Integration Verification | Code review + real-service integration tests | backend, frontend, code-quality-reviewer, security-auditor |
| 7. Scope Creep | Compare planned vs actual (load ${CLAUDE_SKILL_DIR}/references/scope-creep-detection.md) | workflow-architect |
| 8. E2E Verification | Browser + API E2E testing (load ${CLAUDE_SKILL_DIR}/references/e2e-verification.md) | — |
| 9. Documentation | Save decisions to memory graph | — |
| 10. Reflection | Lessons learned, estimation accuracy | workflow-architect |
Load agent prompts: Read("${CLAUDE_SKILL_DIR}/references/agent-phases.md")
For Agent Teams mode: Read("${CLAUDE_SKILL_DIR}/references/agent-teams-phases.md")
Write handoff JSON after major phases. See chain-patterns skill for schema.
| After Phase | Handoff File | Key Outputs |
|---|---|---|
| 1. Discovery | 01-discovery.json | Best practices, library docs, task breakdown |
| 2. Micro-Plan | 02-plan.json | File map, acceptance criteria per task |
| 4. Architecture | 04-architecture.json | Decisions, patterns chosen, agent results |
| 5. Implementation | 05-implementation.json | Files created/modified, test results |
| 7. Scope Creep | 07-scope.json | Planned vs actual, PR split recommendation |
Phase 5 agents SHOULD use isolation: "worktree" to prevent file conflicts:
Agent(subagent_type="backend-system-architect",
prompt="Implement backend: {feature}. Architecture: {from 04-architecture.json}",
isolation="worktree", run_in_background=true)
Agent(subagent_type="frontend-ui-developer",
prompt="Implement frontend: {feature}...",
isolation="worktree", run_in_background=true)
Agent(subagent_type="test-generator",
prompt="Generate tests: {feature}...",
isolation="worktree", run_in_background=true)
After final PR, schedule health monitoring:
# Guard: Skip cron in headless/CI (CLAUDE_CODE_DISABLE_CRON)
# if env CLAUDE_CODE_DISABLE_CRON is set, run a single check instead
CronCreate(
schedule="0 */6 * * *",
prompt="Health check for {feature} in PR #{pr}:
gh pr checks {pr} --repo {repo}.
If healthy 24h → CronDelete. If errors → alert."
)
if capabilities.context7:
mcp__context7__resolve-library-id({ libraryName: "next-auth" })
mcp__context7__query-docs({ libraryId: "...", query: "..." })
else:
WebFetch("https://docs.example.com/api") # T1 fallback
If working on a GitHub issue, run the Start Work ceremony from issue-progress-tracking and post progress comments after major phases.
Maintain checkpoints after each task. Load triggers: Read("${CLAUDE_SKILL_DIR}/references/feedback-loop.md")
Phase 5 test-generator MUST produce tests matching the change type:
| Change Type | Required Tests | Testing Rules |
|---|---|---|
| API endpoint | Unit + Integration + Contract | integration-api, verification-contract, mocking-msw |
| DB schema/migration | Migration + Integration | integration-database, data-seeding-cleanup |
| UI component | Unit + Snapshot + A11y | unit-aaa-pattern, integration-component, a11y-testing, e2e-playwright |
| Business logic | Unit + Property-based | unit-aaa-pattern, pytest-execution, verification-techniques |
| LLM/AI feature | Unit + Eval | llm-evaluation, llm-mocking |
| Full-stack feature | All of the above | All matching rules |
Before running integration tests, detect infrastructure:
# Auto-detect real service testing capability (PARALLEL)
Glob(pattern="**/docker-compose*.yml")
Glob(pattern="**/testcontainers*")
Grep(pattern="testcontainers|docker-compose", glob="requirements*.txt")
Grep(pattern="testcontainers|docker-compose", glob="package.json")
If detected: run integration tests against real services, not just mocks. Reference testing-integration rules: integration-database, integration-api, data-seeding-cleanup.
Do NOT proceed to Phase 9 (Documentation) if test-generator produced 0 tests. Return to Phase 5 and generate tests for the implemented code.
run_in_background: true, launch all agents in ONE messageTeamDelete() after completion; press Ctrl+F twice as manual fallback. Note: /clear (CC 2.1.72+) preserves background agentsork:explore: Explore codebase before implementingork:verify: Verify implementations work correctlyork:issue-progress-tracking: Auto-updates GitHub issues with commit progressLoad on demand with Read("${CLAUDE_SKILL_DIR}/references/<file>"):
| File | Content |
|---|---|
agent-phases.md | Agent prompts and spawn templates |
agent-teams-phases.md | Agent Teams mode phases |
interview-mode.md | Interview/take-home constraints |
orchestration-modes.md | Task tool vs Agent Teams selection |
feedback-loop.md | Checkpoint triggers and actions |
cc-enhancements.md | CC version-specific features |
agent-teams-full-stack.md | Full-stack pipeline for teams |
team-worktree-setup.md | Team worktree configuration |
micro-planning-guide.md | Detailed micro-planning guide |
scope-creep-detection.md | Planned vs actual comparison |
worktree-workflow.md | Git worktree workflow |
e2e-verification.md | Browser + API E2E testing guide |
worktree-isolation-mode.md | Worktree isolation details |
assets/micro-plan-template.md (opens in a new tab)assets/reflection-template.md (opens in a new tab)checklists/implementation-review.md (opens in a new tab)references/agent-phases.md (opens in a new tab)references/agent-teams-full-stack.md (opens in a new tab)references/agent-teams-phases.md (opens in a new tab)references/agent-teams-security-audit.md (opens in a new tab)references/cc-enhancements.md (opens in a new tab)references/e2e-verification.md (opens in a new tab)references/feedback-loop.md (opens in a new tab)references/interview-mode.md (opens in a new tab)references/micro-planning-guide.md (opens in a new tab)references/orchestration-modes.md (opens in a new tab)references/scope-creep-detection.md (opens in a new tab)references/team-worktree-setup.md (opens in a new tab)references/worktree-isolation-mode.md (opens in a new tab)references/worktree-workflow.md (opens in a new tab)scripts/worktree-setup.sh (opens in a new tab)test-cases.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
sonnetWriteAgentWrite|Edit50 skills in this plugin
/beadsGit-backed issue tracker for multi-session work with dependencies and persistent memory across conversation compaction. Use when work spans sessions, has blockers, or needs context recovery after compaction.
/brainstormCollaborative discovery and design framing for ambiguous or high-risk work. Use when requirements are unclear, multiple approaches are possible, or you need to turn an idea into a validated design brief before planning or coding./bug-huntInvestigate suspected bugs or run proactive code audits. Triggers: "bug", "broken", "doesn't work", "failing", "investigate bug", "debug", "find the bug", "troubleshoot", "audit code", "find bugs in", "code audit", "hunt bugs"./codex-teamUse when you have 2+ tasks that Codex agents should execute. Runtime-native: Codex sub-agents when available, Codex CLI fallback otherwise. Handles file conflicts via merge/wave strategies. Triggers: "codex team", "spawn codex", "codex agents", "use codex for", "codex fix"./complexityAnalyze code complexity and find refactor targets using radon/gocyclo. Triggers: "complexity", "analyze complexity", "find complex code", "refactor targets", "cyclomatic complexity", "code metrics"./converterCross-platform skill converter. Parse AgentOps skills into a universal bundle format, then convert to target platforms (Codex, Cursor). Triggers: convert, converter, convert skill, export skill, cross-platform.npx claudepluginhub ulpi-io/plugin-marketplace --plugin boshu2Other plugins' skills for the same job