No slash command · from blueprint-plugin
Unified ID system for PRDs, ADRs, PRPs, and GitHub issues with bidirectional links. Auto-assigns IDs, validates cross-doc references, and finds orphan documents.
Ships in blueprint-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Provides a unified ID system connecting PRDs, ADRs, PRPs, work-orders, GitHub issues, commits, and PRs. IDs are project-scoped, auto-generated on first access, and maintained bidirectionally.
| Use this skill when... | Use blueprint-sync-ids instead when... |
|---|---|
| You need bidirectional links between PRD/ADR/PRP/issue at runtime | You're doing a one-shot bulk ID assignment for docs missing IDs |
| You're auto-assigning an ID on first document access | You want a --dry-run preview of bulk ID changes |
| You want to validate broken cross-document references | Use blueprint-adr-validate instead for ADR-only relationship checks |
| You need to find orphan docs/issues across the project | Use document-detection instead when capturing a brand-new doc |
| Document Type | Format | Example | Notes |
|---|---|---|---|
| PRD | PRD-NNN | PRD-001 | 3-digit, zero-padded |
| ADR | ADR-NNNN | ADR-0003 | 4-digit (matches existing convention) |
| PRP | PRP-NNN | PRP-007 | 3-digit, zero-padded |
| Work-Order | WO-NNN | WO-042 | 3-digit, matches work-order number |
All blueprint documents should include these fields:
---
id: PRD-001 # Unique identifier (auto-generated if missing)
relates-to: # Cross-document references (optional)
- ADR-0003
- PRP-002
github-issues: # Linked GitHub issues (optional)
- 42
- 87
implements: # For PRPs: source PRD (optional)
- PRD-001
# ... existing fields (created, modified, status, etc.)
---
IDs are tracked in docs/blueprint/manifest.json:
{
"id_registry": {
"last_prd": 3,
"last_prp": 7,
"documents": {
"PRD-001": {
"path": "docs/prds/user-authentication.md",
"github_issues": [42, 87],
"title": "User Authentication"
},
"ADR-0003": {
"path": "docs/adrs/0003-database-choice.md",
"github_issues": [],
"title": "Database Choice"
},
"PRP-002": {
"path": "docs/prps/oauth-integration.md",
"github_issues": [45],
"implements": ["PRD-001"],
"title": "OAuth Integration"
}
},
"github_issues": {
"42": ["PRD-001", "PRP-002"],
"45": ["PRP-002"],
"87": ["PRD-001"]
}
}
}
IDs are automatically generated when:
/blueprint:derive-plans, /blueprint:prp-create/blueprint:sync-ids assigns IDs to all documentsPRD, PRP and TRP ids come from one helper: max(id_registry.last_<kind>,
highest id of that kind on disk) + 1. The counter alone can hand out an id a
pulled or merged document already carries, because such a document may reach
neither the write-time hook nor the session-start sweep first.
# Next PRD / PRP / TRP id, e.g. PRD-004
bash "${CLAUDE_SKILL_DIR}/../../scripts/blueprint-next-id.sh" --kind PRD
bash "${CLAUDE_SKILL_DIR}/../../scripts/blueprint-next-id.sh" --kind PRP
bash "${CLAUDE_SKILL_DIR}/../../scripts/blueprint-next-id.sh" --kind TRP
# ADR IDs use existing 4-digit number from filename
get_adr_id() {
local filename="$1"
local num=$(basename "$filename" | grep -oE '^[0-9]{4}')
printf "ADR-%s" "$num"
}
When reading a document without an ID:
id field# Check if document has ID
ensure_document_id() {
local file="$1"
local type="$2" # PRD, ADR, PRP
# Extract existing ID from frontmatter
local existing_id=$(head -50 "$file" | grep -m1 "^id:" | sed 's/^id:[[:space:]]*//')
if [ -z "$existing_id" ]; then
# Generate and assign new ID
case "$type" in
# Run as its own command (a $(…) capture voids the script's grant):
# bash "${CLAUDE_SKILL_DIR}/../../scripts/blueprint-next-id.sh" --kind PRD
# then use the ID it prints as new_id.
PRD|PRP) new_id="<ID printed by blueprint-next-id.sh>" ;;
ADR) new_id=$(get_adr_id "$file") ;;
esac
# Insert ID into frontmatter (after first ---)
# Update manifest registry
# Return new ID
fi
echo "${existing_id:-$new_id}"
}
When creating GitHub issues from documents:
[PRD-001] User authentication feature
[PRP-002] Implement OAuth integration
[WO-042] Add JWT token generation
## Related Documents
- PRD-001: User Authentication
- ADR-0003: Database Choice
## Traceability
- **Implements**: PRD-001
- **Related ADRs**: ADR-0003, ADR-0005
- **Work Orders**: WO-042, WO-043
---
*Auto-linked by Blueprint. Update document frontmatter to modify links.*
feat(PRD-001): add login form component
Implements requirement FR-003 from PRD-001.
Related: ADR-0003 (session storage decision)
Title: [PRD-001] Implement user authentication
Body:
## Summary
Implements user authentication as specified in PRD-001.
## Related Documents
- PRD-001: User Authentication
- ADR-0003: Database Choice
- PRP-002: OAuth Integration
## Closes
- Fixes #42
- Fixes #87
Document → GitHub Issue
github-issues arrayDocument → Document
relates-to arrayrelates-to array (bidirectional)PRP → PRD (implements)
implements fieldimplemented-by tracking in manifestCheck for broken links during /blueprint:status:
# Validate all links in manifest
validate_links() {
local manifest="docs/blueprint/manifest.json"
# Check each document exists
jq -r '.id_registry.documents | to_entries[] | "\(.key) \(.value.path)"' "$manifest" | \
while read id path; do
if [ ! -f "$path" ]; then
echo "BROKEN: $id -> $path (file missing)"
fi
done
# Check GitHub issues exist (if gh available)
if command -v gh &>/dev/null; then
jq -r '.id_registry.github_issues | keys[]' "$manifest" | \
while read issue; do
if ! gh issue view "$issue" &>/dev/null; then
echo "BROKEN: GitHub issue #$issue (not found or closed)"
fi
done
fi
}
get_related (all documents linked to an ID) and get_implementation_chain (PRD → PRPs → work-orders → GitHub issues): references/traceability-queries.md.
find_orphan_documents (documents without GitHub issues) and find_orphan_issues (issues with no registry entry and no ID in the title): references/orphan-and-duplicate-detection.md.
Before creating a GitHub issue, run check_for_duplicates from references/orphan-and-duplicate-detection.md against registry titles and open issues.
After creating PRD:
PRD-NNN IDAfter creating ADR:
ADR-NNNN from filenameAfter creating PRP:
PRP-NNN IDimplements fieldAfter creating work-order:
WO-NNN IDShow traceability section:
Traceability:
- Documents: 15 total (3 PRDs, 5 ADRs, 7 PRPs)
- Linked to GitHub: 12/15 (80%)
- Orphan documents: 3 (PRD-002, ADR-0004, PRP-006)
- Orphan issues: 2 (#23, #45)
- Broken links: 0
| Operation | Command |
|---|---|
| Assign IDs to all docs | /blueprint:sync-ids |
| Link doc to issue | Update github-issues in frontmatter |
| Link doc to doc | Update relates-to in frontmatter |
| View traceability | /blueprint:status |
| Find orphans | /blueprint:status (included) |
| GitHub Format | Example |
|---|---|
| Issue title | [PRD-001] Feature name |
| Commit scope | feat(PRD-001): description |
| PR reference | Implements PRD-001, Fixes #42 |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub laurigates/claude-plugins --plugin blueprint-plugin35 skills in this plugin
/adr-relationshipsDomain analysis, conflict detection, and relationship validation for Architecture Decision Records. Use when creating or validating ADRs to ensure consistency./blueprint-adr-listList ADRs as a markdown table with title, status, date, domain. Use when generating an ADR index, auditing ADR status, or reviewing all architecture decisions./blueprint-adr-validateValidate ADR relationships, domain consistency, and duplicate ADR numbers. Use when auditing ADRs before release, finding broken supersedes/extends links, cycles, or number collisions.Other plugins' skills for the same job