# Craft Arch

> Crafting arch tests. Structure as code.

- Skill: `attac-t/craft-arch` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add attac-t/craft-arch`
- Raw SKILL.md: https://api.skillmd.com/api/skills/attac-t/craft-arch/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: attac-t (https://skillmd.com/u/attac-t)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/attac-t/craft-arch

---


# Skill: Craft Arch

> "Architecture as code."

## The Standard

1. **Presets First**: Use `php()`, `security()`, `laravel()` before custom rules.
2. **Namespace Constraints**: Enforce inheritance, traits, dependencies.
3. **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](examples.md).

