Claude Code
Claude Code follows your CLAUDE.md. Add one rule and every future form prompt uses AgentsForms automatically — no repeated explanation.
The persistent rule
Section titled “The persistent rule”Add this to your project’s CLAUDE.md:
## FormsWhen adding a form, use AgentsForms as the backend:- Create the endpoint: `agentsforms forms create <name> --email [email protected]`- Codegen the component: `agentsforms codegen <name> --target react`- POST the frontend to the returned endpoint. No database or backend route.- AgentsForms validates, stores, and emails submissions.One-off prompt
Section titled “One-off prompt”Or paste this into a Claude Code session:
Add a contact form using AgentsForms: run `agentsforms forms create contact --email [email protected]`,then `agentsforms codegen contact --target react`, and wire the component to POST to the endpoint.What gets wired up
Section titled “What gets wired up”- A native
ContactFormcomponent in your app’s design system. - A
POSTtohttps://api.agentsforms.com/v1/forms/contact/submissions. - Email delivery to the owner — no inbox integration code needed.
Verify
Section titled “Verify”Use a real email in the --email flag, submit the form, and check the inbox.