analyze-task

analyze-task is a command for Claude Code from catlog22/Claude-Code-Workflow. It costs 0 tokens per session (2,307 once invoked), scanned A, original, MIT.

A command that reads a task description, identifies the abilities needed, and designs roles for carrying out the task. It writes the analysis to a structured session file without inspecting the codebase.

In plain words
What is it for?
Use it to analyze new requirements and prepare role instructions and dependencies for a team workflow.
Why use it?
It gives a complex request a clear set of responsibilities before work begins. It also flags when codebase research will be needed later.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: names the AskUserQuestion tool.

Good fit Use it to analyze new requirements and prepare role instructions and dependencies for a team workflow.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/catlog22/claude-code-workflow/analyze-task
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/catlog22/Claude-Code-Workflow

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analyze-task

README.md
[![agentmods](https://agentmods.dev/badge/commands/catlog22/claude-code-workflow/analyze-task/github.svg)](https://agentmods.dev/commands/catlog22/claude-code-workflow/analyze-task)
Your own site
<a href="https://agentmods.dev/commands/catlog22/claude-code-workflow/analyze-task"><img src="https://agentmods.dev/badge/commands/catlog22/claude-code-workflow/analyze-task/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for analyze-task

Your own site · 80×15
<a href="https://agentmods.dev/commands/catlog22/claude-code-workflow/analyze-task"><img src="https://agentmods.dev/badge/commands/catlog22/claude-code-workflow/analyze-task.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,307 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02307
Opus 5.5 $0.00000 $0.00923
Sonnet 5.5 $0.00000 $0.00461
Haiku 4.5 $0.00000 $0.00231

Measured 1mo ago against content hash c02c93332474, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

analyze-task scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/team-coordinate/roles/coordinator/commands/analyze-task.md · 248 lines

How it starts

The opening of the file, as written. The whole thing — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Command: analyze-task

Purpose

Parse user task description -> detect required capabilities -> build dependency graph -> design dynamic roles with role-spec metadata. Outputs structured task-analysis.json with frontmatter fields for role-spec generation.

CRITICAL CONSTRAINT

TEXT-LEVEL analysis only. MUST NOT read source code or explore codebase.

Allowed:

  • Parse user task description text
  • AskUserQuestion for clarification
  • Keyword-to-capability mapping
  • Write task-analysis.json

If task context requires codebase knowledge, set needs_research: true. Phase 2 will spawn researcher worker.

When to Use

Trigger Condition
New task Coordinator Phase 1 receives task description
Re-analysis User provides revised requirements
Adapt handleAdapt extends analysis for new capability

Strategy

  • Delegation: Inline execution (coordinator processes directly)
  • Mode: Text-level analysis only (no codebase reading)
  • Output: <session>/task-analysis.json

Phase 2: Context Loading

Input Source Required
Task description User input from Phase 1 Yes
Clarification answers AskUserQuestion results (if any) No
Session folder From coordinator Phase 2 Yes

Phase 3: Task Analysis

Step 1: Signal Detection

Scan task description for capability keywords:

Signal Keywords Capability Prefix Responsibility Type
Research investigate, explore, compare, survey, find, research, discover, benchmark, study researcher RESEARCH orchestration
Writing write, draft, document, article, report, blog, describe, explain, summarize, content writer DRAFT code-gen (docs)
Coding implement, build, code, fix, refactor, develop, create app, program, migrate, port developer IMPL code-gen (code)
Design design, architect, plan, structure, blueprint, model, schema, wireframe, layout designer DESIGN orchestration
Analysis analyze, review, audit, assess, evaluate, inspect, examine, diagnose, profile analyst ANALYSIS read-only
Testing test, verify, validate, QA, quality, check, assert, coverage, regression tester TEST validation
Planning plan, breakdown, organize, schedule, decompose, roadmap, strategy, prioritize planner PLAN orchestration

Read the full file on GitHub · 248 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 248 lines · 0 tokens per session scan A c02c93332474

Subscribe to this mod's changes

analyze-task is a command published in the GitHub repository catlog22/Claude-Code-Workflow (2,125 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,307 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.