cursorrules

A set of Cursor rules and reference documents for guiding product development from an idea to a running app. It uses a file called .workflow/meta.json to track the project's progress and structure.

In plain words
What is it for?
Use it for drafting product requirements, splitting them into tasks, extracting designs from Figma or images, building pages from screenshots, and adding modules such as authentication, databases, payments, email, tests, or CI.
Why use it?
It gives the agent a consistent process for turning ideas into requirements, designs, code, and project modules.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/lukedj78/dev-flow/cursorrules
Clone the repo
git clone --depth 1 https://github.com/lukedj78/dev-flow

Made for: Cursor.

Per session 845 This file is loaded in full into every session.
When invoked 845 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00845 $0.00845
Opus 5 $0.00423 $0.00423
Sonnet 5 $0.00169 $0.00169
Haiku 4.5 $0.00085 $0.00085

Measured yesterday against content hash 6de151769a00, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cursorrules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

bootstrap/templates/.cursorrules · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

dev-flow — Cursor rules

You have access to dev-flow, a set of 8 reference documents (under dev-flow-skills/) that guide product development from idea to running app via a filesystem contract at .workflow/meta.json.

How to use

When the user's request matches one of these patterns, READ the corresponding skill's SKILL.md BEFORE doing the work:

User says… Read first
"I have an idea: …" / "I want to build X" dev-flow-skills/dev-flow/SKILL.md (orchestrator) → routes to next
"Capture this idea / draft a PRD" dev-flow-skills/prd-from-idea/SKILL.md
"Split the PRD into tasks" dev-flow-skills/prd-to-tasks/SKILL.md
"Extract design from Figma" / "Use this Figma URL" dev-flow-skills/figma-to-design-md/SKILL.md
"Use these images for the design" / "Make a DESIGN.md from these screenshots" dev-flow-skills/image-to-design-md/SKILL.md
"Scaffold the app from DESIGN.md" / "Apply this DESIGN.md to shadcn/MUI" dev-flow-skills/design-md-to-app/SKILL.md
"Build this page from a screenshot" dev-flow-skills/screenshot-to-page/SKILL.md
"Add auth / db / payments / email / tests / CI" dev-flow-skills/module-add/SKILL.md

Read meta.json first

Before any non-trivial work, read <project-root>/.workflow/meta.json. The phase field tells you the current state. The stack field tells you which framework + UI library are in use. The artifacts field records what's been produced and from what.

If .workflow/ doesn't exist, run:

python3 dev-flow-skills/dev-flow/scripts/init_workflow.py . --name "<project>"

Tool name mapping

Skills use Claude Code naming. Cursor uses different tool names — translate semantically:

Skill says Cursor equivalent
Bash terminal command
Read filesystem read
Edit (string replace) edit_file
Write edit_file (new file)
Glob find_files
Grep grep_search

State updates

After any skill produces a contract file (PROJECT.md, PRD.md, DESIGN.md, registry.json, generated pages, schema), record it:

Read the full file on GitHub · 77 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 77 lines · 845 tokens per session scan A 6de151769a00

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository lukedj78/dev-flow (5 stars, last pushed 3d ago), licensed MIT. It adds 845 tokens to every session, about $0.0042 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.