Add Changelog
gambitph/Stackable
Adds or updates a WordPress plugin changelog entry in readme.txt from the project's Release Roadmap for a confirmed plugin version.
Decide whether a recurring hardening invariant is worth a CI gate, and add it without hitting the traps.
$ npx skills add symfony/symfony --skill hardening-rule -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install symfony/symfony hardening-rule --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/symfony/symfony.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/hardening-rule .claude/skills/hardening-rule && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "hardening-rule" agent skill from https://github.com/symfony/symfony/tree/8.2/.agents/skills/hardening-rule into .claude/skills/hardening-rule/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hardening-rule", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/symfony/symfony/tree/8.2/.agents/skills/hardening-ruleType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add symfony/symfony --skill hardening-rule -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install symfony/symfony hardening-rule --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/symfony/symfony.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/hardening-rule .agents/skills/hardening-rule && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "hardening-rule" agent skill from https://github.com/symfony/symfony/tree/8.2/.agents/skills/hardening-rule into .agents/skills/hardening-rule/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hardening-rule", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add symfony/symfony --skill hardening-rule -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install symfony/symfony hardening-rule --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/symfony/symfony.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/hardening-rule .cursor/skills/hardening-rule && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "hardening-rule" agent skill from https://github.com/symfony/symfony/tree/8.2/.agents/skills/hardening-rule into .cursor/skills/hardening-rule/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hardening-rule", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/symfony/symfony.git --path .agents/skills/hardening-rule--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add symfony/symfony --skill hardening-rule -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install symfony/symfony hardening-rule --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/symfony/symfony.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/hardening-rule .gemini/skills/hardening-rule && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "hardening-rule" agent skill from https://github.com/symfony/symfony/tree/8.2/.agents/skills/hardening-rule into .gemini/skills/hardening-rule/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hardening-rule", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install symfony/symfony hardening-ruleInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add symfony/symfony --skill hardening-rule -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/symfony/symfony.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/hardening-rule .github/skills/hardening-rule && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "hardening-rule" agent skill from https://github.com/symfony/symfony/tree/8.2/.agents/skills/hardening-rule into .github/skills/hardening-rule/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hardening-rule", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add symfony/symfony --skill hardening-rule -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install symfony/symfony hardening-rule --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/symfony/symfony.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/hardening-rule .opencode/skills/hardening-rule && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "hardening-rule" agent skill from https://github.com/symfony/symfony/tree/8.2/.agents/skills/hardening-rule into .opencode/skills/hardening-rule/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hardening-rule", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
hardening-ruleDecide whether a recurring hardening invariant is worth a CI gate, and add it without hitting the traps.
Hardening Rule is an agent skill from symfony/symfony. Decide whether a recurring hardening invariant is worth a CI gate, and add it without hitting the traps. Covers PHPStan custom rules (implementation-shape checks) and the check-hardening-tests.php convention (test-presence checks). Use when the user says "write a PHPStan rule", "add a hardening rule", "gate this pattern", "catch this in CI", or wants to turn a finding into a durable check.
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development. It works with Symfony, PHP and GitHub. The repository describes itself as: The Symfony PHP framework. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit af79aa7. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
composerFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Hardening Rule loads about 1.2k tokens when it runs. Until then it costs about 102 tokens; SKILL.md has 598 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from symfony/symfony at commit af79aa7, republished under its MIT licence (© symfony). 598 words, ~1,172 tokens.
.claude/skills/hardening-rule/SKILL.md (or your agent's skills folder).Turns a recurring hardening invariant into a CI gate. The mechanics are obvious from the
three shipped rules (HardenedComparisonRule, UnserializeToStringTrampolineRule,
UnserializeMissingAllowedClassesRule): copy the class shape and the registration. This
skill is the part the example files cannot teach: when a rule is worth building, and the
traps that cost an afternoon.
A PHPStan rule earns its place only if it catches a broad, recurring shape across many
sites. The shipped rules each span dozens (every webhook compare; 60+ __unserialize;
every unserialize()). If your rule effectively targets one class or one call site, it is
too narrow: it carries CI weight for almost no coverage. Use a regression test instead.
(A verify-MAC-before-deserialize rule was built and dropped for exactly this reason: it
matched a single serializer.)
Pick the mechanism by what the invariant is about:
| Invariant is about... | Use |
|---|---|
| A code shape recurring across many sites | a PHPStan rule (this skill) |
| A test existing for a boundary class | extend check-hardening-tests.php |
| A value being attacker-controlled (data-flow) | Psalm taint, or a reviewer note; not a syntactic rule |
| A curated set being complete (subnets, attributes) | a unit test next to the data |
| One class / one site | a regression test, not a rule |
Do not force a taint problem into a syntactic rule: if safe and unsafe look identical at the sink and differ only by where a value came from, the rule is all false positives.
Model the new rule on the existing .github/sa-tools/rules/*Rule.php: global namespace,
Symfony license header, implements Rule with getNodeType()/processNode(), a stable
identifier('symfony.<camelCase>'), and the narrowest node type that sees the shape.
<Name>Rule.php into
.github/sa-tools/rules/ and add its class to the rules: list in
.github/sa-tools/rules.neon (which phpstan.dist.neon includes). The folder's autoloader
(rules/bootstrap.php, wired once via --autoload-file in static-analysis.yml) and the
.gitignore folder whitelist (!rules, !rules/*) pick the file up with no further edits.
A rule that needs constructor arguments takes a services: entry tagged
phpstan.rules.rule in that same rules.neon instead of the rules: shorthand. (PHPStan
only autoloads a project-local rule class early enough via --autoload-file or composer
PSR-4 — a neon scanDirectories/bootstrapFiles runs too late — hence the stable
bootstrap, which you never touch per rule.)phpstan analyse counts are nondeterministic (result cache + parallel workers report
0 then N for the same input). Verify the logic with PHPStan\Testing\RuleTestCase in a
throwaway composer require phpstan/phpstan phpunit/phpunit project, with fixtures for
the unsafe shape (must fire), the fixed shape (silent), and the nearest safe look-alike
from the decision boundary (silent). Never gate on a local analyse count.phpstan-diff.php compares the PR against the
base branch and fails only on errors new to the PR, so standing violations are absorbed.
Design target: zero findings on the current tree at introduction (no baseline entry).If the invariant is "this boundary class must ship its regression test", extend
check-hardening-tests.php (pure tokenizer, no autoload) instead of writing a rule. Add the
boundary predicate and the required-test predicate in its existing style; accepted gaps go in
the ALLOWLIST const as a TODO with a reason, never a permanent waiver.
phpstan-diff.php or the workflow to make a rule pass. Fix the rule.© symfony, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/hardening-rule of symfony/symfony.
Open the folder on GitHubat commit af79aa7
Hardening Rule next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Hardening Rule this skillsymfony/symfony | 31k | — | ~1.2k | Automated safety check: Pass | MIT | |
| Add Changeloggambitph/Stackable | 351 | — | ~1.5k | Automated safety check: Pass | GPL-3.0 | |
| Clean Architecturegiuseppe-trisciuoglio/developer-kit | 357 | — | ~4.2k | Automated safety check: Notes | MIT | |
| B24phpsdk Maintainerbitrix24/b24phpsdk | 102 | — | ~10k | Automated safety check: Notes | MIT | |
| PHP ProJeffallan/claude-skills | 12k | — | ~1.6k | Automated safety check: Notes | MIT | |
| Shopware CLIshopware/shopware-cli | 124 | — | ~4.9k | Automated safety check: Pass | MIT |
gambitph/Stackable
Adds or updates a WordPress plugin changelog entry in readme.txt from the project's Release Roadmap for a confirmed plugin version.
giuseppe-trisciuoglio/developer-kit
Provides implementation patterns for Clean Architecture, Hexagonal Architecture (Ports & Adapters), and Domain-Driven Design in PHP 8.3+ with Symfony 7.x.
bitrix24/b24phpsdk
A skill your agent uses whenever working with GitHub issues in the bitrix24/b24phpsdk repository: creating new issues, reading existing ones, planning implementation from an issue, referencing an…
Jeffallan/claude-skills
Writes strictly typed modern PHP 8.3+ for Laravel, Symfony and plain projects, with PHPStan level 9, PHPUnit or Pest tests, typed DTOs and secure defaults.
shopware/shopware-cli
Use Shopware CLI for Shopware project, extension, and account workflows — create and install new projects (project create, project dev install), validate projects or extensions (with…
shopware/shopware-cli
A skill your agent uses when working on Docker-backed Shopware projects and needing to run Shopware or Symfony CLI commands, interact with project services or databases, start or stop the…
symfony/symfony
Synchronize translation catalogs across maintained Symfony branches: find messages that newer branches added to the English catalogs but that are still missing from the oldest maintained branch…
symfony/symfony
Decide whether open Bug PRs target the correct branch. An agent skill from symfony/symfony.
symfony/symfony
Cascade-merge maintained Symfony branches from oldest to newest (e.g.
symfony/symfony
Merge a reviewed pull request the way the Symfony core team does: one --no-ff merge commit per PR, whose message archives the whole discussion, with the review gates checked first.
symfony/symfony
Triage a reported security finding into a disposition: a private CVE (coordinated disclosure + advisory), a public hardening PR (fix in the open, no CVE), or not-a-security-issue (reply to reporter).
symfony/symfony
Review a change (a PR, the current branch diff, or a set of files) or audit a component or the whole tree for missing or incorrect security hardening.
Categories
Decide whether a recurring hardening invariant is worth a CI gate, and add it without hitting the traps. Hardening Rule is an agent skill from symfony/symfony. Decide whether a recurring hardening invariant is worth a CI gate, and add it without hitting the traps.
Hardening Rule fits situations like: the user says write a PHPStan rule; add a hardening rule; gate this pattern; catch this in CI.
Run `npx skills add symfony/symfony --skill hardening-rule -a claude-code`. Or copy the skill folder (.agents/skills/hardening-rule in symfony/symfony) into .claude/skills/hardening-rule in your project. Claude Code loads it when a task matches its description.
Run `npx skills add symfony/symfony --skill hardening-rule -a codex`. Or copy the skill folder (.agents/skills/hardening-rule in symfony/symfony) into .agents/skills/hardening-rule in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add symfony/symfony --skill hardening-rule -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/hardening-rule, .gemini/skills/hardening-rule, .github/skills/hardening-rule and .opencode/skills/hardening-rule in your project.
Going by SKILL.md and its folder, Hardening Rule needs the command-line tools its instructions call (composer).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Hardening Rule is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Hardening Rule: Add Changelog (gambitph/Stackable, 351 stars), Clean Architecture (giuseppe-trisciuoglio/developer-kit, 357 stars), B24phpsdk Maintainer (bitrix24/b24phpsdk, 102 stars) and PHP Pro (Jeffallan/claude-skills, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
symfony (a GitHub organization) maintains it in symfony/symfony, which has 31,184 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 10, 2026.
Source: symfony/symfony on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.