Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Effect Form E2e

ASecurity

Use when adding or changing a form, a field's validation rules, or a Playwright test in this repository. Covers why a form is effect-form and lives in the app rather than the design system, declaring field rules once in the contract, telling a validation failure apart from a refusal, and the e2e harness's rules — a user per test, waiting on a condition rather than sleeping.

4 stars
0 votes
0 copies
0 views
Added 9/22/2026
ai-agentsreactexpressdebuggingapi

Works with

cliapi

Security Analysis

A100/100

Scanned 9/22/2026

Install to Claude Code

$npx -y skills add vantionlabs/saas-starter --skill effect-form-e2e --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Effect Form E2e?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Effect Form E2e
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vantionlabs-effect-form-e2e/badge)](https://www.skillsdirectory.com/skills/vantionlabs-effect-form-e2e)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: effect-form-e2e
description: Use when adding or changing a form, a field's validation rules, or a Playwright test in this repository. Covers why a form is effect-form and lives in the app rather than the design system, declaring field rules once in the contract, telling a validation failure apart from a refusal, and the e2e harness's rules — a user per test, waiting on a condition rather than sleeping.
---

# A write is a form, and a form is effect-form

`FormReact.make` over a `FormBuilder`, living in the **app** rather than in
`@vantion/ui`. The library binds the submit into the form definition, so a shared
presentational component taking `onCreate` as a prop cannot be one. `apps/design` renders
plain inputs for the layout, because validation and submit state are the part of a form
that has nothing to do with how it looks.

That also _removes_ a problem rather than managing it: effect-form does not render its
fields during SSR, so there is no window in which somebody can type into a control that is
not listening.

## A field's rules are declared once, in the contract

`ContactFields` in `ContactRpc.ts` is what the `CreateContact` payload is built from **and**
what the form validates with, so the form refuses exactly what the server would.

```ts
export const ContactFields = {
  fullName: Schema.String.check(Schema.isNonEmpty({ message: "Enter a name." })),
};
```

Every check carries a `message`, because that is what a person reads. They were two
declarations of one rule once — the procedure checked `isNonEmpty` with no message while
the screen kept a readable copy — and the server's was the version nobody could read.

For a rule a regex cannot express, `Schema.makeFilter` returns a sentence or `undefined`.
`EndpointFields.url` is the worked example, and the rule it enforces is the difference
between a webhook form and server-side request forgery.

## A failed submit is two different things

`submitMessage` in `apps/web/src/lib/form/result.ts` tells them apart: a `SchemaError` is
the form failing to decode, anything else came back from a server. Saying "check the fields
above" to somebody whose permission was denied sends them looking in the wrong place.

The validation case is named rather than inferred from everything that is not one
particular request error. Written the other way round, every error added later inherits the
wrong message.

**A refusal worth acting on gets its own sentence.** `LimitReached` carries the number, so
the screen says "this plan includes two API keys" rather than "could not create that key".
Read it out of the `Cause` with `AsyncResult.error`, not off the result.

## Browser tests

`pnpm e2e` needs nothing set up: its own Postgres container on a free port, migrated with
the same runner `bun run dev` uses, both servers on 3100 and 5273.

Two properties keep it parallel and deterministic:

- **Every test signs up its own user**, so none truncates a table and none shares a tenant.
- **Every test presents its own `x-forwarded-for`**, because the credential endpoints are
  rate-limited per caller and a parallel suite from one address exhausts the bucket.

Never sleep. `interactUntil` retries the action against the condition it was meant to
cause — a click on a server-rendered button before React attaches _succeeds_ and does
nothing, and the next assertion is what fails fifteen seconds later.

Three refusals an integration hits first, all worth knowing before debugging one:
`415` for no `Content-Type`, `403 MISSING_OR_NULL_ORIGIN` for no `Origin`, and a hydration
race that looks like a broken feature.

## Where to look

- `apps/web/src/components/contact/contact-form.tsx` — the worked form
- `apps/web/src/lib/form/result.ts` — the two sentences
- `e2e/fixtures.ts` — `signedIn`, `interactUntil`, `completeOnboarding`
- `repos/effect-form/packages/form*/src/` — the only reference; there are no published docs
  for the v4 API

Attribution

vantionlabsvantionlabs
View sourceMore from vantionlabs →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1066601 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

651 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →