groom

groom is a command for Claude Code from MostAshraf/ai-sdlc-harness. It costs 0 tokens per session (954 once invoked), scanned A, original, MIT.

A command for technically enriching a software work item before implementation. It examines approved repositories to identify affected parts, migration issues, testing plans, and risks.

In plain words
What is it for?
Use it to fetch the work item, identify relevant repositories, refresh their remote state, and prepare repository-specific implementation guidance.
Why use it?
It turns a broad story into concrete technical notes while requiring confirmation of which repositories may be inspected.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ai-sdlc-harness plugin — 8 skills, 4 commands, 3 agents, 4 hooks shipped together

Good fit Use it to fetch the work item, identify relevant repositories, refresh their remote state, and prepare repository-specific implementation guidance.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add MostAshraf/ai-sdlc-harness
Claude Code
/plugin install ai-sdlc-harness

Made for: Claude Code.

Or install ai-sdlc-harness, the plugin that ships this one along with the rest of its 8 skills, 4 commands, 3 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for groom

README.md
[![agentmods](https://agentmods.dev/badge/commands/mostashraf/ai-sdlc-harness/groom.svg)](https://agentmods.dev/commands/mostashraf/ai-sdlc-harness/groom)
Your own site
<a href="https://agentmods.dev/commands/mostashraf/ai-sdlc-harness/groom"><img src="https://agentmods.dev/badge/commands/mostashraf/ai-sdlc-harness/groom.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 954 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00954
Opus 5 $0.00000 $0.00477
Sonnet 5 $0.00000 $0.00191
Haiku 4.5 $0.00000 $0.00095

Measured 8d ago against content hash 5ad813628fad, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

groom scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/story-workflow/commands/groom.md · 63 lines

How it starts

The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/story-workflow groom

Technical enrichment pass. Analyzes the relevant repos to identify affected components, migration concerns, testing strategy, and risks, and produces per-repo technical notes. This is where Claude Code's native codebase awareness is the main tool.

Steps

  1. Fetch the work item per shared/provider-io.md. If it has no clear ACs yet, offer to run improve first — grooming is more effective on a refined story — but proceed if the user wants to.
  2. Identify relevant repos. Read the repo landscape per shared/context.md (repos.yaml + each repo-map/<name>/). From the story, propose which repos are affected, each with a one-line reason, and wait for the user to confirm before scanning anything. Don't scan repos they didn't approve.
  3. Refresh remote knowledge, then check position (never mutate the tree). For each confirmed repo, using its path from repos.yaml:
    • git -C "<path>" fetch origin — allowed, and updates remote refs without touching the working tree. If it fails (no network/remote), report and skip that repo — don't scan a repo you couldn't refresh.
    • git -C "<path>" rev-list HEAD..origin/<default-branch> --count — a read; how far behind the checkout is.
    • The harness blocks raw git pull / merge inside any workspace that has completed /init-workspace (owned-entry-point rule; this skill only ever runs inside one), so this command never updates the working tree on its own. If a repo is behind, say so and offer two choices: (a) analyze the current checkout as-is — and stamp the staleness into the notes so the reader knows the analysis reflects commit <short-sha>, N commits behind origin/<default>; or (b) on the user's explicit say-so, run ${CLAUDE_PLUGIN_ROOT}/bin/harness update-base --repo "<path>" — the owned fetch + fast-forward-only verb — and re-scan. It moves the base ref without switching the checkout, and refuses rather than guessing when the base has diverged, is checked out and dirty, or the remote won't answer; surface any refusal and let the user resolve it. Never switch branches or discard changes to "help".
  4. Analyze each confirmed, fetched repo against the story. Use Grep for content, Glob for file patterns, Read for inspection — not Bash for searches. Look for: affected files/classes/methods; database & migration impact; API surface (controllers, routes, DTOs); configuration & DI; existing test coverage for the touched areas; and cross-service dependencies. Align with the team's real patterns from the repo-map (repository pattern, MediatR, etc.). Be concrete — name the file and method, e.g. "AuthService.cs ValidateToken (~line 45) is what this story changes; tests live in AuthServiceTests.cs", not "the auth module might be affected."
  5. Produce technical notes in templates/technical-notes.md — a section per repo, plus Cross-Repo Considerations when more than one repo is involved.
  6. Present the notes and ask whether to post them as a comment. Iterate on the user's input (they know planned refactors and constraints the code doesn't show), then post per shared/provider-io.md. For local-markdown, notes are a comment by default; do not overwrite the story — if the user wants them persisted separately, offer a sibling <id>-technical-notes.md.

Read the full file on GitHub · 63 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 63 lines · 0 tokens per session scan A 5ad813628fad

Subscribe to this mod's changes

groom is a command published in the GitHub repository MostAshraf/ai-sdlc-harness (18 stars, last pushed 11d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 954 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.