/datumpin:react-frontend-architecturefrom datumpin
React frontends - CSS Modules, config-driven components, fetch-function APIs, theming, URL filter state. Folder words, widgets and toolchain in siblings.
Ships in datumpin. 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.
The default structure for every frontend (AHJV2, curator, future), so components, API calls and widgets look the same across them.
Branches that load a sibling file:
| When | File |
|---|---|
| Choosing where a new component or hook goes | FOLDERS.md |
| Building a chart or table that fetches and transforms data | DATA-WIDGETS.md |
| Page loading states, guided per-item walks, Vite/Node/npm pins | STATES-AND-TOOLCHAIN.md |
Every Foo.jsx has its own Foo.module.css beside it. CSS Modules only, with no CSS-in-JS and no per-feature global stylesheet. Global tokens and utilities (:root palette, .card, .container, spacing classes) live in one top-level index.css, and component modules reuse them through composes:
.card {
composes: card from global;
cursor: pointer;
}
Component-specific rules (hover, layout) stay local, and changing a token once updates every component. PACKAGES' docs/reference/design-tokens.md holds the token-sharing convention.
When near-identical screens differ only in copy, routes or labels (AHJV2's Picker.jsx serves journals, reports, manuals and a publish mode), add a config entry to one component, keyed by the thing that varies:
const CONFIG = {
journal: { heading: "Select a Journal", templateRoute: (id) => `/journal/template/${id}` },
report: { heading: "Select a Report", templateRoute: (id) => `/report/template/${id}` },
};
Display-only concerns (a badge label) stay in their own flat lookup, apart from routing and capability concerns (which fields exist, which endpoints to call), because things that look alike today can diverge.
api/backend.js is a flat module of exported functions over one internal request() helper that handles base path, headers and error-body parsing once. Each export is a one-liner, and every caller imports the function it needs:
export function fetchSourcebuilds() {
return request("/sourcebuilds/");
}
A function name greps to every call site.
The instance supplies branding/theme.css of neutral design tokens (--color-*, --chart-*, --font-body, --radius, --shadow, --series-N). @datumpin/theme's ThemeProvider loads and validates it at startup, and a missing or incomplete file shows no branded content. Each package documents the tokens it reads, and a host adds its own through extraTokens. Logos come from the assets block through GET /branding/assets (assetsUrl on the provider). Components read var(--color-*). Delivery details: config-led-deployment (branding.md).
On a page where a user filters a list and navigates away and back, keep the selection in the query string (useSearchParams). Local state resets on remount, and the URL survives it, including the browser's Back button. Each filter change replaces the history entry, so Back does not step through intermediate filter states.
Large component files fold their sections (Imports, Config, State, Load, Render) with #region markers. See code-comments-and-docstrings.
grep -rnE "#[0-9a-fA-F]{3,6}" src --include=*.css finds a hex colour only in theme.css.Foo.jsx has a Foo.module.css beside it.api/ and calls request().What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jago971/dp-cli --plugin datumpin31 skills in this plugin
/alembic-migrationsAlembic migrations in a FastAPI/SQLAlchemy service - env.py, SQLite batch mode, container-only commands. Use when adding or reviewing a migration./alignAlign - find and fix drift between code, tickets and plans. Use when a repo joins the workflow, direction changes, a milestone closes, or to clean the backlog./api-documentationDocumenting HTTP APIs - endpoint docstrings, router READMEs, docs/reference/api. Use when adding or editing a FastAPI route./boardBoard - sync the Gitea tickets, show the kanban, suggest the next ticket. Use at session start or when asked for the board, backlog or what to do next./change-readyChange ready - the checklist a change passes before it is opened as a PR. Use when finishing work, before a closing commit, or asked if it is ready./change-reviewReview a diff on two axes, Standards and Spec, with parallel subagents. Use when reviewing a branch, a PR, work in progress or changes since a commit.