| name | implementation-sketch | ||||||
|---|---|---|---|---|---|---|---|
| description | Create implementation plans, technical designs, and architecture sketches from requirements or feature descriptions. Use when someone asks for an implementation plan, technical approach, system design, architecture sketch, or "how would we build this". Also triggers on "break this into tasks", "design this system", or "create a technical plan". | ||||||
| tags |
|
||||||
| version | 1.0.0 | ||||||
| common-skills-used |
|
||||||
| agents-tested |
|
Transform requirements or feature descriptions into actionable implementation plans with technical decisions, component breakdowns, task lists, and risk identification. The output should be sufficient for a development team to start building.
- User has requirements and wants a technical plan
- User asks "how would we build this?"
- User wants to break a feature into development tasks
- User asks for a system design or architecture sketch
- User wants to evaluate technical approaches for a problem
- User needs requirements first (use
requirement-study) - User wants actual code written (that's coding, not sketching)
- User wants a presentation of the plan (use
deck-creatorafter this)
Required:
- Requirements or feature description — what needs to be built
Optional:
- Tech stack constraints — languages, frameworks, infrastructure
- Team context — team size, skill sets, timeline
- Existing architecture — current system to extend
- Non-functional requirements — performance, scale, security targets
Run a non-blocking Mermaid check before generating architecture diagrams:
if command -v mmdc >/dev/null 2>&1; then
mmdc --version
else
echo "mmdc not installed; continue with text diagram descriptions and add TODO entry"
fiIf mmdc is missing, update agent.todo.md with a tooling task.
For all substantive responses while running this skill:
- Include
Stage: Gx <name>andNext: <immediate next step> - At each gate transition, ask 2-4 decision-oriented questions before advancing
- Challenge weak assumptions and provide better alternatives where tradeoffs are clear
Read the requirements/description thoroughly. Identify:
- Core functionality (what MUST work)
- Integration points (what connects to what)
- Data flows (what data moves where)
- User interactions (who does what)
Summarize your understanding and confirm with the user.
List the key technical decisions that need to be made:
- Architecture style (monolith, microservices, serverless, etc.)
- Data storage (SQL, NoSQL, file-based, etc.)
- Communication patterns (sync/async, REST/gRPC/events, etc.)
- Authentication/authorization approach
- Deployment model
For each decision, provide 2-3 options with tradeoffs and a recommendation.
Break the system into components/modules:
**Component:** [Name]
**Responsibility:** What it does (single responsibility)
**Inputs:** What it receives
**Outputs:** What it produces
**Dependencies:** Other components it needs
**Key Technical Notes:** Implementation considerations
For each component boundary, define:
- API contracts (endpoints, payloads)
- Data models (entities, relationships)
- Event contracts (if event-driven)
Keep these at sketch level — enough to align the team, not production-ready specs.
Flag:
- Technical risks (things that might not work as expected)
- Complexity hotspots (parts that will take disproportionate effort)
- External dependencies (third-party services, APIs, approvals)
- Knowledge gaps (areas where the team needs to spike/research)
Break implementation into phases and tasks:
## Phase 1: Foundation
- [ ] Task 1.1: [Description] — Est: [time] — Depends on: [nothing]
- [ ] Task 1.2: [Description] — Est: [time] — Depends on: [1.1]
## Phase 2: Core Features
- [ ] Task 2.1: [Description] — Est: [time] — Depends on: [Phase 1]
Follow common-skills/output-formatting.md:
- Title and metadata
- Summary (what and why, 3-5 sentences)
- Technical Decisions (with rationale)
- Component Design (with in-block Mermaid diagrams)
- Interface Definitions
- Risks and Unknowns
- Task Breakdown by Phase
- Tail sections per
common-skills/document-tail-sections.md
Apply common-skills/design-readiness-gate.md and explicitly finalize:
- Architecture/design pattern choice and alternatives
- Language/runtime choice and constraints
- Database choice, schema/migration approach, and data risks
- Logging/observability baseline (structured logs, metrics, tracing expectations)
If any required checkpoint remains open, mark coding tasks as blocked in agent.todo.md.
Update agent.todo.md using common-skills/agent-todo-ledger.md:
- Add architecture/design tasks and owners
- Add locks for active design/spec artifacts
- Add handoffs when moving work between agents
- Link planned implementation tasks to requirement IDs and GitHub issue IDs where known
Unless the user explicitly opts out, export a PDF copy of the implementation sketch:
polyagentctl export-pdf implementation-sketch-<topic>.mdAdd the generated PDF path to agent.todo.md gate evidence.
Apply common-skills/quality-checklist.md plus:
- Every component has a clear single responsibility
- Technical decisions include rationale, not just choices
- Task estimates are relative (S/M/L) if absolute time isn't known
- Risks have mitigation strategies or at least next steps
- Key flows/components are represented with Mermaid diagrams
- Shareable PDF export produced (unless user explicitly waived)
Markdown document: implementation-sketch-<topic>.md
- Each technical decision includes options, tradeoffs, and recommendation
- Component boundaries and interfaces are explicit and internally consistent
- Risks include mitigation or concrete next-step actions
- Task breakdown has dependencies and a buildable phase order
- Design readiness gate is passed or coding is explicitly blocked in
agent.todo.md - At least one in-block Mermaid diagram exists for key design flows/components
- Shareable PDF export exists or waiver is documented
common-skills/agent-todo-ledger.md— Multi-agent task ownership, locks, and handoffscommon-skills/design-readiness-gate.md— Enforce pre-coding architecture and operational readinesscommon-skills/document-tail-sections.md— Standard document endingscommon-skills/mermaid-to-pdf.md— Canonical Mermaid diagram export workflowcommon-skills/output-formatting.md— Consistent formattingcommon-skills/quality-checklist.md— Pre-delivery quality gate
- Heavy uncertainty in requirements: Mark assumptions and split discovery spikes from build tasks
- Hard constraints from legacy systems: Optimize for compatibility and migration safety over ideal design
- Extremely tight timeline: Produce phased scope with explicit deferrals and risk acceptance