
blueprint-plugin
Blueprint plugin that drives PRD-to-PRP development with versioned rules, CLAUDE.md sync, and monorepo tracking.
- version
- 3.52.0
- GitHub stars
- 60
What it does
- Adds 36
blueprint-*skills covering init, derive, PRP create and execute, work orders, ADR listing and validation, and status - Covers the flow from PRD to PRP to work order to implementation, with derive commands for existing git history and code
- Enforces traceable IDs through
blueprint-sync-ids, feature tracking, and frontmatter validation on documents and rules - Designed for teams running documentation-first development, from solo repos to monorepos with child workspaces
Blueprint Development methodology - PRD/PRP workflow with version tracking, modular rules, CLAUDE.md management, and monorepo portfolio tracking
Add marketplace
/plugin marketplace add laurigates/claude-pluginsRun it inside Claude Code once, then install the plugin below.
Install
/plugin install blueprint-plugin@laurigates-claude-pluginsRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceADR Relationship Management
Provides logic for domain analysis, conflict detection, and relationship tracking in Architecture Decision Records.
When to Use This Skill
| Use this skill when... | Use blueprint-adr-validate instead when... |
|---|---|
| You need domain tagging logic for grouping related ADRs | You're running a one-shot ADR validation report |
| You need conflict detection between ADRs in the same domain | You're auditing all ADRs before a release |
| You need bidirectional relationship validation between ADRs | Use blueprint-adr-list instead when you only need a flat ADR index |
| You're authoring a new ADR and want to find related decisions | Use blueprint-derive-plans instead when generating ADRs from existing code |
Core Capabilities
- Domain Analysis: Scope ADRs by domain tag to find related decisions
- Conflict Detection: Surface potential conflicts in same domain
- Relationship Validation: Ensure bidirectional consistency
- Orphan Detection: Find ADRs with broken references
Standard Domains
| Domain | Covers |
|---|---|
state-management | Redux, Zustand, MobX, Context, signals |
data-layer | Database choice, ORM, caching strategies |
api-design | REST, GraphQL, tRPC, versioning |
authentication | Auth providers, session handling, tokens |
testing | Test frameworks, strategies, coverage |
deployment | CI/CD, containers, serverless, hosting |
frontend-framework | React, Vue, Svelte, Angular |
styling | Tailwind, CSS-in-JS, SCSS, design tokens |
build-tooling | Bundlers, compilers, dev servers |
monitoring | Logging, metrics, error tracking |
Frontmatter Format
---
date: 2026-01-15
status: Accepted | Superseded | Deprecated | Proposed
domain: state-management
supersedes: ADR-0003
superseded-by: ADR-0012 # Set when superseded
extends: ADR-0005
related:
- ADR-0002
- ADR-0007
---
Conflict Detection Logic
Pre-Creation Analysis
When creating a new ADR with a domain:
- Scan
docs/adrs/*.mdfor matchingdomain:field - For each match with status "Accepted", extract:
- ADR number and title
- Key decision outcome
- Calculate conflict score
Conflict Scoring
| Indicator | Weight | Description |
|---|---|---|
| Same domain | +0.3 | Both decisions in same domain |
| Both "Accepted" | +0.2 | Neither has been superseded |
| Opposite outcomes | +0.4 | Decisions recommend different solutions |
| Time gap > 6 months | +0.1 | Older decision may be stale |
Threshold: Score >= 0.7 indicates potential conflict requiring user decision.
Relationship Types
| Relationship | When to Use | Example |
|---|---|---|
supersedes | New decision replaces old | "Use Zustand" supersedes "Use Redux" |
extends | New decision builds on old | "Add persistence" extends "Use Zustand" |
related | Decisions are connected | "Use TypeScript" related to "Use Vite" |
Domain Inference
Map discussion topics to domains:
| Topic Keywords | Inferred Domain |
|---|---|
| Redux, Zustand, MobX, useState, signals | state-management |
| Prisma, Drizzle, PostgreSQL, MongoDB, ORM | data-layer |
| REST, GraphQL, tRPC, OpenAPI, endpoints | api-design |
| OAuth, JWT, auth0, session, tokens | authentication |
| Vitest, Jest, Playwright, Cypress, coverage | testing |
| Tailwind, styled-components, CSS modules | styling |
| React, Vue, Svelte, Next.js, Nuxt | frontend-framework |
| Vite, Webpack, esbuild, turbopack | build-tooling |
| Docker, Kubernetes, Vercel, serverless | deployment |
| Sentry, DataDog, logging, metrics | monitoring |
Validation Rules
Reference Integrity
| Check | Validation |
|---|---|
supersedes target exists | ADR file must exist |
supersedes target status | Must be "Superseded" with superseded-by set |
extends target exists | ADR file must exist |
extends target not superseded | Warning if extending outdated decision |
related targets exist | All referenced ADRs must exist |
| No self-reference | ADR cannot reference itself |
| No circular supersedes | A->B->A is invalid |
Bidirectional Consistency
When ADR-A supersedes ADR-B:
- ADR-A:
supersedes: ADR-B - ADR-B:
superseded-by: ADR-A,status: Superseded
Commands
Find ADRs by domain
grep -l "^domain: state-management" docs/adrs/*.md
Extract ADR metadata
for f in docs/adrs/*.md; do
echo "=== $f ==="
head -20 "$f" | grep -E "^(date|status|domain|supersedes|extends|related):"
done
Find potential conflicts
# Count Accepted ADRs per domain
grep -h "^domain:" docs/adrs/*.md | sort | uniq -c | while read count domain; do
if [ "$count" -gt 1 ]; then
echo "Potential conflict in $domain: $count Accepted ADRs"
fi
done
Validate references
# Check all supersedes references
grep -h "^supersedes: ADR-" docs/adrs/*.md | cut -d' ' -f2 | while read ref; do
num="${ref#ADR-}"
ls docs/adrs/*-"$num"-*.md 2>/dev/null || echo "Missing: $ref"
done
Quick Reference
| Operation | Pattern |
|---|---|
| Find by domain | grep -l "^domain: X" docs/adrs/*.md |
| List all domains | grep -h "^domain:" docs/adrs/*.md | sort -u |
| Find superseded | grep -l "^status: Superseded" docs/adrs/*.md |
| Check references | Parse frontmatter, verify targets exist |
| Detect conflicts | Multiple Accepted in same domain |
Integration Points
/blueprint:derive-plans: Pre-creation conflict analysis/blueprint:adr-validate: Full validation report/blueprint:status: ADR health summary- document-detection skill: Domain inference for auto-detected ADRs
Readme
Blueprint Plugin
Blueprint Development methodology for Claude Code - structured feature development with PRDs, PRPs, and work-orders.
Flow
See docs/flow.md for a diagram of how the skills fit together.
See docs/behavioral-cue-registry.md for the registry of all behavioral-cue hooks (events, matchers, channels, dedup keys) mandated by ADR-0017.
Overview
This plugin provides a documentation-first development workflow:
PRD (Product Requirements) → PRP (Product Requirement Prompt) → Work-Order → Implementation
Skills
Core Skills
| Skill | Description |
|---|---|
blueprint-development | Core methodology for generating project-specific skills and commands from PRDs |
confidence-scoring | Assess quality of PRPs and work-orders for execution readiness |
feature-tracking | Track implementation status against requirements with hierarchical FR codes |
document-linking | Unified ID system connecting PRDs, ADRs, PRPs, work-orders, and GitHub issues |
Derive Skills
| Skill | Description |
|---|---|
blueprint-init | Initialize Blueprint Development structure in a project |
blueprint-derive-plans | Derive PRDs, ADRs, and PRPs from git history and existing code |
blueprint-derive-rules | Derive rules from git commit decisions (newer overrides older) |
blueprint-derive-tests | Derive test regression plans from git history by identifying untested fix/feature commits |
Workflow Skills
| Skill | Description |
|---|---|
blueprint-generate-rules | Generate project-specific rules from PRDs |
blueprint-work-order | Create work-order with minimal context for subagent execution |
blueprint-prp-create | Create a PRP with systematic research and validation gates |
blueprint-prp-execute | Execute a PRP with validation loop, TDD workflow, and quality gates |
blueprint-curate-docs | Research a library's gotchas from its official docs into a .claude/rules/lib-<name>.md entry (or a codebase pattern into its own rule) for PRP reuse |
blueprint-adr-validate | Validate ADR cross-references, detect domain conflicts, and update superseded ADRs |
blueprint-promote | Promote a child workspace's status into the root monorepo's portfolio tracker |
blueprint-sync | Sync generated rules / CLAUDE.md back from PRDs after edits |
blueprint-story-audit | Read-only audit fusing capability map ↔ PRD stories ↔ tests into a tier-ranked gap report. Writes docs/blueprint/audits/<date>-story-audit.md |
blueprint-story-reconcile | PRD-only reconciliation pass against the latest story-audit. Adds ⚠️/❌/🆕 markers and a wholesale ## Known Drift section; confirms each PRD interactively |
Listing Skills
| Skill | Description |
|---|---|
blueprint-adr-list | List all ADRs with title, status, date, and domain |
blueprint-docs-list | List blueprint documents (ADRs, PRDs, PRPs) with metadata |
Management Skills
| Skill | Description |
|---|---|
blueprint-execute | Smart meta command - Analyzes repository state and executes the next logical blueprint action (idempotent) |
blueprint-autopilot | Level-2 ambient executor (ADR-0020) - Runs due agent-judgment maintenance tasks quietly and drafts work-order-draft proposal issues; no menus, one-line receipt |
blueprint-autonomy-level3 | Level-3 scaffold (ADR-0020) - Installs the out-of-band pipeline into a consumer repo: scheduled blueprint-autorun + label-triggered blueprint-wo-execute workflows (gated, budgeted, independently verified, injection-safe) |
blueprint-status | Show blueprint version, configuration, and traceability report |
blueprint-upgrade | Upgrade to latest blueprint format |
blueprint-rules | Add, edit, list, or validate rule files in .claude/rules/ and their paths: glob frontmatter |
blueprint-claude-md | Generate or update CLAUDE.md and CLAUDE.local.md from blueprint artifacts, moving inline content to @imports |
blueprint-sync-ids | Assign IDs to all documents, build traceability registry |
blueprint-workspace-scan | Discover child blueprints in a monorepo and refresh the root's workspaces.children registry with cached feature-tracker stats |
blueprint-docs-currency | Advisory discipline for same-commit landing of code and its docs (API, format specs, error enums, milestone status, ADRs); research-promotion workflow from tmp/ to docs/; bounded dependency sweep (scripts/docs-dependency-sweep.sh) naming the docs a staged change may invalidate, capped at CANDIDATE_CAP files |
Feature Tracking Skills
| Skill | Description |
|---|---|
blueprint-feature-tracker-status | Display feature completion statistics |
blueprint-feature-tracker-sync | Synchronize tracker with TODO.md, generate progress summary |
Workflow
Smart Mode: Using /blueprint:execute
The easiest way to use Blueprint Development is with the idempotent meta command:
/blueprint:execute
This command:
- ✅ Analyzes current repository state
- ✅ Determines what needs to happen next
- ✅ Executes the appropriate action automatically
- ✅ Safe to run anytime - idempotent and smart
Perfect for:
- Morning start routine (figures out where you left off)
- After pulling changes (checks for stale content, upgrades)
- When stuck or unsure (always knows what to do next)
- Periodic check-ins (shows progress, suggests next work)
The command automatically handles:
- Initialization (if not set up)
- Upgrades (when available)
- Stale content detection and regeneration
- PRP execution (when ready)
- Work-order execution (when pending)
- Feature tracking sync
- Status and next steps (when caught up)
Example usage:
# First time in a project
/blueprint:execute # → Runs /blueprint:init
# After creating PRDs
/blueprint:execute # → Runs /blueprint:generate-rules
# When PRPs are ready
/blueprint:execute # → Prompts to execute PRPs
# When everything is current
/blueprint:execute # → Shows status and options
Manual Mode: Step-by-Step Workflow
You can also run individual commands directly when you know exactly what you want:
1. Initialize Blueprint Development
/blueprint:init
Creates the directory structure:
docs/
├── blueprint/
│ ├── manifest.json # Blueprint configuration
│ ├── feature-tracker.json # Progress tracking (optional)
│ └── work-orders/ # Task packages for subagents
│ ├── completed/
│ └── archived/
├── prds/ # Product Requirements Documents
├── adrs/ # Architecture Decision Records
└── prps/ # Product Requirement Prompts
2. Derive Documentation
For existing projects, derive documentation from codebase:
/blueprint:derive-plans # Derive PRDs, ADRs, and PRPs from git history and docs
These commands analyze existing documentation and code patterns, asking clarifying questions to fill gaps.
For established projects with git history, use the comprehensive derive command:
/blueprint:derive-plans # Derive PRDs, ADRs, and PRPs from git history
This command:
- Analyzes git commit history (conventional commits, scopes, issue references)
- Extracts features from grouped commits
- Identifies architecture decisions from technology changes
- Suggests future work from TODOs and open issues
- Generates all documentation with confidence scores
For identifying untested bug fixes and generating a test backlog:
/blueprint:derive-tests # Derive test regression plans from git history
This command:
- Identifies
fix:andfeat:commits lacking corresponding test changes - Classifies coverage gaps by severity (Critical/High/Medium/Low)
- Generates a TRP (Test Regression Plan) document in
docs/trps/ - Suggests prioritized test creation order
For deriving rules from significant commit decisions:
/blueprint:derive-rules # Derive rules from git commit log decisions
This command:
- Scans git commits for significant decisions and patterns
- Generates Claude rules from commit-evident decisions
- Newer commits override older ones when conflicts exist
- Links rules to source commits for traceability
3. Write or Refine PRDs
Create or refine PRDs in docs/prds/ documenting:
- Feature requirements and user stories
- Technical decisions and architecture
- TDD requirements and test strategies
- Success criteria and quality standards
4. Generate Project Rules
/blueprint:generate-rules
Extracts patterns from PRDs and generates project-specific rules:
- Architecture patterns
- Testing strategies
- Implementation guides
- Quality standards
5. Create Work-Orders
/blueprint:work-order
Generates isolated task packages with minimal context for subagent execution.
6. Execute with TDD
/blueprint:prp-execute
Runs the implementation with RED → GREEN → REFACTOR workflow.
Document Traceability
All blueprint documents are connected through a unified ID system, enabling full traceability from requirements to implementation.
ID Formats
| Document | Format | Example |
|---|---|---|
| PRD | PRD-NNN | PRD-001 |
| ADR | ADR-NNNN | ADR-0003 |
| PRP | PRP-NNN | PRP-007 |
| Work-Order | WO-NNN | WO-042 |
| TRP | TRP-NNN | TRP-001 |
Automatic ID Assignment
IDs are automatically generated when:
- Creating documents via
/blueprint:derive-plans,/blueprint:prp-create - Running
/blueprint:sync-idsto batch-assign IDs to existing documents - Accessing documents without IDs (auto-assigned on first access)
A new PRD, PRP or TRP number is max(id_registry.last_<kind>, highest id of
that kind on disk) + 1, from scripts/blueprint-next-id.sh --kind PRD|PRP|TRP.
The counter alone could reissue the id of a document that arrived through
git pull before the registry saw it.
Cross-Linking
Documents link to each other via frontmatter:
---
id: PRP-002
implements:
- PRD-001
relates-to:
- ADR-0003
github-issues:
- 42
---
GitHub Integration
| Artifact | Format |
|---|---|
| Issue title | [PRD-001] Feature name |
| Commit scope | feat(PRD-001): description |
| PR reference | Implements PRD-001, Fixes #42 |
Traceability Report
Run /blueprint:status to see:
- Documents with/without IDs
- Documents linked to GitHub issues
- Orphan documents (no issues)
- Orphan issues (no linked docs)
- Broken links
Sync IDs
/blueprint:sync-ids # Assign IDs to all documents
/blueprint:sync-ids --dry-run # Preview changes
/blueprint:sync-ids --link-issues # Also create GitHub issues for orphans
Automation (Autonomy Levels)
Blueprint operations can run ambiently instead of user-initiated, governed by
the manifest automation block (format 3.4.0, ADR-0020 in claude-plugins):
"automation": {
"autonomy_level": 0,
"interaction_mode": "normal",
"work_orders": { "auto_draft": false, "auto_execute": false }
}
| Level | Name | What runs automatically |
|---|---|---|
| 0 | manual | Nothing — today's fully interactive behavior (default; a missing block ≡ 0) |
| 1 | ambient bookkeeping | scripts/blueprint-autorun.sh executes deterministic due tasks (the sync-ids id-registry sweep) via the SessionStart probe; due agent-judgment tasks surface as drift-aggregator findings |
| 2 | quiet autopilot | + due agent-judgment tasks run in-session; interaction_mode defaults to quiet; work-order drafts may be filed when work_orders.auto_draft is true |
| 3 | scheduled pipeline | Reserved (out-of-band scheduled runs + approved work-order execution; not yet implemented) |
The runner implements the task_registry auto_run/schedule contract:
an agent-judgment task is due only when enabled: true and auto_run: true and its schedule interval has elapsed since last_completed_at.
on-change tasks are event-driven (PostToolUse hooks). A deterministic task
(sync-ids) is reconciled on every run whatever its schedule, because the
on-change signal misses edits made outside Claude Code and Bash edits outside
the recorded change list. The runner writes no task_registry run state
(ADR-0027): a reconcile that changes nothing leaves the manifest
byte-identical, and one that registers a document changes only id_registry.
The sweep and the write-time hook call one engine,
blueprint-autorun.sh --registry-reconcile (ADR-0027 Q2/Q4, format 3.5.0). It
derives each entry's path, status, title, relates_to and github_issues from
frontmatter and keeps keys frontmatter does not carry (implements); takes
created from frontmatter or the existing entry, never the clock; prunes an
entry whose path exists but no longer carries its id, and never one whose path
is missing; rebuilds the github_issues reverse index; and raises
last_prd/last_prp/last_trp without ever lowering them. It writes only
when id_registry differs, under an mkdir lock, through a per-PID temp file.
--registry-reconcile --check writes nothing and exits 1 when the committed
registry is stale. The engine reads all
frontmatter in one awk pass and reconciles it in one jq call. That pass is
blueprint-autorun.sh --frontmatter-rows, the one frontmatter parser the
write-time hook, the sweep and the /blueprint:sync-ids audit share: it reads
inline comments, quotes, CRLF files and relates-to/github-issues lists the
way yaml.safe_load does. The sweep fits the
probe's 5 s SessionStart hook timeout; a run the timeout kills is reported in
the next session as an autorun_incomplete finding (remediation
/blueprint:sync-ids). The session whose run wrote the manifest gets a
registry_reconciled finding (remediation: commit
docs/blueprint/manifest.json), and a failed task gets autorun_task_error;
both come only from the run itself, never from the probe's TTL cache. on-demand tasks never auto-run. At every level, ambient automation may at most draft work-order
proposals (GitHub issues labeled work-order-draft); promotion is a separate,
reviewed /blueprint:work-order --from-issue N run. /blueprint:work-order and
/blueprint:prp-execute are model-invocable (ADR-0024), so a user can also
ask the agent to create a work order or execute a PRP directly.
# Dry-run the due-ness computation (no execution, no writeback)
bash <plugin-root>/scripts/blueprint-autorun.sh --report
# One \037-separated row per file: path, has_frontmatter, id, status, title,
# created, relates_to, github_issues
bash <plugin-root>/scripts/blueprint-autorun.sh --frontmatter-rows docs/adrs/*.md
# Kill levels 1-2 locally regardless of manifest
export BLUEPRINT_AUTORUN_DISABLE=1
# Tune the SessionStart probe debounce (seconds, default 3600)
export BLUEPRINT_AUTORUN_TTL=7200
Document Schemas
ADR, PRD and PRP structure is described once, in schemas/<kind>.schema.json.
Before the reconciliation each type had two descriptions — a schema in
schemas/, and a hand-rolled field list in a bash hook — and they had drifted:
the ADR schema spelled the back-reference superseded_by while the hook read
superseded-by, so the "Superseded needs a replacement" check never fired once.
| Schema | Required frontmatter | Required sections |
|---|---|---|
adr.schema.json | id (ADR-NNN or ADR-NNNN, three or more digits), status, created, modified | Context, Decision, Consequences — ADR-0023 dropped Options Considered and Related ADRs to optional. New ADRs get them from the five-section templates/adr-template.md, which /blueprint:derive-plans writes from; no gate enforces them (/blueprint:adr-validate checks relationships and numbering, not sections) |
prd.schema.json | id (PRD-NNN), status, created, modified | none — the template governs structure |
prp.schema.json | id (PRP-NNN), status, created, modified, reviewed, confidence, domain | Context Framing, AI Documentation, Implementation Blueprint, Test Strategy, Validation Gates, Success Criteria |
scripts/check-schema.py is the one engine. It projects a markdown document
into {frontmatter, sections} so section requirements live in the schema too,
rather than in a grep loop, and validates plain JSON (the feature tracker) with
--json-file. hooks/validate-frontmatter.sh is its one caller, used by the
PostToolUse dispatcher and the blueprint-doc-schemas pre-commit hook, and
declares no field list; scripts/tests/test-check-schema.sh fails the build if
one reappears.
Frontmatter must start at line 1. The pre-reconciliation extraction accepted
a --- block anywhere in the file, and every ADR in this repo put its metadata
below the H1 — where no standard YAML parser looks.
Severity is declared in the schema, not in the hook. A subschema carrying
"x-blueprint-severity": "warning" downgrades its failures to a non-blocking
finding, and its title becomes the message. Used for the things that should
nudge rather than block (.claude/rules/hook-block-vs-nudge.md):
| Finding | Severity | Why |
|---|---|---|
Unknown status, bad id pattern, missing required field, no line-1 frontmatter | ERROR (blocks) | The document is malformed or unparseable |
Missing ## section | WARN | Blocking an edit until someone back-writes a section the ADR never had is hostile. ADR-0023 narrowed the required set to the three load-bearing sections, taking the corpus from 45 section warnings to 5; the other two come from templates/adr-template.md, not from any check |
Superseded with no superseded-by | WARN | A decision can be marked superseded before its replacement is numbered |
Deprecated spelling (superseded_by, status: completed) | WARN | Named so it can be migrated, accepted so downstream documents keep validating |
reviewed older than x-blueprint-staleness-days | WARN | Staleness is a fact about time, not a defect in the document |
Edit is validated too: the payload carries old_string/new_string rather
than content, so the validator reconstructs the resulting document from the
file on disk. The old hooks read .tool_input.content unconditionally, so every
Edit to a PRD/ADR/PRP skipped validation entirely while exiting 0.
Manifest Validation
docs/blueprint/manifest.json is the control surface every skill reads, and
every consumer degrades gracefully on bad input — which is correct at runtime
but makes a typo indistinguishable from an intentional omission:
autonomy_levle: 3 reads as level 0, adr_dris: [...] reads as unconfigured.
schemas/manifest.schema.json closes that gap.
/blueprint:status runs it as part of its read-only report:
uv run --quiet --script <plugin-root>/scripts/check-manifest-schema.py --project-dir .
Closed (additionalProperties: false) | Open |
|---|---|
root, project, structure, feature_tracker, automation (+work_orders), validation (+status_vocabulary), id_registry, workspaces, generated (bucket names) | task_registry and its entries, custom_overrides, created_by, the generated / id_registry.documents / github_issues maps, upgrade_history entries |
Closed blocks have a key set this plugin owns, so an unknown key is a typo.
Open blocks hold user or registry data (task names, filenames, document ids,
issue numbers) whose keys legitimately vary — closing them would fail valid
manifests. Unknown keys aside, typed values are enforced everywhere:
autonomy_level ∈ 0–3, interaction_mode ∈ quiet/normal/interactive,
claude_md_mode ∈ single/modular/both, and the validation.* fields must be
arrays of strings.
The check is a diagnostic, never a gate: no manifest, a format_version older
than the schema's (WARN → run /blueprint:upgrade), or a missing
uv/jsonschema all exit 0 without claiming the manifest is clean. Run under
plain python3 without jsonschema, the script re-execs itself through
uv run --with jsonschema; with no uv either it reports STATUS=WARN and
REASON=no_validator, never STATUS=OK (#3177). The manifest path may be
given positionally as well as with --manifest.
Generated-Rules Registry
Two skills write into the generated-rules directory: /blueprint:init (Step 8 —
development.md, testing.md, document-management.md) and
/blueprint:generate-rules (Step 5 — the four PRD-derived domain rules).
/blueprint:sync and the SessionStart drift probe detect staleness by comparing
a registered record's content_hash against the file on disk, so a rule
written but never registered is invisible to both — the failure is silent, and
sync reports clean over a set it cannot see (issue #2331).
Both producers therefore call one writer:
bash <plugin-root>/scripts/register-generated-rules.sh \
--source blueprint-init \
development.md testing.md
The recorded plugin_version, like the manifest's created_by.blueprint_plugin,
is the plugin version from plugin.json, read at run time — not the blueprint
format version (#2950). Without --plugin-version the script reads its own
plugin.json, so a skill's call carries no $(…), which would void the skill's
pre-approved grant for the script (#3640).
The contract every site must agree on:
| Aspect | Value | Why |
|---|---|---|
| Shape | generated.rules is an object map, filename → generatedRecord | schemas/manifest.schema.json; consumers iterate to_entries[], never [] |
| Key | bare filename relative to structure.generated_rules_path, including .md (development.md) | relative survives a generated_rules_path change; the extension is the form generate-rules already shipped, so no manifest needs migrating |
| Resolution | "$RULES_DIR/$key" | appending .md yields development.md.md, so every registered rule reads as missing |
| Hash | bare lowercase hex sha256, no sha256: prefix | both readers compare raw sha256sum / shasum -a 256 output |
scripts/check-generated-rules-registration.sh pins the contract across
blueprint-init, blueprint-generate-rules, blueprint-sync,
blueprint-promote and hooks/blueprint-drift-probe.sh. Because the defect it
guards is a missing write, each rule is a concept with several accepted
spellings: removing the registration substep fails, re-wording it does not.
Feature Tracking (Optional)
Track implementation progress against requirements documents using hierarchical FR codes.
Enable During Init
Feature tracking can be enabled during /blueprint:init. When enabled, it creates:
docs/blueprint/feature-tracker.json- Main tracker file
Feature Tracker Structure
The tracker uses hierarchical FR codes mapped to your requirements:
{
"features": {
"FR1": {
"name": "Game Setup",
"features": {
"FR1.1": { "name": "Window Config", "status": "complete" },
"FR1.2": { "name": "Mode Selection", "status": "in_progress" }
}
}
},
"statistics": {
"total_features": 42,
"complete": 22,
"completion_percentage": 52.4
}
}
Status Values
not_started- No implementationin_progress- Active workpartial- Some sub-features completecomplete- Fully implementedblocked- Missing dependencies
Sync Targets
The tracker syncs with:
TODO.md- Checkbox states
Use --summary flag to generate a human-readable progress report:
/blueprint:feature-tracker-sync --summary
Quick Commands
# View statistics
jq '.statistics' docs/blueprint/feature-tracker.json
# List incomplete features
jq '.. | objects | select(.status == "not_started") | .name' docs/blueprint/feature-tracker.json
# Show PRD status
jq '.prds | to_entries | .[] | "\(.key): \(.value.status)"' docs/blueprint/feature-tracker.json
Monorepo Support (v3.3)
Blueprint 3.3 adds first-class monorepo support so a repo-root blueprint can act as a portfolio index over child workspaces (per-project blueprints in subdirectories).
Roles
Each manifest declares a workspaces.role:
| Role | Written by | Meaning |
|---|---|---|
root | top-level manifest in a monorepo | Owns workspaces.children[] registry |
child | a blueprint under an ancestor root | Carries root_relative_path back to root |
| (absent) | standalone project | No monorepo block; existing 3.2 behaviour |
Portfolio Feature Tracking
Root feature-tracker.json can link portfolio FRs down to child FRs:
"features": {
"FR1.1": {
"name": "Motion-reactive lighting",
"status": "partial",
"phase": "phase-1",
"implemented_by": [
{ "workspace": "projects/esp32-lamp", "ref": "FR3.2" },
{ "workspace": "projects/pir-bridge", "ref": "FR1" }
]
}
}
/blueprint:feature-tracker-sync at the root reads each child's tracker and
derives the root status from the linked children (all complete → complete,
any blocked → blocked, any in_progress/mixed → partial, all not_started →
not_started).
Cross-Workspace References
IDs remain per-workspace. Cross-workspace references use these forms:
| Form | Meaning |
|---|---|
ADR-NNN | Local to the current workspace |
projects/foo/ADR-NNN | Sibling/child workspace (path relative to the root) |
/ADR-NNN | The monorepo root's ID space |
/blueprint:adr-validate resolves these forms and flags unresolved ones as
warnings.
Discovery
/blueprint:workspace-scan walks the filesystem, finds every
docs/blueprint/manifest.json under the root, and refreshes
workspaces.children with cached rollup stats. It also runs automatically at
the top of /blueprint:status and /blueprint:feature-tracker-sync when the
active manifest has workspaces.role == "root".
Migration
Existing 3.2 projects migrate with /blueprint:upgrade. The v3.2→v3.3
migration is purely additive: it only adds the workspaces block (or omits
it for standalone projects) and bumps format_version. Nothing is moved,
renamed, or deleted.
Hooks
Document Hooks (command)
| Hook | Event | Matcher | Purpose |
|---|---|---|---|
blueprint-doc-change.sh | PostToolUse | Write|Edit|Bash | Dispatcher: once per tool call that changed (or deleted) a PRD/ADR/PRP/TRP/WO document, run the id-registry engine (blueprint-autorun.sh --registry-reconcile, every autonomy level); for every changed docs/** path, refresh the feature tracker (sync-feature-tracker.sh, autonomy ≥ 1), and schema-check PRD/ADR/PRP documents (validate-frontmatter.sh) |
check-prp-readiness.sh | PreToolUse | Skill | Blocks /blueprint:prp-execute on a PRP below confidence 7/10, with missing sections, or with broken references; every other skill passes |
Why one dispatcher. A hook matcher is tested against the tool name
only. The former Write(docs/adrs/**)-style matchers were invalid regular
expressions that never fired, so none of these hooks had ever run; and a
Write|Edit hook never sees an edit made through Bash, which is how Claude
Code edits files in auto mode. The dispatcher reads the changed paths from
either payload — tool_input.file_path for Write/Edit, or
tool_response.bashEditDiff.changedFiles for Bash (Claude Code 2.1.269+,
best-effort) — and filters them itself. scripts/check-hook-matchers.sh keeps
permission-rule syntax out of every plugin's matchers.
Schema checks warn; the commit gate is pre-commit. A schema ERROR in a
document just written comes back to Claude as PostToolUse additionalContext.
It does not block: the edit has already happened, and a PreToolUse block never
sees a Bash edit. The blueprint-doc-schemas hook in this repository's
.pre-commit-hooks.yaml fails the commit instead. Add it to a consumer repo's
.pre-commit-config.yaml (it needs uv on PATH, and fails rather than pass
when uv is missing):
- repo: https://github.com/laurigates/claude-plugins
rev: blueprint-plugin-vX.Y.Z
hooks:
- id: blueprint-doc-schemas
pre-commit checks only the staged files, so a repository whose existing
documents predate the schemas fails on the first commit that touches each one.
Run pre-commit run blueprint-doc-schemas --all-files before adopting it to
see the backlog.
Misses are reconciled at session start. The Bash change list can miss a
file (git-ignored paths are never listed, and other permission modes record it
only with bashEditDiffEnabled). At automation.autonomy_level ≥ 1 the
SessionStart autorun re-registers every document, writing the manifest only
when the registry actually changed.
The former PRP content-quality agent hook is gone. It was registered on
Skill(prp-execute) and never ran; on the bare Skill matcher it would start an
agent for every skill call, and a hook if condition does not match Skill
specifiers. The evaluation now runs inside /blueprint:prp-execute itself: Step 1
dispatches a fresh reader that sees only the PRP and judges specific
requirements, testable acceptance criteria, edge cases and bounded scope, and a
failed verdict stops execution (#3002).
Behavioral Cues (command)
| Hook | Event | Target | Purpose |
|---|---|---|---|
blueprint-structural-cue.sh | PostToolUse | Write / Edit | Once-per-session cue to check blueprint context after an architecture-affecting edit |
Implements the first worked example from ADR-0017. When an Edit/Write touches a plugin/marketplace manifest or adds a public-API (export/pub) line, the hook emits a one-line cue suggesting /blueprint:derive-plans or /blueprint:adr-validate. It names only the tasks the project's docs/blueprint/manifest.json has not disabled (task_registry.<task>.enabled: false), and stays silent when both are disabled; with no manifest, or one it cannot parse, it names both (issue #3648). It is a cue, not a gate: the edit has already happened, and to bound transcript-replay cost it fires at most once per session (keyed on ~/.cache/blueprint-structural-cue/<session_id>). Edits under docs/adrs/** and docs/prds/** are excluded — the document hooks above already cover those. Active by default; set BLUEPRINT_SKIP_HOOKS=1 to disable.
Scope of the code-shaped signals (issue #2336). The payload-grep signals (export lines, TS export interface/type, exported Go/Rust types, route registration) apply only to source-code extensions — js jsx mjs cjs ts tsx mts cts rs py pyi go. Without that guard they fired on prose: an English sentence containing "export " tripped the public-API cue in a Markdown file, and ^[+[:space:]]*pub matches a list item beginning with the word "pub". The path/basename signals (manifests, *.proto, *.graphql, schema.prisma, openapi.*) stay extension-free — they identify themselves. The hook also exits early for files in the harness's per-session scratch tree (/tmp/claude-*/…, /private/tmp/claude-*/…, /var/folders/*/claude-*/…), where /blueprint:derive-plans can never be actionable; a plain /tmp/foo.ts still gets the cue.
Channel: {"decision":"block","reason":"[blueprint] …"} with "continueOnBlock": true on both hooks.json registrations, so the model receives the cue and the turn continues. This is the same channel code-quality-preflight-cue.sh uses for the same event. It previously used hookSpecificOutput.updatedToolOutput, which is the wrong mechanism here: that field is validated against the tool's own output shape, and Write/Edit's shape ({content, filePath, originalFile, structuredPatch, type, userModified}) has no free-text field — content is the file's actual content, so a cue banner there would make the model believe the banner was written to disk. Emitting a string instead was rejected outright and silently discarded, making the hook a no-op (issue #2275). The continueOnBlock flag is load-bearing: without it a decision:block would end the turn.
Regression test: hooks/test-blueprint-structural-cue.sh (run with bash blueprint-plugin/hooks/test-blueprint-structural-cue.sh, or via scripts/run-skill-script-tests.sh, which discovers it automatically). It replaces the former hooks/spec/blueprint_structural_cue_spec.sh — that ShellSpec suite pinned the broken output shape and was never executed by CI, pre-commit, or any recipe.
Manifest Merge Driver (SessionStart)
| Hook | Event | Matcher | Purpose |
|---|---|---|---|
register-merge-driver.sh | SessionStart | "" (all) | Registers scripts/merge-manifest.py as this clone's blueprint-manifest git merge driver, when .gitattributes opts in |
Tooling rewrites docs/blueprint/manifest.json on every run, so two branches
that each ran sync-ids conflict on a timestamp and a run counter. Git's line
merge cannot tell that from a real disagreement. scripts/merge-manifest.py
merges the parsed JSON instead:
- A value changed on one side only takes that change.
- Keys added on either side are kept, so registry entries union.
- When both sides ran a task,
last_completed_at,last_resultandstatsall come from the later run. - Other timestamps take the later value, and
last_*counters take the larger. - Anything else changed differently on both sides, such as one id registered for two different documents, is still a conflict. The file then gets git's ordinary conflict markers.
Opt a repository in by committing one line to .gitattributes:
docs/blueprint/manifest.json merge=blueprint-manifest
The driver's command lives in git config, which is never committed, so each
clone needs it registered. The hook does this at session start, only in a repo
whose .gitattributes declares the attribute, writing --local config that
linked worktrees share. It re-registers when the plugin's cached path changes,
and if the script disappears before then, the driver falls back to
git merge-file, so a merge never fails for a missing driver. Without the
plugin, a clone behaves as it did before: ordinary conflicts.
Regression test: scripts/tests/test-merge-manifest.sh. It merges through real
git merge and git stash pop, and runs the same merge with the driver
unregistered as a control.
Installation
/plugin install blueprint-plugin@laurigates-claude-plugins
License
MIT
Details
- Marketplace
- laurigates/claude-plugins
- Source
- blueprint-plugin
- Author
- Lauri Gates
- Category
- Development
- License
- MIT
- Keywords
- blueprint, prd, prp, requirements, methodology, version-tracking, modular-rules, monorepo, workspaces, portfolio-tracking
- Listed since
- Apr 7, 2026
More from laurigates/claude-plugins
All 52- cloud-pluginv1.1.1
- code-quality-pluginv1.30.4
- codebase-attributes-pluginv1.3.4
- comfyui-pluginv1.15.7
- communication-pluginv1.2.7
- component-patterns-pluginv1.5.4
- configure-pluginv1.43.12
- container-pluginv2.11.5
- css-pluginv1.2.4
- documentation-pluginv1.16.1
- evaluate-pluginv1.21.1
- feedback-pluginv1.16.3
- finops-pluginv1.4.7
- foundryvtt-pluginv1.6.4
- git-pluginv2.74.4
- github-actions-pluginv1.13.8
- health-pluginv1.24.9
- home-assistant-pluginv1.4.1
- hooks-pluginv2.22.3
- kernel-pluginv1.1.1
- kitty-pluginv2.0.0
- kubernetes-pluginv1.10.4
- langchain-pluginv1.5.10
- linux-pluginv1.1.1
Similar to blueprint-plugin
More Agent Workflow & Planning
project-pluginPluginlaurigates/claude-plugins60 starsProject initialization, management, and maintenance - setup, changelog review, and continuous development workflows
monorepoPluginTheBushidoCollective/han201 starsAdvanced monorepo development skills for architecture, tooling, and workflow management across multiple packages and projects.
monorepo-managementSkillsickn33/agentic-awesome-skills234 installsMonorepo management guidance for code sharing, tooling, atomic changes, builds, versioning, and CI across packages.
goal-workflow-skillsPluginsmallnest/goal-workflow302 starsPRD → SPEC → Issues → implement → review → ship, plus refactor, modernize, and diagram skills — an end-to-end AI development workflow for Claude Code.
prd-cePluginmattgierhart/PRD-driven-context-engineering179 starsPRD-CE methodology engine: scaffold (PRD/SoT/EPICs) + lifecycle skills + governance hooks + readiness scoring.