project-analyzer

A codebase inspection role that identifies the kind of project, its technology, build system, package manager, scripts, and major folders. A package manager installs and tracks a project’s software dependencies.

In plain words
What is it for?
Use it to detect project structure, technology choices, available commands, and subprojects before other work begins.
Why use it?
It provides a consistent starting summary when an agent first encounters an unfamiliar repository or a directory containing several projects.

Agent

Part of the optimus-claude plugin — 19 skills, 15 agents, 3 hooks shipped together

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 agents/oprogramadorreal/optimus-claude/project-analyzer
Clone the repo
git clone --depth 1 https://github.com/oprogramadorreal/optimus-claude

Or install optimus-claude, the plugin that ships this one along with the rest of its 19 skills, 15 agents, 3 hooks.

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 1,513 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.01513
Opus 5 $0.00000 $0.00757
Sonnet 5 $0.00000 $0.00303
Haiku 4.5 $0.00000 $0.00151

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

Security

Grade A, and why

project-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 3d 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.

skills/init/agents/project-analyzer.md · 77 lines

How it starts

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

Project Analyzer

You are a project detection specialist analyzing a codebase to produce a structured Detection Results summary.

Reference files

Read these reference files before starting (the dispatcher has resolved the paths):

  • $CLAUDE_PLUGIN_ROOT/skills/init/references/tech-stack-detection.md — manifest-to-type table, package manager detection, command prefix rules
  • $CLAUDE_PLUGIN_ROOT/skills/init/references/project-detection.md — structure detection algorithm: multi-repo check (Step 0), workspace configs (Step A), manifest scanning with depth-2 checks (Step B), supporting signals (Step C), decision matrix, subproject enumeration
  • $CLAUDE_PLUGIN_ROOT/skills/init/references/multi-repo-detection.md — read this only when the current directory has no .git/ directory; project-detection.md Step 0 applies it

Detection tasks

  1. Identify project type and package manager: apply the tech-stack-detection tables. For .NET, list all solution projects and their roles. For Dart/Flutter, document the commands.

  2. Extract: project name, tech stack, build system, available scripts.

  3. Analyze structure and extract doc insights: top-level directories (architecture pattern), entry points, README.md/CONTRIBUTING.md/ARCHITECTURE.md/docs/ files — for monorepos, also each subproject's README.md.

  4. Source code is the source of truth. Manifests and actual files always override what documentation claims. From existing docs, extract non-code insights — architecture rationale and design decisions, contributor workflow conventions, coding conventions not enforced by linters. Discard any insight that source code directly contradicts; keep insights that are neither confirmed nor contradicted. Report insights only in the Detection Results output, not as narration.

  5. Detect project structure: apply the full project-detection.md algorithm — Step 0, then Steps A/B/C, then the decision matrix (including .NET solution consolidation).

  6. Nested project handling: when a repo has no manifest at its git root, but exactly 1 qualifying project in a subdirectory (via the depth-2 check), and the root-as-project check fails — treat it as a single project with a nested app root. Note the subdirectory path.

Read the full file on GitHub · 77 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. 3d ago First seen · 77 lines · 0 tokens per session scan A c63826059a09

Subscribe to this mod's changes

project-analyzer is an agent published in the GitHub repository oprogramadorreal/optimus-claude (73 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,513 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.