Smithery Logo
MCPsSkillsDocsPricing
Login
Smithery Logo

Accelerating the Agent Economy

Resources

DocumentationPrivacy PolicySystem Status

Company

PricingAboutBlog

Connect

© 2026 Smithery. All rights reserved.

    wadakatu

    code-quality

    wadakatu/code-quality
    Coding
    1
    1 installs

    About

    SKILL.md

    Install

    Install via Skills CLI

    or add to your agent
    • Claude Code
      Claude Code
    • Codex
      Codex
    • OpenClaw
      OpenClaw
    • Cursor
      Cursor
    • Amp
      Amp
    • GitHub Copilot
      GitHub Copilot
    • Gemini CLI
      Gemini CLI
    • Kilo Code
      Kilo Code
    • Junie
      Junie
    • Replit
      Replit
    • Windsurf
      Windsurf
    • Cline
      Cline
    • Continue
      Continue
    • OpenCode
      OpenCode
    • OpenHands
      OpenHands
    • Roo Code
      Roo Code
    • Augment
      Augment
    • Goose
      Goose
    • Trae
      Trae
    • Zencoder
      Zencoder
    • Antigravity
      Antigravity
    ├─
    ├─
    └─

    About

    Run code quality checks for Laravel Spectrum (PHPStan, Laravel Pint, PHPUnit). Use when user mentions "lint", "format", "code quality", "PR準備", "コミット前チェック", or before creating commits/PRs...

    SKILL.md

    Code Quality

    Quick Start

    Run all checks in order:

    composer format:fix && composer analyze && composer test
    

    Workflow

    Execute checks in this order. Fix issues at each step before proceeding.

    1. Format (Laravel Pint)

    composer format:fix    # Auto-fix code style
    composer format        # Dry-run (check only)
    

    2. Analyze (PHPStan Level 5)

    composer analyze
    

    No baseline additions allowed. Fix all reported issues.

    3. Test (PHPUnit)

    composer test                                    # All tests
    vendor/bin/phpunit tests/Unit/SomeTest.php       # Specific file
    vendor/bin/phpunit --filter testMethodName       # Specific method
    composer test-coverage                           # With coverage report
    

    Pre-PR Checklist

    1. composer format:fix - Fix code style
    2. composer analyze - Pass static analysis (no new errors)
    3. composer test - All tests pass
    4. Verify in demo-app:
      cd demo-app/laravel-12-app
      php artisan spectrum:generate
      

    Common Issues

    PHPStan Errors

    • Add proper type hints to method parameters and return types
    • Use @var annotations for complex types
    • Check for null safety issues

    Pint Violations

    Usually auto-fixed. If manual fix needed, check Laravel preset rules.

    Test Failures

    • Run specific test: vendor/bin/phpunit --filter testName
    • Check test fixtures in tests/Fixtures/
    Recommended Servers
    Vercel Grep
    Vercel Grep
    OpenZeppelin
    OpenZeppelin
    Context7
    Context7
    Repository
    wadakatu/laravel-spectrum
    Files