forge-infrastructure: Infrastructure
Engine: Hybrid — Forge + Google, Cloudflare
Purpose
Audit infrastructure as code, network and identity boundaries, encryption, state, drift, and least privilege.
Deterministic runtime composition
Before loading any provider procedure, run:
Resolve ../../runtime/cli/src/composition-entry.js relative to this SKILL.md, then run:
node "<resolved-absolute-runner-path>" infrastructure compose --workflow audit --root "<repository-root>" --dry-run --json
Add one repeatable --request <provider-or-source> flag for each explicit user request. Add
--condition <task-condition> or --risk-surface <surface> only for a task fact you directly
proved; never infer one from generic wording. The command above is the default for this
audit-oriented module; for implementation use --workflow build, and for a fix, retest, or
release gate use --workflow fix, verify, or ship respectively. Read the JSON response,
keep the Forge contract at index zero, and resolve paths against the absolute runtime_root
reported in that response. Read eager[].runtimePath when entering the module. The full
selected[] list is availability/provenance; load only deferred[].runtimePath when the task
reaches that concern, in tier order. Refuse any path that escapes the root. Respect every reported
suppression and context budget. If missing is non-empty, stop and report the installation as
damaged; do not improvise a prose fallback. The runner and specialist content may live in a plugin
cache or global installation; never assume they are inside the audited repository.
Resolve and read ../fullstack-forge/references/shared/module-contract.md (applicability,
execution, mutation, verification, completion) and
../fullstack-forge/references/shared/evidence-rules.md (statuses, standards, tools, findings via
../fullstack-forge/references/PROTOCOL.md) relative to this module SKILL.md before reporting.
Never hide failed checks or claim that an operation ran when it did not.
Automatic activation signals
Activate when a request or direct repository evidence involves infrastructure, when
the user explicitly names forge-infrastructure, or when discovery proves an applicable boundary.
- Cloud, container, orchestration, network, or infrastructure-as-code configuration
When not to activate
- No managed runtime or infrastructure under project control
Automated support
Relevant discovery inputs are:
- infrastructure code
- deployment profile
- policy and plan outputs
Deterministic support, bounded evidence only:
inspect-deployment-config
Agent inspection procedure
- Inventory infrastructure-as-code coverage and record resources managed outside it (console drift).
- Map network exposure: what listens publicly, TLS posture, DNS, and firewall rules; verify databases and admin services are not publicly reachable.
- Inspect identity boundaries: IAM roles, service accounts, and storage permissions against least privilege.
- Verify secret management: storage, injection, rotation capability, and absence from code and state files.
- Check resource limits, autoscaling bounds, persistent-volume policies, and production/debug configuration differences.
Manual inspection requirements:
- Review live drift, organization policies, and break-glass access
- Inspect plan output for replacements and data risk
Stack-specific guidance:
- Respect provider and IaC tool state, lifecycle, and import semantics
Evidence to collect
Standards used as criteria:
- CIS Benchmarks
- NIST SP 800-53 concepts
- SLSA 1.2
Common production failures
- Inspect identity, role trust, network exposure, ingress/egress, encryption, keys, secret injection, and metadata access
- Review state protection, locking, module versions, destructive changes, drift, tags, quotas, backups, and multi-environment isolation
- Run format, validate, lint, policy, and non-mutating plan tools where available
Missing-control checks
Each item needs direct evidence or one reasoned status.
- Infrastructure as code
- Environment parity
- Network exposure
- TLS
- DNS
- Firewalls
- Database exposure
- Storage permissions
- Secret management
- Resource limits
- Autoscaling
- Persistent volumes
- Regional placement
- Logging retention
- Production and debug differences
- Unused resources
- Public admin services
- Container configuration
Commands and tools
- Run
forge infrastructure audit --json or fullstack-forge infrastructure audit --json when
an explicit audit is requested and the CLI is installed. Normal feature work does not require it.
Safe fixes
- Pin compatible modules and correct validated non-destructive policy omissions
- Add least-privilege documentation and static checks
Approval-required changes
- Applying infrastructure, replacing resources, widening access, or changing production networking
Verification
- Run validate and policy checks after final edits
- Apply only in an authorized isolated environment and inspect resulting controls
Completion contract
Follow fullstack-forge/references/shared/completion.md and the limitations below.
Known limitations
- Static IaC cannot establish live drift or inherited organization policy
1---2name: forge-infrastructure-33description: Audit infrastructure as code, network and identity boundaries, encryption, state, drift, and least privilege.4---56# forge-infrastructure: Infrastructure78Engine: Hybrid — Forge + Google, Cloudflare910## Purpose1112Audit infrastructure as code, network and identity boundaries, encryption, state, drift, and least privilege.131415## Deterministic runtime composition1617Before loading any provider procedure, run:1819Resolve `../../runtime/cli/src/composition-entry.js` relative to this `SKILL.md`, then run:2021`node "<resolved-absolute-runner-path>" infrastructure compose --workflow audit --root "<repository-root>" --dry-run --json`2223Add one repeatable `--request <provider-or-source>` flag for each explicit user request. Add24`--condition <task-condition>` or `--risk-surface <surface>` only for a task fact you directly25proved; never infer one from generic wording. The command above is the default for this26audit-oriented module; for implementation use `--workflow build`, and for a fix, retest, or27release gate use `--workflow fix`, `verify`, or `ship` respectively. Read the JSON response,28keep the Forge contract at index zero, and resolve paths against the absolute `runtime_root`29reported in that response. Read `eager[].runtimePath` when entering the module. The full30`selected[]` list is availability/provenance; load only `deferred[].runtimePath` when the task31reaches that concern, in tier order. Refuse any path that escapes the root. Respect every reported32suppression and context budget. If `missing` is non-empty, stop and report the installation as33damaged; do not improvise a prose fallback. The runner and specialist content may live in a plugin34cache or global installation; never assume they are inside the audited repository.353637Resolve and read `../fullstack-forge/references/shared/module-contract.md` (applicability,38execution, mutation, verification, completion) and39`../fullstack-forge/references/shared/evidence-rules.md` (statuses, standards, tools, findings via40`../fullstack-forge/references/PROTOCOL.md`) relative to this module `SKILL.md` before reporting.4142Never hide failed checks or claim that an operation ran when it did not.4344## Automatic activation signals4546Activate when a request or direct repository evidence involves infrastructure, when47the user explicitly names `forge-infrastructure`, or when discovery proves an applicable boundary.4849- Cloud, container, orchestration, network, or infrastructure-as-code configuration5051## When not to activate5253- No managed runtime or infrastructure under project control5455## Automated support5657Relevant discovery inputs are:5859- infrastructure code60- deployment profile61- policy and plan outputs6263Deterministic support, bounded evidence only:6465- `inspect-deployment-config`6667## Agent inspection procedure68691. Inventory infrastructure-as-code coverage and record resources managed outside it (console drift).702. Map network exposure: what listens publicly, TLS posture, DNS, and firewall rules; verify databases and admin services are not publicly reachable.713. Inspect identity boundaries: IAM roles, service accounts, and storage permissions against least privilege.724. Verify secret management: storage, injection, rotation capability, and absence from code and state files.735. Check resource limits, autoscaling bounds, persistent-volume policies, and production/debug configuration differences.7475Manual inspection requirements:7677- Review live drift, organization policies, and break-glass access78- Inspect plan output for replacements and data risk7980Stack-specific guidance:8182- Respect provider and IaC tool state, lifecycle, and import semantics8384## Evidence to collect8586Standards used as criteria:8788- CIS Benchmarks89- NIST SP 800-53 concepts90- SLSA 1.29192## Common production failures9394- Inspect identity, role trust, network exposure, ingress/egress, encryption, keys, secret injection, and metadata access95- Review state protection, locking, module versions, destructive changes, drift, tags, quotas, backups, and multi-environment isolation96- Run format, validate, lint, policy, and non-mutating plan tools where available9798## Missing-control checks99100Each item needs direct evidence or one reasoned status.101102- Infrastructure as code103- Environment parity104- Network exposure105- TLS106- DNS107- Firewalls108- Database exposure109- Storage permissions110- Secret management111- Resource limits112- Autoscaling113- Persistent volumes114- Regional placement115- Logging retention116- Production and debug differences117- Unused resources118- Public admin services119- Container configuration120121## Commands and tools122123- Run `forge infrastructure audit --json` or `fullstack-forge infrastructure audit --json` when124 an explicit audit is requested and the CLI is installed. Normal feature work does not require it.125126## Safe fixes127128- Pin compatible modules and correct validated non-destructive policy omissions129- Add least-privilege documentation and static checks130131## Approval-required changes132133- Applying infrastructure, replacing resources, widening access, or changing production networking134135## Verification136137- Run validate and policy checks after final edits138- Apply only in an authorized isolated environment and inspect resulting controls139140## Completion contract141142Follow `fullstack-forge/references/shared/completion.md` and the limitations below.143144## Known limitations145146- Static IaC cannot establish live drift or inherited organization policy