一键导入
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 职业分类
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.
| 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)