formedible
БесплатноБез исполняемых скриптовНе проверенUse when building or configuring React forms with Formedible — installing formedible-core via shadcn, calling useFormedible, writing FormedibleFieldConfig…
Об этом скилле
Formedible — consumer usage
Formedible renders fully typed React forms from a field-config array, on top of TanStack Form and shadcn-compatible UI. You own the source: the registry copies the hook, fields, and types into your app, and you edit them there.
Written against the formedible-core registry item, released lineage v0.5.x (https://formedible.dev/r/formedible-core.json). Every example here is verified against the released source. Installing formedible-core also drops this skill into .claude/skills/formedible/ and .agents/skills/formedible/ in the consuming project.
Mental model
- Config-driven: one
useFormedible<TValues>(config)call describes fields, validation, pages/tabs, persistence, and analytics. The returnedFormcomponent renders everything. - Source-owned: install copies files to
components/ui/formedible/**in the consumer app. Import from your local@/components/ui/formedible/...paths, never from a published package. - TanStack Form owns state: the hook returns the underlying
forminstance (form.state.values,form.reset(), ...). Values are typed byTValues. - Standard Schema validation: the top-level
schemaoption accepts any Standard Schema v1 object — zod v4 is the documented choice.
Steps
Install in the app that owns the UI components:
pnpm dlx shadcn@latest add https://formedible.dev/r/formedible-core.jsonIt declares dependencies
@tanstack/react-form,zod,clsx,lucide-react,tailwind-mergeand pulls the shadcnbadge, button, checkbox, command, field, input, popover, radio-group, select, slider, switch, textareacomponents. React 19 is the environment it is developed against. Done whencomponents/ui/formedible/hooks/use-formedible.tsxexists in the app.Type the values and keep one source of truth:
type Values = z.infer<typeof schema>(or a hand-written interface extendingFormedibleFormValues). Every fieldname, everydefaultValueskey, and every schema key must line up. Done when each field name in step 3 exists indefaultValues.Write the field config —
readonly FormedibleFieldConfig<Values>[]. Reach for the field-type reference below before inventing keys; every type's options live inreferences/fields.md. Done when the form renders every field.Wire submit in
formOptions.onSubmitand render<x.Form />. Done when submitting produces typed values in your handler.
import { z } from 'zod';
import { useFormedible } from '@/components/ui/formedible/hooks/use-formedible';
const contactSchema = z.object({
name: z.string().min(2, 'Name must be at least 2 characters'),
email: z.string().email('Enter a valid email'),
message: z.string().min(10, 'Message must be at least 10 characters'),
});
type ContactValues = z.infer<typeof contactSchema>;
export function ContactForm() {
const contactForm = useFormedible<ContactValues>({
schema: contactSchema,
fields: [
{ name: 'name', type: 'text', label: 'Full name', required: true },
{ name: 'email', type: 'email', label: 'Email', required: true },
{ name: 'message', type: 'textarea', label: 'Message' },
],
formOptions: {
defaultValues: { name: '', email: '', message: '' },
onSubmit: async ({ value }) => {
await fetch('/api/contact', { method: 'POST', body: JSON.stringify(value) });
},
},
});
return <contactForm.Form className="space-y-4" />;
}
Import map (after install)
| Import | Source file |
|---|---|
useFormedible |
@/components/ui/formedible/hooks/use-formedible |
useMultiPage, getVisiblePageNumbers, conditionMatches |
@/components/ui/formedible/hooks/use-multi-page |
useFormTabs, normalizeTabs |
@/components/ui/formedible/hooks/use-form-tabs |
useFormPersistence, savePersistedFormPayload, loadPersistedFormPayload, clearPersistedFormPayload |
@/components/ui/formedible/hooks/use-form-persistence |
useFormAnalytics, createFormAnalyticsTracker |
@/components/ui/formedible/hooks/use-form-analytics |
Form, FieldRenderer |
@/components/ui/formedible/form, .../field-renderer |
getFieldComponent |
@/components/ui/formedible/fields/field-registry |
UseFormedibleOptions, FormedibleFieldConfig, FormedibleFieldType, FormedibleFormValues, FormedibleFieldRenderProps (types) |
@/components/ui/formedible/lib/types |
The hook returns: Form, form, currentPage, totalPages, visiblePages, goToNextPage, goToPreviousPage, setCurrentPage, isFirstPage, isLastPage, progressValue, saveToStorage, loadFromStorage, clearStorage.
Field types
text email password url tel textarea number select radio checkbox switch date slider rating phone file array object multiSelect combobox autocomplete multiCombobox color duration location masked — plus aliases that normalize before lookup
Установить formedible в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл formedible?
Use when building or configuring React forms with Formedible — installing formedible-core via shadcn, calling useFormedible, writing FormedibleFieldConfig field lists, zod/async/cross-field validation, multi-page or tabbed flows, draft persistence, form analytics, FormedibleParser JSON configs, or AI form generation with ai-builder/ai-picker.
Как установить скилл formedible?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл formedible запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic