Works with the AI Agents you already use
Secure Full Stack Forms Guard
Prevents hollow AI-generated forms by enforcing end-to-end wiring, schema validation, payload whitelisting, and SQLi/XSS/CSRF protection across any tech stack.
Free
Secure Full Stack Forms Guard
Example session with this skill installed
/audit-forms Check our user signup form and controller (ContactForm.vue and ContactController.php) and refactor them so they are production-ready and safe against SQL injection and mass assignment.
- Read your context and instructions
- Compiled the secure full stack
Summary
Audited ContactForm.vue and ContactController.php using secure-fullstack-forms. Found 3 critical issues: an unwired frontend submit handler, blind mass assignment via $request->all(), and raw SQL string interpolation. Refactored both layers into a hardened 4-layer pipeline.
| Security Layer | Before | After |
|---|---|---|
| Frontend Submit | @submit.prevent="console.log(form)" | Zod schema validation + isSubmitting lock + 422 field mapping |
| Backend Payload | Contact::create($request->all()) | Dedicated StoreContactRequest using $request->validated() only |
| Database Query | Raw SQL string interpolation | Parameterized Eloquent bound query (SQLi-proof) |
| Abuse Guard | None | throttle:5,1 rate limiting + CSRF protection |
Refactored Backend (StoreContactRequest.php & ContactController.php)
class StoreContactRequest extends FormRequest
{
public function rules(): array
{
return [
'name' => ['required', 'string', 'min:2', 'max:100', 'regex:/^[^<>]*$/'],
'email' => ['required', 'string', 'email:rfc,dns', 'max:255'],
'message' => ['required', 'string', 'min:10', 'max:2000', 'regex:/^[^<>]*$/'],
];
}
}
public function store(StoreContactRequest $request): JsonResponse
{
// Strictly whitelisted payload: injected fields like { "role": "admin" } are rejected
$submission = ContactSubmission::create($request->validated());
return response()->json(['status' => 'success', 'id' => $submission->id], 201);
}
Next steps
- Add
->middleware('throttle:5,1')to your/api/v1/contactroute. - Run
/audit-formsacross your remaining endpoints to catch any other rawreq.bodyor$request->all()calls.
Connects securely to your tools. The creator never sees your data.
About this skill
AI coding assistants can generate a styled web form in 60 seconds, but they routinely leave behind dangerous shortcuts: unwired submit handlers (console.log(form)), missing loading locks, unvalidated payloads (req.body, $request->all()), and raw string interpolation in SQL queries.
Secure Full Stack Forms Guard is a framework-agnostic AI Agent Skill that auto-detects your project's stack (Vue, React, Next.js, Angular, Svelte, Node/NestJS/Express, PHP/Laravel, Python/FastAPI/Django, Go, Java, C#, Ruby) and turns every form into a production-ready, 4-layer hardened contract.
What It Enforces Automatically
- Client Contract & UI State Machine: Pre-flight schema validation (Zod, Valibot, Yup, or native), XSS input hygiene,
isSubmittingdouble-click locking, and HTTP 422 field-level error mapping. - Zero Mass Assignment: Enforces strict backend payload whitelisting (DTO / Schema / FormRequest / Pydantic) so attackers cannot inject unauthorized keys like
{ "role": "admin" }. - Parameterized SQL Only: Bans raw string concatenation and template literals inside SQL queries across every language, enforcing bound ORM parameters or prepared statements.
- Transport & Abuse Protection: Enforces CSRF verification, endpoint rate-limiting, and safe production error responses without leaking stack traces.
Included Slash Commands
/secure-form: Auto-detects your stack and builds or wires a complete end-to-end secured form./audit-forms: Scans your existing codebase for hollow submit handlers, XSS vectors, Mass Assignment, SQL Injection, and missing rate limits.
Requires standard manifest files (e.g., package.json) for auto-detection. Does not support SOAP or non-standard NoSQL injection vectors outside of common ORMs.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 12 days ago
- Free with an Agensi account
- Accounts
GitHub
- Software
Node.js
Git
Permissions
Allowed Hosts
What's inside
Creator
Lucas Caetano
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.