Transform backend feature descriptions, bug reports, API design ideas, or infrastructure improvements into well-structured markdown files that follow project conventions and best practices. This command provides flexible detail levels to match your backend development needs.
Creates well-structured GitHub issues for backend development with flexible detail levels.
/plugin marketplace add shivrajkumar/traya-plugin/plugin install traya-backend-engineering@traya-pluginTransform backend feature descriptions, bug reports, API design ideas, or infrastructure improvements into well-structured markdown files that follow project conventions and best practices. This command provides flexible detail levels to match your backend development needs.
<feature_description> #$ARGUMENTS </feature_description>
Run these three agents in parallel at the same time:
Reference Collection:
src/api/controllers/user.controller.ts:42)#123, #456)CLAUDE.md or team documentationTitle & Categorization:
feat:, fix:, perf:, security:, db:)gh label list)Stakeholder Analysis:
Content Planning:
Select how comprehensive you want the issue to be:
Best for: Simple bug fixes, minor API improvements, small database changes
Includes:
Structure:
[Brief problem/feature description]
## Acceptance Criteria
- [ ] API endpoint returns correct status codes
- [ ] Database changes include migration
- [ ] OpenAPI spec updated
## Context
[Any critical information about API, database, or integration]
## MVP
### src/api/controllers/user.controller.ts
```typescript
@Controller('users')
export class UserController {
@Get(':id')
async findOne(@Param('id') id: string): Promise<UserDto> {
return this.userService.findOne(id);
}
}
```
## References
- Related issue: #[issue_number]
- API documentation: [relevant_docs_url]
- Database schema: [schema_reference]
Best for: Most API features, database integrations, performance improvements, security enhancements
Includes everything from MINIMAL plus:
Structure:
## Overview
[Comprehensive description of the API feature, database change, or system improvement]
## Problem Statement / Motivation
[Why this matters for the backend system, API consumers, or infrastructure]
## Proposed Solution
[High-level approach including API design, database changes, and integration points]
## Technical Considerations
### API Design
- Endpoint structure and naming
- Request/response schema validation
- Authentication and authorization
### Database Impact
- Schema changes and migrations
- Index optimization
- Query performance
### Security Considerations
- Input validation and sanitization
- Authentication/authorization requirements
- Rate limiting and abuse prevention
### Performance Implications
- Caching strategy (Redis)
- Query optimization
- Response time targets
## Acceptance Criteria
- [ ] API endpoints implement OpenAPI 3.0 spec
- [ ] TypeORM migrations include rollback
- [ ] Unit tests cover service layer (>80% coverage)
- [ ] Integration tests validate API contracts
- [ ] Postman collection updated
- [ ] Error handling follows RFC 7807 (Problem Details)
## Success Metrics
[How we measure success - API response times, error rates, throughput]
## Dependencies & Risks
### Dependencies
- External API integrations
- Database schema changes
- Redis cache configuration
### Risks
- Breaking changes for API consumers
- Migration complexity
- Performance degradation
## References & Research
- Similar API implementations: [file_path:line_number]
- NestJS best practices: [documentation_url]
- TypeORM patterns: [file_path:line_number]
- Related PRs: #[pr_number]
Best for: Major API versions, architectural changes, complex microservice integrations, database refactoring
Includes everything from MORE plus:
Structure:
## Overview
[Executive summary of backend system change]
## Problem Statement
[Detailed problem analysis with metrics, logs, and current system limitations]
## Proposed Solution
[Comprehensive solution design including API architecture, database design, and integration strategy]
## Technical Approach
### API Architecture
**Endpoint Design:**
- REST resource modeling
- GraphQL schema design (if applicable)
- Versioning strategy (URI vs header)
**Request/Response Format:**
```json
{
"data": {...},
"meta": {...},
"links": {...}
}
Entity Relationship Diagram:
erDiagram
USER ||--o{ ORDER : places
USER {
uuid id PK
string email
timestamp created_at
}
ORDER {
uuid id PK
uuid user_id FK
decimal total
}
Migration Strategy:
Pros: Flexible querying, single endpoint, strong typing Cons: Complexity, caching challenges, learning curve Decision: Rejected - team expertise in REST, simpler deployment
Pros: Schema flexibility, horizontal scaling Cons: No ACID guarantees, complex transactions Decision: Rejected - require relational integrity
Probability: Medium Impact: High Mitigation:
Probability: Low Impact: High Mitigation:
Probability: Medium Impact: Medium Mitigation:
### 4. Issue Creation & Formatting
<thinking>
Apply backend best practices for clarity and actionability, making the issue easy to scan and understand by both backend developers and API consumers
</thinking>
**Content Formatting:**
- [ ] Use clear, descriptive headings with proper hierarchy (##, ###)
- [ ] Include API examples in triple backticks with TypeScript syntax highlighting
- [ ] Add database diagrams using Mermaid (ERD, sequence diagrams)
- [ ] Include OpenAPI/Swagger spec snippets for API endpoints
- [ ] Use task lists (- [ ]) for trackable items that can be checked off
- [ ] Add collapsible sections for lengthy logs or API payloads using `<details>` tags
- [ ] Apply appropriate emoji for visual scanning (🐛 bug, ✨ feature, 🔒 security, ⚡ performance, 🗄️ database)
**Cross-Referencing:**
- [ ] Link to related issues/PRs using #number format
- [ ] Reference specific commits with SHA hashes when relevant
- [ ] Link to code using GitHub's permalink feature (press 'y' for permanent link)
- [ ] Mention relevant team members with @username if needed
- [ ] Add links to external API documentation, RFC specs, framework docs
**Code & Examples:**
```markdown
# Good example with syntax highlighting and line references
\`\`\`typescript
// src/api/controllers/user.controller.ts:42
@Post()
@UseGuards(JwtAuthGuard)
async create(@Body() createUserDto: CreateUserDto): Promise<UserDto> {
return this.userService.create(createUserDto);
}
\`\`\`
# Database schema with Mermaid ERD
\`\`\`mermaid
erDiagram
USER ||--o{ ORDER : places
USER {
uuid id PK
string email
}
\`\`\`
# Collapsible error logs
<details>
<summary>Full API error response</summary>
\`\`\`json
{
"statusCode": 500,
"message": "Internal server error",
"error": "Error details here..."
}
\`\`\`
</details>
Backend-Specific Considerations:
AI-Era Considerations:
Pre-submission Checklist:
Present the complete issue content within <github_issue> tags, ready for GitHub CLI:
gh issue create --title "[TITLE]" --body "[CONTENT]" --label "[LABELS]"