agentleFS
constkconstk/harness-python-react/.claude/skills/frontend/SKILL.md

frontend

Skill2 starsChanged 7 months agoMITView on GitHub

Activate when working on the React UI in `frontend/`, components, CSS/styling, the SSE client, or anything in `frontend/src/`. Triggers on frontend/ directory work, React/TypeScript component changes, or UI discussions.

  • Reads credentials

37 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use backend, programming and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • xiaobei930Skill

    backend

    Backend development patterns for services, error handling, logging, caching. Use when building backend services, APIs, or microservices.

    Also in 10 projects that use this

  • Xia-AtaraxiaSkill

    programming

    Guides correctness-first, type-strict Python and TypeScript implementation. Use when asked to write a `.py` or `.ts` file, scaffold a Python/TypeScript project, add strict types, assess an implementation diff for correctness or type holes, or fix a reproducible defect. Not for smell-only assessment or behavior-preserving restructuring — use refactor; not for suite-level test architecture — use testing.

    Also in 3 projects that use this

  • iankikuSkill

    data

    (forwward) Designs analytics systems, writes SQL queries, plans event tracking, and builds dashboards for product and user metrics. Triggers on SQL, analytics, dashboards, tracking, data pipelines, or user behavior analysis.

    Also in 3 projects that use this

  • GoogleSkill

    quality

    Evaluates whether a GitHub issue is spam, empty, needs more information, or is OK to proceed.

    Also in 3 projects that use this

  • 0xSeroSkill

    security

    Also in 7 projects that use this

  • AnthropicSkill

    architecture

    Create or evaluate an architecture decision record (ADR). Use when choosing between technologies (e.g., Kafka vs SQS), documenting a design decision with trade-offs and consequences, reviewing a system design proposal, or designing a new component from requirements and constraints.

    Also in 6 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 1 is distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 29 edited versions we read keep these.

  • 1

    Distinctive

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

    Keep components small and typed — props go through interfaces, not any

    line 12
  2. Very specific:

    All colours as CSS custom properties (semantic tokens, not raw hex) — see frontend/src/styles/

    line 17
  3. Very specific:

    Keep typography choices documented in frontend/src/styles/

    line 20
  4. Very specific:

    All API calls target versioned paths only (/api/v1/...).

    line 33
  5. Very specific:

    No secrets in import.meta.env keys without the VITE_ prefix.

    line 34
  6. Distinctive:

    No heavy component libraries.

    line 38

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

You are the Frontend Engineer for this project.

Responsibilities

  • Build the React + TypeScript UI in frontend/ (Vite, React 19.2, strict TS)
  • Keep components small and typed — props go through interfaces, not any
  • Communicate with the FastAPI backend over versioned endpoints (/api/v1/...); use the typed SSE client primitive in frontend/src/lib/api/client.ts for streaming responses

Design system

  • All colours as CSS custom properties (semantic tokens, not raw hex) — see frontend/src/styles/
  • WCAG AA contrast ratios on all text
  • Dark mode primary, light mode via toggle
  • Keep typography choices documented in frontend/src/styles/

Quality gates (matches npm run scripts)

  • npm run lint — ESLint flat config (eslint-plugin-react, eslint-plugin-react-hooks, @typescript-eslint); --max-warnings=0
  • npm run format:check — Prettier
  • npm run check — tsc --noEmit (strict)
  • npm run test — Vitest + Testing Library (jsdom)
  • npm run build — production Vite build must succeed

Security

  • Output sanitisation: never render raw HTML from backend responses. Treat anything that could come from an LLM as untrusted text.
  • All API calls target versioned paths only (/api/v1/...).
  • No secrets in import.meta.env keys without the VITE_ prefix; secrets that must not ship to the browser stay server-side.

Constraints

  • No heavy component libraries. Keep dependencies minimal.
  • Functional components + hooks; avoid class components.
  • SSE streaming uses the typed client in lib/api/client.ts; do not reinvent.

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.