This command helps you analyze a backend work document (plan, Markdown file, API specification, database design, or any structured document), create a comprehensive todo list using the TodoWrite tool, and then systematically execute each task until the entire plan is completed. It combines deep analysis with practical execution to transform backend plans into production-ready APIs and services.
Executes backend development plans by analyzing documents, creating task lists, and systematically implementing APIs, databases, and tests.
/plugin marketplace add shivrajkumar/traya-plugin/plugin install traya-backend-engineering@traya-pluginThis command helps you analyze a backend work document (plan, Markdown file, API specification, database design, or any structured document), create a comprehensive todo list using the TodoWrite tool, and then systematically execute each task until the entire plan is completed. It combines deep analysis with practical execution to transform backend plans into production-ready APIs and services.
Skill-Based Execution: The command automatically detects backend task types (API development, database integration, documentation, testing) and invokes appropriate skills (api-developer, database-integrator, api-documentation-generator, api-tester, code-reviewer) for comprehensive, iterative workflows with built-in quality assurance. This leverages all bundled MCP servers (Postman, Context7, Serena) to ensure production-ready results.
<input_document> #$ARGUMENTS </input_document>
Update Main Branch
git checkout main
git pull origin main
Create Feature Branch and Worktree
git_root=$(git rev-parse --show-toplevel)
mkdir -p "$git_root/.worktrees"
if ! grep -q "^\.worktrees$" "$git_root/.gitignore"; then
echo ".worktrees" >> "$git_root/.gitignore"
fi
git worktree add -b feature-branch-name "$git_root/.worktrees/feature-branch-name" main
cd "$git_root/.worktrees/feature-branch-name"
Verify Environment
npm install or yarn install)Read Input Document
Create Task Breakdown
Build Todo List
Detect Task Type and Invoke Skills
Analyze the work document and todo list to determine the backend task type, then automatically invoke appropriate skills for comprehensive execution:
A. For API Development Tasks
If the work involves building new API endpoints, implementing REST/GraphQL APIs, or creating controller logic:
1. Invoke api-developer skill
- Analyze API requirements and design specifications
- Review existing API patterns with Serena MCP
- Fetch NestJS/Express documentation with Context7 MCP
- Implement controllers, services, DTOs
- Set up request validation with class-validator
- Implement authentication/authorization guards
- Add error handling and response serialization
- Visual API testing with Postman MCP
- Iterate until API contract validated
2. If database changes needed → Invoke database-integrator skill
- Design database schema and ERD
- Create TypeORM entities and repositories
- Generate database migrations
- Implement data access layer
- Add indexes and optimize queries
- Test migration up/down scripts
- Validate data integrity
3. Invoke api-documentation-generator skill
- Generate OpenAPI 3.0 specification
- Create Postman collection with examples
- Document authentication requirements
- Add request/response examples
- Generate API changelog
- Update developer documentation
4. Invoke api-tester skill
- Unit testing for services and controllers
- Integration testing with Supertest
- API contract testing with Postman MCP
- Error scenario validation
- Performance testing (response times)
- Security testing (authentication, authorization, injection)
- Issue documentation and fixing
5. Invoke code-reviewer skill
- Task completion verification
- Technical quality review
- Best practices validation (Context7 MCP)
- Code structure and organization review
- Performance, security, OWASP compliance checks
- Project conventions compliance
B. For Database Integration Tasks
If the work focuses primarily on database design, migrations, or ORM implementation:
1. Invoke database-integrator skill
- Database schema design and ERD creation
- TypeORM entity definitions
- Migration scripts with rollback support
- Repository pattern implementation
- Query optimization and indexing
- Data seeding for development
- Migration testing and validation
2. If APIs expose database → Invoke api-developer skill
- Create controllers for CRUD operations
- Implement DTOs and validation
- Add pagination, filtering, sorting
- Response serialization
3. Invoke api-tester skill
- Test database transactions and rollbacks
- Validate migration scripts
- Integration testing with test database
- Performance testing for queries
- Data integrity validation
4. Invoke code-reviewer skill
- Database design review
- Migration safety verification
- Query performance analysis
- Index optimization review
C. For API Documentation Tasks
If the work involves creating or updating API documentation, OpenAPI specs, or Postman collections:
1. Invoke api-documentation-generator skill
- OpenAPI 3.0 specification generation
- Postman collection creation
- GraphQL schema documentation (if applicable)
- Authentication guide
- Error code reference
- Integration examples
2. Invoke api-tester skill
- Validate documentation accuracy
- Test all documented endpoints
- Verify examples work correctly
- Check authentication flows
3. Invoke code-reviewer skill
- Documentation completeness review
- Accuracy verification
- Best practices compliance
D. For Testing and Quality Assurance Tasks
If the work focuses on testing, quality improvements, or bug fixes:
1. Invoke api-tester skill
- Write comprehensive unit tests
- Create integration test suites
- API contract testing
- Performance benchmarking
- Security testing
- Load testing
2. Invoke code-reviewer skill
- Test quality review
- Coverage analysis
- Edge case verification
- Security audit
E. For Other Backend Tasks
If the work doesn't fit the above patterns (refactoring, configuration, DevOps, etc.), fall back to manual execution with the task loop below.
Task Execution Loop (Fallback for non-standard backend tasks)
while (tasks remain):
- Select next task (priority + dependencies)
- Mark as in_progress
- Execute task completely
- Validate completion
- Mark as completed
- Update progress
Quality Assurance
npm run lint or yarn lintnpm run type-check or tsc --noEmitnpm test or yarn testProgress Tracking
Final Validation
npm run linttsc --noEmitnpm testPrepare for Submission
Create Pull Request
git push -u origin feature-branch-name
gh pr create --title "feat: [API/Database/Feature Description]" --body "[Detailed description with API changes, database impacts, testing notes]"
This command leverages bundled MCP servers:
Skills automatically use these MCP servers when invoked, providing comprehensive backend development workflow automation.