/ronce-racine:frontend-fullstack-implementationfrom Ronce Racine
Implements a frontend feature end-to-end with strict layer separation: types/models, store/state, composable/hook, page, and components. Includes data-testid attributes, subscription cleanup, and validation.
Ships in Ronce Racine. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
If the current repo has a specific implementation skill, it wins - it knows the stack, the paths, the fetch helpers and the project commands.
A frontend feature is built in strictly separated layers, in order, from model to presentation:
Two non-negotiable cross-cutting disciplines: data-testid on every locator (nothing is testable without a stable anchor) and cleanup of every subscription (a subscribe/watch/listener without teardown leaks). Logic never descends into the component.
package.json / CI config for the test, typecheck, lint scripts- [ ] 1. types/models: DTOs mirroring the API contract, statuses as literal unions
- [ ] 2. store/state: minimal state (loading/error/data), actions = only mutation point, no raw fetch
- [ ] 3. composable/hook: derived values (computed), no state duplication
- [ ] 4. page: route + 4 explicit states (loading / error / empty / success), zero inline logic
- [ ] 5. components: pure presentation, typed props, no direct store access
- [ ] 6. data-testid on every locator (page, each state, each interactive element, list items)
- [ ] 7. cleanup: every subscription / watch / listener has its teardown
- [ ] 8. validation: tests + typecheck + lint run, output pasted
Types mirror the API contract (statuses as literal unions, ISO dates as string). If a generator exists (OpenAPI → types), use it; otherwise write them by hand.
Minimal state: data + loading + error. Every mutation goes through an action, never from the presentation layer. No derived data stored - derive it as computed. Go through the project fetch helper (auth, 401), not the raw HTTP call.
Encapsulates reusable logic (selecting the current item, isEmpty, filters) as derived values. No copy of the store state.
Wires the route, triggers loading, and renders all four states - each with a distinct data-testid:
loading → data-testid="<domain>-loading"
error → data-testid="<domain>-error"
empty → data-testid="<domain>-empty"
success → data-testid="<domain>-list"
No logic in the template: delegate to the composable.
Pure presentation: typed props in, events out. No direct store access. Reuse an existing component before creating a new one; check that no created component is orphaned (actually mounted somewhere).
On every locator: page container, each state, each interactive element (button, input, link), each list item (data-testid="<domain>-item-${id}"). A locator by CSS class or by text is fragile - it breaks on the slightest restyle or label change.
Every subscription has an explicit teardown, on component unmount:
subscribe, stream subscription) → keep the handle and release itremoveEventListener / clearIntervalnpm run test # or the project equivalent
npm run typecheck
npm run lint
| Excuse | Reality |
|---|---|
| "I'll put the logic straight in the component, it's faster" | Untestable, non-reusable logic that re-fetches on every mount. It lives in the store or the composable. |
| "I'll fetch directly, no need for the helper" | You lose auth, 401 handling and centralized error handling. Always the project helper. |
| "No need for data-testid, I'll target by text/class" | A locator by text breaks on the 1st translation, by class on the 1st restyle. data-testid on every locator. |
| "The subscription will clean itself up" | No: it leaks, accumulates callbacks and triggers updates on an unmounted component. Explicit teardown. |
| "Empty / error state, I'll do it later" | The 4 missing states are the most frequent regressions. All 4 from the page onward. |
| "The component accesses the store just to be faster" | Presentation↔state coupling: the component becomes untestable in isolation. Props in, events out. |
data-testiddata-testid on every locator (interactive + list items)What SKILL.md sets; muted values are Claude Code's defaults
37 skills in this plugin
/adversarial-feature-challengeUse when a feature is "done" and needs adversarial stress-testing before shipping - "is it really ready", "est-ce vraiment prêt", "find the bugs", "trouve les bugs", "red team", before closing a ticket whose only validation is the golden path passing./api-contract-versioningUse when modifying an API endpoint, schema or contract consumed elsewhere - renaming/removing/restructuring a request or response field, pagination or envelope change, "field X must become", "le champ X doit devenir", introducing a breaking change, versioning an API, or deprecating a field/route. Covers REST, GraphQL and gRPC alike./audit-architecturenpx claudepluginhub charierefiedler/ronce-racine --plugin ronce-racineOther plugins' skills for the same job