MUST be loaded before writing any grooming, grooming comment or implementation spec for an issue, story or bug. The grooming agent, /groom and the orchestrator's grooming step all invoke it first. It supplies the story and bug templates and the rules to fill them concisely, and replaces any built-in grooming or spec layout.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Grooming Templates?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/wp-media-grooming-templates)
---
name: grooming-templates
description: MUST be loaded before writing any grooming, grooming comment or implementation spec for an issue, story or bug. The grooming agent, /groom and the orchestrator's grooming step all invoke it first. It supplies the story and bug templates and the rules to fill them concisely, and replaces any built-in grooming or spec layout.
---
# Grooming templates
The grooming comment, and the spec the implementer reads, follow one of the two templates in
`templates/`. They replace any other grooming or spec layout. Keep the headings, their order and
their emoji exactly as in the template.
## 1. Pick the template
- Bug (label `type: bug`, "regression", steps to reproduce, an error): `templates/grooming-bugs.md`.
- Anything else (feature, enhancement, chore, audit): `templates/grooming-story.md`.
## 2. Before writing
- Read the issue, its epic and the comments. Map the code with the knowledge graph or `git grep`.
- Check every path, symbol and line you will cite on the base branch (`git grep`, `git show <base>:<file>`). Cite only what you verified.
- Name what you could not verify as an unknown or an open question. Never state it as a fact.
## 3. Fill the template
**Procedure:** read the template file, copy it whole, and replace only the placeholder text under each heading. Never retype, rename, reorder or drop a heading or its emoji (`## 📔 Scope a solution`, `## 🪜 Development steps:`, …). A bug keeps `## 🪲 Reproduce the problem` even when it is short.
- **Scope a solution** (story) or **Identify the root cause** + **Scope a solution** (bug): one paragraph each, at most 5 sentences. State the approach and the decisions, not the investigation or the history. Mappings, lists and tables do not go here: put them in the steps or in a `<details>` block.
- **Development steps**: one numbered collapsible block per step. A step is a unit of work a developer can do and commit on its own. Inside it, group the changes by file:
```
<details>
<summary>1. Short title of the step</summary>
In `path/to/File.php`
- Add a new `method()` that does X
- Pass `$data` to Y, as Z does today
In `path/to/new-file.php` [new file]
- Render the block
Delete `path/to/old-file.php`
</details>
```
- One bullet is one action, naming the method, hook, option or class. No "so that", "because" or "which ensures" clauses. Rationale belongs in the scope paragraph.
- Tests are a step: the test file and what each case covers.
- Builds of generated assets get their own step, last.
- **How will this be validated?**: manual scenarios with the exact page, hash or command, the setup it needs, and what can be automated.
- **Effort estimation**: one of XS/S/M/L/XL, nothing else. For L and XL add a PR splitting table (slice, files, behavior delivered) under the scope paragraph, or say why it cannot be split.
- **Grooming confidence level**: High, Medium or Low, then the risks, unknowns and edge cases that matter (the templates have no edge-case heading, put them here). Say what was actually run versus only read.
- **Can be peer-coded**, **Is a refactor needed**: Yes or No with one line.
## Self-check before returning
- The headings are identical to the template, emoji included, in the same order.
- Every path and line cited was checked on the base branch.
- The caps below hold.
## 4. Keep it short
- No options matrix unless two real alternatives exist and the choice is the team's.
- No section that restates another. No inventory prose: file paths live in the steps.
- Link to evidence (comment, file, recording) instead of pasting it. Long tables go in a `<details>` block.
- Caps: the scope and root-cause paragraphs are at most 5 sentences each, the confidence section at most 6 lines, a step at most 6 bullets.
- Target a comment a reviewer reads in two minutes.
## 5. When called by the delivery pipeline (grooming agent, `/groom`, orchestrator)
- Write the same content to the spec file (`.TemporaryItems/Issues/<repo>/issues/<N>-spec.md`) and to the comment body. The comment body starts with the marker and the AI note, then the template:
```
<!-- ai-pipeline:grooming-plan -->
> [!NOTE]
> Generated by the AI delivery pipeline (grooming-agent · <model>).
```
- Keep returning the agent's JSON, derived from the template:
| JSON field | From the template |
|---|---|
| `effort` | Effort estimation |
| `development_steps[{step, files}]` | Each numbered step title and the paths in its `In` lines (this is the implementer's `file_scope`) |
| `test_plan` | The first manual scenario of "How will this be validated?" |
| `grooming_confidence`, `risk_notes`, `risks` | Grooming confidence level |
| `open_questions` | Unknowns that need a human decision |
| `pr_splitting_plan` | The PR splitting table (L/XL), else `null` |
| `complexity`, `risk_level` | Your assessment, applying the repo's grooming conventions |
- Respect `dry_run`: write `<N>-grooming-comment.md`, do not post. Never post without the user's go-ahead outside the pipeline.
## Example
`examples/story.md` is a finished story grooming (an audit with three small steps). Match its density, not its content.