Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/lambda-curry/medusa2-starterWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/lambda-curry/medusa2-starter/remix-hook-form-migration)<a href="https://agentmods.dev/rules/lambda-curry/medusa2-starter/remix-hook-form-migration"><img src="https://agentmods.dev/badge/rules/lambda-curry/medusa2-starter/remix-hook-form-migration/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/lambda-curry/medusa2-starter/remix-hook-form-migration"><img src="https://agentmods.dev/badge/rules/lambda-curry/medusa2-starter/remix-hook-form-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01142 |
| Opus 5.5 | $0.00000 | $0.00457 |
| Sonnet 5.5 | $0.00000 | $0.00228 |
| Haiku 4.5 | $0.00000 | $0.00114 |
Grade A, and why
remix-hook-form-migration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Migration from remix-validated-form to @lambdacurry/forms
Overview
The codebase is being migrated from remix-validated-form to @lambdacurry/forms for form handling. This document outlines the key changes and patterns observed in the migration.
Key Changes
1. Form Validation
- Before: Used Yup schemas with
remix-validated-form - After: Using Zod schemas with
@lambdacurry/forms
Example of old validation (Yup):
const schema = Yup.object({
name: Yup.string().required(),
email: Yup.string().email().required(),
})
Example of new validation (Zod):
const schema = z.object({
name: z.string().min(1, "Please enter your name"),
email: z.string().email("Please enter a valid email"),
})
2. Form Components
Form Provider
- Before: Used
ValidatedFormfromremix-validated-form - After: Using
RemixFormProviderfromremix-hook-form
Form Fields
- Before: Custom field components with
useFieldfromremix-validated-form - After: Using components from
@lambdacurry/forms/remix-hook-form:TextFieldTextareaCheckbox- Other form components from the package
3. Form Context
- Before: Used
useFieldfromremix-validated-form - After: Using
useRemixFormContextfromremix-hook-form
4. Form Submission
- Before: Used built-in validation from
remix-validated-form - After: Using
getValidatedFormDatafromremix-hook-formwith Zod resolver
5. Error Handling
- Before: Used
FormValidationErrorwith field-level errors - After: Using react-hook-form's error structure with root-level errors
Example of new error handling:
import { FieldErrors } from 'react-hook-form';
// In your action:
if (errors) {
return data({ errors }, { status: 400 });
}
// For form-level errors:
return data(
{ errors: { root: { message: 'Error message' } } as FieldErrors },
{ status: 400 }
);
6. Response Handling
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 15d ago First seen · 174 lines · 0 tokens per session scan A a664f18904d9
remix-hook-form-migration is a cursor rule published in the GitHub repository lambda-curry/medusa2-starter (164 stars, last pushed 17d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,142 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-15.
remix-hook-form-migration compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| remix-hook-form-migrationlambda-curry/medusa2-starter | Cursor rule | 164 | 17d ago | MIT | A | 0 | Cursor |
| windsurfrulesAPIParkLab/APIPark | Cursor rule | 1.8k | 1mo ago | Apache-2.0 | A | 521 | Windsurf |
| backendtenstorrent/tt-studio | Cursor rule | 13 | 6d ago | Apache-2.0 | A | 0 | Cursor |
| tanstack-start-guidejahands/prompts | Cursor rule | 19 | 1mo ago | MIT | A | 17 | Cursor |
| new-componentkubev2v/forklift-console-plugin | Cursor rule | 11 | today | Apache-2.0 | A | 6 | Cursor |
| tanstack-react-router_routingWebMCP-org/webmcp-sh | Cursor rule | 18 | 1mo ago | MIT | A | 17,188 | Cursor |
| rendering-and-memoizationgrafana/grafana-pathfinder-app | Cursor rule | 24 | today | AGPL-3.0 | A | 50 | Cursor |