php-checks

php-checks is a skill for Claude Code from specsnl/agent-specs. It costs 132 tokens per session (1,657 once invoked), scanned A, original, MIT.

A set of local quality checks for PHP and Laravel projects, run through the project’s Taskfile. PHP is a programming language, and Laravel is a framework for building PHP applications.

In plain words
What is it for?
Use it to prepare the environment and run PHPCodeSniffer, PHPStan or Larastan, PHPUnit, Rector, and Markdown-lint checks in a Specs project.
Why use it?
It gathers code style, static analysis, automated tests, refactoring, and Markdown checks into the project’s defined task commands.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the laravel plugin — 4 skills, 1 command shipped together

Good fit Use it to prepare the environment and run PHPCodeSniffer, PHPStan or Larastan, PHPUnit, Rector, and Markdown-lint checks in a Specs project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/specsnl/agent-specs/php-checks
Install

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.

Any agent
npx skills add specsnl/agent-specs --skill php-checks
Clone the repo
git clone --depth 1 https://github.com/specsnl/agent-specs

Made for: Claude Code.

Or install laravel, the plugin that ships this one along with the rest of its 4 skills, 1 command.

Wrote 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.

agentmods badge for php-checks

README.md
[![agentmods](https://agentmods.dev/badge/skills/specsnl/agent-specs/php-checks/github.svg)](https://agentmods.dev/skills/specsnl/agent-specs/php-checks)
Your own site
<a href="https://agentmods.dev/skills/specsnl/agent-specs/php-checks"><img src="https://agentmods.dev/badge/skills/specsnl/agent-specs/php-checks/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for php-checks

Your own site · 80×15
<a href="https://agentmods.dev/skills/specsnl/agent-specs/php-checks"><img src="https://agentmods.dev/badge/skills/specsnl/agent-specs/php-checks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,657 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00132 $0.01657
Opus 5.5 $0.00053 $0.00663
Sonnet 5.5 $0.00026 $0.00331
Haiku 4.5 $0.00013 $0.00166

Measured 1mo ago against content hash 5ae07d365c70, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

php-checks 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 1mo 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.

plugins/laravel/skills/php-checks/SKILL.md · 158 lines

How it starts

The opening of the file, as written. The whole thing — 158 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PHP / Laravel checks

Prerequisite — Command execution rules apply. The executing-commands skill governs how every command in this skill must be run. Never run php, composer, npm, node, docker, or docker compose directly on the host. Always use task <task-name>; run task --list first to see what this project actually exposes.

This skill is the stack-specific half of ci-green-check. That skill discovers which checks exist (Taskfile + .github/workflows), drives the fix loop and writes the final report. This one provides the environment setup and the exact commands.

Check that task is installed:

task --version 2>/dev/null || echo "task not installed"

If task is not installed, do not attempt to run commands directly. Stop and alert the user — task is required. Ask the user to install it first (brew install go-task/tap/go-task on macOS).

Task naming in Specs Laravel projects

The Taskfile is split into namespaces (composer, artisan, npm, db, md, setup, e2e, cleanup, worktrees). Wildcard tasks take the rest of the name as their argument, and everything after -- is forwarded to the underlying command:

Task Runs
task composer:script:<name> a composer script from composer.json (checkall, checkstyle, checktype, test, …)
task composer:cmd:<name> a raw composer command (outdated, audit, why, …)
task composer:install composer install inside the php service
task composer:update composer update --with-all-dependencies
task artisan:run:<command> php artisan <command> (colons included: artisan:run:migrate:fresh)
task npm:script:<name> an npm script from package.json (build, test:e2e, …)
task npm:cmd:<name> a raw npm command (audit, outdated, …)
task md:checkstyle markdownlint over the repo
task md:fixstyle fix table spacing, then markdownlint --fix
task checkall composer:script:checkall + md:checkstyle
task dc:run:<service> -- … last-resort escape hatch into a compose service

Read the full file on GitHub · 158 lines

Changes

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.

  1. 1mo ago First seen · 158 lines · 132 tokens per session scan A 5ae07d365c70

Subscribe to this mod's changes

php-checks is a skill published in the GitHub repository specsnl/agent-specs (2 stars, last pushed 1mo ago), licensed MIT. It adds 132 tokens to every session and 1,657 once invoked, about $0.0005 per session on Opus 5.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.