agentset / rules
Cursor rule2.1k starsChanged 10 months agoMITView on GitHub
Guidelines for writing clean, maintainable, and human-readable code. Apply these rules when writing or reviewing code to ensure consistency and quality.
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about agentset-ai/agentset
- A Hacker News story“Show HN: Agentset – Open-source RAG with vector DB, embeddings, and API built-in”Hacker News · Oct 17, 2025 · 6 points
- A Hacker News story“Show HN: Agentset – An open-source RAG platform for AI apps”Hacker News · May 15, 2025 · 4 points
- colinhacks/zod“Unhandled `undefined` in `to-json-schema`'s `flattenRef` method”GitHub · Jan 14, 2026 · 2 reactions
- agentset-ai/partition-api-v2“Add EU region support”GitHub · Sep 27, 2026
- sudosubin/agents.nix“agent-skills.github.agentset-ai.agentset: init at 0-unstable-2026-01-26”GitHub · Sep 25, 2026
The biggest 5 of 8 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 8
Talked about on GitHub and Hacker News (8 times).
On GitHub · 6
- Jan 14, 2026Unhandled `undefined` in `to-json-schema`'s `flattenRef` method — colinhacks/zod2 reactions · 2 comments
- Sep 27, 2026Add EU region support — agentset-ai/partition-api-v20 reactions
- Sep 25, 2026agent-skills.github.agentset-ai.agentset: init at 0-unstable-2026-01-26 — sudosubin/agents.nix0 reactions
- Aug 1, 2026docs: add Agentset to LLM knowledge tools — xlabs-club/awesome-x-ops0 reactions
- Jan 31, 2026Add Agentset to Frameworks section — Yigtwxx/awesome-rag-production0 reactions
1 more on GitHub
- Oct 26, 2025Add missing email validation — better-auth/better-auth0 reactions · 5 comments
On Hacker News · 2
- Oct 17, 2025Show HN: Agentset – Open-source RAG with vector DB, embeddings, and API built-in6 points
- May 15, 2025Show HN: Agentset – An open-source RAG platform for AI apps4 points
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 repository13 other files it gives its agents.
- .agents/skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- docs/CLAUDE.mdCLAUDE.md
- animationsCursor rule
- .cursor/rules/nextjs.mdcCursor rule
- .cursor/rules/project-structure.mdcCursor rule
- .cursor/rules/shadcn.mdcCursor rule
- tailwindcssCursor rule
- baseline-uiSkill
- fixing-accessibilitySkill
- fixing-metadataSkill
- react-emailSkill
- trigger-dev-tasksSkill
- vercel-react-best-practicesSkill
The file
We split this clean-code.mdc into the rules it gives an agent
10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
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 12
Use descriptive constant names that explain the value's purpose
- Distinctive: line 13
Keep constants at the top of the file or in a dedicated constants file
- Distinctive: line 19
Avoid abbreviations unless they're universally understood
- Distinctive: line 23
Don't comment on what the code does - make the code self-documenting
- Distinctive: line 24
Use comments to explain why something is done a certain way
- Distinctive: line 25
Document APIs, complex algorithms, and non-obvious side effects
- Distinctive: line 31
If a function needs a comment to explain what it does, it should be split
- Distinctive: line 41
Keep related code together
- Distinctive: line 43
Use consistent file and folder naming conventions
- Distinctive: line 55
Leave code cleaner than you found it
≈ “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: Guidelines for writing clean, maintainable, and human-readable code. Apply these rules when writing or reviewing code to ensure consistency and quality. globs: alwaysApply: true --- # Clean Code Guidelines ## Constants Over Magic Numbers - Replace hard-coded values with named constants - Use descriptive constant names that explain the value's purpose - Keep constants at the top of the file or in a dedicated constants file ## Meaningful Names - Variables, functions, and classes should reveal their purpose - Names should explain why something exists and how it's used - Avoid abbreviations unless they're universally understood ## Smart Comments - Don't comment on what the code does - make the code self-documenting - Use comments to explain why something is done a certain way - Document APIs, complex algorithms, and non-obvious side effects ## Single Responsibility - Each function should do exactly one thing - Functions should be small and focused - If a function needs a comment to explain what it does, it should be split ## DRY (Don't Repeat Yourself) - Extract repeated code into reusable functions - Share common logic through proper abstraction - Maintain single sources of truth ## Clean Structure - Keep related code together - Organize code in a logical hierarchy - Use consistent file and folder naming conventions ## Encapsulation - Hide implementation details - Expose clear interfaces - Move nested conditionals into well-named functions ## Code Quality Maintenance - Refactor continuously - Fix technical debt early - Leave code cleaner than you found it
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.

