Skip to content

Commit 4ba80d4

Browse files
rozdclaude
andcommitted
feat(skill): add formskit-expert agent skill for AI coding assistants
Ships a FormsKit-aware skill at Skills/formskit-expert/ (plus a packaged .skill bundle alongside) that teaches AI coding assistants how to build forms with this package — the protocols, @validated, FormController, focus modifiers, and the gotchas worth knowing before writing code. README adds an "Using FormsKit with an AI coding assistant" section pointing app devs at three install paths: the .skill bundle for Claude Code, raw SKILL.md for Cursor / Cline / Copilot / ChatGPT-style agents, and a directory copy for users who'd rather vendor the source. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5d23d88 commit 4ba80d4

4 files changed

Lines changed: 500 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,14 @@ It's intentional. Making the protocol `Sendable` would force the constraint thro
557557
- A general-purpose `Validated<E, A>` applicative type (cf. `pointfreeco/swift-validated`) — different abstraction. FormsKit's `@Validated` is a property wrapper for per-field state; the pointfree type is an applicative result enum.
558558
- An `ObservableObject` library — iOS 17 / `@Observable` is the floor.
559559

560+
## Using FormsKit with an AI coding assistant
561+
562+
FormsKit ships an **agent skill** at [`Skills/formskit-expert/`](Skills/formskit-expert/) that teaches an AI assistant how to build forms with this package — the protocols, the `@Validated` property wrapper, the `FormController` lifecycle, the focus modifiers, and the gotchas worth knowing before writing code. It works with any AI coding assistant; how you install it depends on the tool:
563+
564+
- **Claude Code**: drop the bundled file at [`Skills/formskit-expert.skill`](Skills/formskit-expert.skill) into your skills config, or copy [`Skills/formskit-expert/`](Skills/formskit-expert/) into `~/.claude/skills/` to make it available across all projects.
565+
- **Cursor / Cline / Copilot / Codex / ChatGPT**: paste the contents of [`Skills/formskit-expert/SKILL.md`](Skills/formskit-expert/SKILL.md) into your agent's system prompt, rules file, or custom-instructions field. [`references/api-cheatsheet.md`](Skills/formskit-expert/references/api-cheatsheet.md) is a compact API reference you can attach as additional context.
566+
- **Other**: feed the markdown to whatever your agent reads at session start. The Skill is plain prose and is self-contained.
567+
560568
## Roadmap
561569

562570
- Localized default error messages via `String(localized:bundle: .module)`.

Skills/formskit-expert.skill

9.01 KB
Binary file not shown.

0 commit comments

Comments
 (0)