analyze-project

A command that examines a project's files to document its structure, technology stack, architecture, frontend and backend patterns, and domain terms. The technology stack means the languages, frameworks, libraries, and services the project uses.

In plain words
What is it for?
Use it when starting work on an unfamiliar codebase or when you need documentation about its components, data flow, APIs, external services, testing, and technical constraints.
Why use it?
It gives later planning work a shared description of how the project is organized and works. This reduces the need to rediscover the same details for each task.

Command for Claude Code

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 commands/ayoubben18/ab-method/analyze-project
Clone the repo
git clone --depth 1 https://github.com/ayoubben18/ab-method

Made for: Claude Code.

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 350 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.00000 $0.00350
Opus 5 $0.00000 $0.00175
Sonnet 5 $0.00000 $0.00070
Haiku 4.5 $0.00000 $0.00035

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

Security

Grade A, and why

analyze-project 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.

.claude/commands/analyze-project.md · 41 lines

What it actually says

Analyze Project

Description

Complete project structure analysis to understand architecture, patterns, and technical stack for effective AB Method task planning.

Usage

/analyze-project

Behavior

Loads and executes the analyze-project workflow from .ab-method/core/analyze-project.md

This workflow deploys 4 specialized subagents in parallel to produce:

  1. UBIQUITOUS_LANGUAGE.md (root) — flat domain glossary
  2. CONTEXT.md (root) — bounded-context overview (or CONTEXT-MAP.md + per-context files for multi-context repos)
  3. docs/architecture/tech-stack.md — stack, entry points, external services, constraints, testing (merged)
  4. docs/architecture/frontend-patterns.md — components, state, routing, styling, API integration
  5. docs/architecture/backend-patterns.md — API, data, auth, services, background work

These are first drafts. To sharpen the domain language and capture decisions as ADRs, run /domain-model afterwards (interactive grilling session).

Workflow Details

  • Domain Extraction - Inferred glossary + bounded-context skeleton from code
  • Tech Stack Map - Single concise file covering stack, entry points, external services, constraints, testing
  • Frontend Patterns - Client-side architecture
  • Backend Patterns - Server-side architecture

Examples

/analyze-project
# Performs complete project analysis
# Creates comprehensive architecture documentation
# Documents tech stack, patterns, and constraints for future tasks

Alternative Usage

You can also use the traditional AB Method master controller:

/ab-master analyze-project
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 · 41 lines · 0 tokens per session scan A 4e5e86dc936a

Subscribe to this mod's changes

analyze-project is a command published in the GitHub repository ayoubben18/ab-method (187 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 350 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.