agentleFS
DariuszDuszaDariuszDusza/agentic-workflow-foundry/.agents/skills/frontend-change/SKILL.md

frontend-change

Skill1 starsChanged 27 days agoApache-2.0View on GitHub

Use when changing a frontend application, a shared UI package, a translation bundle, user-facing copy, or content files the frontend renders. Routes to the frontend rulebook the area declares and to the parity and typography checks that must pass.

The file

Files
SKILL.md

Frontend change

Required context

  1. .agents/areas.json: the frontend area, its guardrail and its verify command. Load that one guardrail; if the adopter split frontend rules by topic, load only the one the change matches (components and page chrome, shared package, translations, realtime channels).
  2. .agents/guardrails/code-style.md: the repository-wide style rules.
  3. The sibling component, page or composable closest to the change.

The rules that bite

  • Every locale moves together. A key added to the base locale lands in every sibling locale in the same change. Parity is often enforced only at type-check time, and a transpile-only build ships the raw key to users.
  • No hardcoded user-facing strings. Everything user-visible goes through the translation function, on every render surface. Shared components translate through the shared helper, not an app-local store that only one app has.
  • No em-dash (U+2014) or en-dash (U+2013) in user-facing text. They read as machine-written; tools/check-typography.sh holds the repository to it.
  • Never rename a term with a global find-and-replace across translations. Languages inflect; fix each locale by reading it.
  • A shared package is a change to every app that consumes it. Build and test each consumer, not only the one you were looking at. A shared helper that binds app state is a factory, so each app gets its own instance.
  • Facts are not copy. A price, a limit or a feature list comes from the product's source of truth, never typed into a locale bundle, so one change updates every locale and surface.
  • Generated content metadata is regenerated. A content file with a checksum is rebuilt with its generator after an edit; a stale checksum can make a page vanish without an error.
  • Accessibility is behaviour. Interactive elements are reachable by keyboard and labelled; a change that removes a label or a focus style is a regression, not a style choice.

Verify

<the area's i18n parity check>       # every locale has every key
tools/check-typography.sh            # no em-dash or en-dash
make verify

Then the frontend area's verify command exactly as .agents/areas.json declares it. Reviewer: i18n-parity-reviewer; an API change alongside it is api-standards-reviewer's.

Escalate when

  • The change alters a published claim (a price, a limit, a feature list, a legal text).
  • A new dependency or a major version bump is needed.
  • A public URL, route or asset path that others link to would change.

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.