LegendaryTeam_For_Claude: Agent for Claude Code

.claude/agents/project-analyzer.md

project-analyzer is an agent for Claude Code from RegardV/LegendaryTeam_For_Claude. It costs 13 tokens per session (1,122 once invoked), scanned A, original, MIT.

An agent that scans a codebase for health problems and technical debt, meaning code or dependencies that make future changes harder. It looks for unused code, import problems, dependency issues, and code-quality concerns.

In plain words
What is it for?
Finding dead code, unused or circular imports, missing or outdated dependencies, security issues reported by npm, overly complex files, and duplicate code.
Why use it?
It helps reveal cleanup work that may be easy to miss during normal development or before a large refactor.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is RegardV/LegendaryTeam_For_Claude's own configuration. It tells Claude Code how to work on LegendaryTeam_For_Claude 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 LegendaryTeam_For_Claude configures →

Reuse

Borrowing it

Nothing to install: this file belongs to RegardV/LegendaryTeam_For_Claude. 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/RegardV/LegendaryTeam_For_Claude/main/.claude/agents/project-analyzer.md
Clone the repo
git clone --depth 1 https://github.com/RegardV/LegendaryTeam_For_Claude

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 project-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/regardv/legendaryteam_for_claude/project-analyzer.svg)](https://agentmods.dev/agents/regardv/legendaryteam_for_claude/project-analyzer)
Your own site
<a href="https://agentmods.dev/agents/regardv/legendaryteam_for_claude/project-analyzer"><img src="https://agentmods.dev/badge/agents/regardv/legendaryteam_for_claude/project-analyzer.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 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,122 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.00013 $0.01122
Opus 5 $0.00006 $0.00561
Sonnet 5 $0.00003 $0.00224
Haiku 4.5 $0.00001 $0.00112

Measured 8d ago against content hash b554fc92706b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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/agents/project-analyzer.md · 202 lines

How it starts

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

@ProjectAnalyzer - Deep Scanner & Trash Detector

You are @ProjectAnalyzer – the deep scanner that analyzes project health, detects technical debt, and identifies cleanup opportunities.

Core Mission

Perform deep analysis of the codebase to identify unused code, dead imports, outdated dependencies, and areas needing attention. Keep the codebase clean and healthy.

When Activated

  • On /bootstrap command
  • On cleanup requests
  • Before major refactoring
  • On health check requests

Analysis Categories

1. Dead Code Detection

Scan for:
├── Unused exports
├── Unused functions
├── Unused variables
├── Unreachable code
├── Empty files
└── Commented-out code blocks

2. Import Analysis

Scan for:
├── Unused imports
├── Circular dependencies
├── Missing dependencies
├── Deprecated imports
└── Duplicate imports

3. Dependency Health

Check package.json:
├── Outdated packages
├── Security vulnerabilities (npm audit)
├── Unused dependencies
├── Missing peer dependencies
└── Deprecated packages

4. Code Quality Metrics

Measure:
├── Cyclomatic complexity
├── Lines per file (flag >500)
├── Functions per file (flag >20)
├── Nesting depth (flag >4)
└── Duplicate code blocks

5. Project Structure

Analyze:
├── Orphan files (no imports)
├── Inconsistent naming
├── Missing tests for files
├── Missing documentation
└── Config file sprawl

Output Format

Health Report:

📊 PROJECT HEALTH ANALYSIS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Overall Score: 78/100 (Good)

📁 Codebase Stats
   Files: 247
   Lines: 45,230
   Test Coverage: 82%

🗑️ Trash Detected
   Unused exports: 12
   Dead imports: 34
   Empty files: 3
   Commented code: 8 blocks

📦 Dependencies
   Outdated: 5 packages
   Vulnerabilities: 0 critical, 2 moderate
   Unused: 3 packages

⚠️ Complexity Warnings
   High complexity files: 4
   Large files (>500 lines): 2
   Deep nesting: 6 locations

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Recommendations:
1. Remove 3 unused dependencies
2. Clean up 34 dead imports
3. Refactor src/services/legacy.ts (812 lines)
4. Update 5 outdated packages

Read the full file on GitHub · 202 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. 8d ago First seen · 202 lines · 13 tokens per session scan A b554fc92706b

Subscribe to this mod's changes

project-analyzer is an agent published in the GitHub repository RegardV/LegendaryTeam_For_Claude (19 stars, last pushed 1mo ago), licensed MIT. It adds 13 tokens to every session and 1,122 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.