name: create-claude-issue description: Create a detailed Linear issue optimized for Claude execution from high-level requirements version: 1.0
prompt: | You are creating Linear issues that will be executed by Claude (not humans). Follow this approach:
Ask the user for these essential inputs only:
- What do you want built/fixed/improved? (brief description)
- What type of work is this? (Feature, Bug Fix, Refactor, Documentation, Analysis)
- Which project/codebase area? (frontend, backend, api, database, etc.)
- Any specific constraints or preferences? (technologies, approaches, deadlines)
Based on the user's input, YOU will internally plan and structure:
- Break down the requirement into specific implementation steps
- Identify files/components that need changes
- Determine dependencies and prerequisites
- Plan testing approach and validation methods
- Consider edge cases and error handling
Score each factor 0-3 points to determine if issue should be split:
Factor | 0 Points | 1 Point | 2 Points | 3 Points |
---|---|---|---|---|
Code Volume | <50 LOC | 50-200 LOC | 200-500 LOC | >500 LOC |
File Count | 1-3 files | 4-8 files | 9-15 files | >15 files |
Dependencies | None | Config only | New packages | Architecture change |
Testing Needs | Unit only | +Integration | +E2E | +Performance |
Risk Level | Isolated | Shared component | Core logic | Breaking changes |
Total Score:
- 0-4: Simple (1-2 hours) - Single issue
- 5-9: Medium (2-6 hours) - Consider splitting
- 10+: Complex (6+ hours) - Must split into sub-issues
Create detailed specifications that enable Claude to:
- Understand the full context immediately
- Execute without asking clarifying questions
- Validate completion against clear criteria
- Handle common issues and edge cases
Based on the work type, consider using these project specific templates:
- Cloudflare Worker Endpoint: For new API endpoints
- SolidJS Component: For new UI components
- Durable Object: For stateful features with real-time sync
- WebSocket Handler: For new message types
Templates available in .claude/templates/
"[CLAUDE] [Action] [Component/Feature] - [Brief Description]" Examples:
- "[CLAUDE] Implement user authentication API endpoints"
- "[CLAUDE] Fix memory leak in data processing service"
- "[CLAUDE] Refactor database connection pooling"
## CLAUDE EXECUTION CONTEXT
**Work Type**: [Feature/Bug/Refactor/Documentation/Analysis]
**Estimated Complexity**: [Low/Medium/High] (Score: X/15)
**Estimated LOC**: [Approximate lines of code]
**File Count**: [Number of files to modify/create]
**Prerequisites**: [Any setup or dependencies needed]
**Technologies**: [Specific languages, frameworks, tools to use]
## OBJECTIVE
[Clear, single-sentence statement of what needs to be accomplished]
## DETAILED REQUIREMENTS
### Core Functionality:
- [Specific requirement 1 with technical details]
- [Specific requirement 2 with technical details]
- [Specific requirement 3 with technical details]
### Technical Specifications:
- **Input/Output**: [Expected inputs and outputs]
- **Performance**: [Any performance requirements]
- **Error Handling**: [How to handle edge cases and errors]
- **Integration Points**: [How this connects with existing systems]
## IMPLEMENTATION GUIDANCE
### Files/Components to Modify:
- `path/to/file1.js` - [What changes needed]
- `path/to/file2.py` - [What changes needed]
- `path/to/config.json` - [What changes needed]
### Step-by-Step Implementation:
1. [Specific implementation step with code context]
2. [Specific implementation step with code context]
3. [Specific implementation step with code context]
### Code Patterns to Follow:
- [Existing patterns in codebase to maintain consistency]
- [Naming conventions and style guidelines]
- [Architecture patterns to follow]
## VALIDATION CRITERIA
### Functional Tests:
- [ ] [Specific test case 1]
- [ ] [Specific test case 2]
- [ ] [Specific test case 3]
### Integration Tests:
- [ ] [Integration point 1 works correctly]
- [ ] [Integration point 2 works correctly]
### Edge Cases:
- [ ] [Edge case 1 handled properly]
- [ ] [Edge case 2 handled properly]
## SUCCESS METRICS
- [Measurable outcome 1]
- [Measurable outcome 2]
- [Performance benchmarks if applicable]
## IMPLEMENTATION READINESS CHECKLIST
- [ ] All file paths specified with exact locations
- [ ] Error handling approach documented
- [ ] Testing strategy defined (unit/integration/e2e)
- [ ] Performance requirements stated
- [ ] Rollback procedure included for risky changes
- [ ] Dependencies and prerequisites clearly listed
- [ ] Acceptance criteria are measurable
- [ ] Common pandemic-poker patterns referenced
## CLAUDE EXECUTION NOTES
- **Autonomous Execution**: This issue contains all context needed for completion
- **No Clarification Needed**: All requirements and constraints are specified
- **Self-Validation**: Use the validation criteria to confirm completion
- **Error Recovery**: [Specific guidance for common issues that might arise]
- **Pattern References**: Link to pandemic-poker-patterns.md for common implementations
Before creating the Linear issue:
-
Present the planned issue to the user with:
- The title you've generated
- A summary of your technical analysis
- Key implementation points
- The full specification you'll include
-
Ask for confirmation: "Does this specification capture what you want? Should I create this Linear issue for Claude to execute?"
-
Allow refinements: Let the user request changes before creation
-
Create via MCP with proper:
- Labels: ["claude-executable", work-type, component-area, priority]
- Project: Default to "{{ put your project name here }}" project (ID: {{ project id here }})
- Priority level based on urgency/impact
- Include all context Claude needs upfront
- Specify exact file paths and code locations
- Provide complete technical requirements
- Include relevant code patterns and examples
- Break down complex tasks into clear steps
- Specify validation methods Claude can perform
- Include error handling and edge case guidance
- Provide clear success criteria
- Eliminate need for clarifying questions
- Include all constraints and preferences
- Specify testing and validation approaches
- Provide rollback procedures if needed
- Reference existing code patterns to follow
- Specify integration points and dependencies
- Include performance and quality requirements
- Provide examples of similar implementations
User: "I need a REST API endpoint for user profile updates"
Claude Planning (Internal):
- Analyze existing API structure
- Plan endpoint design (/api/users/:id/profile)
- Consider validation, auth, error handling
- Plan database integration
- Design response format
Claude Response: "I'll create a comprehensive Linear issue for building a user profile update API endpoint. Based on your codebase, I'm planning:
- REST endpoint at /api/users/:id/profile (PUT method)
- Integration with existing auth middleware
- Validation using your current schema patterns
- Database updates with transaction safety
- Proper error responses and logging
This will be a Medium complexity issue that includes all implementation details, file locations, and validation criteria. Should I create this Linear issue for Claude to execute?"
After Confirmation: Create the Linear issue via MCP with full specification.
Remember: The goal is creating issues so comprehensive that Claude can execute them autonomously while maintaining high code quality and proper integration with existing systems.