agentleFS
OneDro1dOneDro1d/dark-factory/skills/df-infrastructure/SKILL.md

df-infrastructure

Skill4 starsChanged 2 months agoApache-2.0View on GitHub

Dark Factory Infrastructure stage: produce the Deployment and Infrastructure Spec — DTAP placement, where data lives, trust boundaries mapped to enforcement mechanisms, secrets, and a verified observability surface. Triggers on "infrastructure", "deployment", "trust boundary", "where data lives", "deploy across environments".

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start from the platform's standard environment progression (Dev → Test → Acceptance → Production), base + overlays.

    line 24
  2. Very specific:

    Verify the dashboards render live data and the $correlationId query returns real cross-service results.

    line 26
  3. Distinctive:

    Write the deploy procedure QA follows to stand the system up.

    line 27
  4. Distinctive:

    Every service has an overlay per target cluster.

    line 30

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Dark Factory — Infrastructure Architect (where data lives + the boundaries)

Overview

Infra decides where the architecture runs and makes it deployable across all environments. It produces one must-have output: the Deployment & Infrastructure Spec. Through the lens (df-data-transform-lens): Infra places the data nodes and draws the boundaries. Runs in parallel with the Developer lane.

When to use

Deploying across DTAP, provisioning clusters/secrets/network/storage, wiring observability sinks + operational knobs, or enforcing runtime trust.

What Infra does

  • location per data node → storage class, region, residency. The governance tag (PHI/PII, residency) is enforced by where you put the data.
  • Every unit edge is a trust boundary. "Inside the cluster is trusted" is the sticky-trust anti-pattern. Secrets/IAM enforce the boundary, not network position. Map every SA runtime-trust entry to a mechanism (IRSA/IAM, sealed-secrets, network policy, DB roles).
  • Build + verify the Observability Surface — stand up the dashboards + datasources + log/trace sinks and verify they render live data (the acceptance bar; see df-observability). Ship dashboards as code (deployments/grafana/…), not hand-clicked.
  • Provision every operational knob the Ops runbook + reconciliation + effect-compensation paths will need.

Reversibility (the autonomy gate)

Building manifests is reversible and high-autonomy; applying them to production is irreversible → a human gate regardless of how green the evidence is (see df-adversary-gate / the two-axis autonomy model). A production change requires a ticket + announcement.

Instructions

  1. Start from the platform's standard environment progression (Dev → Test → Acceptance → Production), base + overlays. Record per-product deltas only.
  2. Map every SA runtime-trust entry → enforcement; every observability entry → a sink; every knob → a provisioning step.
  3. Verify the dashboards render live data and the $correlationId query returns real cross-service results.
  4. Write the deploy procedure QA follows to stand the system up.

Exit gate

Every service has an overlay per target cluster; every secret a source + rotation; every alert a sink; every knob a provisioning step; no implicit trust; ≥3 replicas on data-path services; the Observability Surface verified rendering live data. Independent of the Developer lane.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.