agentleFS
putervisionputervision/WebCrypt/.cursor/rules/state-graph-mcp.mdc

WebCrypt / rules

Cursor rule24 starsChanged 3 months agoMITView on GitHub

This project tracks workflow state, tasks, design decisions, and blockers using state-graph-mcp.

The file

We split this state-graph-mcp.mdc into the rules it gives an agent

10 rules. About 0 are common, 3 are distinctive, and 7 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.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before doing any coding or investigation:

    line 6
  2. Very specific:

    Starting a new task: Create a node with add_node(type: "task", title: "...").

    line 14
  3. Very specific:

    Making a design or implementation decision: Document it with add_node(type: "decision", title: "...", metadata: { "rationale": "..." }).

    line 15
  4. Very specific:

    Completing a task: Update the status to done using update_node(id: task_id, status: "done").

    line 17
  5. Very specific:

    Creating/generating a new file: Create an artifact node with add_node(type: "artifact", ...) and connect it using add_edge(type: …

    line 18
  6. Very specific:

    Start of session: Run get_project_summary and find_blockers to align on current status.

    line 21
  7. Distinctive:

    If the project was just initialized or is missing high-level structure (Plans, Milestones, Decisions):

    line 27
  8. Distinctive:

    Inspect the Codebase: Read the README and core files to understand the roadmap and architecture.

    line 28
  9. Very specific:

    Scaffold the Roadmap: Create a plan node (e.g., "Project Roadmap") and add milestone nodes representing key target phases, connecting them …

    line 29
  10. Very specific:

    Scaffold Architecture: Create decision nodes representing core technical choices (e.g., choice of databases, frameworks) and link them to …

    line 30

≈ “Common” is an estimate: at least 1 in 5 of the 6,668 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
state-graph-mcp.mdc
## State Graph (state-graph-mcp)

This project tracks workflow state, tasks, design decisions, and blockers using `state-graph-mcp`.

### 1. Priority Order
Before doing any coding or investigation:
1. `get_project_summary` — Always run this first to understand current project state, active branches, and overall progress.
2. `find_blockers` — Identify any active blockers preventing progress.
3. `list_nodes` — Find pending tasks, past decisions, or milestones.
4. `trace_dependencies` — Trace what depends on or blocks a task.

### 2. When to Write to the Graph
You MUST update the graph as you work:
- **Starting a new task**: Create a node with `add_node(type: "task", title: "...")`.
- **Making a design or implementation decision**: Document it with `add_node(type: "decision", title: "...", metadata: { "rationale": "..." })`.
- **Encountering a blocker**: Record the blocker with `add_node(type: "blocker", ...)` and connect it to the blocked task using `add_edge(type: "blocks", source_id: blocker_id, target_id: task_id)`.
- **Completing a task**: Update the status to done using `update_node(id: task_id, status: "done")`.
- **Creating/generating a new file**: Create an artifact node with `add_node(type: "artifact", ...)` and connect it using `add_edge(type: "produces")`.

### 3. Workflow Pattern
1. **Start of session**: Run `get_project_summary` and `find_blockers` to align on current status.
2. **Task decomposition**: Decompose user requests into tasks and add them to the graph.
3. **Execution**: Mark tasks as "in_progress", document design decisions as they occur, and log blockers if you hit any obstacles.
4. **Resolution**: Mark tasks as "done", document completed artifacts, and resolve blockers.

### 4. Codebase Seeding on Initialization
If the project was just initialized or is missing high-level structure (Plans, Milestones, Decisions):
1. **Inspect the Codebase**: Read the README and core files to understand the roadmap and architecture.
2. **Scaffold the Roadmap**: Create a `plan` node (e.g., "Project Roadmap") and add `milestone` nodes representing key target phases, connecting them using `part_of` edges.
3. **Scaffold Architecture**: Create `decision` nodes representing core technical choices (e.g., choice of databases, frameworks) and link them to the milestones/tasks using `decided_in` edges.

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.