Use when writing acceptance criteria for a task - express each as an observable Given/When/Then that QA can execute, including negative cases
日本語の概要は準備中です。原文の説明を表示しています。
Use when you write the `context` and `design` sections of an analiz report - components, exact interfaces, data flow, errors, decision record, out of scope
インストールする前に、エージェントに与えられる指示の中身を確認できます。
The spec is not a document of its own any more: it is the context and design sections of the ONE analysis report the analiz task produces (analiz-html-report) — an HTML document attached with add_task_document, format: "html", titled analiz: <YYYY-MM-DD> <topic>. Never attach a separate spec: … document, never write it to a file and never commit it; shelling out to echo/heredoc to fake a file is how a run gets killed for repeating itself. The spec is the contract the plan section and every implementation task will be checked against.
These sections must name real files, symbols, and interfaces you found with codebase_search / grep_code / get_repo_tree / expand_symbol_context. A run that attaches an analiz document without a single successful exploration call is rejected by the system, not by a reviewer.
Where each part lives in the report: Context / Goal feeds summary and context; Architecture through Out of scope are subsections of design (each an <h3> with its own id). Scale each part to its complexity — a few sentences if straightforward, up to 200–300 words if nuanced; Decision record and Security & data are each written only when they apply (see their conditions below):
<h3 id="design-decision"> with Problem (1–2 sentences) · Decision drivers (bullets) · Options (table: option | fits drivers | cost/risk) · "Chosen: X, because …" · Consequences (Good, because … / Bad, because …). If the repo keeps its own ADRs (docs/adr, docs/decisions, adr/), add a plan step in that repository that writes NNNN-<title>.md in the repo's own format.UI design (web and mobile UI analyses): when the analysis includes UI, the design section also covers: the pages and their sections; the component inventory by atomic level (reuse existing vs. new, naming each); the design system the UI follows — get_design_system for each UI repository, cited by version; responsive behaviour per breakpoint for anything non-trivial; and the states each view needs (loading/empty/error, form states). You specify WHAT each screen holds and does; the look is the designer's. When get_design_system returns nothing for the project, or a screen is new with no approved design and no existing screen to follow, the split puts the design first and the UI tasks wait for it with blocked_by — the design system through request_design_system, each new screen as a design task (task-decomposition) — never a palette or a font picked in the analysis.
<h3 id="design-task-exporter">Component: TaskExporter (application service)</h3>
<ul>
<li><strong>Does:</strong> turns a project's tasks into CSV bytes.</li>
<li><strong>Interface:</strong> <code>Export(ctx, projectID uuid.UUID) ([]byte, error)</code> — errors: <code>domain.ErrProjectNotFound</code>, <code>domain.ErrForbidden</code></li>
<li><strong>Depends on:</strong> <code>TaskRepository.ListByProject(ctx, projectID) ([]Task, error)</code></li>
<li><strong>Data flow:</strong> handler validates projectID → TaskExporter.Export → repo.ListByProject → encode CSV (header + one row per task, columns: id,title,status,created_at).</li>
<li><strong>Out of scope:</strong> PDF, scheduled export, column selection.</li>
</ul>
An implementer reading only this can build it: the exact signature, the exact dependency it consumes, the column order, and the errors it raises. That is the bar for every Components entry.
Look at the finished design sections with fresh eyes and fix issues inline:
record_open_questions instead of guessing: non-blocking with your recommended reading when a default is defensible (the usual case), blocking only when proceeding on either reading would waste the implementation (open-questions-protocol).A design that fails any check is not ready — fix it before writing the plan section (implementation-plan-authoring).
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Use when writing acceptance criteria for a task - express each as an observable Given/When/Then that QA can execute, including negative cases
日本語の概要は準備中です。原文の説明を表示しています。
Use when the diff adds or changes an endpoint, resolver, RPC, job or query that takes an object id, a role check, a request binding or a tenant filter - BOLA/IDOR, function-level authorization, mass assignment and tenant scoping
日本語の概要は準備中です。原文の説明を表示しています。
Use on every UI change - semantic HTML, labels for controls, keyboard-navigable dialogs/menus, visible focus, and never color as the only signal
日本語の概要は準備中です。原文の説明を表示しています。
Use when a task changes any screen, form, dialog, menu or control - Lighthouse/axe scan of the changed screens, a keyboard walk, and the thresholds that fail a task
日本語の概要は準備中です。原文の説明を表示しています。
How to work a task returned with review, QA or UAT findings. Use when a task is in need_revision or PR review comments are in your context.
日本語の概要は準備中です。原文の説明を表示しています。
Use when deciding whether a request needs an analiz task before implementation - the conditions that require the architect's analysis versus going straight to implementation
日本語の概要は準備中です。原文の説明を表示しています。