Works with the AI Agents you already use

    Secure Full Stack Forms Guard

    by Lucas Caetano

    1

    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

    Security scanned
    Secure Full Stack Forms Guard

    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 LayerBeforeAfter
    Frontend Submit@submit.prevent="console.log(form)"Zod schema validation + isSubmitting lock + 422 field mapping
    Backend PayloadContact::create($request->all())Dedicated StoreContactRequest using $request->validated() only
    Database QueryRaw SQL string interpolationParameterized Eloquent bound query (SQLi-proof)
    Abuse GuardNonethrottle: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/contact route.
    • Run /audit-forms across your remaining endpoints to catch any other raw req.body or $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

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

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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.jsGit

    Permissions

    Terminal / Shell
    Network Access
    Read Files
    Write Files

    Allowed Hosts

    raw.githubusercontent.com
    Listed12 days ago

    What's inside

    Creator

    Lucas Caetano

    Lucas Caetano

    Frequently Asked Questions

    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.

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

    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.

    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.

    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.

    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.

    Free