# 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.

Secure Full Stack Forms Guard is a free AI agent skill on Agensi by Lucas Caetano, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Lucas Caetano](https://www.agensi.io/creators/lucas-caetano-1)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.0
- Last updated: 2026-11-23
- Security: scan passed (2026-11-23); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/secure-full-stack-forms-guard
- Tags: security, api, web-design, sql-injection, typescript, validation

## 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
1. **Client Contract & UI State Machine:** Pre-flight schema validation (Zod, Valibot, Yup, or native), XSS input hygiene, `isSubmitting` double-click locking, and HTTP 422 field-level error mapping.
2. **Zero Mass Assignment:** Enforces strict backend payload whitelisting (DTO / Schema / FormRequest / Pydantic) so attackers cannot inject unauthorized keys like `{ "role": "admin" }`.
3. **Parameterized SQL Only:** Bans raw string concatenation and template literals inside SQL queries across every language, enforcing bound ORM parameters or prepared statements.
4. **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

- Node.js
- Git

## Known limitations

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Secure Full Stack Forms Guard skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill differ from simply asking an AI to 'build a form'?

This skill automates the creation of a 'security bridge' between your UI and database, enforcing mandatory schema validation, SQL injection protection, and DTO-based mass assignment guards that generic prompts often overlook.

### Which AI agents or IDEs can I use this skill with?

It is compatible with all major AI coding agents that support file-system access and command execution, including VS Code Copilot, Cursor, and Windsurf.

### Can I use this on existing projects, or is it only for new forms?

Yes, the `/audit-forms` command allows the skill to scan your current codebase for vulnerabilities like raw SQL queries or missing CSRF protections and refactor them into secure patterns.

### Do I need to be using a specific frontend or backend framework?

The skill supports all major web ecosystems including TypeScript (Next.js/NestJS), Python (FastAPI/Django), PHP (Laravel), Go, and .NET, using industry-standard libraries like Zod and Pydantic.

### What is included in the purchase of the 'secure fullstack forms' skill?

You receive the full skill package including the automated detection engine, the secure code generation templates, and the compliance auditing checklist for your AI agent.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
