agentleFS
grezxunegrezxune/ai-tools/skills/standards/SKILL.md

standards

Skill0 starsChanged 56 days agoMITView on GitHub

Default stack, code, UI, and security rules. Use before writing app code in a repo with no AGENTS.md.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 3 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 6

    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. Very specific:

    Never use @ts-nocheck. Fix the types.

    line 20
  2. Distinctive:

    After every change, run build, typecheck, and lint for what you touched, plus targeted tests for the changed behavior.

    line 23
  3. Very specific:

    Before significant UI work, read the repo's DESIGN.md, or UxStyle.md in an older repo.

    line 27
  4. Distinctive:

    Never use a scroll indicator, animated dots, or "scroll" hint text.

    line 29
  5. Very specific:

    Never allow horizontal page scroll.

    line 30
  6. Very specific:

    Never use Tailwind's ! important modifier.

    line 31
  7. Very specific:

    Never use alert(), confirm(), or prompt().

    line 32
  8. Distinctive:

    No hardcoded secrets, keys, or credentials.

    line 36
  9. Very specific:

    Never trust a client-supplied userId, email, or role for authorization.

    line 38

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “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
SKILL.md

Standards

My defaults for web apps. A repo's own AGENTS.md replaces them.

Stack

  • Package manager is bun.
  • Next.js App Router only. Never create a pages/ directory.
  • Server components by default. Client components only where interactivity requires it.
  • Give each entity state its own route: create/, [id]/, [id]/update/, [id]/manage/. Do not multiplex those states inside one route.
  • Auth.js for auth, Google as the initial provider. Convex for data and file storage. Stripe for payments, server-side only, Connect for multi-party payouts. Resend for email.

Code

  • Never use @ts-nocheck. Fix the types.
  • Target 200 lines per file. Exceed it when splitting would hurt cohesion, and say why.
  • Import everything explicitly.
  • After every change, run build, typecheck, and lint for what you touched, plus targeted tests for the changed behavior. Never merge with failing tests.

UI

  • Before significant UI work, read the repo's DESIGN.md, or UxStyle.md in an older repo.
  • Support dark and light themes.
  • Never use a scroll indicator, animated dots, or "scroll" hint text.
  • Never allow horizontal page scroll. Constrain layouts and set overflow-x: hidden at the root.
  • Never use Tailwind's ! important modifier. Fix the layout or hierarchy instead.
  • Never use alert(), confirm(), or prompt(). Use the project's branded modal.

Security

  • No hardcoded secrets, keys, or credentials. Environment variables only.
  • Validate tokens server-side. Never trust client state.
  • Never trust a client-supplied userId, email, or role for authorization. Derive identity from the verified server session, then enforce ownership against stored records.
  • Deny by default. Missing auth, missing ownership, or identity mismatch fails immediately.
  • Filter on the server. Pass each view's filters, search, sort, and page as query arguments, and return only the rows and fields the current user needs for that view. A client never receives a full collection to filter, sort, or trim itself.
  • Validate and sanitize untrusted input at every boundary: API, server actions, database writes, webhooks.
  • Log errors with enough context to debug and no sensitive payloads.

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.