بنقرة واحدة
speq-implement
Orchestrate implementation of reviewed plans according to the spec deltas. Arg: <plan-name>.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Orchestrate implementation of reviewed plans according to the spec deltas. Arg: <plan-name>.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Audit a speq project's health — spec-library structure, feature/decision-log/plan validation, mission-to-spec sync, unrecorded plans, and gitignore hygiene — then guide fixes. Use when the user asks to audit, health-check, doctor, lint, or sanity-check the specs or repo, or after cloning or inheriting a speq project.
Code review tag taxonomy and findings output format — guardrail violations, dead code, obsolete tests, bad comments, optimizations, YAGNI/over-engineering. Triggered by code-reviewer.
Headless follow-up to speq-plan-pr. Continues on a plan's feat/plan-name branch, runs speq-implement, bumps the version, runs the real test suites, records only if green, then pushes and opens/updates a PR. Arg: plan name, PR number, or branch name.
Create specs/mission.md via interactive interview. Detects brownfield vs greenfield.
Headless, non-interactive version of speq-plan. Plans a feature without a live interview, commits the result to a feat/plan-name branch, and opens a PR. If a decision genuinely needs a human, it persists the partial plan and open questions and asks in a PR comment instead of blocking. Arg — plan name, feature intent text, PR number, or branch name.
Adversarial plan-review method and challenge taxonomy — premortem framing, 14-tag/5-axis taxonomy, severity discipline, and findings output format. Triggered by plan-reviewer.
| name | speq-implement |
| description | Orchestrate implementation of reviewed plans according to the spec deltas. Arg: <plan-name>. |
| model | sonnet |
Orchestrate implementation of plans in specs/_plans/<plan-name>.
Orchestration (reading tasks.md, dispatching sub-agents, verifying results) is tool-call heavy but not reasoning-heavy. The sub-agents do the heavy lifting — each pins its own model and effort in its frontmatter:
| Sub-agent | When used |
|---|---|
implementer-agent | Standard tasks (default) |
implementer-expert-agent | Tasks tagged [expert] in tasks.md |
code-reviewer | Final review of all changed files |
Get plan name from user prompt or ask if none specified.
Invoke before starting:
/speq-code-tools — Semantic code navigation and editing/speq-ext-research — Library documentation and research/speq-code-guardrails — TDD cycle and quality standards/speq-cli — spec discovery/speq-writing-guardrails — Prose style for artifacts and GitHub textSubagents (implementer-agent, implementer-expert-agent, code-reviewer) must also invoke their required skills.
The main agent acts as orchestrator:
tasks.md for persistenceStrategy: Rotate sub-agents to maintain fresh context.
| Setting | Default | Description |
|---|---|---|
max_tasks_per_agent | 5 | Tasks before considering rotation |
checkpoint_interval | 2-3 | Tasks between progress reports |
Rotation workflow:
Check for .speq/implement-hook.md in the repo root.
Note it (not its full content) as a Project Hook: line in every sub-agent brief below — implementer-agent, implementer-expert-agent, and code-reviewer read it themselves from that path when noted.
Read: specs/_plans/<plan-name>/plan.md
Extract: feature specs, implementation tasks, parallelization groups, verification commands.
Decompose the plan into a Work Breakdown Structure in specs/_plans/<plan-name>/tasks.md.
Format:
# Tasks: <plan-name>
## Phase 2: Implementation (Group A)
- [ ] 2.1 <task from plan>
- [ ] 2.2 <task from plan> [expert]
## Phase 2: Implementation (Group B)
- [ ] 2.3 <task from plan>
## Phase 3: Verification
- [ ] 3.1 Run test suite
- [ ] 3.2 Run linter
Status markers:
[ ] pending[~] started[x] completedDifficulty tags:
[expert] — tagged by planner-agent during planning. Routes the task to implementer-expert-agent. Preserve the tag through every status transition.implementer-agent. Most tasks are untagged.If the plan did not tag any tasks but you encounter a task that clearly warrants expert reasoning (e.g. concurrency, cross-file refactor, novel algorithm), you MAY add [expert] when materializing tasks.md. Do this sparingly — over-tagging wastes tokens.
Also create runtime tasks:
For each task in tasks.md:
TaskCreate(subject, description, activeForm)
For each parallel group in plan's ## Parallelization:
expert_tasks (tagged [expert]) and standard_tasks (untagged)[ ] → [~]implementer-agentimplementer-expert-agent[~] → [x] (preserve [expert] tag)TaskUpdate(taskId, status: "completed")Standard subagent invocation:
Delegate to implementer-agent — Implement <group-name> standard tasks
## Your Tasks (standard)
{standard_task_list}
## Context
- Plan: specs/_plans/{plan_name}/plan.md
- Tasks file: specs/_plans/{plan_name}/tasks.md
- Update tasks.md after each task completion (preserve task numbering)
- Report checkpoint after every 2-3 tasks
- Project Hook: <if active, ".speq/implement-hook.md — read it and apply it"; otherwise omit this line>
Expert subagent invocation:
Delegate to implementer-expert-agent — Implement <group-name> expert tasks
## Your Tasks (expert — reasoning-heavy)
{expert_task_list}
## Context
- Plan: specs/_plans/{plan_name}/plan.md
- Tasks file: specs/_plans/{plan_name}/tasks.md
- Preserve the [expert] tag when updating status markers
- Checkpoint after every 1-2 tasks (expert tasks are heavier)
- Report key reasoning / invariants applied
- Project Hook: <if active, ".speq/implement-hook.md — read it and apply it"; otherwise omit this line>
After implementation completes, review all changed files.
git diff --name-only <base>...HEADDelegate to code-reviewer — Review implementation quality
## Changed Files
{changed_files_list}
## Context
- Plan: specs/_plans/{plan_name}/plan.md
- Review for: guardrail violations, dead code, obsolete tests, bad comments, optimizations, YAGNI/over-engineering
- Structure findings using the **Pyramid Principle**: group by theme, lead each group with the key finding, support with evidence.
- Project Hook: <if active, ".speq/implement-hook.md — read it and apply it"; otherwise omit this line>
tasks.md for every finding[expert] when the finding involves subtle correctness, concurrency, or cross-file reasoningimplementer-agent for untagged, implementer-expert-agent for [expert]Execute commands from plan's ## Verification > Checklist:
Cross-reference plan's ## Verification > Scenario Coverage against test results:
Execute each step from plan's ## Verification > Manual Testing:
Update tasks.md verification tasks as completed.
Generate using references/verification-template.md. Structure the report BLUF (Bottom Line Up Front): lead with pass/fail verdict and summary before evidence details.
Save to: specs/_plans/<plan-name>/verification-report.md
✓ All tasks in tasks.md marked [x]
✓ Code review passed (or findings fixed)
✓ Verification passed
✓ Report generated
Ready for: /speq-record <plan-name>
If context is lost or compacted:
specs/_plans/<plan-name>/tasks.md[ ] or [~])| File | Use When |
|---|---|
references/tdd-cycle-checklist.md | Sub-agent TDD reference |
references/task-flow.md | Task lifecycle management |
references/verification-template.md | Phase 6 report generation |