pw-writing-skills
Use when creating or improving Boost skills for ProcessWire agents to ensure optimal CSO formatting and testing requirements.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when creating or improving Boost skills for ProcessWire agents to ensure optimal CSO formatting and testing requirements.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when building, structuring, or refactoring native backend modules for ProcessWire using PHP 8.4 and strict typing.
Use when designing, structuring, or rendering HTML for ProcessWire Admin interfaces, custom Process modules, or Inputfields.
Use when brainstorming or designing ProcessWire modules, templates, field schemas, or hooks to resolve ambiguity and validate architecture before implementation.
Use when creating, executing, or managing Pest tests within ProcessWire or ProcessWire modules, including Test-Driven Development (TDD) tasks.
Use when encountering any bug, test failure, blank screen of death, or unexpected behavior in ProcessWire before proposing fixes.
Use when creating or updating module documentation, package READMEs, architecture guides, or CLI command references for ProcessWire projects.
| name | pw-writing-skills |
| description | Use when creating or improving Boost skills for ProcessWire agents to ensure optimal CSO formatting and testing requirements. |
| category | meta |
| risk | safe |
| source | processwire-boost |
| date_added | 2026-04-08 |
Create, improve, and validate agent skills for the ProcessWire Boost ecosystem.
Writing skills IS Test-Driven Development applied to process documentation.
NO SKILL WITHOUT A FAILING TEST FIRST
This applies to NEW skills AND EDITS to existing skills.
If you didn't watch an agent fail without the skill, you don't know if the skill teaches the right thing.
RED -> GREEN -> REFACTOR Cycle:
Violating the letter of the rules is violating the spirit of the rules. Agents will rationalize under pressure ("It's too simple to test", "I'll test later"). Do not allow this. Add explicit anti-patterns to prevent loopholes.
resources/boost/skills/All Boost skills live in resources/boost/skills/<skill-name>/:
resources/boost/skills/
├── pw-module-development/ # Core module scaffold & PHP patterns
│ └── SKILL.md
├── pw-pages/ # Selectors, CRUD, page lifecycle
│ └── SKILL.md
└── pw-brainstorming/ # Design process & implementation planning
└── SKILL.md
Naming Convention: All Boost skills MUST use the pw- prefix (e.g., pw-pages, pw-module-development).
Every SKILL.md MUST start with:
---
name: skill-name # Must match directory name
description: "Use when..." # Starts with 'Use when' — this is the trigger
risk: safe # safe | unknown | critical
source: processwire-boost # Always processwire-boost for Boost skills
---
The description field is how AI agents discover skills. Never summarize the skill's workflow or process in the description. Describe ONLY the triggering conditions.
# ✅ Good — trigger-based
description: "Use when building custom Fieldtype and Inputfield modules in ProcessWire."
# ❌ Bad — summary-based / shortcut
description: "A comprehensive guide to ProcessWire Fieldtype development."
If your description summarizes the workflow, the AI might skip reading the file and just hallucinate the steps!
# ProcessWire [Skill Title]
## When to Use
- [Specific trigger condition]
## Core Concepts
- ProcessWire-specific patterns and examples
- Code samples using `wire()`, `$pages`, `$sanitizer`
- CLI commands using `vendor/bin/wire`
## Anti-Patterns & Loophole Closing
- What NOT to do (with ❌ markers)
- Explicit counters for AI rationalizations
## Related Skills
- Links to complementary pw- skills
Before deploying any skill, run through this TDD-adapted checklist:
Testing (Mandatory):
Formatting:
name field matches directory name exactlySKILL.md filename is ALL CAPSdeclare(strict_types=1) and namespace ProcessWirevendor/bin/wire or wire alias| Mistake | Fix |
|---|---|
| Skipping the RED phase | Always test baseline behavior before writing the file |
| Laravel examples in PW skills | Use ProcessWire API equivalents |
| Description summarizes content | Use "Use when..." triggers |
| Missing anti-patterns section | Add ❌ markers to block AI shortcuts and workarounds |