/project-toolkit:analyzefrom project-toolkit
Systematic multi-step codebase analysis producing prioritized findings with file-line evidence. Covers architecture reviews, security assessments, and code quality evaluations.
Ships in project-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
When this skill activates, IMMEDIATELY invoke the script. The script IS the workflow. Do NOT explore the codebase first.
analyze this codebase - architecture and quality focusreview code quality - quality focusrun security assessment - security focusarchitecture review of this system - architecture focusfind code smells - quality focus| Input | Focus | Minimum Steps |
|---|---|---|
| Architecture review | Structure, dependencies, layering | 6 |
| Security assessment | Input validation, auth, data handling | 7-9 |
| Code quality | Duplication, complexity, test gaps | 6-7 |
| Broad investigation | All dimensions | 9-12 |
When using the Bash tool, all arguments containing variable or user-provided input MUST be quoted to prevent command injection vulnerabilities. Refer to the repository style guide on Command Injection Prevention (CWE-78).
WRONG: grep $PATTERN /some/path
CORRECT: grep -- "$PATTERN" /some/path
--thoughts carries the user's request description and, at later steps, accumulated findings: both are request-derived text. Double quotes alone do not neutralize this argument: $(...) and backticks inside a double-quoted --thoughts "..." string still execute before the script ever receives the value, because the Bash tool expands them first. A heredoc does not close this gap either: a request line that reads EOF on its own terminates the heredoc early, and the shell then parses the rest of the request text as commands. Use --thoughts-file instead: write the request text to a file under the scratchpad directory with the Write tool (no shell quoting, no heredoc), then pass the file's path, as shown in Invocation below.
--thoughts and --thoughts-file are mutually exclusive. The script reads the file as UTF-8 (errors="replace") and exits 1 on a missing or unreadable path. Never interpolate request-derived text directly inside a double-quoted --thoughts "..." argument on the command line.
Use this skill when:
Use direct code reading instead when:
| Script | Purpose | Exit Codes |
|---|---|---|
scripts/analyze.py | Multi-step guided analysis with exploration, investigation, and synthesis | 0=success, 1=invalid input |
Write --thoughts to a file under the scratchpad directory with the Write tool (see Security), then pass --thoughts-file, never by interpolating request-derived text directly into the command:
python3 scripts/analyze.py \
--step-number 1 \
--total-steps 6 \
--thoughts-file "$SCRATCH/analyze-thoughts.txt"
| Argument | Required | Description |
|---|---|---|
--step-number | Yes | Current step (starts at 1) |
--total-steps | Yes | Minimum 6; adjust as script instructs |
--thoughts or --thoughts-file | Yes (mutually exclusive) | Accumulated state from all previous steps: inline text or a file path |
The script outputs REQUIRED ACTIONS at each step. Follow them exactly.
Before exploring, record the live default-branch SHA with scripts/validation/live_revision_grounding.py. Carry grounded_sha and finding_status into every finding that depends on repository state. A STALE or UNVERIFIED finding is never the sole basis for an issue. The github skill's references/revision-grounding.md has the rules and a manual fallback.
Delegate to Explore agent(s). The script determines scope and parallelism. Wait for all agents, then re-invoke scripts/analyze.py with --step-number 1, including the Explore results in --thoughts.
Classify investigation areas by dimension (architecture, performance, security, quality). Assign priorities P1-P3. Estimate total steps.
Commit to specific files, questions, and hypotheses per focus area. This creates a contract verified in the verification phase.
Execute the investigation plan. Read files, collect evidence with file:line references and quoted code. Trace root causes across files.
When analysis discovers book-depth conditions, invoke software-engineering-library and open the matching reference before recommending the fix. Conditions include low test coverage, old file age, hard-to-test seams, external API calls, queues, retries, transaction boundaries, event ordering, schema evolution, layer dependency direction, bounded context splits, and module interface shape. This keeps the heavy guidance deferred until evidence shows it matters.
Audit completeness against step 3 commitments. Identify gaps. If gaps exist, increase total-steps and return to deep analysis.
Consolidate verified findings by severity (critical, high, medium, low). Identify systemic patterns. Produce prioritized action plan.
# Step 1: Start, script instructs you to explore first
# (Write tool wrote "Starting analysis of auth system" to $SCRATCH/analyze-thoughts.txt)
python3 scripts/analyze.py --step-number 1 --total-steps 6 \
--thoughts-file "$SCRATCH/analyze-thoughts.txt"
# [Follow REQUIRED ACTIONS: delegate to Explore agent, wait for results]
# Step 1 again with explore results
# (Write tool updated the file with "Explore found: Flask app, SQLAlchemy, auth/ dir...")
python3 scripts/analyze.py --step-number 1 --total-steps 6 \
--thoughts-file "$SCRATCH/analyze-thoughts.txt"
# Step 2+: Continue following script output
# (Write tool appended "Focus: security P1, quality P2" to the accumulated state)
python3 scripts/analyze.py --step-number 2 --total-steps 7 \
--thoughts-file "$SCRATCH/analyze-thoughts.txt"
| Avoid | Why | Instead |
|---|---|---|
| Exploring the codebase before invoking the script | Script orchestrates exploration order | Run step 1 immediately, let script direct you |
| Skipping the Explore agent delegation | Misses broad codebase context | Follow step 1 REQUIRED ACTIONS to delegate |
| Passing empty thoughts to later steps | Loses accumulated context | Include all findings from previous steps |
| Reducing total-steps below 6 | Skips verification and synthesis | Keep minimum 6, increase as script directs |
| Reporting findings without file:line evidence | Unverifiable claims | Always cite specific locations |
After execution:
references/DEVELOPMENT.md (opens in a new tab)references/agent-architecture-patterns.md (opens in a new tab)references/context-budget-management.md (opens in a new tab)references/design-legacy-code.md (opens in a new tab)references/design-tell-dont-ask.md (opens in a new tab)references/engineering-complexity-tiers.md (opens in a new tab)references/quality-boy-scout-rule.md (opens in a new tab)references/reliability-observability-pillars.md (opens in a new tab)references/strategy-ooda-loop.md (opens in a new tab)scripts/analyze.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rjmurillo/ai-agents --plugin project-toolkit105 skills in this plugin
/adr-generatorCreate comprehensive Architectural Decision Records (ADRs). Researches the destination directory to detect existing template conventions, gathers context, determines next ADR number, generates the ADR, validates completeness, and saves. Supports multiple ADR formats (MADR, Nygard, Alexandrian, project canonical). Use when documenting technical decisions, creating new ADR files, or capturing rationale so future readers can revisit a choice. Use when you say "write an ADR", "document this decision", "document these design choices", "record why we chose this", "capture the rationale", or "for future maintainers", or when creating an ADR-like markdown file under docs/decisions/, docs/adr/, docs/architecture/, architecture/decisions/, or .project-toolkit/architecture/. Do NOT use to debate or review an existing ADR (use adr-review)./adr-reviewMulti-agent debate orchestration for Architecture Decision Records. Automatically triggers on ADR create/edit/delete. Coordinates architect, critic, independent-thinker, security, analyst, and high-level-advisor agents in structured debate rounds until consensus. Use when you say "review this ADR", when an ADR is created/edited/deleted, or when reviewing, accepting, or updating a decision file under .project-toolkit/architecture/, docs/architecture/, docs/decisions/, docs/adr/, or architecture/decisions/, including intent like "review this decision record" or "check this rationale for future maintainers". Do NOT use to author a new ADR (use adr-generator)./agent-harness-referenceField reference for Claude Code and GitHub Copilot CLI hook contracts. Covers hook locations, events, matchers, payloads, decisions, exit codes, timeouts, plugin roots, and cloud limits with official URLs and versioned probes. Use for `harness contract`, `copilot cli hook behavior`, `hook payload format`, `stale plugin root`, `Errno 2 _dispatch.py`, or before changing cross-harness hooks. Do NOT use to run the porting campaign (in the ai-agents repository, use `ai-agents-portability-campaign`)./ai-agents-external-claimsVerify external, vendor, and third-party claims (numbers, attributions, structure) against authoritative primary sources before they land in a repo artifact or external deliverable. Covers stake-holding sources, round-number tells, citation-chain drift, and the walk-the-gate-or-file-conservative discipline. Use when you say `verify an external claim`, `check a vendor number`, `is this stat real`, `validate a third-party citation`. Do NOT use for running an experiment (use `ai-agents-research-methodology` in the ai-agents repository) or command-injection scanning (use `security-scan`)./analysis-provenanceIdentify code ownership before modifying validators or linters. Checks file headers for provenance indicators, reviews documentation, and determines provenance as UPSTREAM, LOCAL, VENDOR, or UNKNOWN. Prevents accidental modification of upstream tools./api-doc-authoringWrite API docs around a developer use case, with executed examples and failure recovery. Use when you say `document this API` or `write the API guide`. Do NOT use to verify doc claims (use doc-accuracy) or design the API.2 plugins in one repository ship this exact skill · first indexed Nov 13, 2026
Other plugins' skills for the same job