task-analyzer

A task-analysis guide that chooses the smallest set of skills needed for a coding or diagnosis task.

In plain words
What is it for?
Use it to classify a task, match it to skills such as testing or frontend rules, and identify the required verification.
Why use it?
It reduces unnecessary workflow steps while ensuring relevant safeguards and checks are included.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/shinpr/claude-code-workflows/task-analyzer
Any agent
npx skills add shinpr/claude-code-workflows --skill task-analyzer
Clone the repo
git clone --depth 1 https://github.com/shinpr/claude-code-workflows

Made for: Claude Code, Codex.

Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 666 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00026 $0.00666
Opus 5 $0.00013 $0.00333
Sonnet 5 $0.00005 $0.00133
Haiku 4.5 $0.00003 $0.00067

Measured 2d ago against content hash e791d3c72742, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

task-analyzer 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 2d 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.

dev-workflows-frontend/skills/task-analyzer/SKILL.md · 74 lines

How it starts

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

Task Analyzer

Use skills-index.yaml as the available skill catalog. Documentation routing and workflow Structural Scale belong to documentation-criteria, not this skill.

Process

1. Identify Task Essence

State the observable purpose beyond the surface operation. Preserve an explicitly invoked recipe or governing artifact as the entry point.

2. Match Skills to Task Evidence

Extract task-evidence tags and match them to the catalog. Add a skill only when its rules change the requested action, verification, or handling of a concrete risk.

Task evidence Consider
Observed defect or failure ai-development-guide, testing-principles
Code implementation or refactoring coding-principles, testing-principles
Requested design artifact documentation-criteria
Multiple credible implementation strategies requiring cost comparison implementation-approach
Observable cross-boundary behavior that cannot be proven more cheaply integration-e2e-testing
React or TypeScript frontend code typescript-rules and applicable frontend testing rules

Select in this order:

  1. governing: defines the requested output or selected workflow.
  2. risk-control: changes proof or handling of an activated failure mode.
  3. supplementary: resolves a concrete remaining risk.

3. Generate Execution Guidance

Generate only warnings and questions that can change skill selection, verification, escalation, or the first action. Prefer the smallest evidence-gathering action that can establish the target or cause.

Task analysis does not own Structural Scale, file-count estimation, documentation requirements, approval gates, implementation phases, or subagent topology.

Output

taskAnalysis:
  essence: <fundamental purpose>
  extractedTags: [<task evidence tag>]
selectedRules:
  - skill: <skill name from skills-index.yaml>
    priority: <governing|risk-control|supplementary>
    reason: <how it changes execution or verification>
    sections: [<relevant section name>]
metaCognitiveGuidance:
  taskEssence: <fundamental purpose>
  pastFailures: [<applicable known failure pattern>]
  potentialPitfalls: [<task-specific risk>]
  firstStep:
    action: <smallest evidence-gathering or execution action>
    rationale: <why it comes first>
metaCognitiveQuestions: [<question that can change the approach>]
warningPatterns:
  - pattern: <applicable warning>
    mitigation: <proportionate response>

Read the full file on GitHub · 74 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 74 lines · 26 tokens per session scan A e791d3c72742

Subscribe to this mod's changes

task-analyzer is a skill published in the GitHub repository shinpr/claude-code-workflows (675 stars, last pushed 4d ago), licensed MIT. It adds 26 tokens to every session and 666 once invoked, about $0.0001 per session on Opus 5. 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-08-30.

Related

Other skills, from other repositories