Skills for Real Engineers. Straight from my .agents directory.
security-patterns
Agent skill fromCloudAI-X/claude-workflow-v2
Implements authentication, authorization, encryption, secrets management, and security hardening patterns. Use when designing auth flows, managing secrets, configuring CORS, implementing rate limiting, or when asked about JWT, OAuth, password hashing, API keys, RBAC, or security best practices.
How to install security-patterns
npx skills add CloudAI-X/claude-workflow-v2# or add only this skill to Claude Code: copy the folder
skills/security-patterns/
# into
~/.claude/skills/security-patterns/ (all projects)
.claude/skills/security-patterns/ (one project)
1# Security Patterns23### When to Load45- **Trigger**: Auth flows, encryption, secrets management, CORS configuration, input validation, rate limiting6- **Skip**: No security surface involved in the current task78## Security Implementation Workflow910Copy this checklist and track progress:1112```13Security Implementation Progress:14- [ ] Step 1: Choose authentication strategy15- [ ] Step 2: Implement authorization model16- [ ] Step 3: Set up password hashing17- [ ] Step 4: Configure secrets management18- [ ] Step 5: Enable encryption (transit + rest)19- [ ] Step 6: Configure CORS20- [ ] Step 7: Add rate limiting21- [ ] Step 8: Validate against anti-patterns checklist22```2324## Authentication Patterns2526### JWT (JSON Web Tokens)2728```typescript29import jwt from "jsonwebtoken";3031function generateTokens(user: User) {32 const accessToken = jwt.sign(33 { sub: user.id, role: user.role },34 process.env.JWT_SECRET!,35 { expiresIn: "15m", algorithm: "HS256" },36 );37 const refreshToken = jwt.sign(38 { sub: user.id, tokenVersion: user.tokenVersion },39 process.env.JWT_REFRESH_SECRET!,40 { expiresIn: "7d" },41 );42 return { accessToken, refreshToken };43}4445// WRONG: localStorage (XSS vulnerable) | CORRECT: httpOnly cookie for refresh, memory for access46res.cookie("refreshToken", refreshToken, {47 httpOnly: true,48 secure: true,49 sameSite: "strict",50 maxAge: 7 * 24 * 60 * 60 * 1000,51 path: "/api/auth/refresh",52});53```5455### JWT Verification Middleware5657```typescript58…
Excerpt shown under the repository's MIT license.
More skills in claude-workflow-v2
Similar skill repositories
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
The open-source app everyone uses to manage agents at work
