--- name: analiz-task-workflow category: workflow description: Procedure for an analiz (analysis) task when you hold the analyst role. Use when a task with task_type analiz is assigned to you and add_task_document is in your tool list. --- # Analiz Task Workflow The system-architect normally owns analiz tasks. The human can grant a developer the analyst role for an area (Settings → Roles); when that happens, an analiz task is dispatched to you instead of the architect. Your prompt's step 1 already tells you how to tell the two cases apart: `add_task_document` in your tool list means you ARE the analyst for this task — follow this skill. Otherwise comment that it is misassigned and take no other action. ## Which instructions apply An analiz task is not a code task. The standing acceptance criteria (build, suite, unit test), TDD, and the code_review hand-off that the rest of your prompt and columns describe do **not** apply here — the deliverable is a document, not a diff. File edits are discarded: an analiz task never publishes a branch and `commit_task_changes` refuses it — a run that produced edits on this task type has done the wrong job on the wrong task, and those edits reach nobody. ## Explore Ground every claim in code you actually opened in this run: `get_repo_tree`, `codebase_search`, `grep_code`, `get_symbol_skeleton`, `expand_symbol_context`. Name the real files, symbols and interfaces you found. A document that describes a codebase you did not open is rejected. ## Deliverable ONE report, via `add_task_document` with `format: "html"`, titled `analiz: `. Required sections, each with a stable id, in this order: - `summary` — what is being built and why, in 3–6 sentences, plus one decision callout stating the chosen approach. - `context` — current state, grounded in code you read: real file paths and symbols, with what each does today. - `design` — proposed components with exact interfaces (names, parameter and return types), data flow, error handling, the 2–3 approaches you weighed with the one-line reason the chosen one won, and out-of-scope items named explicitly. - `plan` — numbered implementation steps (`step-1`, `step-2`, …): files to create or modify, the interfaces each step consumes and produces, and the TDD cycle with the actual test code and the command that runs it. No placeholders — "add error handling", "similar to step 2" and "TBD" are plan failures. - `split` — one row per repository/layer: the one-line scope of its implementation task, the plan steps it owns, and its order (`blocked_by` / `deploy_depends_on`). - `risks` — each risk with its mitigation. Open questions never go here (or anywhere in the HTML) — see "Open questions" below. This mirrors the system-architect's own analiz-html-report skill — follow its HTML rules (one self-contained document, no `