Task Execution and Management Workflow
Systematic task execution workflow with proper testing and git practices for AI-assisted development
Front matter
description: Systematic task execution workflow with proper testing and git practices for AI-assisted development
applyTo: "**/*.{js,ts,py,java,go,rs,rb,php,cs}"Task Execution and Management Workflow
Overview
This workflow provides a systematic approach to executing development tasks generated from PRDs. It emphasizes controlled progress, proper testing, and clean git practices to ensure reliable AI-assisted development.
Core Principles
One Task at a Time
- Execute one sub-task at a time - Do not start the next sub-task until the current one is complete
- Seek approval - Ask for user permission before starting each new sub-task
- Wait for confirmation - User must respond "yes", "y", or equivalent before proceeding
Progress Tracking
- Update immediately - Mark tasks as completed
[x]as soon as they're finished - Maintain accuracy - Keep the task list current and accurate
- Document changes - Update the "Relevant Files" section with every modification
Task Execution Protocol
Step 1: Task Selection
- Identify the next available task (not blocked by dependencies)
- Review task requirements and acceptance criteria
- Confirm prerequisites are met
- Ask user for permission to proceed
Step 2: Implementation
- Plan the approach - Outline implementation strategy
- Implement the feature - Write code using GitHub Copilot
- Test locally - Verify functionality works as expected
- Mark sub-task complete - Update task list with
[x]
Step 3: Completion Protocol
When all sub-tasks under a parent task are marked [x]:
- Run full test suite
``bash # Examples for different frameworks pytest # Python npm test # Node.js bin/rails test # Ruby on Rails cargo test # Rust go test ./... # Go ``
- Only if all tests pass - Proceed to next steps
- Stage changes -
git add . - Clean up - Remove temporary files and code
- Commit with structured message - Use conventional commit format
Step 4: Git Commit Guidelines
Use single-line format with multiple -m flags:
git commit -m "feat: add payment validation logic" \
-m "- Validates card type and expiry" \
-m "- Adds unit tests for edge cases" \
-m "Related to T123 in PRD"Commit Message Structure
- Type:
feat,fix,refactor,test,docs,style,perf - Summary: Brief description of what was accomplished
- Details: Key changes and additions (use additional
-mflags) - Reference: Task number and PRD context
Step 5: Parent Task Completion
- Mark parent task as completed
[x] - Update relevant files list
- Ask user permission for next task
Task List Management
Status Updates
- [x] **T001: Completed Task**
- [x] Completed sub-task 1
- [x] Completed sub-task 2
- [ ] **T002: In Progress Task**
- [x] Completed sub-task 1
- [ ] Current sub-task 2
- [ ] Pending sub-task 3Relevant Files Section
Maintain an up-to-date list of all files created or modified:
## Relevant Files
- `src/components/LoginForm.jsx` - User authentication form with validation
- `src/utils/validation.js` - Input validation helper functions
- `src/services/authService.js` - Authentication API calls
- `tests/auth.test.js` - Unit tests for authentication logicGitHub Copilot Integration
Effective Prompting
- Context Setting: Reference the current task and PRD section
- Specific Requests: Ask for precise implementations
- Code Review: Request validation against requirements
- Testing: Generate appropriate test cases
Example Prompts
// Context setting
"Based on task T005 in the PRD, I need to implement user authentication..."
// Specific implementation
"Generate a login endpoint that validates email/password and returns JWT token"
// Code review
"Review this authentication middleware against the PRD security requirements"
// Testing
"Create unit tests for the login function covering success and error cases"Quality Assurance
Before Marking Tasks Complete
- [ ] Functionality works as specified in PRD
- [ ] All edge cases are handled
- [ ] Error handling is implemented
- [ ] Code follows project conventions
- [ ] Tests are written and passing
- [ ] Documentation is updated
Testing Strategy
- Unit Tests - Test individual functions and components
- Integration Tests - Test component interactions
- End-to-End Tests - Test complete user workflows
- Manual Testing - Verify UI/UX works as expected
Common Execution Patterns
Frontend Task Execution
- Create component structure
- Implement functionality
- Add styling and responsive design
- Handle user interactions and state
- Add error handling
- Write tests
- Update documentation
Backend Task Execution
- Define API endpoints
- Implement business logic
- Add data validation
- Handle errors and edge cases
- Write unit tests
- Test API endpoints
- Update API documentation
Database Task Execution
- Design schema changes
- Create migration scripts
- Update models/entities
- Test migrations
- Verify data integrity
- Update data access layer
- Document schema changes
Error Handling and Troubleshooting
When Tests Fail
- Do not commit - Fix issues before staging changes
- Debug systematically - Isolate the problem
- Check dependencies - Ensure all requirements are met
- Review PRD - Verify implementation matches requirements
- Ask for help - Request user guidance if stuck
When Tasks Are Blocked
- Identify blocker - Document what's preventing progress
- Communicate clearly - Explain the issue to user
- Propose solutions - Suggest alternatives or workarounds
- Update task list - Mark dependencies that need resolution
Best Practices
Code Quality
- Follow existing code style and conventions
- Write self-documenting code with clear variable names
- Add appropriate error handling
- Include helpful code comments for complex logic
- Keep functions small and focused
Git Practices
- Make atomic commits (one logical change per commit)
- Write clear, descriptive commit messages
- Test before committing
- Keep commit history clean and meaningful
Documentation
- Update README files as needed
- Document API changes
- Add inline code documentation
- Keep architecture decisions recorded
Communication
- Ask for clarification when requirements are unclear
- Provide regular progress updates
- Explain implementation decisions
- Request feedback on complex implementations
Workflow Integration
This task execution workflow integrates with:
- PRD Creation: Reference PRD sections during implementation
- Task Generation: Follow task breakdown and dependencies
- Code Review: Validate implementations against PRD requirements
- Testing: Execute comprehensive testing strategy
- Deployment: Prepare code for production deployment
Author: Code-and-Sorts, Awesome Copilot agents (Code and Sorts). License: CC0-1.0.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The GitHub Copilot library holds 3,059 entries. Members can search all of them by meaning and read every one in full.