infra-designer
Plan, deploy, and audit cloud infrastructure from a single reproducible spec — right inside your coding agent.
Describe the app you want to build; infra-designer interviews you for the requirements
that actually pick and size components, designs a right-sized architecture, and writes a
canonical spec.json into your repo. From that one spec it deterministically generates
plain Terraform (or idempotent shell scripts), an architecture diagram, and a
drift audit — all output you own, no lock-in.
It's harness-agnostic: the same engine and instructions run in Claude Code, Codex, Cursor, or anything that speaks MCP.
flowchart LR
req["your requirements"] --> spec["infra/<project>/spec.json<br/>(source of truth)"]
spec --> tf["Terraform / deploy.sh"]
spec --> dia["diagram (drawio + mermaid)"]
spec --> aud["drift audit"]
It right-sizes the stack instead of defaulting to heavyweight AWS: a simple app gets a Vercel + Supabase design; a photo-sharing app at scale gets ALB + ECS + S3 + a media pipeline. It honors a stated preference in either direction ("I'm fine with managed services" vs "everything in our AWS VPC").
Install
Prerequisite (all harnesses): Python 3.11+. Deploying additionally needs the Terraform CLI (default backend) or the AWS CLI (the no-IaC backend).
Claude Code
Run these two commands in Claude Code:
/plugin marketplace add AlexK020908/infra-designer
/plugin install infra-designer@infra-designer-marketplace
That's it — /plan-infra, /deploy, and /audit are now available in any repo.
Codex / Cursor / generic agents
First install the engine as a CLI (gives you an infra-designer command on your PATH):
pipx install infra-designer # or: pip install infra-designer
Then get the agent instructions + components by cloning the repo and pointing your agent at it:
git clone https://github.com/AlexK020908/infra-designer.git
- Codex auto-reads
infra-plugin/AGENTS.md— open the repo (or copyAGENTS.mdinto your project) and ask it to design infrastructure. - Cursor — copy
infra-plugin/adapters/cursor/infra-designer.mdcinto your workspace's.cursor/rules/. - Anything with MCP — register
infra-plugin/adapters/mcp/server.py(seeadapters/mcp/README.md). This is the universal path.
See infra-plugin/adapters/README.md for the full
adapter table.
Use it
In Claude Code:
/plan-infra a full-stack Next.js app with email login and CRUD, a few hundred users.
I'm happy to use Vercel + Supabase and don't want to manage servers.
It confirms the requirements with you, then writes everything into a per-project folder in your current repo:
infra/<project-name>/
spec.json # canonical source of truth (hand-off artifact)
spec.lock.json # pinned component versions
diagram.drawio # AWS-icon diagram (open at app.diagrams.net)
diagram.mmd # Mermaid (renders inline in GitHub/IDEs)
Then /deploy renders the spec to Terraform (or deploy.sh) and applies it, and
/audit diffs the live infrastructure back against the spec. Each design lives in its
own infra/<project-name>/ folder, so multiple designs in one repo never overwrite each
other.
On other harnesses, just ask in natural language ("design infra for …", "deploy it", "audit for drift") — same engine, same files.
How it works
One canonical spec.json is the source of truth; the Terraform, the diagram, and the
audit are all deterministic projections of it. The spec composes declarative
components from a registry (aws.alb, aws.ecs.service, aws.rds.postgres,
web.frontend (Vercel), supabase.database, …), each of which compiles to standard
Terraform. Wiring between components (IAM policies, security-group rules, load-balancer
target groups) is generated from the spec's edges.
Full component registry, the wiring model, and the engine CLI are documented in infra-plugin/README.md.
Contributing
The main extension point is authoring new components. See CONTRIBUTING.md and the component contract in infra-plugin/components/CONTRACT.md.
License
MIT © Alex Kang
Metadata
Release files for infra-designer 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| infra_designer-0.1.0.tar.gz | 57.1 kB | Without provenance | Details for infra_designer-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| infra_designer-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for infra_designer-0.1.0-py3-none-any.whl |
Total release size: 139.6 kB
Release files / infra_designer-0.1.0.tar.gz
| Download URL | infra_designer-0.1.0.tar.gz |
|---|---|
| Size | 57.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bc1e1a2bb5c203a46ed117a4ade11f1ef825abe5487ed0c12d4da867cd617901
|
|
BLAKE2b-256 checksum How to use checksums |
4667fc967323d5a5d14b32a402512c27b4d3bd67710eb7e4b2e316cd0c0378ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / infra_designer-0.1.0-py3-none-any.whl
| Download URL | infra_designer-0.1.0-py3-none-any.whl |
|---|---|
| Size | 82.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4cbf5e1dd65f8efd9dbdbe90446862201f17e46e1dd00698ced67b5a6fd9aebc
|
|
BLAKE2b-256 checksum How to use checksums |
3da3f81e11fea28c85dcc97a66ccc7eb056132264a483a796aed64202177c781
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Security for infra-designer 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.