Detect PRD/ADR/PRP opportunities in conversations and prompt for document creation. Activates when users discuss features, architecture decisions, or implementation planning.
/plugin marketplace add laurigates/claude-plugins/plugin install blueprint-plugin@lgates-claude-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Proactively identify when conversations should become structured documents (PRDs, ADRs, or PRPs) and guide users through the documentation workflow.
This skill is loaded when conversation context suggests documentation opportunities:
Document detection requires:
docs/blueprint/manifest.json exists)has_document_detection: true in manifest structuredocs/ directory structure createdCheck prerequisites before prompting:
# Verify blueprint is initialized with document detection enabled
jq -r '.structure.has_document_detection // false' docs/blueprint/manifest.json 2>/dev/null
Primary triggers (confidence +0.5 each):
Confidence boosters (+0.1-0.2 each):
Example triggers:
"I want to build a user authentication system with OAuth2 support, password reset, and MFA"
"As an admin, I want to manage user permissions so that I can control access"
"We need to implement: 1) user registration, 2) email verification, 3) profile management"
Primary triggers (confidence +0.5 each):
Confidence boosters (+0.1-0.2 each):
Example triggers:
"Should we use PostgreSQL or MongoDB for the user data? We need to consider query patterns and scalability"
"The pros of using microservices are scalability and team independence, but the cons are operational complexity"
"Why did we choose React over Vue? Let me document the decision"
Primary triggers (confidence +0.5 each):
Confidence boosters (+0.1-0.2 each):
Example triggers:
"Let's implement the payment processing module with Stripe integration"
"We need to create PaymentService.ts, add routes in /api/payments, and write integration tests"
"Time to build the dashboard - it needs charts, filters, and export functionality"
Threshold for prompting: >= 0.7
Base confidence: 0.0
+ Primary trigger matched: +0.5
+ Additional primary trigger: +0.3
+ Each booster matched: +0.1 to +0.2
Total >= 0.7 → Prompt user
Total < 0.7 → Continue without prompting
Examples:
When confidence >= 0.7, execute this flow:
Use AskUserQuestion to confirm document creation:
question: "This looks like a [PRD/ADR/PRP] opportunity. Would you like to document it?"
options:
- label: "Yes, create [document type]"
description: "I'll gather context and create the document"
- label: "Not now, remind me later"
description: "Continue conversation, prompt again if topic expands"
- label: "No, just continue"
description: "Skip documentation for this topic"
Ask context-specific questions based on document type:
For PRD:
question: "Who are the primary users for this feature?"
options:
- label: "End users"
description: "Regular users of the application"
- label: "Administrators"
description: "Admin users with elevated access"
- label: "Developers"
description: "Internal development team"
- label: "Multiple types"
description: "I'll specify the user types"
For ADR:
question: "What constraints should I consider for this decision?"
options:
- label: "Performance requirements"
description: "Speed, latency, throughput constraints"
- label: "Team expertise"
description: "Team familiarity with technologies"
- label: "Budget/cost"
description: "Financial or resource constraints"
- label: "Timeline"
description: "Delivery deadline constraints"
- label: "All of the above"
description: "Consider all constraint types"
For PRP:
question: "What's the priority and scope for this implementation?"
options:
- label: "High priority, narrow scope"
description: "MVP implementation, ship quickly"
- label: "High priority, full scope"
description: "Complete implementation needed soon"
- label: "Normal priority"
description: "Standard development timeline"
- label: "Exploratory"
description: "Spike or proof of concept"
Extract from conversation:
docs/prds/, docs/adrs/, docs/prps/)Launch appropriate documentation command:
For PRD:
Run /blueprint:prd with context:
- Feature description from conversation
- User types identified
- Requirements enumerated
- Success criteria discussed
For ADR:
Run /blueprint:adr with context:
- Decision being made
- Options compared
- Constraints identified
- Trade-offs discussed
For PRP:
Run /blueprint:prp-create with context:
- Feature scope
- Implementation approach
- Test strategy discussed
- Files/components planned
After document creation:
docs/prds/, docs/adrs/, or docs/prps/)/blueprint:generate-rules to create implementation patterns"/blueprint:prp-execute when ready to implement"To avoid duplicate prompts, track detected topics:
Track declined topics: Don't re-prompt for explicitly declined documentation Track deferred topics: Re-prompt if significant new context is added (new requirements, new trade-offs, etc.) Track created documents: Don't re-prompt for topics with existing documents
Session tracking uses conversation memory - no persistent storage needed.
Document detection integrates with existing commands:
| Detection Type | Command Triggered | Document Location |
|---|---|---|
| PRD | /blueprint:prd | docs/prds/{feature-name}.md |
| ADR | /blueprint:adr | docs/adrs/{number}-{title}.md |
| PRP | /blueprint:prp-create | docs/prps/{feature-name}.md |
Document detection is controlled by manifest flag:
{
"structure": {
"has_document_detection": true
}
}
Enable during /blueprint:init or /blueprint:upgrade.
To minimize interruptions:
| Document | Key Triggers | Confidence Threshold |
|---|---|---|
| PRD | Feature descriptions, user stories, requirements lists | >= 0.7 |
| ADR | Technology comparisons, trade-off discussions, "why" questions | >= 0.7 |
| PRP | Implementation intent, file planning, specific feature scope | >= 0.7 |
| User Response | Action |
|---|---|
| "Yes, create" | Gather clarification, delegate to command |
| "Not now" | Track topic, re-prompt if expanded |
| "No, continue" | Mark declined, never re-prompt |
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.