Agent Skillsrsmdt/the-startup › implement-direct

implement-direct

GitHub

轻量级实施编排器,负责分解低复杂度任务(修复、重构、文档等),委派子代理执行编码,并通过TDD和漂移检测验证结果,不直接编写代码。

plugins/start/skills/implement-direct/SKILL.md rsmdt/the-startup

触发场景

需要执行小规模代码实现 需求已明确且无需复杂规划 包含修复、重构或单一功能开发

安装

npx skills add rsmdt/the-startup --skill implement-direct -g -y
更多选项

非标准路径

npx skills add https://github.com/rsmdt/the-startup/tree/main/plugins/start/skills/implement-direct -g -y

不安装直接使用

npx skills use rsmdt/the-startup@implement-direct

指定 Agent (Claude Code)

npx skills add rsmdt/the-startup --skill implement-direct -a claude-code -g -y

安装 repo 全部 skill

npx skills add rsmdt/the-startup --all -g -y

预览 repo 内 skill

npx skills add rsmdt/the-startup --list

SKILL.md

Frontmatter
{
    "name": "implement-direct",
    "description": "Lightweight implementation orchestrator for low-complexity work — fixes, refactors, doc changes, or single-AC features that do not warrant a phase plan or factory decomposition.",
    "argument-hint": "spec ID to implement (e.g., 002), or file path",
    "user-invocable": false
}

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

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

Read reference/output-format.md and present completion summary.

match (git integration) { active => ask the user to choose between Commit + PR, Commit only, or Skip none => ask the user to choose between Run tests, Manual review, or Done }

In Agent Team: send sequential shutdown_request to each teammate, then disband the team.

版本历史

  • 88d447c 当前 2026-08-08 07:57

同 Skill 集合

plugins/start/skills/brainstorm/SKILL.md
plugins/start/skills/constitution/SKILL.md
plugins/start/skills/debug/SKILL.md
plugins/start/skills/document/SKILL.md
plugins/start/skills/implement-factory/SKILL.md
plugins/start/skills/implement-incremental/SKILL.md
plugins/start/skills/implement/SKILL.md
plugins/start/skills/refactor/SKILL.md
plugins/start/skills/review/SKILL.md
plugins/start/skills/specify-factory/SKILL.md
plugins/start/skills/specify-incremental/SKILL.md
plugins/start/skills/specify-meta/SKILL.md
plugins/start/skills/specify-requirements/SKILL.md
plugins/start/skills/specify-solution/SKILL.md
plugins/start/skills/test/SKILL.md
plugins/start/skills/validate/SKILL.md
plugins/start/skills/writing-skills/SKILL.md
plugins/team/skills/cross-cutting/feature-prioritization/SKILL.md
plugins/team/skills/cross-cutting/pattern-detection/SKILL.md
plugins/team/skills/cross-cutting/project-discovery/SKILL.md
plugins/team/skills/cross-cutting/requirements-elicitation/SKILL.md
plugins/team/skills/design/user-research/SKILL.md
plugins/team/skills/development/agentic-patterns/SKILL.md
plugins/team/skills/development/api-contract-design/SKILL.md
plugins/team/skills/development/architecture-selection/SKILL.md
plugins/team/skills/development/domain-modeling/SKILL.md
plugins/team/skills/development/frontend-patterns/SKILL.md
plugins/team/skills/development/technical-writing/SKILL.md
plugins/team/skills/development/testing/SKILL.md
plugins/team/skills/infrastructure/platform-operations/SKILL.md
plugins/team/skills/quality/code-quality-review/SKILL.md
plugins/team/skills/quality/performance-analysis/SKILL.md
plugins/team/skills/quality/security-assessment/SKILL.md
plugins/start/skills/analyze/SKILL.md

元信息

文件数
0
版本
88d447c
Hash
3d416855
收录时间
2026-08-08 07:57

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-09 00:54
浙ICP备14020137号-1 $访客地图$