Skip to content
Back to skills

Grooming Templates

ASecurity

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.

  • 769 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 13, 2026
databasesgophpgit

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 13, 2026

npx -y skills add wp-media/wp-rocket --skill grooming-templates --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Grooming Templates?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Grooming Templates
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wp-media-grooming-templates/badge)](https://www.skillsdirectory.com/skills/wp-media-grooming-templates)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Files in this skill

  • SKILL.md5.1 KB
  • examples/story.md2.7 KB
  • templates/grooming-bugs.md849 B
  • templates/grooming-story.md740 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in databases →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.