conform
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "conform" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-daff808d5f868be13d61df12585e6b903de5dd3ea59c51a55afaebade27dc1fb. Verify the upstream source and version against https://github.com/TerminalSkills/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Build progressive forms with Conform; suitable for creating forms that work without JavaScript, implementing server-side validated forms in Remix/Next.js, or building accessible forms that support progressive enhancement.
Introduction source: third_party · TerminalSkills · 1.0.0 Reference
SkillPi interpretation
- Testing
- Not tested
Browse files
Frontmatter
name: conform
description: >-
Build progressive forms with Conform. Use when creating forms that work
without JavaScript, implementing server-validated forms in Remix/Next.js,
or building accessible forms with progressive enhancement.
license: Apache-2.0
compatibility: 'React 18+, Remix, Next.js'
metadata:
author: terminal-skills
version: 1.0.0
category: development
tags: [conform, forms, remix, progressive-enhancement, server-validation]Conform
Overview
Conform is a progressive enhancement form library. Forms work without JavaScript (server-side validation), then enhance with client-side validation when JS loads. Native to Remix and Next.js Server Actions. Uses Zod schemas for shared client/server validation.
Instructions
Step 1: Next.js Server Action Form
// app/actions.ts — Server action with Conform
'use server'
import { parseWithZod } from '@conform-to/zod'
import { z } from 'zod'
const schema = z.object({
name: z.string().min(2),
email: z.string().email(),
message: z.string().min(10).max(1000),
})
export async function submitContact(prevState: unknown, formData: FormData) {
const submission = parseWithZod(formData, { schema })
if (submission.status !== 'success') {
return submission.reply() // return errors to form
}
await db.contacts.create(submission.value)
return submission.reply({ resetForm: true })
}
// app/contact/page.tsx — Client form with progressive enhancement
'use client'
import { useForm } from '@conform-to/react'
import { parseWithZod } from '@conform-to/zod'
import { useActionState } from 'react'
import { submitContact } from '../actions'
export default function ContactPage() {
const [lastResult, action] = useActionState(submitContact, undefined)
const [form, fields] = useForm({
lastResult,
onValidate({ formData }) {
return parseWithZod(formData, { schema }) // client-side validation
},
shouldValidate: 'onBlur',
shouldRevalidate: 'onInput',
})
return (
<form id={form.id} onSubmit={form.onSubmit} action={action} noValidate>
<div>
<label htmlFor={fields.name.id}>Name</label>
<input {...getInputProps(fields.name, { type: 'text' })} />
<p>{fields.name.errors}</p>
</div>
<div>
<label htmlFor={fields.email.id}>Email</label>
<input {...getInputProps(fields.email, { type: 'email' })} />
<p>{fields.email.errors}</p>
</div>
<div>
<label htmlFor={fields.message.id}>Message</label>
<textarea {...getTextareaProps(fields.message)} />
<p>{fields.message.errors}</p>
</div>
<button type="submit">Send</button>
</form>
)
}
Guidelines
- Conform forms work without JS — server validates and returns errors via form resubmission.
- Share Zod schema between client and server — single source of truth for validation.
shouldValidate: 'onBlur'validates when user leaves field — less aggressive than onChange.- Native form attributes (required, minLength) work as fallback when JS is disabled.
- Ideal for Remix and Next.js Server Actions — designed for their form patterns.
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供完整的渐进式表单解决方案,适用于Remix/Next.js开发者
- 支持服务端验证和客户端增强,提升用户体验
- 使用Zod schema实现前后端验证一致性
Highlights
- 触发词覆盖全面,包含conform、forms、remix等核心关键词
- description清晰描述了适用场景和核心功能
Highlights
- 文档结构清晰,包含Overview、Instructions、Guidelines等完整章节
- 提供了完整的端到端代码示例,便于理解和实现
- frontmatter信息完整,包含兼容性、许可证等必要信息
Highlights
- 代码示例完整,包含服务端action和客户端组件实现
- 错误处理机制完善,支持表单重置和错误回显
- 遵循渐进增强原则,确保无JavaScript时仍能正常工作
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.