opensync / rules
Cursor rule410 starsChanged 10 months agoMITView on GitHub
Project documentation rule for creating about.md files that explain projects in plain language
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 repository12 other files it gives its agents.
- .cursor/rules/changelog.mdcCursor rule
- .cursor/rules/convex2.mdcCursor rule
- .cursor/rules/convex-write-conflicts.mdcCursor rule
- .cursor/rules/dev2.mdcCursor rule
- .cursor/rules/gitruels.mdcCursor rule
- .cursor/rules/help.mdcCursor rule
- .cursor/rules/opensync-ecosystem.mdcCursor rule
- .cursor/rules/rulesforconvex.mdcCursor rule
- .cursor/rules/sec-check.mdcCursor rule
- .cursor/rules/task.mdcCursor rule
- .cursor/rules/write.mdcCursor rule
- public/llms.txtllms.txt
The file
We split this about.mdc into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
After completing any significant project or feature, create or update about.md with detailed documentation.
- Distinctive: line 27
Document the non-obvious choices.
- Distinctive: line 52
Use analogies. Compare unfamiliar concepts to familiar ones.
- Distinctive: line 56
Write like you're explaining it to a friend who's a developer but hasn't seen this codebase.
≈ “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: Project documentation rule for creating about.md files that explain projects in plain language globs: alwaysApply: false --- # Project Documentation Rule After completing any significant project or feature, create or update `about.md` with detailed documentation. ## What to include ### Technical architecture Explain how the system works. What are the main components? How do they connect? Draw ASCII diagrams with nicknames for each component. ### Codebase structure Walk through the file tree. Explain what each major file or directory does and why it exists. ### Technology choices List the technologies used and why you picked them over alternatives. Include the tradeoffs you considered. ### Decisions and rationale Document the non-obvious choices. Why this database? Why this API design? Why this folder structure? ### Assumptions and invariants What must remain true as the code evolves? What are the core constraints the architecture depends on? ### Lessons learned This is the most important section. Include: - Bugs you ran into and how you fixed them - Potential pitfalls and how to avoid them - New technologies used and what you learned about them - How experienced engineers think through problems - Best practices you discovered or applied - Patterns worth reusing in future projects ### Tests to add next What tests would make this code more reliable? What edge cases need coverage? This section transfers learning into reliability. ## Writing style Make it engaging. This is not boring technical documentation. - Use analogies. Compare unfamiliar concepts to familiar ones. - Tell the story. How did the project evolve? What problems did you solve along the way? - Include anecdotes. What surprised you? What took longer than expected? - Be specific. Name the files, the functions, the exact errors. - Write like you're explaining it to a friend who's a developer but hasn't seen this codebase. ## Example: Production line analogy ``` +-----------------------------------------------------------------------+ | YOUR YOUTUBE NEWSLETTER | +-----------------------------------------------------------------------+ | | | INTAKE PROCESSING OUTPUT | | ------------ ------------------ -------------- | | | | get_videos.py -> get_transcripts.py -> write_articles.py | | (The Scout) (The Stenographer) (The Writer) | | | | | | | v v v | | YouTube API Transcript API Claude AI | | | | | | | v | | send_email.py | | (The Publisher) | | | | | +-------+-------+ | | v v | | EPUB Ebook Email Newsletter | | | +-----------------------------------------------------------------------+ | CONTROL CENTER | | ---------------- | | main.py -> Orchestrates the whole pipeline | | video_tracker.py -> Remembers what's already been sent | | dashboard.py -> Pretty web interface (no Terminal needed!) | | *.plist files -> Mac automation (runs while you sleep) | +-----------------------------------------------------------------------+ ``` Each file gets a role and a nickname. The architecture becomes a story about characters doing jobs. ## Why this works This approach turns "vibe coding" into deliberate practice. You ship code, then you ship the explanation. The act of writing forces you to understand what you built. The document becomes a reference for future projects and a teaching tool for others. The assumptions + invariants section catches the implicit knowledge that usually lives only in the original developer's head. The tests to add next section builds the habit of thinking about reliability even when you don't have time to implement it immediately. You compound skill by shipping artifacts and explanations together. ## Quick checklist When creating about.md: 1. Technical architecture (with ASCII diagrams and component nicknames) 2. Codebase structure walkthrough 3. Technology choices and why 4. Key decisions and rationale 5. Assumptions and invariants (what must stay true) 6. Lessons learned (bugs, fixes, pitfalls, patterns) 7. Tests to add next Credit: Inspired by @zarazhangrui and the FORZARA project documentation pattern.
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.

