hadyfayed/laravel-agent/analyze-codebase

Claude Code and agent skill by hadyfayed/laravel-agent

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Generate a comprehensive codebase health report analyzing architecture, quality, security, performance, and dependencies; when auditing or understanding a Laravel project.

Install

npx vskill@latest install hadyfayed/laravel-agent/analyze-codebase

SKILL.md

The same SKILL.md was published earlier as hadyfayed/laravel-agent/analyze-codebase.

Task

Analyze a Laravel codebase and generate a comprehensive health report covering architecture, code quality, security, performance, testing, and dependency management.

Input

  • target-path (optional): Directory to analyze (default: app/)
  • --focus: Limit to one area (default: all)

Steps

  1. Gather Metrics

``bash find app/ -name "*.php" | wc -l find app/ -name "*.php" -exec wc -l {} + | tail -1 find . -name "*.blade.php" | wc -l find . -name "*.vue" | wc -l find . -name "*.js" -o -name "*.ts" | wc -l ``

  1. Architecture Analysis
  • Scan directory structure (standard Laravel, DDD, domain modules, etc.)
  • Check for pattern usage (Repository, Service, Action, Strategy, etc.)
  • Evaluate dependency coupling and isolation
  • Assess modularity and feature isolation
  • Review API design (RESTful compliance, versioning)
  1. Code Quality Metrics
  • Average method and class line counts
  • Cyclomatic complexity estimates
  • Type hint coverage
  • PHPDoc/comment coverage
  • SOLID principles adherence
  • Code duplication (DRY violations)
  1. Security Scan
  • Raw SQL queries with user input
  • Unescaped output ({!! !!} with user data)
  • Missing authorization checks
  • Mass assignment vulnerabilities ($fillable missing)
  • Hardcoded credentials or API keys
  • SQL injection patterns
  • File upload validation
  • Known package vulnerabilities (via composer audit)
  1. Performance Analysis
  • N+1 query patterns (lazy loading in loops, missing eager loads)
  • Big O complexity issues (O(n²) nested loops, contains() in loops, in-loop queries)
  • Missing database indexes on foreign keys and common WHERE clauses
  • Unbounded SELECT queries
  • Caching opportunities
  • Memory-intensive operations

See ${CLAUDE_SKILL_DIR}/references/performance-patterns.md for detailed Big O detection patterns.

  1. Testing Assessment

``bash php artisan test --coverage ``

  • Test file count and line coverage
  • Critical path coverage
  • Controllers, Services, Models coverage ratio
  • Test quality and assertion density
  1. Dependency Health

``bash composer outdated composer audit ``

  • Update status (minor, major, deprecated)
  • Known vulnerabilities
  • Abandoned packages
  • License compatibility
  1. Laravel Best Practices
  • Form request usage (FormRequest per route)
  • API Resource usage
  • Policy implementation
  • Event/Listener patterns
  • Job queueing for heavy operations
  • Caching strategy (config, routes, queries)
  • Eloquent ORM compliance (vs. raw queries)
  • Blade component reuse

Output Format

Generate a markdown report with:

  • Executive Summary: Overall health score (0–100), area scores, top 5 priorities
  • Detailed Findings: Per-area tables with file locations, patterns, severity levels
  • Recommendations: Immediate (this week), short-term (this month), long-term (this quarter)

See references/ for example output format and detailed assessment checklists.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
13
Repository forks
1
7-day trend score
13

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hadyfayed/laravel-agent/analyze-codebase/badge)](https://verified-skill.com/skills/hadyfayed/laravel-agent/analyze-codebase)

Something wrong with this skill or its page? Tell us.