agentleFS
eticmedyaeticmedya/uces/CLAUDE.md

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
  1. Distinctive:

    Never claim unverified success

    line 62
  2. Distinctive:

    Ask rather than assume

    line 64
  3. Distinctive:

    No environment file modifications

    line 163
  4. Distinctive:

    No loose typing (any/unknown without assertion)

    line 164
  5. Distinctive:

    No unauthenticated API routes

    line 165
  6. Distinctive:

    No deferred work (TODO/FIXME)

    line 167
  7. Distinctive:

    No incomplete state handling

    line 168
  8. Distinctive:

    No force push without confirmation

    line 169
  9. Distinctive:

    No unverified completion claims

    line 170

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

UCES Core Directives

Reference: ~/.claude/CONVENTIONS.md for detailed standards


Intelligent Routing

Route requests to the appropriate skill module:

KeywordsModule
component, page, UI, form, button, modal, React, Next.js, Tailwind, stylingui
API, endpoint, route, database, REST, GraphQL, webhook, server, Supabaseapi
mobile, Expo, React Native, NativeWind, iOS, Android, appnative
bug, error, fix, debug, broken, failing, test, specdebug
auth, login, security, permission, OWASP, encryption, JWTguard
plan, design, architecture, PRD, spec, requirements, systemarchitect
analytics, metrics, query, data, dashboard, report, KPIdata
deploy, CI/CD, Docker, pipeline, infrastructure, DevOpsdevops

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 quality

Verification Protocol

Before marking complete:

  1. Execute validation:
    npx tsc --noEmit    # Must pass
    npm test            # Must pass
  2. UI deliverables: Describe rendered state
  3. API deliverables: Show response structure
  4. 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

ModuleUse Case
uiInterface development
apiServer-side logic
nativeMobile applications
debugProblem resolution
guardSecurity implementation
architectSystem planning
dataAnalytics & queries
devopsInfrastructure & 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.sh

Categories: 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.