claude-task-manager: Command for Claude Code

.claude/commands/analyze-first.md

analyze-first is a command for Claude Code from vibehat/claude-task-manager. It costs 0 tokens per session (216 once invoked), scanned A, original, MIT.

A command for examining the relevant parts of a codebase before deciding how to implement a change.

In plain words
What is it for?
Use it before planning a feature to map related files, understand the architecture, find reusable code, and decide whether to extend existing code or create something new.
Why use it?
It reduces guesses by documenting existing files, patterns, similar functionality, extension points, and integration dependencies first.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is vibehat/claude-task-manager's own configuration. It tells Claude Code how to work on claude-task-manager itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-task-manager configures →

Reuse

Borrowing it

Nothing to install: this file belongs to vibehat/claude-task-manager. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vibehat/claude-task-manager/master/.claude/commands/analyze-first.md
Clone the repo
git clone --depth 1 https://github.com/vibehat/claude-task-manager

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-first

README.md
[![agentmods](https://agentmods.dev/badge/commands/vibehat/claude-task-manager/analyze-first/github.svg)](https://agentmods.dev/commands/vibehat/claude-task-manager/analyze-first)
Your own site
<a href="https://agentmods.dev/commands/vibehat/claude-task-manager/analyze-first"><img src="https://agentmods.dev/badge/commands/vibehat/claude-task-manager/analyze-first/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-first

Your own site · 80×15
<a href="https://agentmods.dev/commands/vibehat/claude-task-manager/analyze-first"><img src="https://agentmods.dev/badge/commands/vibehat/claude-task-manager/analyze-first.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 216 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.00216
Opus 5.5 $0.00000 $0.00086
Sonnet 5.5 $0.00000 $0.00043
Haiku 4.5 $0.00000 $0.00022

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

Security

Grade A, and why

analyze-first 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/commands/analyze-first.md · 35 lines

What it actually says

Analyze First - Codebase Analysis Before Planning

Use this command when you need to analyze the codebase before making any implementation decisions.

Usage: /analyze-first [feature or area to analyze]

Process

COMPLIANCE CONFIRMED: I will prioritize understanding existing architecture before suggesting changes.

ANALYSIS REQUIREMENTS:

  1. Map existing file structure relevant to: $ARGUMENTS
  2. Identify all related components, services, and utilities
  3. Document current patterns and conventions
  4. Note any duplicate or similar functionality
  5. Highlight extension points and architectural decisions

DELIVERABLES:

  • Complete file inventory with paths and purposes
  • Architecture diagram (text-based)
  • Reusability assessment for existing components
  • Integration points and dependencies
  • Recommendations for extension vs creation

VALIDATION CHECKPOINTS:

  • ✓ All relevant files identified and read
  • ✓ No assumptions about non-existent code
  • ✓ Current patterns documented
  • ✓ Reuse opportunities highlighted

This analysis will inform all subsequent planning and implementation decisions.

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 · 35 lines · 0 tokens per session scan A 7d560b23d171

Subscribe to this mod's changes

analyze-first is a command published in the GitHub repository vibehat/claude-task-manager (21 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 216 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-08-30.