Analyze Task
Use this skill before coding for non-trivial repository work:
- new features
- cross-layer changes
- architecture or model changes
- complex bugs
- tasks that likely need multiple commits / reviews / loops
Do not use it for tiny local edits that can be implemented and verified immediately.
Purpose
Produce a short Analysis Brief that makes the task discussable and executable.
This skill is for:
- clarifying the goal
- defining non-goals
- identifying what must be decided before coding
- deciding whether a subagent is justified
- preparing the task for a scope-alignment discussion
- setting up the handoff to
write-task-todo only after alignment
This skill is not for writing code and not for writing docs/todolist.md.
Core rules
Prioritize structure before UI
- think about canonical docs/contracts, data model, types, interfaces, repo/service/runtime boundaries before UI details
Prefer explicit boundaries
- say what is in scope and what is not
- surface ambiguity instead of silently choosing
Use subagents selectively
- default is local analysis
- use an
xhigh explorer subagent only when the task is cross-layer, ambiguous, high-risk, or likely to benefit from an independent architectural read
- if you use a subagent, give it a narrow question; do not outsource the entire solution
Do not create a canonical doc yet unless the concept is already clearly stable and long-lived
- early definitions belong in analysis/todo first
Every analysis should end with an alignment state:
- ready for alignment discussion
- ready for
write-task-todo after confirmation
- or blocked on a single clarification
Required output
Produce a brief with these sections:
## Analysis Brief
### Goal
### Product Boundary
### Scope
### Non-goals
### Canonical-Doc Impact
### Data / Type / Interface First
### Layer Impact
### Risks / Ambiguities
### Need Subagent?
### Test Strategy
### Alignment Questions
### Ready for Todo?
Section guidance
Goal
Product Boundary
- say whether the center of gravity is product, platform, or both
Scope
- list what this task must accomplish
Non-goals
- list what this task must not expand into
Canonical-Doc Impact
- identify whether an existing canonical doc already governs this area
- in Formax, prefer checking
docs/contracts/*, docs/frontend/*, docs/environment-variables.md, CODEMAP.md, and package-local README deep dives
- if yes, say which doc(s) govern the area
- if not, say whether this task is likely to need a new canonical doc later
Data / Type / Interface First
- identify the definitions that should be settled before implementation
- examples:
- payload shape
- DTOs
- repo interfaces
- service boundaries
- route contracts
- surface/view state
Layer Impact
- name affected layers as applicable:
core
contracts
db
app
routes
schema
repo
service
runtime
ui
Risks / Ambiguities
- call out the likely failure modes or places where the task could go structurally wrong
- in Formax, explicitly consider parity drift, transcript/reset semantics, prompt/tool exposure drift, and thread/runtime state ownership when relevant
Need Subagent?
- answer
yes or no
- if
yes, explain exactly what question the subagent should investigate
Test Strategy
- identify what should be framed by tests first
- prefer focused tests over blanket integration-first thinking
- match Formax's repo guidance: targeted tests first, no coverage runs, protect user-visible behavior and runtime semantics
Alignment Questions
- list the decisions or tradeoffs that should be explicitly confirmed before writing
docs/todolist.md
- if there are no meaningful open questions, say so directly
Ready for Todo?
- answer whether the task should proceed into
write-task-todo
- default to
no if important scope, boundary, or semantics questions are still open
Handoff rule
Do not treat this skill as an automatic handoff to write-task-todo.
The normal sequence is:
- produce the
Analysis Brief
- discuss and align the analysis with the user
- only then hand off to
write-task-todo
If the task is non-trivial and the analysis is already aligned, hand off to write-task-todo.
If the task is trivial, explicitly say that a structured todo is not needed.
1---2name: analyze-task3description: Use when a Formax repository task is non-trivial and you should analyze goals, non-goals, boundaries, data/type/interface impact, contract impact, test strategy, and whether an xhigh subagent is actually needed before writing a todo or code.4---56# Analyze Task78Use this skill before coding for non-trivial repository work:910- new features11- cross-layer changes12- architecture or model changes13- complex bugs14- tasks that likely need multiple commits / reviews / loops1516Do **not** use it for tiny local edits that can be implemented and verified immediately.1718## Purpose1920Produce a short **Analysis Brief** that makes the task discussable and executable.2122This skill is for:2324- clarifying the goal25- defining non-goals26- identifying what must be decided before coding27- deciding whether a subagent is justified28- preparing the task for a scope-alignment discussion29- setting up the handoff to `write-task-todo` only after alignment3031This skill is **not** for writing code and **not** for writing `docs/todolist.md`.3233## Core rules34351. Prioritize **structure before UI**36 - think about canonical docs/contracts, data model, types, interfaces, repo/service/runtime boundaries before UI details37382. Prefer **explicit boundaries**39 - say what is in scope and what is not40 - surface ambiguity instead of silently choosing41423. Use subagents **selectively**43 - default is local analysis44 - use an `xhigh` explorer subagent only when the task is cross-layer, ambiguous, high-risk, or likely to benefit from an independent architectural read45 - if you use a subagent, give it a narrow question; do not outsource the entire solution46474. Do not create a canonical doc yet unless the concept is already clearly stable and long-lived48 - early definitions belong in analysis/todo first49505. Every analysis should end with an alignment state:51 - ready for alignment discussion52 - ready for `write-task-todo` after confirmation53 - or blocked on a single clarification5455## Required output5657Produce a brief with these sections:5859```md60## Analysis Brief6162### Goal6364### Product Boundary6566### Scope6768### Non-goals6970### Canonical-Doc Impact7172### Data / Type / Interface First7374### Layer Impact7576### Risks / Ambiguities7778### Need Subagent?7980### Test Strategy8182### Alignment Questions8384### Ready for Todo?85```8687## Section guidance8889### Goal90- one concise sentence9192### Product Boundary93- say whether the center of gravity is product, platform, or both9495### Scope96- list what this task must accomplish9798### Non-goals99- list what this task must not expand into100101### Canonical-Doc Impact102- identify whether an existing canonical doc already governs this area103- in Formax, prefer checking `docs/contracts/*`, `docs/frontend/*`, `docs/environment-variables.md`, `CODEMAP.md`, and package-local README deep dives104- if yes, say which doc(s) govern the area105- if not, say whether this task is likely to need a new canonical doc later106107### Data / Type / Interface First108- identify the definitions that should be settled before implementation109- examples:110 - payload shape111 - DTOs112 - repo interfaces113 - service boundaries114 - route contracts115 - surface/view state116117### Layer Impact118- name affected layers as applicable:119 - `core`120 - `contracts`121 - `db`122 - `app`123 - `routes`124 - `schema`125 - `repo`126 - `service`127 - `runtime`128 - `ui`129130### Risks / Ambiguities131- call out the likely failure modes or places where the task could go structurally wrong132- in Formax, explicitly consider parity drift, transcript/reset semantics, prompt/tool exposure drift, and thread/runtime state ownership when relevant133134### Need Subagent?135- answer `yes` or `no`136- if `yes`, explain exactly what question the subagent should investigate137138### Test Strategy139- identify what should be framed by tests first140- prefer focused tests over blanket integration-first thinking141- match Formax's repo guidance: targeted tests first, no coverage runs, protect user-visible behavior and runtime semantics142143### Alignment Questions144- list the decisions or tradeoffs that should be explicitly confirmed before writing `docs/todolist.md`145- if there are no meaningful open questions, say so directly146147### Ready for Todo?148- answer whether the task should proceed into `write-task-todo`149- default to `no` if important scope, boundary, or semantics questions are still open150151## Handoff rule152153Do not treat this skill as an automatic handoff to `write-task-todo`.154155The normal sequence is:1561571. produce the `Analysis Brief`1582. discuss and align the analysis with the user1593. only then hand off to `write-task-todo`160161If the task is non-trivial and the analysis is already aligned, hand off to `write-task-todo`.162163If the task is trivial, explicitly say that a structured todo is not needed.