agentleFS
fxsteinfxstein/ai-todo/.cursor/rules/development-workflow.mdc

ai-todo / rules

Cursor rule16 starsChanged 10 months agoApache-2.0View on GitHub

Development workflow for ai-todo (Python/MCP)

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
  1. Very specific:

    Python First: All new features must be implemented in the Python package (ai_todo/).

    line 19
  2. Very specific:

    File Operations: ALWAYS use ai_todo.core.file_ops.FileOps for reading/writing TODO.md.

    line 20
  3. Very specific:

    NEVER: use open() or write() on TODO.md directly.

    line 22
  4. Very specific:

    After editing Python files, run uv run ruff check <file> explicitly.

    line 24
  5. Very specific:

    Run unit tests: uv run pytest

    line 26
  6. Distinctive:

    Test MCP tools via the MCP Inspector or Cursor.

    line 27
  7. Distinctive:

    Use the task and subtask descriptions to provide high level summaries of the individual steps

    line 37
  8. Distinctive:

    Use tags to categorize individual steps

    line 38
  9. Very specific:

    Developer Warning: Never edit TODO.md manually during development unless you are specifically testing the tamper detection logic.

    line 48

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
development-workflow.mdc
---
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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.