craft-pest SKILL.md skillA
craft-pest from michtio/craftcms-claude-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add michtio/craftcms-claude-skills/craft-pest@git:20261005.8e2d9c5Pins git:20261005.8e2d9c5 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- michtio/craftcms-claude-skills
- Path
skills/craft-pest/SKILL.md- Versions recorded
- 7
- Latest version
- git:20261005.8e2d9c5, committed Oct 5, 2026
- First version recorded
- Jul 28, 2026
- Size
- 13,837 bytes
- Repository stars
- 88
- License
- MIT
Testing Craft CMS 5 plugins and modules with Pest — test isolation, database safety, and the markhuot/craft-pest-core harness. ALWAYS load when writing, running, fixing, or reviewing tests for a Craft plugin or module, and whenever a suite touches a real Craft install. Covers why rollback is opt-in, tests/Pest.php + tests/bootstrap.php wiring, phpunit.xml.dist <env> pins (force DB name + table prefix, default connection coordinates, pin CRAFT_ENVIRONMENT against server-scoped locks), why…
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Testing Craft CMS Plugins with Pest Reference for testing Craft CMS 5 plugins and modules with Pest, primarily via `markhuot/craft-pest-core`. The dominant failure mode in Craft plugin testing is not a wrong assertion — it's a suite that **writes to a database it shouldn't**, or that **passes only because of ambient state** on the developer's install. Both are silent. Both look like a green suite. This skill leads with isolation for that reason: get the harness right first, then write tests. **Verified against `markhuot/craft-pest-core` 3.2.2 and `craftcms/cms` 5.10.12 (August 2026).** Where a claim names a class or method, it was read in that package's source. craft-pest's own README and docs are not authoritative on these points — several of the behaviors below are unstated there. ## Companion Skills — Load When Needed - **`craftcms`** — Plugin/module architecture, elements, controllers, events, project config. Load when the code under test is being written or changed, not just exercised. - **`craft-php-guidelines`** — PHP standards for the test files themselves (PHPDocs, naming, ECS). …
Read the whole file at its exact version.
How to install
mdr add michtio/craftcms-claude-skills/craft-pest@sha256:75f4faf8f2152b9bThe line at the top of this page pins the label git:20261005.8e2d9c5, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_5kqvldk2yk5ptwbx)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 7 versions of this file, between Jul 28, 2026 and Oct 5, 2026, about one every 12 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261005.8e2d9c5 latest | 2026-10-05 | 8e2d9c5 | 13,837 B | A | view · diff |
| git:20261005.e2e0a79 | 2026-10-05 | e2e0a79 | 13,837 B | A | view · diff |
| git:20260812.31832ec | 2026-08-12 | 31832ec | 13,830 B | A | view · diff |
| git:20260804.d3a91c1 | 2026-08-04 | d3a91c1 | 13,061 B | A | view · diff |
| git:20260728.b45663b | 2026-07-28 | b45663b | 12,510 B | A | view · diff |
| git:20260728.7556d38 | 2026-07-28 | 7556d38 | 12,350 B | A | view · diff |
| git:20260728.919bf67 | 2026-07-28 | 919bf67 | 10,952 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (13837 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
michtio/craftcms-claude-skills · 88 stars · license MIT · pushed 2026-11-04 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_5kqvldk2yk5ptwbx GET https://markdownregistry.com/api/v1/resolve?ref=michtio/craftcms-claude-skills/craft-pest GET https://markdownregistry.com/api/v1/blob/75f4faf8f2152b9b6c26e773602ded814f129a2ef1fa40b37ba9de12cd2e218f
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.