Instruction file imported from floriscornel/todo-mcp (
.cursor/rules/development-workflow.mdc). Copyright stays with the author.
Development Workflow for Todo MCP
Testing & Quality Assurance
- ALWAYS run
npm run test:coverageinstead ofnpm test- We maintain 80% coverage thresholds - Before any commit, ensure all tests pass with coverage requirements
- Run
npm run lint:fixto automatically fix code style issues - Use
npm run formatfor consistent formatting with Biome
Commit Structure
Follow conventional commits format:
feat:- New featuresfix:- Bug fixesdocs:- Documentation changestest:- Adding or updating testsrefactor:- Code refactoringchore:- Dependency updates, build changes
Examples:
feat: add priority filtering to getTasks toolfix: handle case-insensitive list names correctlytest: add edge cases for task completion
Branch & PR Workflow
You should not commit directly to the main branch! Use this flow for all requests:
- Create feature branches from
main - Branch naming:
feature/short-descriptionorfix/issue-description - Before creating PR:
- Run full test suite:
npm run test:coverage - Ensure TypeScript compiles:
npm run compile - Run linting:
npm run lint
- Run full test suite:
- PR should be reviewed by GitHub Copilot (structured for automated review)
Publication & Releases
- NEVER run
npm publishmanually - Use GitHub releases to trigger automated publishing
- Version bumps should be in separate commits following semver
- Let the GitHub Actions workflow handle NPM publication
Database Changes
- Generate migrations with
npm run db:generateafter schema changes - Test migrations with both dev and test databases
- Include migration files in commits
Code Quality Standards
- Maintain strict TypeScript configuration
- Use Zod for runtime validation
- Follow the established error handling patterns
- Keep functions focused and testable
Task discovery and management
Use the todo MCP to manage tasks in a list called floriscornel/todo-mcp.
When the user asks you to do something, start by creating a plan and tasks in the mcp.
Complete tasks one by one in the mcp until everything is finished.