← スキル一覧に戻る

code-quality
by wadakatu
Zero-annotation API documentation generator for Laravel or Lumen
⭐ 1🍴 0📅 2026年1月5日
SKILL.md
name: code-quality description: 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. Also use after writing significant code changes.
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
composer format:fix- Fix code stylecomposer analyze- Pass static analysis (no new errors)composer test- All tests pass- 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
@varannotations 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/
スコア
総合スコア
65/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
3ヶ月以内に更新
+5
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
レビュー
💬
レビュー機能は近日公開予定です

