.claude/skills/sdd-security-check/SKILL.md
Perform OWASP-aligned security audit of code. Checks for common vulnerabilities including injection, authentication flaws, sensitive data exposure, and more. Invoked via /sdd-security-check [file-path or scope].
npx skillsauth add yi-john-huang/sdd-mcp sdd-security-checkInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Perform comprehensive security audits aligned with OWASP Top 10 and security best practices. Identify vulnerabilities before they reach production.
Security is not a feature—it's a requirement. Every code change should be reviewed through a security lens.
Check for:
Pattern: Ensure every endpoint has explicit authorization checks.
Check for:
Pattern: Use strong algorithms (bcrypt for passwords, AES-256 for data).
Check for:
Pattern: Never interpolate user input into queries or commands.
Check for:
Check for:
Required Headers: CSP, X-Frame-Options, X-Content-Type-Options, HSTS
npm auditCheck for:
Session Config: secure=true, httpOnly=true, sameSite='strict'
Check for:
Check for:
Required Events: Auth attempts, auth failures, admin actions, data access anomalies
Check for:
Pattern: Use URL allowlists for server-side requests.
/sdd-security-check src/api/ # Check API layer
/sdd-security-check src/auth/ # Focus on authentication
/sdd-security-check HEAD~5..HEAD # Check recent changes
Run these checks:
# Dependency vulnerabilities
npm audit
# Secret detection
npx gitleaks detect
# SAST scan if configured
npx semgrep --config=p/security-audit
For each file, check:
# Security Audit Report: {scope}
## Summary
- 🔴 Critical: {count}
- 🟠 High: {count}
- 🟡 Medium: {count}
- 🟢 Low: {count}
## Critical Findings
### SEC-001: {Finding Title}
**Location**: {file:line}
**Risk**: Critical
**OWASP**: {category}
**Issue**: {description}
**Recommendation**: {fix}
## Remediation Priority
1. Critical findings - Fix immediately
2. High findings - Fix before deployment
3. Medium findings - Fix this sprint
4. Low findings - Track and schedule
Before any deployment:
When checking implementation against spec:
tools
Implement simple features with best practices. Use when adding small features, bug fixes, or quick enhancements without the full SDD workflow. Invoked via /simple-task <description>.
development
Generate comprehensive tests following TDD methodology. Creates unit tests, integration tests, and edge case coverage. Works with existing test frameworks in the project. Invoked via /sdd-test-gen [file-path or function-name].
testing
Generate TDD task breakdown for SDD workflow. Use when breaking down design into implementable tasks with test-first approach. Invoked via /sdd-tasks <feature-name>.
testing
Create project-specific steering documents for SDD workflow. Use when setting up project context, documenting technology stack, or establishing project conventions. Invoked via /sdd-steering.