tasks
Track work as Atelier tasks with the atelier task CLI, test-first.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- tasks
- description
- Track work as Atelier tasks with the atelier task CLI, test-first.
03 SKILL.md 正文
Tasks
The owner tracks work as tasks. A task belongs to the chat that holds it. Work in the folder this chat was opened in; never create worktrees or branches for a task.
Tasks are test-first. Every plan item carries the checks that prove it, written before the work. The owner approves them with the plan, the server runs them red at start, and ticks each item only when its checks pass.
When a task is needed
- Questions, explanations and a small edit to one file never need a task. Just answer or do it.
- Any other change to files needs a task: anything that edits two or more
files, or one file in more than one place for different reasons. If the
owner asks for such work and no task in this chat covers it, write only
the check files, draft the task with its checks, run
atelier task proposewith it, and stop. Continue when the owner's choice arrives as a message: Create task (the task is made and its checks approved; start it), Just do it (do the work without a task), Cancel (don't do it, and remove the check files you wrote) or Request changes with a note (revise the plan and its checks as the note says, and propose again). A new proposal replaces the chat's proposal still waiting. @task TEXTfrom the owner means: pick the type, draft the plan with its checks, and runatelier task create. Do not ask again.createis refused unless the owner's latest message has@task, or every cell it names is in an approved grid; otherwise propose.@mergefrom the owner comes with what git says about this folder and the steps to merge its branch into the base branch. Follow them exactly.- Never create a task on your own to put work off. Suggest it as a follow-up on a result instead.
Commands
Payloads are JSON on stdin. Run atelier task types TYPE for the type's
plan and result shape and its check recipe, and copy them.
atelier task list [--all]
atelier task show N
atelier task types [TYPE]
atelier task create <<< '{"type":…,"title":…,"why":…,"decisions":{…},"plan":{…}}'
atelier task propose <<< '{"type":…,"title":…,"why":…,"decisions":{…},"plan":{…}}'
atelier task start N
atelier task check N ITEM
atelier task block N --cause TEXT --needs TEXT
atelier task unblock N
atelier task amend N <<< '{"plan":{…},"reason":…}'
atelier task done N <<< '{"summary":…,"commits":[…],"followups":[…],"result":{…}}'
atelier task cancel N --reason TEXT
atelier task take N
atelier task note N --text TEXT
Leave a note with atelier task note N --text TEXT when you learn
something whoever works on task N should know. It works on any task in the
project, in any state, held by any chat. task show prints the notes; read
them before working a task.
Run each atelier task command as its own command and leave its output
alone. It prints the task card the owner sees in the chat. Never send it to
/dev/null, pipe it away, or bundle it into one command with the work.
Types: bug, feature, ui_change, ui_feature, ui_bug,
render_change, render_feature, render_bug, optimization, plan, investigation,
refactor, tests, review, qa, docs, chore, general, plus any
the install or project adds. atelier task types lists the ones on for
this project, with their default items. Use general only when no other
type fits.
Every create and propose gives decisions: one line for every type
that is on, {"bug": "…", "feature": "…", …}. For the chosen type, say why
it fits; for each other type, say why the work is not that kind. A type
left out or a blank reason is refused.
A type may have default items: things every task of that type must do.
Answer each one in plan.requirements with its id and text, and either
checks that prove it or declined with a one-line reason it does not
apply: "requirements": [{"id": "phone", "text": "…", "checks": [ … ]}].
create is refused while one is missing. A task keeps the items it was
created with; later type changes never touch it.
Types are guidance, like skills. Change them with the CLI, not by editing
files. Each takes --scope install|project (project by default); the owner
sees every change and can undo it:
atelier task types create <<< '{"name":…,"description":…,"code":true,"review":false,"items":[{"id":…,"text":…,"checks":[…]}],"skills":[…]}'
atelier task types edit TYPE <<< '{"items":[…]}'
atelier task types edit TYPE <<< '{"skills":["ui-copy"]}'
atelier task types disable TYPE [--item ID]
atelier task types enable TYPE [--item ID]
atelier task types undo
A type may name "skills": library skills to read before working its
tasks. The reply to create and start names them; read each before the
work. A type you create is planned like general. Built-in types keep their
shape; only their default items change. Add a type or an item only when the
owner asks or the project clearly repeats the same work.
Anything you can see on screen or in a render takes a visual type:
ui_feature for new work you can see on screen, render_feature for new
work you can see in a 3D render (not feature), ui_change to change a
screen that is there, render_change to change what a scene renders,
ui_bug for a bug you see in the app's interface (a broken layout, cut-off
text, a control that doesn't respond) and render_bug for a bug in what a
3D scene renders (wrong lighting or shadows, flicker, aliasing, missing
geometry). Neither is bug, which is for wrong behaviour with nothing to
see. Their checks test behaviour;
the owner judges the look at review from the before, after (and
reference) images the type's result asks for.
Safety net: done on a feature or bug is refused when its commits
change visual files (.tsx, .jsx, .css, .scss, .html, .vue,
.svelte and shaders by default, or the project's own list; tests do not
count), unless the result has screens: [{name, before?, after}]
screenshots. Pick the visual type up front instead.
Writing checks
Each plan item gets "checks": [ … ], one or more; all must pass for the
item to be met. A type without an item list puts them in the plan's own
checks.
{"name": "repro", "kind": "test", "command": "cargo test -p app export_keeps_order",
"given": "a project with 3 chats", "when": "it is exported", "then": "the chats keep their order",
"red": "export_keeps_order.*FAILED", "files": ["server/tests/export.rs"], "timeout_s": 600}
kind is test, structure (a grep or file check), benchmark (with
bench: {value, runs, warmup, budget}) or characterisation (behaviour
that must stay the same, so it passes at start). red is a pattern the
failing output must match at start. files are the files the check relies
on; the server records them when the owner approves.
- One observable behaviour per check, and as many checks as the item needs.
- Assert outcomes: return values, DOM, files, HTTP responses, exit codes. Never assert that a mock was called. Mock only external boundaries.
- Each check fails for one stated reason, the one in
red. Make the command print that reason. - Keep each under about two minutes.
- Nothing is locked. Checks run as the files are now. You may update
tests your change makes out of date; when you edit a check's files,
task checkanddonewarn you to make sure the check was not weakened. A check that runs fewer tests than at start fails. - Write the check files before you propose or create: their contents are what the owner approves.
Working a task
- Propose (or create on
@task) with every item's checks.proposeandcreaterefuse an item without one. The owner approves the plan and all its checks in one step. atelier task start Nruns every check on the starting commit. Each must fail with output matching itsred; a characterisation check must pass. If start is refused, the check is wrong: fix it withamend.- Read the approved checks before writing code. They are the spec.
- Make the smallest change that turns a check green, and implement the behaviour generally. Unit-level red-green inside an item is recommended, not required. Refactor in separate commits.
- When an item's checks pass, run
atelier task check N ITEM. The server runs them and ticks the item only if all pass ("2 of 3 checks pass" otherwise). Run it as each item turns green, not all at the end. - Finish with
atelier task done N. Its result needs the summary, the commit SHAs for types that change code (they must exist) and the type's other fields; the items' results are the checks' runs. The server re-runs every check and the project's test command, refuses while any fails, and flags added skips and deleted tests to the owner.
Never
- Never weaken, delete, skip or rename an approved check, the project's test harness config or a baseline to get green. You may edit a check's file for other reasons (a Rust test shares its file with the code); the server then warns you, and the check must still test the real behaviour.
- Never branch on test inputs, special-case the values a check uses,
override equality or comparison, or add
exitcalls to tests. - Never tick an item yourself or claim a check passed that you did not see pass.
- When a check is wrong or impossible to meet, run
atelier task amend Nwith the corrected checks and areasonthat says what you ran and what it printed. It applies at once; the owner can undo it. When the reply says the change may weaken what the owner approved (an item or check removed, an approved check changed), make sure it doesn't: the approved checks are the proof the work is done. If it does, amend it back.
Rules
- Start a task before working on it. A chat holds one task in progress at a time.
- Block only for a cause you cannot remove yourself, and say what is needed to resume.
- To change the plan or its checks, run
amend. It applies at once, and the owner sees it. Never change scope silently. doneis refused while an item's checks fail. If an item cannot be met, amend it or block; don't finish around it.- Never leave a task in progress when the work stops. Finish, block or cancel it.
- The checklist shows this chat's tasks. Do not keep a separate checklist.
- A task whose plan has no checks (made before checks existed) keeps the
old rules:
task check N ITEMtakes that item's result entry on stdin, in the shapeatelier task types TYPEshows undercheck.
The owner's answers
The owner's answers to a task arrive as messages:
- Owner approved task #N. The task is done. The message says where its commits stand. If they are not yet on the base branch, ask the owner whether to merge them. Never merge without the owner's yes. If merge state is unknown, check whether the commits are on the base branch before asking. If nothing is left to merge, there is nothing more to do.
- Owner reopened task #N, with a note: do what the note asks, then run
doneagain. Start the task first if the message says so. - Owner undid the plan change: continue with the plan as it was before the change.
- The owner created task #N from a grid: start it and work through its cells.
Grids
A coverage grid lists an area's features (rows) against what each must do
(columns). Each cell is proved, a gap, or N/A, and a proof goes stale when
the covered code changes. @matrix AREA and @audit SLUG from the owner
come with their own steps; @grid:… comes with the cells it names. You may
draft a grid without @matrix; the owner approves or discards it.
Every column carries check templates when drafted ("checks": [ … ], with
{row} replaced by the row id); a cell may add its own, or replace the
column's with "override": true. Approving the grid approves them. A cell
with no check shows "Needs a check" and cannot be claimed.
atelier grid list [--rows]
atelier grid show SLUG [ROW COL]
atelier grid next SLUG [--row ROW | --col COL] [--batch N]
atelier grid order SLUG <<< '{"columns":[{"id":…,"after":[…]}],"rows":[…]}'
atelier grid prove SLUG ROW COL <<< '{"summary":…,"commits":[…]}'
atelier grid verify SLUG [ROW COL]
atelier grid na SLUG ROW COL --reason TEXT
atelier grid note SLUG [--row ROW] [--col COL] --text TEXT
atelier grid checks SLUG <<< '{"columns":[{"id":…,"checks":[…]}]}'
A grid approved before checks shows every cell as "Needs a check". Add
column check templates with atelier grid checks SLUG; the owner approves
just those, and the grid's rows, cells and history stay. A check may list
extra paths in watch, so its cell's proof goes stale when they change.
grid next hands out one cell at a time, the first ready one in the
grid's order (rows as drawn, columns by position). A cell waits until the
cells its row or column comes after are proved or N/A; set that with
atelier grid order SLUG. Use --batch N only for cells cheap to do
together.
To work through an approved grid: run atelier grid next SLUG, create the
task it prints (no @task needed), start it (each cell's checks must go
red), prove each cell, tick it with atelier task check N ROW.COL, finish
with done, and repeat until no gaps are left.
grid proveruns the cell's approved checks. Commit the covered code first.- To work on cells, list them as
cellsin the task's create or propose payload. A task withcellsmust end with proof, N/A or a reason for every cell (donetakes"cells":[{"grid","row","col","reason"}]). - Leave cells another task claims alone.
- Never pass cells outside an
@auditrequest. Reopen a proved or N/A cell that no longer meets its requirement (say the bar for proof was raised) withatelier grid reopen SLUG ROW COL --reason TEXT. When the owner approves new checks for a column, its proved cells reopen by themselves. - Leave a note with
atelier grid notewhen you learn something whoever works on a cell, row, column or the whole grid later should know.grid nextprints the notes under each cell; read them first.
04 同仓库更多 Skills
sort-notes
Puts notes in date order. A fixture skill.
file-search
Find the files in a checkout a person describes in their own words, using the search_files and read_file tools, and answer with each file's path, the line, and why it matches.
chat-search
Find the chats a person describes in their own words, using the search_chats and read_chat tools, and answer with each chat's id and why it matches.
atelier
Use Atelier's native presentation tools for validated widgets, library-powered diagrams, custom animated vector scenes, interactive mockups, durable media, and visual proof when they clarify the result.
atelier-reference
Detail behind Atelier's short instructions. Read before writing widget, explainer or artifact JSON, saving a memory, editing agent guidance, or managing Chrome without the chrome server. Screen-check detail is in references/screen-check.md.