agentleFS
ambient-codeambient-code/platform/skills/frontend/development/SKILL.md

frontend-development

Skill131 starsChanged 6 months agoMITView on GitHub

Required context for all frontend work. Loads frontend standards (conventions, React Query patterns, adapter testing requirements) before any code changes. Use when modifying anything under components/frontend/. Triggers on: any frontend code change, UI component work, React Query hooks, API adapter work, frontend bug fix, frontend refactor.

13 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

7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before writing or changing any frontend code, load the project's frontend standards.

    line 14
  2. Very specific:

    Read all files in specs/standards/frontend/ before proceeding:

    line 24
  3. Very specific:

    Zero any types: Use proper types or unknown.

    line 43
  4. Distinctive:

    Shadcn UI components only: No custom buttons, inputs, dialogs.

    line 44
  5. Very specific:

    React Query for all data fetching: No manual fetch() in components.

    line 45
  6. Very specific:

    type over interface: Always.

    line 46
  7. Distinctive:

    All adapters must be tested: No adapter merged without unit tests using recorded responses.

    line 47

“Common” is measured: kept by at least 6 in 10 of the 11 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

Frontend Development

Before writing or changing any frontend code, load the project's frontend standards. These are non-negotiable constraints — not suggestions.

User Input

$ARGUMENTS

Required Reading

Read all files in specs/standards/frontend/ before proceeding:

ls specs/standards/frontend/

At minimum, this includes:

  1. specs/standards/frontend/conventions.spec.md — zero-tolerance rules (no any, Shadcn only, React Query for all data, type over interface, colocated components, feature flags)
  2. specs/standards/frontend/react-query.spec.md — file structure (ports/adapters/queries), data fetching patterns, testing requirements, validation checklist

Also read the API adapter spec if working on the services layer:

  1. specs/frontend/api-adapter.spec.md — port interface contract, canonical types, 30 API domains, testability requirements

Key Constraints

These apply to every frontend change, no exceptions:

  • Zero any types. Use proper types or unknown.
  • Shadcn UI components only. No custom buttons, inputs, dialogs.
  • React Query for all data fetching. No manual fetch() in components.
  • type over interface. Always.
  • All adapters must be tested. No adapter merged without unit tests using recorded responses.
  • All hooks must be tested. Hook tests use mock adapters, not real backends.
  • Port interfaces, not raw API calls. React Query hooks consume ports, not services/api/ directly.

After Reading

Confirm you have loaded the standards, then proceed with the task. If any of your changes would violate these constraints, stop and discuss with the user before writing code.

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.