uces
CLAUDE.md106 starsChanged 10 months agoMITView on GitHub
Reference: ~/.claude/CONVENTIONS.md for detailed standards Route requests to the appropriate skill module: Web: Next.js 14+, React 18+, TypeScript strict, Tailwind CSS, shadcn/ui, Supabase/Prisma, TanStack Query, Zustand Mobile: Expo SDK 50+, Expo Router, NativeWind, React Native Capture discoveries during work: Categories: discovery, pattern, note, warning Learnings persist across sessions.
The file
We split this CLAUDE.md into the rules it gives an agent
9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
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
- could be automatic: a setting could enforce it
- Distinctive: line 62
Never claim unverified success
- Distinctive: line 64
Ask rather than assume
- Distinctive: line 163
No environment file modifications
- Distinctive: line 164
No loose typing (any/unknown without assertion)
- Distinctive: line 165
No unauthenticated API routes
- Distinctive: line 167
No deferred work (TODO/FIXME)
- Distinctive: line 168
No incomplete state handling
- Distinctive: line 169
No force push without confirmation
- Distinctive: line 170
No unverified completion claims
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md 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
UCES Core Directives
Reference: ~/.claude/CONVENTIONS.md for detailed standards
Intelligent Routing
Route requests to the appropriate skill module:
| Keywords | Module |
| component, page, UI, form, button, modal, React, Next.js, Tailwind, styling | ui |
| API, endpoint, route, database, REST, GraphQL, webhook, server, Supabase | api |
| mobile, Expo, React Native, NativeWind, iOS, Android, app | native |
| bug, error, fix, debug, broken, failing, test, spec | debug |
| auth, login, security, permission, OWASP, encryption, JWT | guard |
| plan, design, architecture, PRD, spec, requirements, system | architect |
| analytics, metrics, query, data, dashboard, report, KPI | data |
| deploy, CI/CD, Docker, pipeline, infrastructure, DevOps | devops |
Zero-Tolerance Enforcement
Blocked Patterns
- Placeholder data → Connect real sources
- Deferred implementations → Complete now
- Stub handlers → Full logic required
- Partial state handling → All states mandatory
- Loose typing → Strict TypeScript
- Silent failures → User feedback required
Completion Criteria
[✓] Integrated with actual data sources
[✓] States covered: loading, error, empty, success
[✓] Errors surface to user appropriately
[✓] TypeScript: zero errors
[✓] Production-ready qualityVerification Protocol
Before marking complete:
- Execute validation:
npx tsc --noEmit # Must pass npm test # Must pass - UI deliverables: Describe rendered state
- API deliverables: Show response structure
- Uncertainty: Explicitly state unknowns
Communication standards:
- Never claim unverified success
- Surface all warnings/errors
- Ask rather than assume
Implementation Templates
API Endpoint
// 1. Authentication
const session = await getSession()
if (!session) return unauthorized()
// 2. Input validation
const validated = Schema.safeParse(input)
if (!validated.success) return badRequest(validated.error)
// 3. Authorization
if (resource.ownerId !== session.userId) return forbidden()
// 4. Execution with error handling
try {
const result = await execute(validated.data)
return success(result)
} catch (e) {
log.error(e)
return serverError()
}UI Component
// Mandatory state handling
if (loading) return <LoadingSkeleton />
if (error) return <ErrorDisplay retry={refetch} />
if (empty) return <EmptyState action={<CreateNew />} />
return <Content data={data} />Form Handler
// Complete form pattern
<form onSubmit={handleSubmit}>
<Field {...register('name')} error={errors.name} />
<Submit loading={submitting}>
{submitting ? 'Processing...' : 'Submit'}
</Submit>
</form>Module Reference
| Module | Use Case |
ui | Interface development |
api | Server-side logic |
native | Mobile applications |
debug | Problem resolution |
guard | Security implementation |
architect | System planning |
data | Analytics & queries |
devops | Infrastructure & CI/CD |
External Documentation
1. resolveLibrary({ name: "library", query: "topic" })
2. queryDocs({ libraryId: "/org/lib", query: "specific question" })Technology Stack
Web: Next.js 14+, React 18+, TypeScript strict, Tailwind CSS, shadcn/ui, Supabase/Prisma, TanStack Query, Zustand
Mobile: Expo SDK 50+, Expo Router, NativeWind, React Native
Session Memory
Capture discoveries during work:
echo '{"category":"discovery","content":"Description"}' | bash ~/.claude/hooks/memory.shCategories: discovery, pattern, note, warning
Learnings persist across sessions.
Restrictions
- No environment file modifications
- No loose typing (any/unknown without assertion)
- No unauthenticated API routes
- No placeholder implementations
- No deferred work (TODO/FIXME)
- No incomplete state handling
- No force push without confirmation
- No unverified completion claims
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.

