Infra Audit
Reads docker-compose, env files, ORM configs, and connection strings to map current...
Install
npx skills add SethGammon/Citadel --skill infra-audit -g -a claude-code -y- Repository
- SethGammon/Citadel927
- Category
- DevOps
- Updated
- 5d ago
- License
- MIT
- Context cost
- Mediumabout 1,922 tokens
- Runs scripts
- No, instructions only
What it does
Reads docker-compose, env files, ORM configs, and connection strings to map current infrastructure. Flags missing layers (cache, queue, analytics) based on observed access patterns. Outputs a structured infrastructure manifest.
/infra-audit -- Infrastructure Auditor
When to Use
- Before adding a new database, cache, or queue to a project
- When onboarding to an unfamiliar codebase and need to understand its infra
- Before planning a workspace campaign that spans multiple services
- When someone asks "what systems does this project talk to?"
Do not use when:
- The user already knows the infra and just wants to wire something up (use
/architect) - The question is about code architecture, not infrastructure (use
/research)
Protocol
Step 1: DISCOVER
Scan the project for infrastructure configuration files. Check each category:
Container orchestration:
docker-compose.yml,docker-compose.*.ymlDockerfile,*.dockerfilek8s/,kubernetes/,helm/,charts/
Environment and secrets:
.env,.env.*,.env.example,.env.local*.envfiles in config directories
Database and ORM:
- Prisma:
prisma/schema.prisma - Drizzle:
drizzle.config.ts,drizzle/ - TypeORM:
ormconfig.*,data-source.ts - Sequelize:
.sequelizerc,config/database.* - Knex:
knexfile.* - SQLAlchemy:
alembic.ini,alembic/ - Django:
settings.py(DATABASES section) - Rails:
config/database.yml - Go: look for
pgx,gorm,sqlxin go.mod
Message queues and event streaming:
- Redis: connection strings,
ioredis,redisin package.json/requirements.txt/go.mod - RabbitMQ:
amqplib,pika,amqpimports - Kafka:
kafkajs,confluent-kafka,saramaimports - NATS:
nats,nats.goimports - SQS/SNS:
@aws-sdk/client-sqs,boto3sqs references
Cache:
- Redis (dual-use -- note if used as cache vs. pub/sub vs. primary store)
- Memcached:
memcached,pylibmcimports
Search:
- Elasticsearch:
@elastic/elasticsearch,elasticsearch-py - Meilisearch, Typesense, Algolia client libraries
Object storage:
- S3:
@aws-sdk/client-s3,boto3s3 references - MinIO, GCS, Azure Blob client libraries

