Skip to content

ericrisco/rsc-harness / skills/php

Use when writing, reviewing or modernizing PHP (8.3-8.5) outside Laravel — strict types, union and intersection types, readonly classes, backed enums, property hooks and asymmetric visibility, the pipe operator and clone-with, Composer with PSR-4, PER-CS style, PSR interop, and the quality toolchain (PHPStan, Pint, Rector, PHPUnit/Pest). NOT Eloquent, Blade or Artisan (that is `laravel`).

FileKindSize
SKILL.mdskill md15.5 KB
evals/README.mdmarkdown865 B
evals/cases.yamlconfig2.8 KB
references/tooling.mdmarkdown4.3 KB
references/type-system.mdmarkdown6.8 KB
scripts/verify.shexecutablescript5.2 KB

evals/README.md

View on GitHub
# Evals — php

These cases are a behavioral spec, not an automated harness. Run them by hand: prompt a fresh
agent with each `should_trigger` line and confirm it loads the `php` skill; prompt it with
each `should_not_trigger` line and confirm it declines and routes to the named sibling
(`laravel`, `wordpress`, `security-audit`, `api-design`, `mysql`) instead of answering from
this skill. For the `capability` scenario, give the agent the scenario prompt and grade the
generated package against the `must_include` rubric — every item must be present (strict
types in each file, PSR-4 autoload, a backed enum, a readonly DTO with a property hook, a
typed exception, `phpstan.neon` at `level: max`, and zero framework coupling). `scripts/verify.sh`
is the separate code-artifact check you run inside a real PHP project root, not part of these
behavioral evals.
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall