standard-security-auth

Implement JWT, cookie, and MFA authentication workflows with RBAC and audit logging.

47|7|Updated Dec 21, 2025
One-click install
npx skills add https://github.com/salavender/antigravity-compound-engineering-plugin --skill standard-security-auth-salavender
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: standard-security-auth
Source: https://github.com/salavender/antigravity-compound-engineering-plugin/tree/main/skills/standard-security-auth
Command: npx skills add https://github.com/salavender/antigravity-compound-engineering-plugin --skill standard-security-auth-salavender

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Security and authentication in modern apps can be complex, requiring careful handling of JWTs, cookie-based sessions, MFA, and secure API integration.

Core Features & Use Cases

  • Auth Flow Implementation: JWTs, HttpOnly cookies, MFA sessions, and centralized session management via an AuthContext.
  • Security Review & Compliance: RBAC enforcement, audit logging, and compliance checks (CSP, secure storage).
  • API Integration & Proxy Architecture: Backend-for-Frontend (BFF) style proxying for secure backend API calls and consistent authentication.

Quick Start

Configure the agent to implement and validate the authentication system across the app, including JWT cookies and MFA, and verify secure API calls.

Frequently Asked Questions about standard-security-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement secure JWT authentication with HttpOnly cookies in a modern app?

To implement secure JWT authentication with HttpOnly cookies, configure middleware to handle token validation and route protection. This approach uses an AuthContext for centralized session management, ensuring JWTs are processed securely across the application.

What is a Backend-for-Frontend proxy and how does it secure API calls?

A Backend-for-Frontend (BFF) proxy secures API calls by acting as an intermediary layer that handles backend requests server-side. It ensures consistent authentication by managing secure API integration, preventing direct client-to-backend exposure of sensitive tokens.

How do I add multi-factor authentication (MFA) to an existing session management system?

Multi-factor authentication (MFA) is added to a session management system by extending the AuthContext to support MFA session states. This workflow integrates MFA verification steps into the centralized session lifecycle, ensuring secure user validation.

How do I enforce role-based access control (RBAC) and set up audit logging for security compliance?

Role-based access control (RBAC) and audit logging for security compliance are enforced by applying RBAC rules across authentication workflows and recording audit logs. This setup validates user permissions and tracks access events for compliance checks like CSP.

Does this authentication workflow support compliance checks like Content Security Policy (CSP) and secure storage?

Yes, the authentication workflow supports compliance checks including Content Security Policy (CSP) and secure storage validation. These compliance checks are integrated into the security review process to ensure application configurations meet required security standards.