nest-guard

Generate NestJS guards for JWT authentication and role-based access control.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/rladydqls99/claude-marketplace --skill nest-guard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nest-guard
Source: https://github.com/rladydqls99/claude-marketplace/tree/main/plugins/dev-team-plugin/skills/nest-guard
Command: npx skills add https://github.com/rladydqls99/claude-marketplace --skill nest-guard

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers quickly generate and implement authorization logic for NestJS applications, ensuring that only authenticated and authorized users can access specific routes.

Core Features & Use Cases

  • JWT Authentication Guard: Protects routes using JSON Web Tokens.
  • Role-Based Access Control Guard: Restricts access based on user roles (e.g., 'admin', 'user').
  • Customizable Guards: Provides decorators and a framework for creating bespoke authorization logic.
  • Use Case: When a user requests to protect an admin-only API endpoint, this Skill can generate the necessary RolesGuard and JwtAuthGuard configurations.

Quick Start

Generate a NestJS guard to protect routes based on user roles.

Frequently Asked Questions about nest-guard

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

FAQPage Schema
How do I implement role-based access control in a NestJS API?

Protect NestJS routes using a JWT authentication Guard that validates JSON Web Tokens before allowing access. It integrates with your JWT strategy to secure backend API endpoints effectively.

What do I need to set up JWT authentication guards in NestJS?

To set up JWT authentication guards in NestJS, you need the NestJS framework, a configured JWT strategy, and reflector utilities. These components enable dynamic access control for your backend API routes.

Can I create custom authorization logic for specific NestJS routes?

You can create custom authorization logic for specific NestJS routes using customizable Guards and decorators. This framework allows you to build bespoke access control rules tailored to your application's unique requirements.

How do I protect admin-only API endpoints in NestJS?

Protect admin-only API endpoints in NestJS by generating a RolesGuard configuration that restricts access based on user roles. This prevents unauthorized users from accessing privileged routes.