Skip to main content
Glama
prd-start.md9.53 kB
--- name: prd-start description: Start working on a PRD implementation category: project-management --- # PRD Start - Begin Implementation Work ## Instructions You are helping initiate active implementation work on a specific Product Requirements Document (PRD). This command bridges the gap between PRD planning and actual development work by setting up the implementation context and providing clear next steps. **IMPORTANT**: Do NOT include time estimates or effort estimates in your responses. Focus on task prioritization, dependencies, and clear next steps without speculating on duration. ## Process Overview 1. **Select Target PRD** - Ask user which PRD they want to implement 2. **Validate PRD Readiness** - Ensure the selected PRD is ready for implementation 3. **Set Up Implementation Context** - Prepare the development environment 4. **Identify Starting Point** - Determine the best first implementation task 5. **Begin Implementation** - Launch into actual development work ## Step 0: Context Awareness Check **FIRST: Check if PRD context is already clear from recent conversation:** **Skip detection/analysis if recent conversation shows:** - **Recent PRD work discussed** - "We just worked on PRD 29", "Just completed PRD update", etc. - **Specific PRD mentioned** - "PRD #X", "MCP Prompts PRD", etc. - **PRD-specific commands used** - Recent use of `prd-update-progress`, `prd-start` with specific PRD - **Clear work context** - Discussion of specific features, tasks, or requirements for a known PRD **If context is clear:** - Skip to Step 2 (PRD Readiness Validation) using the known PRD - Use conversation history to understand current state and recent progress - Proceed directly with readiness validation based on known PRD status **If context is unclear:** - Continue to Step 1 (PRD Detection) for full analysis ## Step 1: Smart PRD Detection (Only if Context Unclear) **Auto-detect the target PRD using these context clues (in priority order):** 1. **Git Branch Analysis** - Check current branch name for PRD patterns: - `feature/prd-12-*` → PRD 12 - `prd-13-*` → PRD 13 - `feature/prd-*` → Extract PRD number 2. **Recent Git Commits** - Look at recent commit messages for PRD references: - "fix: PRD 12 documentation" → PRD 12 - "feat: implement prd-13 features" → PRD 13 3. **Git Status Analysis** - Check modified/staged files for PRD clues: - Modified `prds/12-*.md` → PRD 12 - Changes in feature-specific directories 4. **Available PRDs Discovery** - List all PRDs in `prds/` directory: - `prds/12-documentation-testing.md` - `prds/13-cicd-documentation-testing.md` 5. **Fallback to User Choice** - Only if context detection fails, ask user to specify **PRD Detection Implementation:** ```bash # Use these tools to gather context: # 1. Check git branch: gitStatus shows current branch # 2. Check git status: Look for modified PRD files # 3. List PRDs: Use LS or Glob to find prds/*.md files # 4. Recent commits: Use Bash 'git log --oneline -n 5' for recent context ``` **Detection Logic:** - **High Confidence**: Branch name matches PRD pattern (e.g., `feature/prd-12-documentation-testing`) - **Medium Confidence**: Modified PRD files in git status or recent commits mention PRD - **Low Confidence**: Multiple PRDs available, use heuristics (most recent, largest) - **No Context**: Present available options to user **Example Detection Outputs:** ```markdown 🎯 **Auto-detected PRD 12** (Documentation Testing) - Branch: `feature/prd-12-documentation-testing` ✅ - Modified files: `prds/12-documentation-testing.md` ✅ - Recent commits mention PRD 12 features ✅ ``` **If context detection fails, ask the user:** ```markdown ## Which PRD would you like to start implementing? Please provide the PRD number (e.g., "12", "PRD 12", or "36"). **Not sure which PRD to work on?** Execute `dot-ai:prds-get` prompt to see all available PRDs organized by priority and readiness. **Your choice**: [Wait for user input] ``` **Once PRD is identified:** - Read the PRD file from `prds/[issue-id]-[feature-name].md` - Analyze completion status across all sections - Identify patterns in completed vs remaining work ## Step 2: PRD Readiness Validation Before starting implementation, validate that the PRD is ready: ### Requirements Validation - **Functional Requirements**: Are core requirements clearly defined and complete? - **Success Criteria**: Are measurable success criteria established? - **Dependencies**: Are all external dependencies identified and available? - **Risk Assessment**: Have major risks been identified and mitigation plans created? ### Documentation Analysis For documentation-first PRDs: - **Specification completeness**: Is the feature fully documented with user workflows? - **Integration points**: Are connections with existing features documented? - **API/Interface definitions**: Are all interfaces and data structures specified? - **Examples and usage**: Are concrete usage examples provided? ### Implementation Readiness Checklist ```markdown ## PRD Readiness Check - [ ] All functional requirements defined ✅ - [ ] Success criteria measurable ✅ - [ ] Dependencies available ✅ - [ ] Documentation complete ✅ - [ ] Integration points clear ✅ - [ ] Implementation approach decided ✅ ``` ## Step 3: Implementation Context Setup **⚠️ MANDATORY: Complete this step BEFORE proceeding to Step 4** ### Git Branch Management 1. **Check current branch**: Run `git branch --show-current` 2. **If on `main` or `master`**: Create and switch to feature branch: ```bash git checkout -b feature/prd-[issue-id]-[feature-name] ``` 3. **If already on a feature branch**: Verify it's the correct branch for this PRD ### Development Environment Setup - **Dependencies**: Install any new dependencies required by the PRD - **Configuration**: Set up any configuration needed for development - **Test data**: Prepare test data or mock services ### Step 3 Checkpoint (REQUIRED) **You MUST display this confirmation before proceeding to Step 4:** ```markdown ## Environment Setup ✅ - **Branch**: `[current-branch-name]` ✅ - **Status**: [Created new branch / Already on correct branch / Staying on main (reason)] ``` **DO NOT proceed to Step 4 until branch setup is confirmed.** ## Step 4: Identify Implementation Starting Point ### Critical Path Analysis Identify the highest-priority first task by analyzing: - **Foundation requirements**: Core capabilities that other features depend on - **Blocking dependencies**: Items that prevent other work from starting - **Quick wins**: Early deliverables that provide validation or value - **Risk mitigation**: High-uncertainty items that should be tackled early ### Implementation Phases For complex PRDs, identify logical implementation phases: 1. **Phase 1 - Foundation**: Core data structures, interfaces, basic functionality 2. **Phase 2 - Integration**: Connect with existing systems, implement workflows 3. **Phase 3 - Enhancement**: Advanced features, optimization, polish 4. **Phase 4 - Validation**: Testing, documentation updates, deployment ### First Task Recommendation Select the single best first task based on: - **Dependency analysis**: No blocking dependencies - **Value delivery**: Provides meaningful progress toward PRD goals - **Learning opportunity**: Generates insights for subsequent work - **Validation potential**: Allows early testing of key assumptions ## Step 5: Begin Implementation ### Implementation Kickoff Present the implementation plan: ```markdown # 🚀 Starting Implementation: [PRD Name] ## Selected First Task: [Task Name] **Why this task first**: [Clear rationale for why this is the optimal starting point] **What you'll build**: [Concrete description of what will be implemented] **Success criteria**: [How you'll know this task is complete] **Next steps after this**: [What becomes possible once this is done] ## Implementation Approach [Brief technical approach and key decisions] ## Ready to Start? Type 'yes' to begin implementation, or let me know if you'd prefer to start with a different task. ``` ### Implementation Launch If confirmed, provide: - **Detailed task breakdown**: Step-by-step implementation guide - **Code structure recommendations**: Files to create/modify - **Testing approach**: How to validate the implementation - **Progress checkpoints**: When to update the PRD with progress ### After Implementation Once you complete a task or milestone, update PRD progress by running the `prd-update-progress` prompt. *Note: Different agents/clients may have different syntax for executing commands and prompts (e.g., `/prd-update-progress` in Claude Code, or other syntax in different MCP clients).* ## Success Criteria This command should: - ✅ Successfully identify the target PRD for implementation - ✅ Validate that the PRD is ready for development work - ✅ Set up proper implementation context (branch, environment) - ✅ Identify the optimal first implementation task - ✅ Provide clear, actionable next steps for beginning development - ✅ Bridge the gap between planning and actual coding work ## Notes - This command is designed for PRDs that are ready to move from planning to implementation - Use `prd-next` for ongoing implementation guidance on what to work on next - Use `prd-update-progress` to track implementation progress against PRD requirements - Use `prd-done` when PRD implementation is complete and ready for deployment/closure

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vfarcic/dot-ai'

If you have feedback or need assistance with the MCP directory API, please join our Discord server