ワンクリックで
php-standard
Activate when writing, reviewing, or testing PHP code to enforce clean code, strict typing, and PHPUnit standards.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Activate when writing, reviewing, or testing PHP code to enforce clean code, strict typing, and PHPUnit standards.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | php-standard |
| version | 1.0.0 |
| description | Activate when writing, reviewing, or testing PHP code to enforce clean code, strict typing, and PHPUnit standards. |
| triggers | ["php","phpunit","laravel","symfony","psr","composer"] |
Language-specific rules for PHP projects covering strict typing, PSR compliance, clean architecture, and PHPUnit testing conventions.
declare(strict_types=1) in every filedeclare(strict_types=1); at the top of every file.test[FunctionName]_[Scenario]_[ExpectedResult].@dataProvider to keep tests DRY when testing multiple cases.tests/ mirroring src/.composer.json or directory structure to ensure correct namespaces.Test structure:
public function testCreateUser_WithValidData_ReturnsUser(): void
{
// Given
$email = EmailMother::random();
// When
$user = $this->service->create($email);
// Then
$this->assertEquals($email, $user->email());
}
declare(strict_types=1) in every PHP file — no exceptionstest[Function]_[Scenario]_[Expected]@dataProvider for multi-case testsrecursive-exploration (reasoning model), refactor (cleanup workflow), code-review (review checklist)Activate when an Engineering Manager needs to shape a rough initiative into a clear, scoped, outcome-oriented brief before execution.
Activate when reviewing branches, commits, or pull requests using the emoji-driven review protocol.
Activate when managing conversation history in long sessions, choosing compression strategies, or preserving critical information during context truncation.
Activate when designing agent systems, debugging unexpected agent behavior, or optimizing context usage and attention budgets.
Activate when hitting context limits, experiencing quality degradation in long sessions, or needing to extend effective context capacity.
Activate when generating in-code comments or system documentation using the Diátaxis framework.