ghm-id-register

ghm-id-register is a skill for Claude Code from mattgierhart/PRD-driven-context-engineering. It costs 52 tokens per session (1,626 once invoked), scanned A, original, MIT.

A system for assigning and checking IDs for business rules, user journeys, API contracts, and customer feedback. It keeps related entries linked and records them in the appropriate source-of-truth files.

In plain words
What is it for?
Use it when creating BR, UJ, API, or CFD entries and when you need their format, uniqueness, and cross-references checked.
Why use it?
It helps prevent duplicate IDs, invalid formats, and links to entries that do not exist.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths.

Good fit Use it when creating BR, UJ, API, or CFD entries and when you need their format, uniqueness, and cross-references checked.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mattgierhart/prd-driven-context-engineering/ghm-id-register
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mattgierhart/PRD-driven-context-engineering --skill ghm-id-register
Clone the repo
git clone --depth 1 https://github.com/mattgierhart/PRD-driven-context-engineering

Made for: Claude Code.

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 ghm-id-register

README.md
[![agentmods](https://agentmods.dev/badge/skills/mattgierhart/prd-driven-context-engineering/ghm-id-register/github.svg)](https://agentmods.dev/skills/mattgierhart/prd-driven-context-engineering/ghm-id-register)
Your own site
<a href="https://agentmods.dev/skills/mattgierhart/prd-driven-context-engineering/ghm-id-register"><img src="https://agentmods.dev/badge/skills/mattgierhart/prd-driven-context-engineering/ghm-id-register/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ghm-id-register

Your own site · 80×15
<a href="https://agentmods.dev/skills/mattgierhart/prd-driven-context-engineering/ghm-id-register"><img src="https://agentmods.dev/badge/skills/mattgierhart/prd-driven-context-engineering/ghm-id-register.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,626 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00052 $0.01626
Opus 5 $0.00026 $0.00813
Sonnet 5 $0.00010 $0.00325
Haiku 4.5 $0.00005 $0.00163

Measured 9d ago against content hash 81f6e2ce77fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ghm-id-register 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 9d 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.

.claude/skills/ghm-id-register/SKILL.md · 198 lines

How it starts

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

ID Register

Validate and register new Source of Truth IDs with cross-reference integrity checks.

Workflow Overview

  1. Validate Format → Check ID follows [PREFIX]-[3-digit] pattern
  2. Check Uniqueness → Ensure ID doesn't already exist
  3. Verify Cross-Refs → All referenced IDs must exist
  4. Register Entry → Add to appropriate SoT file

Core Output Template

Element Definition Evidence
ID Unique identifier BR-101, UJ-045, API-012
Title Short descriptive name Clear, specific
Cross-References Links to related IDs All referenced IDs exist
Status Current state Draft / Active / Deprecated

ID Format Reference

Prefix Domain File
BR- Business Rules SoT/SoT.BUSINESS_RULES.md
UJ- User Journeys SoT/SoT.USER_JOURNEYS.md
API- API Contracts SoT/SoT.API_CONTRACTS.md
CFD- Customer Feedback SoT/SoT.customer_feedback.md

Step 1: Validate Format

Check ID follows the pattern:

[PREFIX]-[XXX]

Where:

  • PREFIX = BR, UJ, API, or CFD
  • XXX = 3-digit number (zero-padded)

Checklist

  • Prefix is valid (BR, UJ, API, CFD)
  • Number is 3 digits
  • Format matches [A-Z]+-[0-9]{3}

Step 2: Check Uniqueness

  1. Read target SoT file
  2. Extract all existing IDs of same prefix
  3. Verify new ID doesn't exist
  4. If auto-assigning: use highest existing + 1

Checklist

  • Target SoT file read
  • Existing IDs enumerated
  • New ID is unique

Step 3: Verify Cross-References

For each ID referenced in the new entry:

  1. Identify the prefix
  2. Check that ID exists in its SoT file
  3. Flag any missing references

Checklist

  • All BR-XXX references exist in BUSINESS_RULES
  • All UJ-XXX references exist in USER_JOURNEYS
  • All API-XXX references exist in API_CONTRACTS
  • All CFD-XXX references exist in CUSTOMER_FEEDBACK
  • Each cross-reference includes a relationship type (see references/cross-reference-patterns.md)
  • Relationship types match the directional hierarchy (vertical types for cross-layer, lateral types for same-layer)

Read the full file on GitHub · 198 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 198 lines · 52 tokens per session scan A 81f6e2ce77fa

Subscribe to this mod's changes

ghm-id-register is a skill published in the GitHub repository mattgierhart/PRD-driven-context-engineering (182 stars, last pushed 9d ago), licensed MIT. It adds 52 tokens to every session and 1,626 once invoked, about $0.0003 per session on Opus 5. 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.