1 line
2.1 KiB
JSON
1 line
2.1 KiB
JSON
{"content": "---\nallowed-tools: Read, Write, Edit, Bash\nargument-hint: [pr-number] | --team | --estimate | --batch-process | --auto-create\ndescription: Create Linear tasks from GitHub pull requests with intelligent content extraction and task sizing\n---\n\n# Task from PR\n\nCreate Linear tasks from GitHub pull requests with intelligent analysis: **$ARGUMENTS**\n\n## Current PR Environment\n\n- Repository: !`gh repo view --json nameWithOwner -q .nameWithOwner 2>/dev/null || echo \"No repo context\"`\n- PR status: Based on $ARGUMENTS PR number or batch processing criteria\n- Linear teams: Available teams for task assignment\n- User mappings: GitHub username to Linear user correspondence\n\n## Task\n\nGenerate Linear tasks from GitHub pull requests with comprehensive content analysis:\n\n**PR Source**: Use $ARGUMENTS to specify PR number, team assignment, size estimation, or batch processing mode\n\n**Task Generation Framework**:\n1. **PR Analysis** - Extract comprehensive PR data, parse description structure, identify key components, analyze changes\n2. **Content Extraction** - Parse structured sections, extract checklists, identify technical details, capture requirements\n3. **Intelligent Sizing** - Estimate task complexity from code changes, file count, review comments, testing requirements\n4. **Task Construction** - Build Linear task with proper formatting, preserve PR context, maintain references, structure content\n5. **Team Assignment** - Map to appropriate Linear team, assign based on code areas, set priorities from labels\n6. **Validation & Creation** - Check for duplicates, validate task structure, create in Linear, establish bidirectional links\n\n**Advanced Features**: Smart content parsing, automated size estimation, intelligent team mapping, comprehensive validation, batch processing.\n\n**Quality Assurance**: Duplicate detection, content validation, proper formatting, relationship maintenance, comprehensive error handling.\n\n**Output**: Successfully created Linear tasks with comprehensive PR context, accurate sizing estimates, proper team assignments, and complete bidirectional linking."} |