New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Blueprint plugin that drives PRD-to-PRP development with versioned rules, CLAUDE.md sync, and monorepo tracking.

version
3.52.0
GitHub stars
60
View on GitHub

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-plugins

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install blueprint-plugin@laurigates-claude-plugins

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

ADR 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 ADRsYou're running a one-shot ADR validation report
You need conflict detection between ADRs in the same domainYou're auditing all ADRs before a release
You need bidirectional relationship validation between ADRsUse blueprint-adr-list instead when you only need a flat ADR index
You're authoring a new ADR and want to find related decisionsUse blueprint-derive-plans instead when generating ADRs from existing code

Core Capabilities

  1. Domain Analysis: Scope ADRs by domain tag to find related decisions
  2. Conflict Detection: Surface potential conflicts in same domain
  3. Relationship Validation: Ensure bidirectional consistency
  4. Orphan Detection: Find ADRs with broken references

Standard Domains

DomainCovers
state-managementRedux, Zustand, MobX, Context, signals
data-layerDatabase choice, ORM, caching strategies
api-designREST, GraphQL, tRPC, versioning
authenticationAuth providers, session handling, tokens
testingTest frameworks, strategies, coverage
deploymentCI/CD, containers, serverless, hosting
frontend-frameworkReact, Vue, Svelte, Angular
stylingTailwind, CSS-in-JS, SCSS, design tokens
build-toolingBundlers, compilers, dev servers
monitoringLogging, 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:

  1. Scan docs/adrs/*.md for matching domain: field
  2. For each match with status "Accepted", extract:
    • ADR number and title
    • Key decision outcome
  3. Calculate conflict score

Conflict Scoring

IndicatorWeightDescription
Same domain+0.3Both decisions in same domain
Both "Accepted"+0.2Neither has been superseded
Opposite outcomes+0.4Decisions recommend different solutions
Time gap > 6 months+0.1Older decision may be stale

Threshold: Score >= 0.7 indicates potential conflict requiring user decision.

Relationship Types

RelationshipWhen to UseExample
supersedesNew decision replaces old"Use Zustand" supersedes "Use Redux"
extendsNew decision builds on old"Add persistence" extends "Use Zustand"
relatedDecisions are connected"Use TypeScript" related to "Use Vite"

Domain Inference

Map discussion topics to domains:

Topic KeywordsInferred Domain
Redux, Zustand, MobX, useState, signalsstate-management
Prisma, Drizzle, PostgreSQL, MongoDB, ORMdata-layer
REST, GraphQL, tRPC, OpenAPI, endpointsapi-design
OAuth, JWT, auth0, session, tokensauthentication
Vitest, Jest, Playwright, Cypress, coveragetesting
Tailwind, styled-components, CSS modulesstyling
React, Vue, Svelte, Next.js, Nuxtfrontend-framework
Vite, Webpack, esbuild, turbopackbuild-tooling
Docker, Kubernetes, Vercel, serverlessdeployment
Sentry, DataDog, logging, metricsmonitoring

Validation Rules

Reference Integrity

CheckValidation
supersedes target existsADR file must exist
supersedes target statusMust be "Superseded" with superseded-by set
extends target existsADR file must exist
extends target not supersededWarning if extending outdated decision
related targets existAll referenced ADRs must exist
No self-referenceADR cannot reference itself
No circular supersedesA->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

OperationPattern
Find by domaingrep -l "^domain: X" docs/adrs/*.md
List all domainsgrep -h "^domain:" docs/adrs/*.md | sort -u
Find supersededgrep -l "^status: Superseded" docs/adrs/*.md
Check referencesParse frontmatter, verify targets exist
Detect conflictsMultiple 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

SkillDescription
blueprint-developmentCore methodology for generating project-specific skills and commands from PRDs
confidence-scoringAssess quality of PRPs and work-orders for execution readiness
feature-trackingTrack implementation status against requirements with hierarchical FR codes
document-linkingUnified ID system connecting PRDs, ADRs, PRPs, work-orders, and GitHub issues

Derive Skills

SkillDescription
blueprint-initInitialize Blueprint Development structure in a project
blueprint-derive-plansDerive PRDs, ADRs, and PRPs from git history and existing code
blueprint-derive-rulesDerive rules from git commit decisions (newer overrides older)
blueprint-derive-testsDerive test regression plans from git history by identifying untested fix/feature commits

Workflow Skills

SkillDescription
blueprint-generate-rulesGenerate project-specific rules from PRDs
blueprint-work-orderCreate work-order with minimal context for subagent execution
blueprint-prp-createCreate a PRP with systematic research and validation gates
blueprint-prp-executeExecute a PRP with validation loop, TDD workflow, and quality gates
blueprint-curate-docsResearch 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-validateValidate ADR cross-references, detect domain conflicts, and update superseded ADRs
blueprint-promotePromote a child workspace's status into the root monorepo's portfolio tracker
blueprint-syncSync generated rules / CLAUDE.md back from PRDs after edits
blueprint-story-auditRead-only audit fusing capability map ↔ PRD stories ↔ tests into a tier-ranked gap report. Writes docs/blueprint/audits/<date>-story-audit.md
blueprint-story-reconcilePRD-only reconciliation pass against the latest story-audit. Adds ⚠️/❌/🆕 markers and a wholesale ## Known Drift section; confirms each PRD interactively

Listing Skills

SkillDescription
blueprint-adr-listList all ADRs with title, status, date, and domain
blueprint-docs-listList blueprint documents (ADRs, PRDs, PRPs) with metadata

Management Skills

SkillDescription
blueprint-executeSmart meta command - Analyzes repository state and executes the next logical blueprint action (idempotent)
blueprint-autopilotLevel-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-level3Level-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-statusShow blueprint version, configuration, and traceability report
blueprint-upgradeUpgrade to latest blueprint format
blueprint-rulesAdd, edit, list, or validate rule files in .claude/rules/ and their paths: glob frontmatter
blueprint-claude-mdGenerate or update CLAUDE.md and CLAUDE.local.md from blueprint artifacts, moving inline content to @imports
blueprint-sync-idsAssign IDs to all documents, build traceability registry
blueprint-workspace-scanDiscover child blueprints in a monorepo and refresh the root's workspaces.children registry with cached feature-tracker stats
blueprint-docs-currencyAdvisory 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

SkillDescription
blueprint-feature-tracker-statusDisplay feature completion statistics
blueprint-feature-tracker-syncSynchronize 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:

  1. Initialization (if not set up)
  2. Upgrades (when available)
  3. Stale content detection and regeneration
  4. PRP execution (when ready)
  5. Work-order execution (when pending)
  6. Feature tracking sync
  7. 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: and feat: 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

DocumentFormatExample
PRDPRD-NNNPRD-001
ADRADR-NNNNADR-0003
PRPPRP-NNNPRP-007
Work-OrderWO-NNNWO-042
TRPTRP-NNNTRP-001

Automatic ID Assignment

IDs are automatically generated when:

  • Creating documents via /blueprint:derive-plans, /blueprint:prp-create
  • Running /blueprint:sync-ids to 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

ArtifactFormat
Issue title[PRD-001] Feature name
Commit scopefeat(PRD-001): description
PR referenceImplements 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 }
}
LevelNameWhat runs automatically
0manualNothing — today's fully interactive behavior (default; a missing block ≡ 0)
1ambient bookkeepingscripts/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
2quiet 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
3scheduled pipelineReserved (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.

SchemaRequired frontmatterRequired sections
adr.schema.jsonid (ADR-NNN or ADR-NNNN, three or more digits), status, created, modifiedContext, 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.jsonid (PRD-NNN), status, created, modifiednone — the template governs structure
prp.schema.jsonid (PRP-NNN), status, created, modified, reviewed, confidence, domainContext 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):

FindingSeverityWhy
Unknown status, bad id pattern, missing required field, no line-1 frontmatterERROR (blocks)The document is malformed or unparseable
Missing ## sectionWARNBlocking 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-byWARNA decision can be marked superseded before its replacement is numbered
Deprecated spelling (superseded_by, status: completed)WARNNamed so it can be migrated, accepted so downstream documents keep validating
reviewed older than x-blueprint-staleness-daysWARNStaleness 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:

AspectValueWhy
Shapegenerated.rules is an object map, filename → generatedRecordschemas/manifest.schema.json; consumers iterate to_entries[], never []
Keybare 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
Hashbare lowercase hex sha256, no sha256: prefixboth 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 implementation
  • in_progress - Active work
  • partial - Some sub-features complete
  • complete - Fully implemented
  • blocked - 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:

RoleWritten byMeaning
roottop-level manifest in a monorepoOwns workspaces.children[] registry
childa blueprint under an ancestor rootCarries root_relative_path back to root
(absent)standalone projectNo 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:

FormMeaning
ADR-NNNLocal to the current workspace
projects/foo/ADR-NNNSibling/child workspace (path relative to the root)
/ADR-NNNThe 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)

HookEventMatcherPurpose
blueprint-doc-change.shPostToolUseWrite|Edit|BashDispatcher: 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.shPreToolUseSkillBlocks /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)

HookEventTargetPurpose
blueprint-structural-cue.shPostToolUseWrite / EditOnce-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)

HookEventMatcherPurpose
register-merge-driver.shSessionStart"" (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_result and stats all 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

Similar to blueprint-plugin

More Agent Workflow & Planning