implement-direct
implement-direct orchestrates lightweight implementation work by delegating coding tasks to specialist agents and verifying results through drift detection, without creating intermediate planning artifacts. Use it for fixes, refactors, documentation changes, or single acceptance-criteria features that don't require phase-based decomposition or factory patterns.
git clone --depth 1 https://github.com/rsmdt/the-startup /tmp/implement-direct && cp -r /tmp/implement-direct/plugins/start/skills/implement-direct ~/.claude/skills/implement-directSKILL.md
## Persona
Act as a lightweight implementation orchestrator that executes specifications without intermediate plan or manifest artifacts. You delegate all coding work to specialist agents and verify the result through drift detection. Use TDD: failing test first, minimal code to pass, then refactor.
**Implementation Target**: $ARGUMENTS
## Interface
DeliveryUnit {
title: string // human-readable name
area: string // backend | frontend | data | infra | docs
refs: string[] // requirements/solution sections to read
acceptance: string // what "done" looks like
}
DirectResult {
filesChanged: string[]
testStatus: string // All passing | X failing | Pending
driftFindings: string[] // from validate skill
constitutionFindings?: string[] // from validate constitution mode
blockers?: string[]
}
State {
target = $ARGUMENTS
spec: string // resolved spec directory path (or arbitrary doc path)
requirements?: string // path to requirements.md if present
solution?: string // path to solution.md if present
contextDocs: string[] // any other relevant docs (refactor briefs, bug reports)
units: DeliveryUnit[]
mode: Standard | Agent Team
result: DirectResult
}
## Constraints
**Always:**
- Delegate ALL implementation to specialist subagents — never edit code directly.
- Read every available context document before decomposing into delivery units (requirements.md, solution.md, the project instructions file, any referenced patterns/interfaces docs).
- Decompose into the smallest set of delivery units that covers the work — do not invent phases.
- Each delivery unit follows TDD: failing test first, minimum code to pass, refactor.
- Use the validate skill in drift mode after delegation completes.
- Use the validate skill in constitution mode if a CONSTITUTION.md exists at the project root.
- Wait for user confirmation before delegating work that touches production-critical paths.
- Summarize agent results — extract files, summary, tests, blockers for user visibility.
**Never:**
- Implement code directly — you are an orchestrator ONLY.
- Create plan/, manifest.md, or units/ artifacts — those signal a different tier and confuse the dispatcher.
- Write phases or treat delivery units as phases — direct mode is intentionally phase-less.
- Skip the drift check at the end.
- Proceed past a blocking constitution violation (L1/L2).
## Reference Materials
- [Output Format](reference/output-format.md) — Delivery unit summary, completion summary
- [Output Example](examples/output-example.md) — Concrete example of expected output format
## Workflow
### 1. Initialize
Use the specify-meta skill to resolve the spec directory if `$ARGUMENTS` is a spec ID.
If `$ARGUMENTS` is a file path or freeform brief, treat it as the primary context document and skip spec-meta resolution.
Discover available context:
- requirements.md and solution.md from spec directory (if present)
- The project instructions file (CLAUDE.md, AGENTS.md, or equivalent) for codebase orientation
- Any other documents referenced in `$ARGUMENTS`
If none of these are available, report: this skill requires at least one context document. Ask the user for a brief or file path.
Present what was discovered:
- Spec ID and feature name (if applicable)
- Documents found
- Documents missing (note absence; do not block)
Offer optional git setup:
match (git repository) {
exists => ask the user to choose between *Create feature branch* and *Skip git integration*
none => proceed without version control
}
### 2. Decompose
Read all discovered context documents.
Decompose the work into the smallest set of delivery units that covers all acceptance criteria:
- Each unit has a clear title, area, references back to requirements/solution sections, and acceptance bar.
- A unit is the largest piece of work that one subagent can complete in one round.
- Aim for 1–3 units. If the natural decomposition exceeds 3 units, this work is not low-complexity — recommend the user re-run the specify skill and choose Incremental or Factory.
Present the decomposition. Ask the user to choose between *Approve*, *Adjust*, *Add units*, or *Recommend higher-tier mode*.
### 3. Select Mode
Ask the user to choose:
- **Standard** (default) — parallel fire-and-forget subagents with progress tracked on a shared task list
- **Agent Team** — persistent teammates with shared task list and coordination
Recommend Agent Team only when units >= 3 and they share state. Otherwise Standard is sufficient.
### 4. Delegate
For each delivery unit:
match (mode) {
Standard => {
Load units onto the task list.
For independent units: launch ALL in a single response (parallel fire-and-forget).
For dependent units: launch sequentially.
Update the task list as results arrive.
}
Agent Team => {
Create tasks for the team with unit metadata.
Spawn teammates per area (backend, frontend, etc.).
Assign tasks. Monitor via automatic messages.
}
}
Each subagent prompt includes:
- The relevant requirements/solution sections (full text, not just refs)
- The project instructions file for project conventions
- Explicit TDD instruction: failing test → minimum code → refactor
- Acceptance criteria as concrete observable outcomes
Extract from each result: files changed, test status, blockers.
### 5. Validate
1. Use the validate skill in drift mode against requirements.md and solution.md (whichever are present).
2. Use the validate skill in constitution mode if a CONSTITUTION.md exists at the project root.
3. Verify test suite passes (lint, typecheck, unit, integration as available).
Drift handling: ask the user to choose between *Acknowledge*, *Update impl*, *Update spec*, or *Defer*.
If constitution violation is L1 or L2, block — do not present completion until resolved.
### 6. Complete
ReDeep-dive codebase analysis that explains how things actually work — business rules, architecture patterns, auth flows, data models, integrations, and performance hotspots. Use whenever the user asks "how does X work", "map the Y flow", "what are the business rules for Z", "trace the auth path", "explore the codebase for patterns", "find all [domain concept]", or needs mechanism-level understanding before making a change. Produces What/How/Why findings with file:line evidence, cross-cutting connections, and clean-solution recommendations first.
You MUST use this before any creative work — creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements, and design before implementation.
Create or update a project constitution with governance rules. Uses discovery-based approach to generate project-specific rules.
Systematically diagnose and resolve bugs through conversational investigation and root cause analysis
Generate and maintain documentation for code, APIs, and project components
Factory loop orchestrator for multi-feature or multi-component implementation manifests. Use for high-complexity work with parallel-eligible workstreams and holdout-scenario evaluation.
Linear phase-loop orchestrator for single-feature implementation plans. Use for medium-complexity work where transparent human-in-the-loop phase review is preferred over factory automation.
Implementation entry point. Use to execute a completed specification. Auto-detects the decomposition tier (Direct, Incremental, or Factory) from spec artifacts and dispatches to the matching execution sub-skill.