/marcoax-skills:technical-debt-manager-php-laravelfrom marcoax-skills
Audits a PHP/Laravel codebase for technical debt and turns it into a prioritised, sprint-ready roadmap. Use when the target project is Laravel and the user asks for a debt audit, a code-health review, "what should we refactor", or a refactoring plan for a quarter. Not for generic non-Laravel debt analysis, and not for reviewing a single diff or PR — use a code-review skill for that.
Ships in marcoax-skills. 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.
Turn invisible code health problems into a prioritised roadmap. Baseline: PHP ≥ 8.3, Composer, the Laravel major already in the repo.
Read the repo's own conventions first (CLAUDE.md, .ai/rules/, AGENTS.md if present) — a
pattern the project has chosen deliberately is not debt.
Run these, they are the evidence the whole report rests on. Don't substitute intuition for them.
test -f artisan && php artisan --version; php -v; composer -V
cat composer.json
composer audit # security advisories
composer outdated --direct # dependency freshness
vendor/bin/phpstan analyse --memory-limit=1G # if the repo configures Larastan/PHPStan
vendor/bin/pint --test # style drift, check-only
php artisan test # suite health
# churn hotspots, last 90 days
git log --format=format: --name-only --since="90 days ago" \
| grep -vE '^(|\.github/|docs/|README|CHANGELOG)' | sort | uniq -c | sort -rn | head -25
No coverage tooling is needed: judge tests by presence or absence around critical flows and by CI reliability, not by a percentage.
Churn × static-analysis findings tells you where to look; read the top 10–20 files yourself. What you are hunting for in a Laravel codebase specifically:
Classify each finding as code quality, tests, docs, dependencies, design, infrastructure or performance — the report groups by these seven.
Severity = (Churn × Complexity × Business criticality) / Test confidence
Churn is commits in the last 90 days; business criticality puts payments, auth and data integrity above admin UI above internal tooling. Say the inputs out loud for each item so the score is arguable, not oracular.
| Critical | security advisories on production paths; data-corruption, auth or payment-integrity risk; hotspots actively blocking delivery |
| High | churn + complexity + weak tests; upgrades that unblock a framework bump; user-visible performance |
| Medium | moderate complexity in stable areas; docs gaps that slow onboarding or ops |
| Low | low churn, cosmetic, or debt in code being removed anyway |
Bias the ordering toward high impact / low effort, and toward the smallest safe step first.
An inventory report, sprint-ready work items, and a quarter roadmap — shapes in references/report-templates.md. Every item needs evidence (command output, file paths, churn counts), an effort band, and acceptance criteria that can be checked by running something.
Write findings as cost, not as judgement: "this module is a bug hotspot, a small refactor plus tests cuts rework" lands where "this code is bad" does not.
If the user wants the debt to stop growing, the cheap gates are composer audit,
vendor/bin/pint --test, phpstan (baseline-capped if noisy) and php artisan test in CI.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (marcoax/skills) — no native marketplace selected
npx claudepluginhub p/marcoax-marcoax-skills18 skills in this plugin
/add-lessonTurn a lesson's .docx/.md notes into a quiz file, or add words to an existing lesson./add-recapAdd a recap lesson: a fixed random sample plus a dedicated section for words and expressions to distinguish, copied from existing lessons. Argument: the title, e.g. "Ripasso di Natale"./advanced-code-reviewReview code changes against the requested behavior and repository standards, with evidence-backed findings and a PASS/PARTIAL/FAIL verdict./agent-md-creatorGenerate standardized CLAUDE.md or AGENT.md files for projects. Use when users want to document a project for AI agents, set up project instructions, create AI instructions files, initialize agent docs, or say things like "Crea un CLAUDE.md", "Generate AGENT.md", "Setup project documentation", "document this project for agents", "create AI instructions file", "initialize agent docs", "set up project instructions".