/tdd-laravel:laravel-qualityfrom tdd-laravel
Runs Laravel quality checks including Pest tests, PHPStan/Larastan static analysis, and Pint code formatting. Activates on 'Laravel quality check' or 'Laravel test' phrases.
Ships in tdd-laravel. 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.
Laravel プロジェクト固有の品質チェックツール。
汎用PHPツールは tdd-php 参照。
| ツール | コマンド | 用途 |
|---|---|---|
| Pest | php artisan test | テスト実行 |
| PHPStan | ./vendor/bin/phpstan analyse | 静的解析(Larastan) |
| Pint | ./vendor/bin/pint | コードフォーマット |
| ヘルパー | 用途 |
|---|---|
actingAs($user) | 認証ユーザーとして実行 |
assertDatabaseHas() | DB レコード存在確認 |
assertDatabaseMissing() | DB レコード不在確認 |
assertRedirect() | リダイレクト確認 |
assertStatus() | HTTPステータス確認 |
| カテゴリ | 対象 | 例 |
|---|---|---|
| Feature | HTTPリクエスト、統合 | Controller, API |
| Unit | 単一クラス | Model, Service |
tests/
├── Feature/ # HTTP, 統合テスト
│ ├── Auth/
│ └── Api/
└── Unit/ # 単体テスト
├── Models/
└── Services/
it('can list users', function () {
$user = User::factory()->create();
$this->actingAs($user)
->get('/api/users')
->assertStatus(200)
->assertJsonStructure(['data' => [['id', 'name']]]);
});
it('can create user', function () {
$this->post('/api/users', [
'name' => 'Test',
'email' => '[email protected]',
])->assertStatus(201);
$this->assertDatabaseHas('users', [
'email' => '[email protected]',
]);
});
| 項目 | 目標 |
|---|---|
| PHPStan Level | 8(Larastan) |
| カバレッジ | 90%+ |
| Pint | エラー0 |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
laravel-testing, pest, phpstan, larastan, pint, code-quality
Other plugins' skills for the same job
npx claudepluginhub morodomi/tdd-skills --plugin tdd-laravel