agent-health
Reads production/traces/agent-metrics.jsonl and displays a per-agent performance summary table for the current or a specified…
Conducts a comprehensive security audit covering web application vulnerabilities, API security, OWASP Top 10, and security hardening recommendations. Use when auditing a codebase for security or when the user mentions security audit, penetration testing, or vulnerability scan.
Claude Code
$ npx -y skills add tranhieutt/software_development_department --skill security-audit --agent claude-code
Codex
$ npx skills add tranhieutt/software_development_department --skill security-audit -a codex -y
Cursor
$ npx skills add tranhieutt/software_development_department --skill security-audit -a cursor -y
Gemini CLI
$ npx skills add tranhieutt/software_development_department --skill security-audit -a gemini-cli -y
GitHub Copilot
$ npx skills add tranhieutt/software_development_department --skill security-audit -a github-copilot -y
OpenCode
$ npx skills add tranhieutt/software_development_department --skill security-audit -a opencode -y
Windsurf
$ npx skills add tranhieutt/software_development_department --skill security-audit -a windsurf -y
name: security-audit type: workflow description: "Conducts a comprehensive security audit covering web application vulnerabilities, API security, OWASP Top 10, and security hardening recommendations. Use when auditing a codebase for security or when the user mentions security audit, penetration testing, or vulnerability scan." context: fork agent: security-engineer when_to_use: "When performing security audits, vulnerability scanning, penetration testing, or hardening web applications and APIs" allowed-tools: Read, Glob, Grep, Bash argument-hint: "[target: api|frontend|backend|infra|full]" user-invocable: true effort: 5
Systematic security review using static analysis tools available in the codebase. Covers OWASP Top 10, secrets exposure, auth patterns, and dependency risk.
1. **Identify entry points** — list all routes/controllers:
grep -rn "app\.\(get\|post\|put\|delete\|patch\)\|@app\.route\|router\." src/ --include="*.{js,ts,py}" | head -602. **Identify auth middleware** — check which routes are protected:
grep -rn "auth\|middleware\|guard\|require_login\|jwt\|bearer" src/ -i --include="*.{js,ts,py}" | head -403. **Map external dependencies** — check package files for known-risky libs:
cat package.json 2>/dev/null || cat requirements.txt 2>/dev/null || cat go.mod 2>/dev/null
4. **Note findings** — list: total endpoints found, unprotected routes, third-party auth libs.
---
1. **Scan for hardcoded secrets**:
grep -rn "password\s*=\s*['\"][^'\"]\|api_key\s*=\s*['\"][^'\"]\|secret\s*=\s*['\"][^'\"]" src/ -i | grep -v ".example" | head -30
2. **Scan for tokens/keys in source**:
grep -rEn "(sk-|AIza|AKIA|ghp_|xox[baprs]-)[A-Za-z0-9]+" src/ | head -20
3. **Check .env files are gitignored**:
cat .gitignore | grep -i "\.env" ; ls -la .env* 2>/dev/null
4. **Check for secrets in logs**:
grep -rn "console\.log.*password\|logger.*token\|print.*secret" src/ -i | head -20
**Flag:** any hardcoded credential or unignored `.env` file is a P0 finding.
---
1. **SQL injection risk** — look for string concatenation in queries:
grep -rn "query.*+\|execute.*f\"\|raw.*%s\|SELECT.*\$\{" src/ --include="*.{js,ts,py}" | head -302. **Command injection risk** — shell execution with user input:
grep -rn "exec(\|spawn(\|subprocess\|os\.system\|child_process" src/ --include="*.{js,ts,py}" | head -203. **XSS risk** — unescaped HTML rendering:
grep -rn "innerHTML\|dangerouslySetInnerHTML\|v-html\|\.html(" src/ --include="*.{js,ts,jsx,tsx,vue}" | head -204. **Check for input validation middleware** — is there a schema validator at boundaries?
grep -rn "joi\|zod\|yup\|pydantic\|cerberus\|marshmallow" src/ --include="*.{js,ts,py}" | head -10---
1. **JWT / token handling** — check for weak configs:
grep -rn "algorithm.*HS256\|expiresIn\|verify\|decode" src/ --include="*.{js,ts,py}" | head -202. **Password hashing** — confirm bcrypt/argon2, not MD5/SHA1:
grep -rn "md5\|sha1\|hashSync\|bcrypt\|argon2\|pbkdf2" src/ -i --include="*.{js,ts,py}" | head -203. **CORS config** — check for wildcard origins:
grep -rn "cors\|Access-Control-Allow-Origin\|\*" src/ --include="*.{js,ts,py}" | head -204. **Authorization checks** — look for missing ownership checks in update/delete:
grep -rn "findById\|findOne\|get_object_or_404" src/ --include="*.{js,ts,py}" | head -20Review each — does the handler verify `resource.userId === req.user.id`?
---
1. **HTTP security headers** — check if helmet/similar is configured:
grep -rn "helmet\|Content-Security-Policy\|X-Frame-Options\|Strict-Transport" src/ --include="*.{js,ts}" | head -102. **Rate limiting** — check for brute-force protection on auth routes:
grep -rn "rateLimit\|throttle\|rate_limit\|slowDown" src/ --include="*.{js,ts,py}" | head -103. **HTTPS enforcement** — check redirect config:
grep -rn "http://\|forceHttps\|redirectToHttps\|SECURE_SSL_REDIRECT" src/ --include="*.{js,ts,py}" | head -10---
For each finding, record:
| Severity | Category | File:Line | Description | Remediation | |----------|----------|-----------|-------------|-------------| | P0 Critical | | | | | | P1 High | | | | | | P2 Medium | | | | | | P3 Low / Info | | | | |
**Severity guide:**
Save report to `docs/technical/security-audit-{YYYY-MM-DD}.md`.
---
Reads production/traces/agent-metrics.jsonl and displays a per-agent performance summary table for the current or a specified…
Provides the vendored agent-style v0.3.5 prose rule pack as a portable Claude skill. Use when installing, syncing, applying, or…
Provides Angular best practices for components, modules, services, and reactive patterns. Use when working with Angular…
Records unexpected API behaviors, undocumented caveats, version bugs, or non-obvious workarounds into…
Defines REST and GraphQL API contracts including endpoints, request/response schemas, auth flows, and versioning strategy. Use…
Manages the ADR (Architecture Decision Record) registry. Use when recording tech-stack choices, design patterns, or…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.