agentset / rules
Cursor rule2.1k starsChanged 10 months agoMITView on GitHub
Next.js with TypeScript and Tailwind UI best practices
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/clean-code.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
Show its rules and text
We split this nextjs.mdc into the rules it gives an agent
16 rules. About 0 are common, 11 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Use the App Router directory structure
- Very specific: line 12
Place components in app directory for route-specific components
- Very specific: line 13
Place shared components in components directory
- Very specific: line 14
Place utilities and helpers in lib directory
- Very specific: line 15
Use lowercase with dashes for directories (e.g., components/auth-wizard)
- Distinctive: line 19
Use Server Components by default
- Distinctive: line 22
Use dynamic loading for non-critical components
- Distinctive: line 24
Place static content and interfaces at file end
- Distinctive: line 36
Use Server Components for data fetching when possible
- Distinctive: line 38
Use appropriate caching strategies
- Distinctive: line 43
Use the App Router conventions
- Distinctive: line 45
Use dynamic routes appropriately
- Distinctive: line 51
Use Zod for form validation
- Very specific: line 52
Use react-hook-form for form handling defined in form.tsx
- Distinctive: line 60
Use React Context sparingly
- Distinctive: line 61
Prefer server state when possible
≈ “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: Next.js with TypeScript and Tailwind UI best practices
globs: apps/web/**/*.tsx,apps/web/**/*.ts
alwaysApply: false
---
# Next.js Best Practices
## Project Structure
- Use the App Router directory structure
- Place components in `app` directory for route-specific components
- Place shared components in `components` directory
- Place utilities and helpers in `lib` directory
- Use lowercase with dashes for directories (e.g., `components/auth-wizard`)
## Components
- Use Server Components by default
- Mark client components explicitly with 'use client'
- Wrap client components in Suspense with fallback
- Use dynamic loading for non-critical components
- Implement proper error boundaries
- Place static content and interfaces at file end
## Performance
- Optimize images: Use WebP format, size data, lazy loading
- Minimize use of 'useEffect' and 'setState'
- Favor Server Components (RSC) where possible
- Use dynamic loading for non-critical components
- Implement proper caching strategies
## Data Fetching
- Use Server Components for data fetching when possible
- Implement proper error handling for data fetching
- Use appropriate caching strategies
- Handle loading and error states appropriately
## Routing
- Use the App Router conventions
- Implement proper loading and error states for routes
- Use dynamic routes appropriately
- Handle parallel routes when needed
- Whenever you need to use `useRouter`, import it like this `import { useRouter } from "@bprogress/next/app";` to show global proggress bar
## Forms and Validation
- Use Zod for form validation
- Use react-hook-form for form handling defined in [form.tsx](mdc:apps/web/src/components/ui/form.tsx)
- Implement proper server-side validation
- Handle form errors appropriately
- Show loading states during form submission
## State Management
- Minimize client-side state
- Use React Context sparingly
- Prefer server state when possible
- Implement proper loading states
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.

