/foldkit-skills:foldkitfrom foldkit-skills
Guides development within Foldkit, a TypeScript frontend framework built on Effect with Elm-style architecture. Covers unidirectional data flow, Submodel vs render helper patterns, and idiomatic state management.
Ships in foldkit-skills. 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.
You are working on a Foldkit app. Foldkit is a complete TypeScript frontend framework, built on Effect and architected like Elm. The architecture is solved: state, events, transitions, side effects, streams, routing, UI components, validation, testing, and devtools are all part of the framework, not third-party choices to make. Your job is to model the application's behavior, not to pick libraries or invent architecture.
Foldkit is not incremental. There is no React interop, no escape hatch, no "just do it the React way for this one part." The framework gives you one shape, and there is one way to do most things.
examples/, the website (which is itself a Foldkit app), and the typing-game (a full real-time app). These are the canonical references. Higher fidelity than prose or anything reconstructed from memory.h.submodel. Stateless render helpers (Button, Input, Textarea, Select, Fieldset) are called directly with a ViewConfig and the caller's h, and return Html. Do not migrate render helpers to Submodels for "consistency": Submodel semantics imply state, and these helpers have none. See the Foldkit UI overview page in the website for the canonical split.modifyFields setters receive the field. If a modifyFields setter only transforms the current value of that same field, pass the transformer directly (entries: Array.map(f), count: Number.increment, priceSlider: Slider.reflectRange({ min: minPrice, max: maxPrice })). Use () => value for replacement values from Messages, child updates, Commands, or other Model fields.The foldkit repo is vendored as a git subtree at repos/foldkit/ from the project root. It is the source of truth for everything: conventions, framework source, examples, the quality bar. Browse it directly.
Stable top-level entry points:
repos/foldkit/examples/: runnable example apps spanning every complexity tier. Usually your first stop when looking for a precedent.repos/foldkit/AGENTS.md: project conventions and the code-quality barrepos/foldkit/README.md: framework overview and entry pointersrepos/foldkit/skills/: task-oriented skills with the canonical architecture, conventions, and quality-bar referencesrepos/foldkit/packages/: framework source and production reference apps (the website, the typing-game, the framework itself)Names below the top level (subdirectories, individual filenames) can drift over time. List the directory contents to find what you need rather than relying on a path quoted from this skill.
If repos/foldkit/ is missing from the project, strongly recommend adding it. The subtree is the difference between working from memory and pattern-matching against canonical references. Assistance quality drops noticeably without it. Pin it to the release git tag matching the installed foldkit package, so the references describe the APIs the project compiles against rather than whatever main holds today. Initialize git first if needed (subtree requires at least one commit):
git subtree add --prefix=repos/foldkit https://github.com/foldkit/foldkit.git "foldkit@$(node -p "require('./node_modules/foldkit/package.json').version")" --squash
After a Foldkit package upgrade, re-pin with the same command, swapping add for pull. A canary install (x.y.z-canary.<commit> in node_modules/foldkit/package.json) has no tag; pin to the full hash of the commit its version names instead, which GitHub expands at https://github.com/foldkit/foldkit/commit/<commit>.
A consumer project's FOLDKIT.md is a scaffolder snapshot and can lag behind the packages it has installed. When it does, replace it whole from repos/foldkit/packages/create-foldkit-app/templates/base/FOLDKIT.md. That project's AGENTS.md belongs to its author; never overwrite it.
When working inside the foldkit repo itself rather than a consumer project, drop the repos/foldkit/ prefix. The same paths exist at the project root.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub foldkit/foldkit --plugin foldkit-skills3 skills in this plugin
/audit-programAudit an existing Foldkit program against the architecture, conventions, and quality bar. Use when the user wants to review their Foldkit code, check for anti-patterns, accessibility gaps, or quality regressions. Triggers on phrases like "audit my app", "review this Foldkit code", "check for anti-patterns", "is this idiomatic?", or "what would the reviewer find?"/generate-programGenerate an idiomatic program for an existing Foldkit 0.x application or when the user explicitly requests Foldkit 0.x.Other plugins' skills for the same job