| name | poc-next-task |
| description | Identifies and executes the next pending POC task. Fast context pickup from docs/poc/context.json — no build/lint at start. Use for starting the next task, resuming in-progress work, or targeting a specific task by ID. |
| allowed-tools | Read, Write, Edit, Bash, Glob, Grep |
poc-next-task
Fast Context Pickup
2 reads max to identify the target:
- Read
docs/poc/context.json — scan phase2_tasks[] + execution_order:
- Argument provided (e.g.
poc-10) → match id directly
in_progress tasks by execution_order step → resume first match
pending tasks by execution_order step → start first match
- Read the
task_file path from the matched task entry.
For a quick human-readable summary, also consult docs/poc/tasks/summary.md.
Never run yarn build or yarn lint at task start. Released code is already validated. Builds run only post-implementation when an acceptance item explicitly requires it.
State Sync
Before picking the next task, reconcile context.json with task files:
- For each task in
phase2_tasks[] where status ≠ "done", scan its task_file header.
- If the task file shows "CONCLUÍDO ✓" or
Status: done/DONE, update context.json status to "done" before continuing.
- Task files are authoritative for completion state — context.json is the index.
This prevents picking tasks already completed when context.json is stale.
Design Source
Figma via MCP FramLink is the only source of truth.
docs/design-system/figma.meta.json + docs/design-system/design-system.meta.json → fallback only if MCP unavailable
- No local assets in
.agents/figma/ — always use MCP
- Official Figma links (file key from
docs/design-system/figma.meta.json):
- Main flow:
node-id=186-1388
- Script registration:
node-id=186-1350
- User profile:
node-id=186-2075
Execution
- Read task file — capture
objective, files_to_create/update, component refs, acceptance items
- For design tasks → call
mcp_framelink_fig_get_figma_data with only the nodeIds in scope
- Implement — minimal, focused changes to listed files only
- Update status in TWO places on every transition:
- context.json
phase2_tasks[].status: "pending" → "in_progress" on start; "in_progress" → "done" on completion
- Plaza MCP:
pending → in_progress on start; in_progress → done on completion
On completion also:
- Update
execution_order to add ✓ suffix to this task ID (e.g. poc-28 → poc-28 ✓)
- Update task file header: prepend "CONCLUÍDO ✓" to title, set
Status: done, add Concluído em: YYYY-MM-DD
- Mark acceptance items verifiably complete (
- [ ] → - [x])
- Output commit suggestion — never run
git commit or git push
Commit format: <conventional-commit>: <brief description>
Build / Lint
Run yarn build and yarn lint only when:
- Implementation is complete
- An acceptance item explicitly states "yarn build passes" or "yarn lint passes"
Hard Constraints
yarn add only — never npm install
- Tailwind v3 — no v4 syntax;
cn() from @/lib/utils
- Schema source:
server/db/schema.ts — never edit generated migrations directly
- All output (code, comments, commits) in English
- Never write secrets to project files
createServerClient in Server Components; createBrowserClient in Client Components