proactive-analysis

proactive-analysis is a skill for Claude Code, Codex from PierreJanineh/TechDebtMCP. It costs 39 tokens per session (870 once invoked), scanned A, original, MIT.

An automatic code-review workflow that scans for technical debt, meaning code problems that make future changes harder or riskier. It runs the scan at selected points such as before a pull request or after a large refactor.

In plain words
What is it for?
Use it to scan files or project directories, review technical-debt findings, check merge readiness, and include relevant findings in a pull request.
Why use it?
It surfaces maintainability problems before they are overlooked during reviews, refactors, or merge decisions.

Skill for Claude CodeCodex

Part of the tech-debt-mcp plugin — 1 skill, 3 commands 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 skills/pierrejanineh/techdebtmcp/proactive-analysis
Any agent
npx skills add PierreJanineh/TechDebtMCP --skill proactive-analysis
Clone the repo
git clone --depth 1 https://github.com/PierreJanineh/TechDebtMCP

Made for: Claude Code, Codex.

Or install tech-debt-mcp, the plugin that ships this one along with the rest of its 1 skill, 3 commands.

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 proactive-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/pierrejanineh/techdebtmcp/proactive-analysis.svg)](https://agentmods.dev/skills/pierrejanineh/techdebtmcp/proactive-analysis)
Your own site
<a href="https://agentmods.dev/skills/pierrejanineh/techdebtmcp/proactive-analysis"><img src="https://agentmods.dev/badge/skills/pierrejanineh/techdebtmcp/proactive-analysis.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 870 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.1 $0.00039 $0.00870
Opus 5 $0.00019 $0.00435
Sonnet 5 $0.00008 $0.00174
Haiku 4.5 $0.00004 $0.00087

Measured 5d ago against content hash 44d27084a0ea, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

proactive-analysis 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 5d 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.

plugin/skills/proactive-analysis/SKILL.md · 53 lines

How it starts

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

Proactive Tech-Debt Analysis

This skill teaches Claude when to invoke the tech-debt-mcp analyzer automatically, without the user having to type a command.

When to run proactively

Trigger a tech-debt scan automatically in any of these situations:

Trigger Action
User asks to open a PR or push a branch Scan the project root before creating the PR. Summarize findings in the PR description or as a pre-PR comment.
User asks to review my code or what's wrong with this file Run mcp__tech-debt-mcp__analyze_file on the mentioned file. Weave the findings into the code review.
User finishes a large refactor (renamed module, restructured directory) Scan the affected directory and report the current debt items found. Only describe items as "new" or "resolved" if there is an explicit prior scan result in the current session to compare against.
User asks is my code ready to merge Run mcp__tech-debt-mcp__get_debt_summary and mcp__tech-debt-mcp__get_sqale_metrics. If the health score is below 70 or there are any critical/high issues, surface them before approving merge-readiness.
User requests a security audit Run mcp__tech-debt-mcp__get_vulnerability_report on the project root and fold the offline dependency inventory into the security report. Note: this tool does not perform CVE lookups — direct the user to cross-reference with OSV or Snyk for actual vulnerability data.

How to run

All analysis is delegated to MCP tools — no logic is duplicated here.

Situation Tool(s) to call
Full project scan mcp__tech-debt-mcp__analyze_project
Single file review mcp__tech-debt-mcp__analyze_file
Aggregate health check mcp__tech-debt-mcp__get_debt_summary + mcp__tech-debt-mcp__get_sqale_metrics
Dependency inventory (offline) mcp__tech-debt-mcp__get_vulnerability_report

Always pass absolute paths to tool arguments. If you only have a relative path, resolve it against the workspace root before calling a tool.

Read the full file on GitHub · 53 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. 5d ago First seen · 53 lines · 39 tokens per session scan A 44d27084a0ea

Subscribe to this mod's changes

proactive-analysis is a skill published in the GitHub repository PierreJanineh/TechDebtMCP (7 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 870 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

open-source

Documentation reference for writing Python code using the browser-use open-source library. Use this skill whenever the user needs help with Agent, Browser, or Tools configuration, is writing code that imports from browseruse, asks about @sandbox deployment, supported LLM models, Actor API, custom tools, lifecycle…

browser-use/browser-use · 137 tokens

repomix

Pack and analyze codebases into AI-friendly single files using Repomix. Use when the user wants to explore repositories, analyze code structure, find patterns, check token counts, or prepare codebase context for AI analysis. Supports both local directories and remote GitHub repositories.

yamadashy/repomix · 58 tokens

kayba-stage-5-action-plan

Triage each insight into discard/code-fix/prompt-fix and produce a prioritized action plan with specific recommendations. Trigger when the user says "run stage 5", "make action plan", "triage skills", or when invoked by the kayba-pipeline orchestrator. Requires eval outputs from stages 1-4.

kayba-ai/agentic-context-engine · 74 tokens

kayba-stage-2-domain-context

Gather domain context about the repository and agent — system prompt, tool definitions, domain docs, and behavior patterns from traces. Trigger when the user says "run stage 2", "gather context", "domain context", or when invoked by the kayba-pipeline orchestrator.

kayba-ai/agentic-context-engine · 64 tokens

kayba-stage-7-fixer

Implement the approved fixes from the action plan and log all changes. Trigger when the user says "run stage 7", "implement fixes", "apply action plan", or when invoked by the kayba-pipeline orchestrator. Requires eval/actionplan.md to exist.

kayba-ai/agentic-context-engine · 61 tokens

playwright-screen-recording

Record browser test videos with Playwright for PR review and bug fix verification.

liaohch3/claude-tap · 20 tokens