/citadel:infra-auditfrom citadel
Maps project infrastructure by scanning docker-compose, env files, ORM configs, and connection strings. Flags missing layers like cache, queue, and analytics based on observed access patterns.
Ships in citadel. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Do not use when:
/architect)/research)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*.env files in config directoriesDatabase and ORM:
prisma/schema.prismadrizzle.config.ts, drizzle/ormconfig.*, data-source.ts.sequelizerc, config/database.*knexfile.*alembic.ini, alembic/settings.py (DATABASES section)config/database.ymlpgx, gorm, sqlx in go.modMessage queues and event streaming:
ioredis, redis in package.json/requirements.txt/go.modamqplib, pika, amqp importskafkajs, confluent-kafka, sarama importsnats, nats.go imports@aws-sdk/client-sqs, boto3 sqs referencesCache:
memcached, pylibmc importsSearch:
@elastic/elasticsearch, elasticsearch-pyObject storage:
@aws-sdk/client-s3, boto3 s3 referencesExternal APIs:
NEXT_PUBLIC_* or VITE_* env vars pointing to external servicesCI/CD:
.github/workflows/, .gitlab-ci.yml, Jenkinsfile, bitbucket-pipelines.ymlFor each discovered item, record:
For each discovered system, trace how the application connects:
new Client(), createPool())Build a connection graph:
App --> [pool: 10] --> PostgreSQL (primary store)
App --> [ioredis] --> Redis (cache + pub/sub)
App --> [SDK] --> Stripe (payments)
Based on what's connected and how it's used, identify:
Access patterns:
Missing layers (flag only when evidence supports the need):
| Signal | Likely Missing | Evidence Required |
|---|---|---|
| Repeated identical DB queries in hot paths | Cache layer (Redis/Memcached) | Same query in 3+ request handlers |
setTimeout/setInterval for deferred work | Job queue (Bull/BullMQ/Celery) | Processing that doesn't need to block the response |
Full-text search via LIKE '%term%' | Search engine (Elasticsearch/Meilisearch) | Text search on >10K rows |
| Large file uploads stored in DB or local disk | Object storage (S3/MinIO) | Binary columns or fs.writeFile for user content |
| Analytics queries on production tables | Analytics DB (Snowflake/BigQuery/ClickHouse) | Aggregation queries mixed with OLTP |
| Multiple services sharing one DB | Event bus or API gateway | 2+ repos writing to same schema |
| No connection pooling | Connection pooler (PgBouncer) | Direct connections in serverless/high-concurrency |
Do not flag something as missing unless the evidence is in the code.
Output the infrastructure manifest to .planning/infra-manifest.md:
# Infrastructure Manifest
> Generated: {ISO date}
> Project: {project name from package.json or repo name}
## Current Systems
### {System Name} -- {Role}
- **Type**: {database|cache|queue|search|storage|auth|payments|...}
- **Product**: {PostgreSQL 15|Redis 7|Stripe SDK|...}
- **Config**: `{file path}`
- **Connection**: {method -- pooled, direct, SDK, ORM}
- **Used by**: {modules/services that import the client}
(repeat for each system)
## Connection Graph
{ASCII diagram of connections -- use /ascii-diagram conventions}
## Access Patterns
- {Pattern 1}: {evidence}
- {Pattern 2}: {evidence}
## Opportunities
### {Opportunity Title}
- **Signal**: {what in the code suggests this}
- **System**: {what would address it -- e.g., "Redis as cache layer"}
- **Impact**: {what improves -- latency, scalability, separation of concerns}
- **Effort**: low | medium | high
(repeat for each opportunity)
## Multi-Repo Considerations
{If the project references other repos, APIs, or shared databases, note them here.
This section feeds directly into /workspace if the user wants to act on opportunities
that span repos.}
Present a summary to the user:
/workspace)src/, lib/, config/ for
connection patterns. Note the absence of externalized config as a finding..planning/ does not exist: Create it before writing the manifest.Disclosure: "Auditing infrastructure configuration. No files modified."
Reversibility: green — read-only audit; only writes .planning/infra-manifest.md; undo with rm .planning/infra-manifest.md.
Trust gates:
.planning/infra-manifest.md---HANDOFF---
- Scanned {N} config files, found {M} external systems
- Key systems: {list top 3-4}
- Top opportunity: {highest-signal opportunity}
- Multi-repo scope: {yes/no -- if yes, suggest /workspace}
- Reversibility: green — delete .planning/infra-manifest.md to undo
---
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub sethgammon/citadel --plugin citadel48 skills in this plugin
/architectGiven a PRD, produces an implementation architecture: file tree, component breakdown, data model, and a phased build plan with end conditions that Archon can execute directly. Multi-candidate evaluation for key decisions./archonAutonomous multi-session campaign agent. Decomposes large work into phases, delegates to sub-agents, reviews output, and maintains campaign state across context windows. Use for work that spans multiple sessions and needs persistent state, quality judgment, and strategic decomposition./ascii-diagramGenerate perfectly aligned ASCII diagrams — architecture, flow, sequence, box-and-arrow. Uses a programmatic character-grid approach so alignment is guaranteed by math, not token prediction. Includes post-render verification./autopilotIntake-to-delivery pipeline. Processes pending items from .planning/intake/: briefs new ideas, executes approved work through research → plan → build → verify. Drop a file in .planning/intake/ and invoke this skill./costDeep cost exploration and transparency. Shows real token usage, session costs, campaign spend, burn rates, and model breakdown. Reads Claude Code's native session data for exact numbers. Complements /dashboard with focused cost views./create-appEnd-to-end app creation from a single description. Five tiers: blank project, guided, templated, fully generated, or feature addition to existing codebase. Routes through PRD, architecture, and Archon campaign with verification at every step.2 plugins ship this exact skill · first indexed Jun 2, 2026
Other plugins' skills for the same job