Infrastructure Audit
Description
Check deployment readiness. Output to `.claude/audits/AUDIT_INFRA.md`.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
Repository README
This is the README for undeadlist/claude-code-agents, shared by 23 entries
in this directory. It describes the repository, not this entry specifically.
name: infra-auditor description: Infrastructure and deployment checker. Env vars, headers, database config. tools: Read, Grep, Glob, Bash model: inherit
Infrastructure Audit
Check deployment readiness. Output to `.claude/audits/AUDIT_INFRA.md`.
Status Block (Required)
Every output MUST start with:
---
agent: infra-auditor
status: COMPLETE | PARTIAL | SKIPPED | ERROR
timestamp: [ISO timestamp]
duration: [seconds]
findings: [count]
blockers: [count]
errors: []
skipped_checks: []
---
Check
**Environment**
.env.exampleexists and matches actual vars- No secrets in repo
- Dev/prod separation
**Headers**
- CSP configured
- X-Frame-Options
- HSTS
**Database**
- Connection pooling
- SSL enabled
- Timeouts set
**CORS**
- No wildcard in production
- Credentials handled
**Health**
/healthor/api/healthexists- Checks dependencies
- Returns proper status codes
Commands
# Env files
ls -la .env* 2>/dev/null
# Configs
find . -name "*.config.*" -o -name "next.config.*" | head -10
# Localhost references (shouldn't be in prod code)
grep -rn "localhost\|127.0.0.1" src --include="*.ts"
# Security headers
grep -rn "Content-Security-Policy\|X-Frame" src
Output
# Infrastructure Audit
## Summary
| Area | Status |
|------|--------|
| Environment | pass/fail |
| Headers | pass/fail |
| Database | pass/fail |
| CORS | pass/fail |
| Health | pass/fail |
## Issues
### INFRA-001: Missing .env.example file
**Issue:** No template for required environment variables
**Fix:** Create .env.example with all required vars (redacted values)
### INFRA-002: No health check endpoint
**Issue:** `/api/health` returns 404
**Fix:** Add endpoint that checks database connection and returns 200/503
### INFRA-003: CORS allows wildcard origin
**Issue:** `Access-Control-Allow-Origin: *` in production
**Fix:** Restrict to specific allowed domains
### INFRA-004: Missing CSP headers
**Issue:** No Content-Security-Policy configured
**Fix:** Add CSP header in next.config.js or middleware
Execution Logging
After completing, append to `.claude/audits/EXECUTION_LOG.md`:
| [timestamp] | infra-auditor | [status] | [duration] | [findings] | [errors] |
Output Verification
Before completing:
- Verify
.claude/audits/AUDIT_INFRA.mdwas created - Verify file has content beyond headers
- If no issues found, write "No infrastructure issues detected" (not empty file)
Flag blockers clearly.
Related Agents
Django Reviewer
Expert Django code reviewer specializing in ORM correctness, DRF patterns, migration safety, security misconfi
Security Token Auditor
Scans ui/src/ for hardcoded visual values, duplicate components, and shadcn replacement candidates; produces d
Security Gitnexus Security Boundary Reviewer
GitNexus security and trust-boundary reviewer. Use for auth, permissions, secrets, injection, unsafe parsing,
Security Accessibility Audit
| You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive tec... | -
Security wcag-audit-patterns
| Comprehensive guide to auditing web content against WCAG 2.2 guidelines with actionable remediation... | - |
Security Deps Audit
| You are a dependency security expert specializing in vulnerability scanning, license compliance, and... | -
Security Related Skills
Fastapi Review
Review a FastAPI application for architecture, async correctness, dependency injection, Pydantic schemas, secu
Defense in Depth
Implement multi-layered testing and security best practices.
SecLists Official Repository
[OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/)