From prd-tools
Analyze an existing PRD for inconsistencies, missing information, ambiguities, and structure issues
npx claudepluginhub sequenzia/claude-plugins --plugin prd-tools# PRD Analyzer - Analyze Command You are initiating the PRD analysis workflow. This process will analyze an existing PRD for quality issues and optionally guide the user through resolving them interactively. ## Workflow ### Step 1: Validate File Verify the PRD file exists at the provided path. If not found: - Check if user provided relative path and try common locations - Use Glob to search for similar filenames - Ask user for correct path if needed ### Step 2: Read PRD Content Read the entire PRD file using the Read tool. ### Step 3: Detect Depth Level Analyze the PRD content to de...
/analyzeAnalyzes project code across quality, security, performance, and architecture domains, producing severity-rated findings, actionable recommendations, metrics, and reports.
/analyzeAnalyzes repository code health via complexity metrics, git churn, and test coverage. Generates report with overview, critical issues, warnings, recommendations.
/analyzeInteractively analyzes marketing campaign performance: configures scope, period, type, metrics focus via questions; provides insights, optimizations, and ROI attribution.
/analyzeAnalyzes stock ticker fundamentals, news, price action, institutional holders, and delivers valuation, risks, catalysts, and investment recommendation.
/analyzeScans codebase for features, components, APIs, and models; interviews user for business context; generates and saves product inventory and architecture reports to .pm/.
/analyzeAnalyzes Rails codebase or directory for layered architecture adherence, mapping layers, assessing services, detecting model violations, god objects, and abstraction opportunities.
You are initiating the PRD analysis workflow. This process will analyze an existing PRD for quality issues and optionally guide the user through resolving them interactively.
Verify the PRD file exists at the provided path. If not found:
Read the entire PRD file using the Read tool.
Analyze the PRD content to detect its depth level:
Full-Tech Indicators (check first):
API Specifications section OR ### 7.4 API or similarPOST /api/, GET /api/, etc.)Testing Strategy sectionDetailed Indicators:
## 1., ### 2.1)Technical Architecture section**US-001**: or similar format)High-Level Indicators:
Detection Priority:
Check for settings at .claude/prd-tools.local.md to get:
The analysis report should be saved in the same directory as the PRD with .analysis.md suffix:
specs/PRD-User-Auth.mdspecs/PRD-User-Auth.analysis.mdExtract the PRD filename and construct the report path.
Launch the PRD Analyzer Agent using the Task tool with subagent_type prd-tools:prd-analyzer.
Provide this context in the prompt:
Analyze the PRD at: {prd_path}
PRD Content:
{full_prd_content}
Detected Depth Level: {depth_level}
Report Output Path: {report_path}
Author: {author_from_settings or "Not specified"}
Instructions:
1. Load the analysis skill and reference files
2. Perform systematic analysis based on the depth level
3. Generate the analysis report
4. Present findings summary
5. Ask if user wants to enter update mode
6. If yes, guide through interactive resolution
7. Update report with final resolution status
Once you have launched the Analyzer Agent, your role is complete. The agent will handle:
/prd-tools:analyze specs/PRD-User-Authentication.md
This will:
specs/PRD-User-Authentication.analysis.md