一键导入
workflows-work
Execute the implementation plan by dispatching sub-agents for each task. Stage 4 of the development workflow.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Execute the implementation plan by dispatching sub-agents for each task. Stage 4 of the development workflow.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
A-Mem thought evolution — check which prior thoughts should be updated when a significant new insight arrives. Spawns a lightweight subagent to classify prior thoughts as UPDATE or NO_UPDATE, then applies revisions. Use during long reasoning sessions when you reach a synthesis, make a decision, or discover something that changes earlier assumptions. Triggers on "this changes what I thought earlier", "update prior reasoning", "evolve thoughts", or automatically on conclusion/synthesis thoughts in sessions >10 thoughts.
Cross-session knowledge retrieval from the Thoughtbox knowledge graph. Searches entities, traverses relations, retrieves observations, and synthesizes findings from past sessions. Use when you need to recall prior decisions, check what's already known about a topic, find related insights, or build on past work. Triggers on "what do we know about", "have we seen this before", "recall", "prior decisions about", "knowledge graph", or when starting work that might have prior context.
Capture significant learnings from the current work session. Structures insights for future sessions and updates agent memory.
Write or improve prompts for Codex using Anthropic's official best practices. Creates system prompts, agent prompts, tool descriptions, and MCP resource templates. Pass an existing prompt to improve it, or describe what you need to create one from scratch.
Generate architecture diagrams for a codebase subsystem or module. Explores source files and produces Mermaid diagrams in docs/.
Extract reusable principles and decision frameworks from accumulated experience. Use after significant work sessions, project milestones, or when you notice recurring patterns worth codifying.
| name | workflows-work |
| description | Execute the implementation plan by dispatching sub-agents for each task. Stage 4 of the development workflow. |
| argument-hint | [plan path or task selection] |
| user-invocable | true |
Execute the implementation plan: $ARGUMENTS
You are executing Stage 4 (Implementation) of the development workflow. A plan exists from Stage 3 with decomposed tasks. Your job is to dispatch sub-agents for each task, collect their structured summaries, and persist everything to disk.
Before starting, verify:
.workflow/state.json exists and currentStage is "implementation"stages.planning.artifacts.plan in state, usually .workflow/plan.md)If pre-conditions are not met, report what's missing and halt.
Read .workflow/plan.md and the spec/ADR it references. Build the task execution order from the dependency graph.
For each task in dependency order:
Dispatch a sub-agent (use the Agent tool with subagent_type: "general-purpose") with:
Parallelize independent tasks: If tasks have no dependency between them, dispatch their sub-agents concurrently using parallel Agent tool calls.
Persist the summary immediately upon receipt:
.workflow/summaries/<branch-slug>-<task-id>.md
Verify acceptance criteria: Check each criterion from the plan against the sub-agent's summary. If any fail, note them for review.
Each sub-agent MUST return this format:
## Sub-Agent Work Summary
### Task
- Branch: <current branch>
- Spec: <spec path>
### Changes
- Files modified: [list]
- Files created: [list]
- Lines: +N / -N
### Claims
1. "[specific testable claim]"
- Verifiable by: [test or command]
### Spec/Evidence Alignment
- H1 "<text>": SUPPORTS / REFUTES / NO EVIDENCE -- [evidence]
### Tests
- Tests written: N
- Tests passing: N/N
- Commands: `[exact command]`
### Known Gaps
- [anything deferred or uncertain]
### Risks
- [anything that could break other parts]
After all sub-agents complete, run the full test suite:
npm test
If tests fail, note which tasks' changes caused the failure.
Check off each task from the plan:
All acceptance criteria met?
All summaries persisted to disk?
Tests passing?
Update workflow state (.workflow/state.json):
Set stages.implementation.status to "completed"
Set stages.implementation.completedAt to current ISO timestamp
Set stages.implementation.artifacts.summaries to list of summary file paths
Set currentStage to "review"
Update updatedAt
Present the handoff:
IMPLEMENTATION COMPLETE
========================
Tasks completed: N/N
Summaries: [list of paths]
Tests: N passing, N failing
Next: Stage 5 - Review (/workflows-review)