|
| 1 | +--- |
| 2 | +name: Agent Task |
| 3 | +about: Task specifically designed for autonomous AI agents |
| 4 | +title: '[AGENT] ' |
| 5 | +labels: ['agent-task', 'automation'] |
| 6 | +assignees: '' |
| 7 | +--- |
| 8 | + |
| 9 | +## Task Overview |
| 10 | +**Objective:** |
| 11 | +<!-- Clear, specific description of what the agent should accomplish --> |
| 12 | + |
| 13 | +**Priority:** <!-- High/Medium/Low --> |
| 14 | + |
| 15 | +## Detailed Requirements |
| 16 | + |
| 17 | +### Primary Goals |
| 18 | +- [ ] Goal 1 |
| 19 | +- [ ] Goal 2 |
| 20 | +- [ ] Goal 3 |
| 21 | + |
| 22 | +### Technical Constraints |
| 23 | +- [ ] Must maintain 100% test coverage |
| 24 | +- [ ] Must pass all quality gates (`npm run check:all`) |
| 25 | +- [ ] Must follow existing code patterns |
| 26 | +- [ ] Must not introduce breaking changes |
| 27 | + |
| 28 | +### Success Criteria |
| 29 | +<!-- Very specific, measurable criteria for completion --> |
| 30 | +- [ ] All tests pass: `npm test` |
| 31 | +- [ ] Quality checks pass: `npm run check:all` |
| 32 | +- [ ] Mutation testing >50%: `npm run mutation` |
| 33 | +- [ ] Specific functionality works as described |
| 34 | +- [ ] Documentation is updated if needed |
| 35 | + |
| 36 | +## Implementation Guidance |
| 37 | + |
| 38 | +### Suggested Approach |
| 39 | +<!-- Step-by-step guidance for the agent --> |
| 40 | +1. Analyze existing code structure |
| 41 | +2. Write tests first (TDD approach) |
| 42 | +3. Implement incrementally |
| 43 | +4. Validate continuously |
| 44 | + |
| 45 | +### Files to Consider |
| 46 | +<!-- List relevant files the agent should examine/modify --> |
| 47 | +``` |
| 48 | +src/ |
| 49 | +├── components/ |
| 50 | +├── utils/ |
| 51 | +├── index.js |
| 52 | +index.html |
| 53 | +package.json |
| 54 | +``` |
| 55 | + |
| 56 | +### Testing Strategy |
| 57 | +- **Unit tests:** Test individual functions/components |
| 58 | +- **Property tests:** Use fast-check for complex logic |
| 59 | +- **Integration tests:** Test component interactions |
| 60 | +- **Manual verification:** Test in browser if UI changes |
| 61 | + |
| 62 | +## Quality Gates |
| 63 | +Before opening PR, ensure: |
| 64 | +```bash |
| 65 | +npm test # All tests pass |
| 66 | +npm run check:all # All quality checks pass |
| 67 | +npm run validate:all # Complete validation |
| 68 | +``` |
| 69 | + |
| 70 | +## Agent Instructions |
| 71 | +**Branch naming:** `agent/[issue-number]-[short-description]` |
| 72 | + |
| 73 | +**Commit strategy:** |
| 74 | +- Small, focused commits |
| 75 | +- Clear commit messages |
| 76 | +- Reference this issue number |
| 77 | + |
| 78 | +**Error handling:** |
| 79 | +- If tests fail, analyze each failure individually |
| 80 | +- Fix simplest issues first |
| 81 | +- Make minimal changes |
| 82 | +- Verify fixes immediately |
| 83 | + |
| 84 | +--- |
| 85 | + |
| 86 | +**Ready for agent assignment:** Comment `@claude` or `/cursor start` to assign this task to an autonomous agent. |
0 commit comments