ai-todo / rules
Cursor rule16 starsChanged 10 months agoApache-2.0View on GitHub
Development workflow for ai-todo (Python/MCP)
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository7 other files it gives its agents.
- .cursor/rules/commit-standards.mdcCursor rule
- .cursor/rules/cursor-rules-guidelines.mdcCursor rule
- .cursor/rules/linear-ai-todo-integration.mdcCursor rule
- .cursor/rules/linear-document-workflow.mdcCursor rule
- .cursor/rules/linear-release-workflow.mdcCursor rule
- branch-cleanupSkill
- release-workflowSkill
The file
We split this development-workflow.mdc into the rules it gives an agent
9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Python First: All new features must be implemented in the Python package (ai_todo/).
- Very specific: line 20
File Operations: ALWAYS use ai_todo.core.file_ops.FileOps for reading/writing TODO.md.
- Very specific: line 22
NEVER: use open() or write() on TODO.md directly.
- Very specific: line 24
After editing Python files, run uv run ruff check <file> explicitly.
- Very specific: line 26
Run unit tests: uv run pytest
- Distinctive: line 27
Test MCP tools via the MCP Inspector or Cursor.
- Distinctive: line 37
Use the task and subtask descriptions to provide high level summaries of the individual steps
- Distinctive: line 38
Use tags to categorize individual steps
- Very specific: line 48
Developer Warning: Never edit TODO.md manually during development unless you are specifically testing the tamper detection logic.
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
---
description: "Development workflow for ai-todo (Python/MCP)"
alwaysApply: true
---
# Development Workflow
**Primary Language:** Python 3.14+
**Primary Interface:** MCP Server
## Repository Context
- **Root:** `ai_todo/` (Python package source)
- **CLI Entry:** `ai_todo/cli/main.py`
- **MCP Entry:** `ai_todo/mcp/server.py`
- **Core Logic:** `ai_todo/core/` (Shared logic for CLI and MCP)
## Development Rules
1. **Python First:** All new features must be implemented in the Python package (`ai_todo/`).
2. **File Operations:** ALWAYS use `ai_todo.core.file_ops.FileOps` for reading/writing `TODO.md`.
- This class handles checksums, shadow copies, and atomic updates.
- **NEVER** use `open()` or `write()` on `TODO.md` directly.
3. **Linting:**
- After editing Python files, run `uv run ruff check <file>` explicitly.
4. **Testing:**
- Run unit tests: `uv run pytest`
- Test MCP tools via the MCP Inspector or Cursor.
5. **Installation/Migration:**
- Installation logic resides in `ai_todo/cli/system_ops.py` (or dedicated modules).
- Migrations are handled by `ai_todo.core.migrations`.
6. **Development Methodology:**
- Whenever you are asked to develop something, always create subtasks that cover:
analysis, design, implementation, creating unit and integration tests, verify and document
- Whenever you are working on analysis or design always create a document with the findings and
options and stop for human review and approval. Always add the file link to the description
of the task or sub task that created it.
- Use the task and subtask descriptions to provide high level summaries of the individual steps
- Use tags to categorize individual steps
## File Integrity & Tamper Detection
ai-todo uses a simple tamper detection system to protect `TODO.md` integrity.
- **State Directory:** `.ai-todo/state/` contains critical integrity files (checksums, shadow copies).
- **RESTRICTION:** This directory is **OFF LIMITS** to agents. Never read, write, or modify files in this directory directly.
- **Tamper Mode:** Configured in `config.yaml` (`security.tamper_proof`).
**Developer Warning:** Never edit `TODO.md` manually during development unless you are specifically testing the tamper detection logic.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

