flow / rules
Cursor rule17 starsChanged 2 months agoApache-2.0View on GitHub
Use Flow for context-driven development in repositories with .agents.
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 repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- apilookupSkill
- architecture-criticSkill
- challengeSkill
- consensusSkill
- debloatSkill
- deepthinkSkill
- devils-advocateSkill
- docgenSkill
- flow-completionSkill
- flow-executionSkill
- flow-planningSkill
- flow-setupSkill
- flowSkill
- flow-stateSkill
- flow-sync-statusSkill
- okfSkill
- performance-analystSkill
- perspectivesSkill
- security-auditorSkill
- tracerSkill
The file
We split this flow.mdc into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
When a repository has .agents/, read its configured root, bundle index, active spec, authoritative task worksheet, and applicable …
- Very specific: line 30
Write direct, zero-slop prose and code: avoid AI puffery, negative parallelisms, formulaic transitions, and inline # comments in Python …
- Very specific: line 35
Use structured-choice-v1 for unresolved decisions: one decision at a time, only through a currently allowed compatible native tool or the …
- Distinctive: line 61
No native question tool is verified for this host.
≈ “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: Use Flow for context-driven development in repositories with .agents.
alwaysApply: true
---
<!-- Generated from rules/flow-core.md and contracts/flow.yaml; generated-sha256: 84f7f5e64f07b27cc815f56bebf5116f8ce83bad5aae38d26d3e8e3a195cf96e -->
<!-- flow-rule-adapter: {"activation":"The always-applied repository rule and AGENTS.md activate Flow.","automatic_push":false,"canonical_sha256":"8a6c8792d28a246ac1af833e9efab25af3d21c53921ec6512382194bbf4cb46c","canonical_source":"rules/flow-core.md","contract_sha256":"c714548b58c3d404604bf65a542cc986d36e4afbbb464dcd96ffaf836f43d9db","contract_source":"contracts/flow.yaml","git_tags":"forbidden","host":"cursor","interaction_contract":{"choice_keys":["id","label","description"],"custom_label":"Other","fallback_reason_order":["tool_absent","tool_denied","mode_unsupported","choice_count_unsupported","bounds_unsupported","custom_unsupported","disabled_policy_unsupported"],"id":"structured-choice-v1","one_decision_at_a_time":true,"post_quality":["approve","revise","refine"],"pre_quality":["revise","refine"],"procedure_source":"skills/flow/references/interaction.md","recommended_choice":"first_with_suffix","recommended_suffix":" (Recommended)"},"kind":"flow_rule_adapter","lifecycle_skills":["flow-setup","flow-planning","flow-execution","flow-sync-status","flow-completion"],"nested_knowledge":true,"question_capability":{"bounds_enforcement":"unsupported","choice_max":null,"choice_min":null,"custom_answer_behavior":"sequential_text_only","disabled_choice_policy":"omit","multi_select":false,"permission_check":"not_applicable","sequential_fallback":true,"supported_modes":[],"tool":null,"transport":"sequential_text"},"rule_id":"flow-operational-v1","rule_revision":1,"shared_contracts":["flow-state-v1","structured-choice-v1","worksheet-execution-v1","quality-review-v1"]} -->
# Flow Operational Rule
Activation: The always-applied repository rule and AGENTS.md activate Flow.
When a repository has `.agents/`, read its configured root, bundle index, active
spec, authoritative task worksheet, and applicable recursively nested knowledge
before acting. Operational skills resolve only from `.agents/skills/`.
Route through the `flow` skill and exactly one lifecycle skill. Refine plans
until every worksheet is executable, follow the selected worksheet without
improvising, and route contradictions through revise/refine. Rewrite revised
worksheets in place in present tense without historical transcripts, and keep
Markdown checklist markers (`[x]`, `[~]`, `[ ]`) synchronized with task `state`.
Apply direct Markdown frontmatter state synchronization and reconcile task-first.
Close and archive completed specs on the working branch without waiting for branch
merge; when scope grows beyond the active spec, finish the current spec and open a
follow-up spec via `/flow:plan`. Before deleting any spec during archive,
curate evidence-backed OKF chapters across nested domain, architecture, pattern,
testing, and gotcha folders (`knowledge/index.md`).
Write direct, zero-slop prose and code: avoid AI puffery, negative parallelisms,
formulaic transitions, and inline `#` comments in Python (use docstrings and PEP
585 types). Proactively fix adjacent lint, typing, or dead-code issues in touched
in-scope files and suggest the exact canonical `/flow:<action>` command next.
Use `structured-choice-v1` for unresolved decisions: one decision at a time,
only through a currently allowed compatible native tool or the equivalent
sequential-text fallback. Run correctness review and then the mandatory fresh
quality review before finish/archive.
Commits remain local unless the user explicitly asks for delivery. Never create, move, force-update, or delete Git tags.
## Host activation
- Antigravity evaluates plugin rules before routing to installed skills.
- Claude Code and Codex use native skills, hooks, and their instruction hierarchy.
- OpenCode uses its system transform plus discovered Agent Skills.
- Cursor and VS Code/Copilot use repository instruction surfaces.
- OpenClaw uses workspace instructions, Agent Skills, and runtime subagents; Flow
does not ship a fabricated static manifest or question tool for it.
## Contract links
- [State operations and recovery](../../skills/flow/references/state.md)
- [Structured decisions](../../skills/flow/references/interaction.md)
- [Worksheet execution](../../skills/flow/references/implement.md)
- [Completion quality](../../skills/flow/references/review.md)
- [Lifecycle router](../../skills/flow/SKILL.md)
## Structured decision view
No native question tool is verified for this host. Render every request sequentially in text and wait for its answer before continuing.
For `binary`, `single_select`, and `multi_select`, show only enabled domain choices (2-4 within the host limit), put the recommended choice first with a space and `(Recommended)`, include each concise description, include multi-select bounds, and finish with `Other - enter a custom response`. For `open`, show only its input guidance and use sequential text. Never invent a tool, argument, mode, slash command, or batch interaction. Before quality, offer only Revise/Refine; after quality, offer Approve/Revise/Refine.
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.

