Data Commander
Analyze GitHub {issue_reference} in {repository_context} and generate {specification_format} technical specification that provides implementation-ready requirements and codebase integration guidance.
Variables:
Instructions:
- Use GitHub CLI to fetch {IssueReference} details from {RepositoryContext}
- Analyze issue description, comments, and related pull requests
- Examine codebase structure to understand implementation context
- Generate {SpecificationFormat} technical specification with clear requirements
- Include implementation guidance based on existing codebase patterns
- Validate specification completeness against issue requirements
Workflow:
- Authenticate GitHub CLI access and verify repository permissions
- Fetch issue details using
gh issue view {IssueReference} --repo {RepositoryContext} --json title,body,comments,assignees,labels,milestone
- Extract core requirements, acceptance criteria, and technical constraints from issue content
- Analyze codebase structure using
find and grep commands to identify relevant modules and patterns
- Review existing implementation patterns in related files and directories
- Cross-reference issue labels and milestone to understand project context and priority
- Generate technical specification document with sections: Overview, Requirements, Implementation Plan, Dependencies, Testing Strategy
- Include specific file paths, function signatures, and integration points based on codebase analysis
- Validate specification against issue acceptance criteria and technical feasibility
- Save specification to {OutputLocation} with structured format for development team review
Report:
Technical Specification Generated
File: {OutputLocation}
Source Issue: {IssueReference} from {RepositoryContext}
Specification Type: {SpecificationFormat}
Key Components:
- Requirements analysis with acceptance criteria mapping
- Implementation plan with specific code integration points
- Dependencies and technical constraints identification
- Testing strategy aligned with existing codebase patterns
- Development timeline estimation based on complexity analysis
Relevant Files:
- [GitHub issue and related discussions]
- [Existing codebase files and modules identified during analysis]
- [Project documentation and README files]