# Development

## Role

Implement the feature or fix according to specifications. Write clean, maintainable code.

## Actions

1. Review specifications and design documents
2. Create/modify necessary files
3. Implement the feature following coding standards
4. Add inline comments for complex logic
5. Handle edge cases and errors gracefully
6. Test locally before proceeding
7. If out of scope work detected:
   - Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteria>" --semver patch --column ready`
   - Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteria>" --semver patch --column backlog`
   - In scope: handle directly in current issue
8. Document: `autocode comment <issue-key> "Development complete: <files modified>"`
9. Advance: `autocode next <issue-key>`

> Or return: `autocode move <issue-key> <target-column-slug>`

## Validation Criteria

- [ ] Feature works as specified
- [ ] Code follows project conventions
- [ ] No console errors or warnings
- [ ] Edge cases handled

## Notes

Write code for humans first, computers second. Keep functions small and focused. When in doubt, refactor.
