adk-ts / rules
Cursor rule119 starsChanged 9 months agoMITView on GitHub
This project follows a minimalist approach to code comments, focusing on clarity through well-structured, self-documenting code. ✅ Good Use of Comments: - Explaining "why" something is done a certain way - Documenting complex algorithms - Flagging future enhancements (TODO comments) - Documenting API interfaces ❌ Avoid Comments For: - Explaining obvious code - Duplicating what the code already clearly states - Commenting out unused code (delete it instead) - Line-by-line explanations
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 repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .cursor/rules/aim.mdcCursor rule
- .cursor/rules/naming-conventions.mdcCursor rule
- .cursor/rules/paths.mdcCursor rule
- adk-docs-writerSkill
- adk-readme-writerSkill
- adk-style-guideSkill
The file
We split this no-comments.mdc into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Documentation Comments Only: Add comments only when they provide documentation value.
- Distinctive: line 16
No Line-by-Line Comments: Avoid explaining each line of code with a comment.
- Distinctive: line 18
Method-Level Documentation: Place concise documentation comments above methods/functions to explain:
- Distinctive: line 23
Class-Level Documentation: Document classes with a brief description of their purpose and responsibility.
- Distinctive: line 25
Interface Documentation: Document interfaces with clear descriptions of their intent and contract.
≈ “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: globs: alwaysApply: true --- # Code Documentation Guidelines ## Commenting Philosophy This project follows a minimalist approach to code comments, focusing on clarity through well-structured, self-documenting code. ## Comment Guidelines 1. **Documentation Comments Only**: Add comments only when they provide documentation value. The code itself should be clear enough to understand without excessive comments. 2. **No Line-by-Line Comments**: Avoid explaining each line of code with a comment. This creates maintenance overhead and often becomes outdated. 3. **Method-Level Documentation**: Place concise documentation comments above methods/functions to explain: - Purpose of the method - Complex logic that may not be immediately obvious - Any important side effects 4. **Class-Level Documentation**: Document classes with a brief description of their purpose and responsibility. 5. **Interface Documentation**: Document interfaces with clear descriptions of their intent and contract. ## When to Use Comments ✅ **Good Use of Comments**: - Explaining "why" something is done a certain way - Documenting complex algorithms - Flagging future enhancements (TODO comments) - Documenting API interfaces ❌ **Avoid Comments For**: - Explaining obvious code - Duplicating what the code already clearly states - Commenting out unused code (delete it instead) - Line-by-line explanations
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.

