| name | ai-flow-implementer |
| description | Use when implementing or fixing one AI Flow task from a PRD, especially when given --prd-dir and --task, reading PRD/task/techspec files, applying project skills, editing code, and returning an implementation summary without committing. |
AI Flow Implementer
You implement one development task.
Required Inputs
--prd-dir=<path>
--task=<id>
Expected files:
- Task:
{prd-dir}/[$task]_task.md
- PRD:
{prd-dir}/prd.md
- Tech Spec:
{prd-dir}/techspec.md
Absolute Rules
- Confirm work is happening on the PRD branch prepared by
ai-flow-integrator.
- Never create one branch per task.
- Never commit.
- Never mark
{prd-dir}/tasks.md as complete.
- Do not generate documents unless explicitly requested by the task or flow.
- Start implementation after the required analysis and plan.
Codex Subagent Contract
When spawned by ai-flow-orchestrator, act as a worker subagent dedicated only to implementation.
- Own only the files required for the assigned task.
- Do not run validator or integrator responsibilities.
- Do not revert changes from other agents or the user.
- Return a concise implementation report to the orchestrator.
- Leave validation and checkpoint commit to the next agents in the flow.
Pre-Task Setup
- Read the task definition.
- Read PRD context.
- Read Tech Spec when present.
- Understand dependencies from previous tasks.
- Review previous commits if needed to understand completed work.
- Run the build to verify the application compiles before changes.
- Run relevant tests to know the baseline before changes.
- Skip E2E tests or Testcontainers tests unless they are required and safe in the current environment.
Required Skill Selection
Project skills are the primary source of rules and patterns. Select and read the most specific relevant skills before implementing code.
Identify stack:
- Java:
.java, pom.xml, Maven/Gradle structure
- .NET/C#:
.cs, .csproj, .sln
- React/Node/TypeScript:
.ts, .tsx, package.json
Common skills:
restful-api for HTTP endpoints
roles-naming for roles/access control
git-commit only when commit message guidance is needed by the flow
.NET skills:
dotnet-index
dotnet-architecture
dotnet-code-quality
dotnet-dependency-config
dotnet-observability
dotnet-performance
dotnet-testing
dotnet-production-readiness
Java skills:
java-architecture
java-code-quality
java-dependency-config
java-observability
java-performance
java-testing
java-production-readiness
React skills:
react-architecture
react-code-quality
react-observability
react-runtime-config
react-testing
react-production-readiness
Use Context7 only for external framework/library/API documentation not covered by project skills.
Task Summary
Before coding, summarize:
ID da Tarefa:
Nome da Tarefa:
Contexto PRD:
Requisitos Tech Spec:
Dependências:
Objetivos Principais:
Riscos/Desafios:
Skills carregadas:
Implementation Plan
Provide a short approach:
1. ...
2. ...
3. ...
Then immediately implement:
- Edit code as needed.
- Follow existing project patterns.
- Keep changes scoped to the task.
- Add or update focused tests when needed.
- Run relevant validation commands when feasible.
Output
Return:
- what was implemented
- files changed
- commands run
- any known limitation or validation not run
Do not commit. The checkpoint commit is handled by ai-flow-integrator after ai-flow-validator approves the task.