secure-code-guardian
Skill12k starsChanged 11 months agoMITView on GitHub
Use when implementing authentication/authorization, securing user input, or preventing OWASP Top 10 vulnerabilities — including custom security implementations such as hashing passwords with bcrypt/argon2, sanitizing SQL queries with parameterized statements, configuring CORS/CSP headers, validating input with Zod, and setting up JWT tokens. Invoke for authentication, authorization, input validation, encryption, OWASP Top 10 prevention, secure session management, and security hardening. For pre-built OAuth/SSO integrations or standalone security audits, consider a more specialized skill.
- Reads credentials
5 other projects use a version of this, 5 of them edited.
Trending
More talk lately.about the whole repository
Most recently taken up by
- musaJawad004/heronedited, first seen Sep 6, 2026
- Leo-Atienza/atlas-claudeedited, first seen Jul 24, 2026
- james-paul25/claude-skilledited, first seen Jul 11, 2026
- codeApe-7/ai-agent-workflowGroupedited, first seen Jun 6, 2026
- usmanmubarak1/ClaudeSkilledAgentsedited, first seen Feb 6, 2026
Who's talking about Jeffallan/claude-skills
- @ponceto91.bsky.social“Si vous cherchez des skills pour Claude Code, voici un dépôt qui vous sera certainement très utile ⬇️ …”Bluesky · Mar 7, 2026 · 56 likes
- @camilleroux.com“Transformez Claude Code en pair programmer expert avec ces 66 skills spécialisées : backend, frontend, …”Bluesky · Mar 17, 2026 · 9 likes
- @jeffallan.bsky.social“My claude-skills repo reached 110 ⭐ today 65 skills and 9 workflows I use for work every day. Deeply …”Bluesky · Jan 26, 2026 · 5 likes
- @jeffallan.bsky.social“github.com/Jeffallan/claude-skills v0.4.2 is out! This release wouldn't have happened without our …”Bluesky · Jan 29, 2026 · 3 likes
- @pythonhub.dev“Jeffallan / claude-skills 66 Specialized Skills for Full-Stack Developers. Transform Claude Code into your …”Bluesky · Mar 5, 2026 · 2 likes
The biggest 5 of 42 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 42
Talked about on GitHub, Bluesky and Hacker News (42 times).
On GitHub · 35
- Oct 4, 2026claude-code-plugins.github.jeffallan.claude-skills: init at 0.4.18 — sudosubin/agents.nix0 reactions
- Oct 4, 2026chore: sync upstream skills (auto) — marcioaltoe/skills0 reactions
- Oct 3, 2026agent-skills.github.jeffallan.claude-skills: 0.4.16 → 0.4.18 — sudosubin/agents.nix0 reactions
- Sep 29, 2026Add The Fool and The Jury as optional discovery skills — WolvenTech/wolven-harness0 reactions
- Sep 28, 2026agent-skills.github.jeffallan.claude-skills: init at 0.4.16 — sudosubin/agents.nix0 reactions
30 more on GitHub
- Sep 21, 2026feat(skills): ship golang-pro from thismoon — mad01/thismoon0 reactions
- Sep 17, 2026feat(pkgs): add jeffallan/claude-skills plugin — agent-stacks/agent-pkgs0 reactions
- Sep 17, 2026Update skill: /jeffallan-typescript-pro (safe risk) — aiskillstore/marketplace0 reactions
- Sep 7, 2026Safeword's own skill installer doesn't meet the dependency-vetting standard it just added for customers — ArcadeAI/safeword0 reactions
- Jul 18, 2026Solve problem 4 — gaarutyunov/skill-test0 reactions
- Jul 17, 2026Jamison's Recommendations — jpziller/DataMigration0 reactions
- Jul 13, 2026Fix 19 skills misplaced in personal/ despite external origin (bucket-placement drift) — Tyler-Reagan/skills-bank0 reactions
- Jul 9, 2026Register the-fool critical-reasoning managed skill — dennisofficial/atlas0 reactions
- Apr 6, 2026Audit candidate: Jeffallan/claude-skills — xiaolai/nlpm0 reactions · 3 comments
- Mar 22, 2026[BUG] Many skills missing nested files — sickn33/agentic-awesome-skills0 reactions · 1 comment
- Mar 19, 2026feat: prompt manager — gohypergiant/agent-skills0 reactions · 3 comments
- Mar 12, 2026Pixel Agents: pixel-style marketplace, live dashboard, auto-hire, and Next.js CVE fixes — ajay-sai/Pixel-agents0 reactions · 1 comment
- Mar 12, 2026Pixel Market: AI agent marketplace with animated pixel-art characters, AGOR canvas, skills library, and Claude Code plugin — ajay-sai/Pixel-agents0 reactions · 4 comments
- Mar 12, 2026Update ReadMe And SKILL.md — tkestack/tke-skill0 reactions
- Mar 11, 2026Claude skills — nova-firefly/nova-config0 reactions
- Mar 10, 2026[SUBMISSION] Jeffallan/claude-skills — ProSkillsMD/proskills0 reactions
- Mar 9, 2026[SUBMISSION] claude-skills — ProSkillsMD/proskills0 reactions · 2 comments
- Mar 9, 2026[SUBMISSION] Jeffallan/claude-skills — ProSkillsMD/proskills0 reactions · 4 comments
- Feb 14, 2026New skill: /jeffallan-laravel-specialist (safe risk) — aiskillstore/marketplace0 reactions
- Feb 13, 2026New skill: /jeffallan-laravel-specialist (safe risk) — aiskillstore/marketplace0 reactions
- Feb 7, 2026New skill: /jeffallan-golang-pro (low risk) — aiskillstore/marketplace0 reactions
- Feb 7, 2026New skill: /jeffallan-flutter-expert (safe risk) — aiskillstore/marketplace0 reactions
- Feb 5, 2026Add resource: Fullstack Dev Skills — hesreallyhim/awesome-claude-code0 reactions
- Jan 25, 2026feat: add 65 specialized skills to enhance Claude capabilities — stevengaltau-cpu/claude-code-action0 reactions
- Jan 19, 2026Add skill: jeffallan/claude-skills — jqueryscript/awesome-claude-code0 reactions
- Jan 19, 2026Add claude-skills collection and workflow commands — ComposioHQ/awesome-claude-skills0 reactions
- Jan 19, 2026Add skill: jeffallan/claude-skills — VoltAgent/awesome-agent-skills0 reactions
- Jan 19, 2026Adds jeffallan/claude-skills collection and workflow commands — BehiSecc/awesome-claude-skills0 reactions
- Jan 19, 2026[Resource]: jeffallan/claude-skills — hesreallyhim/awesome-claude-code0 reactions · 5 comments
- Jan 19, 2026Recommend: Claude Skills (Fullstack Dev Skills) — hesreallyhim/awesome-claude-code0 reactions · 1 comment
On Bluesky · 6
- Mar 7, 2026Si vous cherchez des skills pour Claude Code, voici un dépôt qui vous sera certainement très utile ⬇️ github.com/Jeffallan/cl... — @ponceto91.bsky.social56 likes and reposts · 5 replies
- Mar 17, 2026Transformez Claude Code en pair programmer expert avec ces 66 skills spécialisées : backend, frontend, infra, sécu, testing...… — @camilleroux.comsays it tested it9 likes and reposts · 1 reply
- Jan 26, 2026My claude-skills repo reached 110 ⭐ today 65 skills and 9 workflows I use for work every day. Deeply honored to have built something others… — @jeffallan.bsky.social5 likes and reposts
- Jan 29, 2026github.com/Jeffallan/claude-skills v0.4.2 is out! This release wouldn't have happened without our contributors: github.com/thomassamoul… — @jeffallan.bsky.social3 likes and reposts
- Mar 5, 2026Jeffallan / claude-skills 66 Specialized Skills for Full-Stack Developers. Transform Claude Code into your expert pair programmer.… — @pythonhub.dev2 likes and reposts
1 more on Bluesky
- Feb 10, 2026📦 Jeffallan / claude-skills ⭐ 532 (+33) 🗒 Python 65 Specialized Skills for Full-Stack Developers. Transform Claude Code into your expert… — @github-trending.bsky.social1 likes and repost
On Hacker News · 1
- Feb 5, 2026Show HN: Claude Skills. Try vibe engineering instead of vibe coding1 point · 1 comment
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 5
- codeApe-7/ai-agent-workflowGroup★ 17100% same
- Leo-Atienza/atlas-claude★ 4100% same
- musaJawad004/heron★ 199% same
- james-paul25/claude-skill★ 099% same
- usmanmubarak1/ClaudeSkilledAgents★ 051% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository67 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- angular-architectSkill
- api-designerSkill
- architecture-designerSkill
- atlassian-mcpSkill
- chaos-engineerSkill
- cli-developerSkill
- cloud-architectSkill
- code-documenterSkill
- code-reviewerSkill
- cpp-proSkill
- csharp-developerSkill
- database-optimizerSkill
- debugging-wizardSkill
- devops-engineerSkill
- django-expertSkill
- django-storages-s3Skill
- dotnet-core-expertSkill
- embedded-systemsSkill
- fastapi-expertSkill
- feature-forgeSkill
- fine-tuning-expertSkill
- flutter-expertSkill
- fullstack-guardianSkill
- game-developerSkill
- golang-proSkill
- graphql-architectSkill
- java-architectSkill
- javascript-proSkill
- kotlin-specialistSkill
- kubernetes-specialistSkill
- laravel-specialistSkill
- legacy-modernizerSkill
- mcp-developerSkill
- microservices-architectSkill
- ml-pipelineSkill
- monitoring-expertSkill
- nestjs-expertSkill
- nextjs-developerSkill
- pandas-proSkill
- php-proSkill
- playwright-expertSkill
- postgres-proSkill
- prompt-engineerSkill
- python-proSkill
- rag-architectSkill
- rails-expertSkill
- react-expertSkill
- react-native-expertSkill
- rust-engineerSkill
- salesforce-developerSkill
- security-reviewerSkill
- shopify-expertSkill
- spark-engineerSkill
- spec-minerSkill
- spring-boot-engineerSkill
- sql-proSkill
- sre-engineerSkill
- swift-expertSkill
- terraform-engineerSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. 6 are common, 0 are distinctive, and 0 are very specific to this project.
6
Common
Most of the 5 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 29
After each implementation step, verify:
- Common: line 31
Authentication: Test brute-force protection (lockout/rate limit triggers), session fixation resistance, token expiration, and …
- Common: line 32
Authorization: Verify horizontal and vertical privilege escalation paths are blocked.
- Common: line 52
Use parameterized queries (never string-interpolated SQL)
- Common: line 63
Use weak or deprecated algorithms (MD5, SHA-1, DES, ECB mode)
- Common: line 184
When implementing security features, provide:
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Secure Code Guardian
Core Workflow
- Threat model — Identify attack surface and threats
- Design — Plan security controls
- Implement — Write secure code with defense in depth; see code examples below
- Validate — Test security controls with explicit checkpoints (see below)
- Document — Record security decisions
Validation Checkpoints
After each implementation step, verify:
- Authentication: Test brute-force protection (lockout/rate limit triggers), session fixation resistance, token expiration, and invalid-credential error messages (must not leak user existence).
- Authorization: Verify horizontal and vertical privilege escalation paths are blocked; test with tokens belonging to different roles/users.
- Input handling: Confirm SQL injection payloads (
' OR 1=1--) are rejected; confirm XSS payloads (<script>alert(1)</script>) are escaped or rejected. - Headers/CORS: Validate with a security scanner (e.g.,
curl -I, Mozilla Observatory) that security headers are present and CORS origin allowlist is correct.
Reference Guide
Load detailed guidance based on context:
| Topic | Reference | Load When |
| OWASP | references/owasp-prevention.md | OWASP Top 10 patterns |
| Authentication | references/authentication.md | Password hashing, JWT |
| Input Validation | references/input-validation.md | Zod, SQL injection |
| XSS/CSRF | references/xss-csrf.md | XSS prevention, CSRF |
| Headers | references/security-headers.md | Helmet, rate limiting |
Constraints
MUST DO
- Hash passwords with bcrypt/argon2 (never MD5/SHA-1/unsalted hashes)
- Use parameterized queries (never string-interpolated SQL)
- Validate and sanitize all user input before use
- Implement rate limiting on auth endpoints
- Set security headers (CSP, HSTS, X-Frame-Options)
- Log security events (failed auth, privilege escalation attempts)
- Store secrets in environment variables or secret managers (never in source code)
MUST NOT DO
- Store passwords in plaintext or reversibly encrypted form
- Trust user input without validation
- Expose sensitive data in logs or error responses
- Use weak or deprecated algorithms (MD5, SHA-1, DES, ECB mode)
- Hardcode secrets or credentials in code
Code Examples
Password Hashing (bcrypt)
import bcrypt from 'bcrypt';
const SALT_ROUNDS = 12; // minimum 10; 12 balances security and performance
export async function hashPassword(plaintext: string): Promise<string> {
return bcrypt.hash(plaintext, SALT_ROUNDS);
}
export async function verifyPassword(plaintext: string, hash: string): Promise<boolean> {
return bcrypt.compare(plaintext, hash);
}Parameterized SQL Query (Node.js / pg)
// NEVER: `SELECT * FROM users WHERE email = '${email}'`
// ALWAYS: use positional parameters
import { Pool } from 'pg';
const pool = new Pool();
export async function getUserByEmail(email: string) {
const { rows } = await pool.query(
'SELECT id, email, role FROM users WHERE email = $1',
[email] // value passed separately — never interpolated
);
return rows[0] ?? null;
}Input Validation with Zod
import { z } from 'zod';
const LoginSchema = z.object({
email: z.string().email().max(254),
password: z.string().min(8).max(128),
});
export function validateLoginInput(raw: unknown) {
const result = LoginSchema.safeParse(raw);
if (!result.success) {
// Return generic error — never echo raw input back
throw new Error('Invalid credentials format');
}
return result.data;
}JWT Validation
import jwt from 'jsonwebtoken';
const JWT_SECRET = process.env.JWT_SECRET!; // never hardcode
export function verifyToken(token: string): jwt.JwtPayload {
// Throws if expired, tampered, or wrong algorithm
const payload = jwt.verify(token, JWT_SECRET, {
algorithms: ['HS256'], // explicitly allowlist algorithm
issuer: 'your-app',
audience: 'your-app',
});
if (typeof payload === 'string') throw new Error('Invalid token payload');
return payload;
}Securing an Endpoint — Full Flow
import express from 'express';
import rateLimit from 'express-rate-limit';
import helmet from 'helmet';
const app = express();
app.use(helmet()); // sets CSP, HSTS, X-Frame-Options, etc.
app.use(express.json({ limit: '10kb' })); // limit payload size
const authLimiter = rateLimit({
windowMs: 15 * 60 * 1000, // 15 minutes
max: 10, // 10 attempts per window per IP
standardHeaders: true,
legacyHeaders: false,
});
app.post('/api/login', authLimiter, async (req, res) => {
// 1. Validate input
const { email, password } = validateLoginInput(req.body);
// 2. Authenticate — parameterized query, constant-time compare
const user = await getUserByEmail(email);
if (!user || !(await verifyPassword(password, user.passwordHash))) {
// Generic message — do not reveal whether email exists
return res.status(401).json({ error: 'Invalid credentials' });
}
// 3. Authorize — issue scoped, short-lived token
const token = jwt.sign(
{ sub: user.id, role: user.role },
JWT_SECRET,
{ algorithm: 'HS256', expiresIn: '15m', issuer: 'your-app', audience: 'your-app' }
);
// 4. Secure response — token in httpOnly cookie, not body
res.cookie('token', token, { httpOnly: true, secure: true, sameSite: 'strict' });
return res.json({ message: 'Authenticated' });
});Output Templates
When implementing security features, provide:
- Secure implementation code
- Security considerations noted
- Configuration requirements (env vars, headers)
- Testing recommendations
Knowledge Reference
OWASP Top 10, bcrypt/argon2, JWT, OAuth 2.0, OIDC, CSP, CORS, rate limiting, input validation, output encoding, encryption (AES, RSA), TLS, security headers
Maintained by @jeffallan, Principal Consultant at Synergetic Solutions
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

