Skill / SKILL.md

Craft Pest

michtio/craftcms-claude-skills

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 opt-in rollback, tests/Pest.php + tests/bootstrap.php wiring, phpunit.xml.dist <env> pins (DB name, table prefix, connection, CRAFT_ENVIRONMENT against server-scoped locks), why --configuration= defeats isolation, fail-closed DB guards, installing the plugin under test, timezone pinning, per-test site fixtures, idempotent Install migrations, stale service caches, audit sinks, queue stubs, factories, HTTP/DB assertions, CI jobs.
2 views 90 repository stars 0 commentsUpdated Nov 27, 2026
Overview

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 opt-in rollback, tests/Pest.php + tests/bootstrap.php wiring, phpunit.xml.dist <env> pins (DB name, table prefix, connection, CRAFT_ENVIRONMENT against server-scoped locks), why --configuration= defeats isolation, fail-closed DB guards, installing the plugin under test, timezone pinning, per-test site fixtures, idempotent Install migrations, stale service caches, audit sinks, queue stubs, factories, HTTP/DB assertions, CI jobs.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/michtio/craftcms-claude-skills' skill-source

Use the complete skill-source/skills/craft-pest directory with your client’s skill installer.

Source directory skills/craft-pest

Compatibility & requirements

Declared tools

Bash(sh ${CLAUDE_SKILL_DIR}/scripts/craft-version.sh)

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
1552b3928eeaa714a114938b0d3b9d71109192fd8e4425c30c152df644756b5e
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills