goldziher/ai-rulez/php-conventions

Claude Code and agent skill by goldziher/ai-rulez

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

PHP code conventions covering PHP 8.2+ strict types, PSR-12 formatting, PHPStan/Psalm static analysis, PHPUnit, Composer dependency management, PSR-4 autoloading, and security. Load when writing or reviewing PHP code.

Install

npx vskill@latest install goldziher/ai-rulez/php-conventions

SKILL.md

The same SKILL.md was published earlier as goldziher/ai-rulez/php-conventions.

  • PHP 8.2+, declare(strict_types=1), typed properties, union types, enums, readonly classes.
  • Formatting: PSR-12 via a fixer (e.g., PHP_CodeSniffer/phpcbf or php-cs-fixer). Static analysis: a strict analyzer (e.g., PHPStan at max level or Psalm).
  • Testing: PHPUnit with @dataProvider, 80%+ coverage.
  • Error handling: specific exceptions extending RuntimeException, constructor promotion for value objects.
  • First-class callable syntax ($fn = strlen(...)) for callbacks. Arrow functions (fn() =>) for simple closures.
  • Dependencies: Composer with composer.lock committed, ^ version constraints. composer audit in CI.
  • Security: require roave/security-advisories as dev dependency to block vulnerable packages.
  • PSR-4 autoloading exclusively — no require/include for classes.
  • Intersection types for strict parameter contracts. Named arguments for readability.
  • Anti-patterns: @ suppression, eval(), dynamic property access, extract().

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
145
Repository forks
14
7-day trend score
30

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/goldziher/ai-rulez/php-conventions/badge)](https://verified-skill.com/skills/goldziher/ai-rulez/php-conventions)

Something wrong with this skill or its page? Tell us.