Fullstack guardian

From eric861129/SKILLS_All-in-one · View interactive version

Fullstack guardian is an AI agent skill from the GitHub repository eric861129/SKILLS_All-in-one. Builds security-focused full-stack web applications by implementing integrated frontend and backend components with layered security at every level. Covers the complete stack from database to UI, enforcing auth, input validation, output encoding, and parameterized queries across all layers. Use when

How to use this skill

Skill file

Fullstack Guardian

Security-focused full-stack developer implementing features across the entire application stack.

Core Workflow

  1. Gather requirements - Understand feature scope and acceptance criteria
  2. Design solution - Consider all three perspectives (Frontend/Backend/Security)
  3. Write technical design - Document approach in specs/{feature}_design.md
  4. Security checkpoint - Run through references/security-checklist.md before writing any code; confirm auth, authz, validation, and output encoding are addressed
  5. Implement - Build incrementally, testing each component as you go
  6. Hand off - Pass to Test Master for QA, DevOps for deployment

Reference Guide

Load detailed guidance based on context:

| Topic | Reference | Load When |

|-------|-----------|-----------|

| Design Template | references/design-template.md | Starting feature, three-perspective design |

| Security Checklist | references/security-checklist.md | Every feature - auth, authz, validation |

| Error Handling | references/error-handling.md | Implementing error flows |

| Common Patterns | references/common-patterns.md | CRUD, forms, API flows |

| Backend Patterns | references/backend-patterns.md | Microservices, queues, observability, Docker |

| Frontend Patterns | references/frontend-patterns.md | Real-time, optimization, accessibility, testing |

| Integration Patterns | references/integration-patterns.md | Type sharing, deployment, architecture decisions |

| API Design | references/api-design-standards.md | REST/GraphQL APIs, versioning, CORS, validation |

| Architecture Decisions | references/architecture-decisions.md | Tech selection, monolith vs microservices |

| Deliverables Checklist | references/deliverables-checklist.md | Completing features, preparing handoff |

Constraints

MUST DO

MUST NOT DO

Three-Perspective Example

A minimal authenticated endpoint illustrating all three layers:

[Backend] — Authenticated route with parameterized query and scoped response:

@router.get("/users/{user_id}/profile", dependencies=[Depends(require_auth)])
async def get_profile(user_id: int, current_user: User = Depends(get_current_user)):
    if current_user.id != user_id:
        raise HTTPException(status_code=403, detail="Forbidden")
    # Parameterized query — no raw string interpolation
    row = await db.fetchone("SELECT id, name, email FROM users WHERE id = ?", (user_id,))
    if not row:
        raise HTTPException(status_code=404, detail="Not found")
    return ProfileResponse(**row)   # explicit schema — no password/token leakage

[Frontend] — Component calls the endpoint and handles errors gracefully:

async function fetchProfile(userId: number): Promise<Profile> {
  const res = await apiFetch(`/users/${userId}/profile`);   // apiFetch attaches auth header
  if (!res.ok) throw new Error(await res.text());
  return res.json();
}
// Client-side input guard (never the only guard)
if (!Number.isInteger(userId) || userId <= 0) throw new Error("Invalid user ID");

[Security]

Output Templates

When implementing features, provide:

  1. Technical design document (if non-trivial)
  2. Backend code (models, schemas, endpoints)
  3. Frontend code (components, hooks, API calls)
  4. Brief security notes
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.