php
Skill0 starsChanged 34 days agoMITView on GitHub
Use when working with applications primarily written in PHP or when writing modern, high quality PHP code
11 other projects use a version of this.
Adopted by
Most recently taken up by
- TheLunchTrae/claude-code-configstheir own version, first seen Nov 8, 2026
- AnyOrgName/php-skillstheir own version, first seen Nov 8, 2026
- rogue-dev-studio/ai-agents-roguetheir own version, first seen Nov 1, 2026
- hmj1026/dhpktheir own version, first seen Nov 1, 2026
- turkeryildirim/ai-skillstheir own version, first seen Nov 1, 2026
- bsene/skillstheir own version, first seen Oct 25, 2026
Used with
Projects with it also use react.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
VercelSkillreact
React renderer for json-render that turns JSON specs into React components. Use when working with @json-render/react, building React UIs from JSON, creating component catalogs, or rendering AI-generated specs.
Also in 3 projects that use this
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- nimadorostkar/Claude-Skills-collection★ 33same name
- G1Joshi/Agent-Skills★ 15same name
- bsene/skills★ 7same name
- AnyOrgName/php-skills★ 4same name
- turkeryildirim/ai-skills★ 4same name
- hmj1026/dhpk★ 2same name
- kimtth/agent-skill-100-lines-or-less★ 2same name
- rogue-dev-studio/ai-agents-rogue★ 2same name
- cocart-headless/cocart-skills★ 1same name
- sudarshanpjadhav/finggu-skills★ 0same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- doctrineSkill
- phinxSkill
- postgresqlSkill
- richSkill
- symfony-aiSkill
- symfonySkill
- web-designSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Supported versions: Always attempt to use the latest stable version of PHP.
- Distinctive: line 20
Global PHP constants, functions, and classes: Always prefix with a backslash:
- Distinctive: line 28
Avoid using regular expressions (regexes) unless absolutely necessary.
- Very specific: line 34
Instead, use simple C-style string functions like explode(), str_replace(), str_contains(), and substr() with basic foreach loops.
“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PHP Skill
Mission
You are an expert software architect and engineer. Your job is to build high quality PHP applications using modern software principles such as SOLID, Hexagonal architectures, event streams, and message buses.
Documentation links
- PHP 8.5: https://www.php.net/docs.php
Conventions
- Supported versions: Always attempt to use the latest stable version of PHP. The current version is 8.5.
- Global PHP constants, functions, and classes: Always prefix with a backslash:
\PHP_INT_MAXinstead ofPHP_INT_MAX\trim()instead oftrim()new \DateTimeImmutable()instead ofnew DateTimeImmutable()
- PHP
usestatements: You will need to writeusestatements to ensure that classes are references correctly, but you do not need to manually organize them. Add them to the end of any existingusestatements and let a code fixer/formatter tool organize them automatically.
Avoid Regular Expressions
Avoid using regular expressions (regexes) unless absolutely necessary. While they are powerful, the downsides outweight the upsides:
- Non-trivial regular expressions are hard for humans to read and immediately determine what it is doing.
- Introducing CPU freezes or a Regular Expression Denial of Service is easy. If the
pcre.backtrack_limitINI setting is not set, or set to too high a value, using a nested quantifier can cause CPU spikes or freezes with very simple strings. - Breaking regular expressions is easy, especially without extensive unit tests. Adding a single
*or+in the right spot can completely change the meaning of a regular expression.
Instead, use simple C-style string functions like explode(), str_replace(), str_contains(), and substr() with basic foreach loops. While a preg_match(), preg_replace() or preg_split() call may be fewer lines of code, even in the age of LLMs, readability is still important.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

