craft-arch
Crafting arch tests. Structure as code.
SKILL.mdplugins/pest/skills/craft-arch/SKILL.md
GitHubSkill: Craft Arch
"Architecture as code."
The Standard
- Presets First: Use
php(),security(),laravel()before custom rules. - Namespace Constraints: Enforce inheritance, traits, dependencies.
- Ignore Sparingly: Document why when using
->ignoring().
The Anti-Patterns
| Don't | Do | Why |
|---|---|---|
| Skip presets | Start with presets | Low-hanging fruit |
| Over-constrain | Meaningful rules only | Noise |
| Silent ignores | Document ignores | Traceability |
| Test behavior with arch | Use arch for structure | Different concerns |
Real-World Examples
See examples.md.