Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/pledgeandgrow/pledge-skills/phpnpx skills add pledgeandgrow/pledge-skills --skill phpgit clone --depth 1 https://github.com/pledgeandgrow/pledge-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/pledgeandgrow/pledge-skills/php)<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/php"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/php.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00534 | $0.03337 |
| Opus 5 | $0.00267 | $0.01669 |
| Sonnet 5 | $0.00107 | $0.00667 |
| Haiku 4.5 | $0.00053 | $0.00334 |
Grade A, and why
php-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 314 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PHP Expert (8.5)
Official Documentation: https://www.php.net/manual/en/
Quick Reference
| Topic | File |
|---|---|
| Installation (Linux, macOS, Windows, Docker), php.ini config, web server setup, SAPI types | getting-started.md |
| PHP tags, escaping HTML, instruction separation, comments | basics-syntax.md |
| Types (null, bool, int, float, string, array, object, callable, iterable, mixed, void, never, resource), type declarations, type juggling | types.md |
| Variables, scope, predefined variables, variable variables, external sources | variables.md |
| Constants, define(), const, magic constants, predefined constants | constants.md |
| Operators (arithmetic, assignment, bitwise, comparison, error control, execution, logical, string, array, type, functional), precedence | operators.md |
| Control structures (if, else, elseif, while, do-while, for, foreach, switch, match, declare, return, require, include, goto) | control-structures.md |
| Functions, parameters, arguments, returning values, anonymous, arrow, first-class callable | functions.md |
| Classes, objects, properties, property hooks, constants, autoloading, constructors, visibility, inheritance, static, abstract, interfaces, traits, anonymous classes, overloading, magic methods, final, cloning, late static bindings, serialization, covariance/contravariance, lazy objects | classes-objects.md |
| Namespaces, sub-namespaces, importing/aliasing, global space, name resolution | namespaces.md |
| Enumerations (basic, backed, methods, static methods, constants, traits, listing, serialization) | enums.md |
| Errors, error levels, error handling, error reporting | errors.md |
| Exceptions, try/catch/finally, extending exceptions, multiple catch types, global handler | exceptions.md |
| Generators, yield, yield from, Generator class, comparison with Iterator | generators.md |
| Fibers, Fiber class, suspend/resume/throw, full-stack interruptible functions | fibers.md |
| Attributes, syntax, declaring attribute classes, reading with Reflection | attributes.md |
| References, reference counting, passing by reference, returning references | references.md |
| Predefined variables ($_SERVER, $_GET, $_POST, $_SESSION, $_ENV, $GLOBALS), predefined exceptions, predefined interfaces/classes, predefined attributes | predefined.md |
| Security (sessions, filesystem, database, SQL injection, error reporting, user data, hiding PHP, keeping current) | security.md |
| Features (HTTP auth, cookies, sessions, file uploads, remote files, connection handling, persistent DB connections, CLI, garbage collection, DTrace) | features.md |
| Standard library: strings, arrays, arrays sorting, function handling, output control, error handling | stdlib-core.md |
| Standard library: date/time (DateTime, DateTimeImmutable, DateTimeZone, DateInterval, DatePeriod), calendar, HRTime | stdlib-date.md |
| Standard library: math, BCMath, GMP, statistics, RoundingMode enum | stdlib-math.md |
| Standard library: hash, OpenSSL, password hashing, sodium, Rnp, Xpass | stdlib-crypto.md |
| Standard library: JSON, SimdJSON, cURL, DOM, SimpleXML, XMLReader, XMLWriter, XSL, XML-RPC | stdlib-xml-json.md |
| Standard library: PDO, MySQL (mysqli), PostgreSQL, SQLite3, MongoDB, OCI8, ODBC, DBA, SQLSRV | stdlib-database.md |
| Standard library: SPL (datastructures, iterators, exceptions, functions), reflection, fileinfo, filesystem, directories | stdlib-spl-io.md |
| Standard library: compression (Phar, Zip, Zlib, Bzip2, Rar, LZF), intl, iconv, mbstring, gettext, GD, ImageMagick, Exif | stdlib-extended.md |
| Standard library: PCNTL, POSIX, program execution, FFI, OPcache, session, filter, ctype, FTP, IMAP, mail, SOAP, OAuth, readline, APCu | stdlib-services.md |
| Standard library: PCRE regex (preg_match, preg_replace, preg_split, preg_grep), URL functions (parse_url, http_build_query, urlencode), stream functions and contexts, network functions (DNS, IP, headers), variable handling (var_dump, serialize, debug_backtrace), PHP info functions | stdlib-regex-net.md |
| Standard library: server-specific (Apache, LiteSpeed, FPM), Solr, FDF, GnuPG, wkhtmltox, PS, XLSWriter, Radius, GeoIP, FANN, Igbinary, Lua, CommonMark, Event, Yar, Eio, Ev, Expect, Enchant, Gender, Quickhash, dBase, Firebird, CUBRID, IBM DB2, Componere | stdlib-misc.md |
| Composer, PIE, PECL, autoloading, dependency management, packaging | composer.md |
| PHP 8.5 new features, 8.4/8.3/8.2/8.1/8.0 migration, deprecated features, backward incompatible changes | whats-new.md |
What ships with it
33 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- attributes.md 4.4 KB
- basics-syntax.md 1.8 KB
- classes-objects.md 12 KB
- composer.md 5.6 KB
- constants.md 3.0 KB
- control-structures.md 4.6 KB
- enums.md 4.8 KB
- errors.md 3.4 KB
- exceptions.md 4.7 KB
- features.md 5.6 KB
- fibers.md 3.6 KB
- functions.md 4.6 KB
- generators.md 4.2 KB
- getting-started.md 6.0 KB
- namespaces.md 3.2 KB
- operators.md 4.5 KB
- predefined.md 7.3 KB
- references.md 3.0 KB
- security.md 5.5 KB
- stdlib-core.md 6.8 KB
- stdlib-crypto.md 4.9 KB
- stdlib-database.md 7.9 KB
- stdlib-date.md 5.2 KB
- stdlib-extended.md 9.3 KB
- stdlib-math.md 4.1 KB
- stdlib-misc.md 11 KB
- stdlib-regex-net.md 15 KB
- stdlib-services.md 12 KB
- stdlib-spl-io.md 13 KB
- stdlib-xml-json.md 6.8 KB
- types.md 6.2 KB
- variables.md 3.0 KB
- whats-new.md 8.2 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 314 lines · 534 tokens per session scan A 75cda8a3d461
php-docs is a skill published in the GitHub repository pledgeandgrow/pledge-skills (10 stars, last pushed 1mo ago), licensed MIT. It adds 534 tokens to every session and 3,337 once invoked, about $0.0027 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
php
Modern PHP programming patterns.
request
Generate form request validation for CatchAdmin module.
routes
Generate route configuration for CatchAdmin module.
module-new
Scaffold a new Gacela module under src/php/ with Facade, Provider, and CLAUDE.md.
integration-fixture
Create or validate a .test integration fixture under tests/php/Integration/Fixtures.
phel-lang
Building applications WITH Phel (Lisp that compiles to PHP). Triggers on .phel files, phel-config.php, phel CLI commands (init, run, repl, test, build), or requests to build a Phel app. Skip when working on the Phel compiler internals (use compiler-guide or phel-patterns instead).