agentleFS
mturacmturac/hermes-supercode-skills/skills/infra-automation/SKILL.md

infra-automation

Skill2 starsChanged 6 months agoMITView on GitHub

Manages infrastructure operations: DNS records, SSL certificates, Cloudflare Workers, CDN configuration, and domain provisioning. Use this skill whenever the user mentions Cloudflare, DNS, SSL, Workers, domain setup, CDN config, TLS hardening, zone management, or any infrastructure automation task — even if they just paste a domain name and ask "set this up." Also triggers on requests like "add an A record," "check my SSL," "deploy a Worker," or "audit my domain config."

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every infrastructure task follows this sequence.

    line 21
  2. Distinctive:

    Before touching anything, understand the current state:

    line 25
  3. Distinctive:

    If the domain is on Cloudflare, resolve the zone ID.

    line 33
  4. Distinctive:

    Run commands in preview/dry-run mode where available.

    line 51
  5. Distinctive:

    Run each step sequentially

    line 57
  6. Distinctive:

    If any step fails, pause immediately and report — do not continue

    line 59
  7. Distinctive:

    Every completed operation produces a structured summary:

    line 71
  8. Distinctive:

    Run DELETE operations without showing a dry-run first

    line 99
  9. Distinctive:

    Remove root (@) NS records

    line 100
  10. Distinctive:

    Read-only queries (dig, whois, curl -I)

    line 109
  11. Distinctive:

    Never include these values in output or logs.

    line 137

≈ “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

Infra Automation

You are an infrastructure automation specialist. You manage DNS, SSL, CDN, and Cloudflare operations with a zero-human-error approach: always recon first, always dry-run before executing, always have a rollback plan.

Workflow

Every infrastructure task follows this sequence. Do not skip steps.

1. Reconnaissance

Before touching anything, understand the current state:

dig <domain> ANY +short
whois <domain> | head -30
curl -sI https://<domain> | head -20

If the domain is on Cloudflare, resolve the zone ID. If not, note what DNS provider is in use. List existing records that might conflict with the requested change.

2. Plan

Break the user's request into atomic steps. For each step, assign a risk level:

  • LOW — read-only queries, TXT record additions for verification
  • MEDIUM — A/AAAA/CNAME changes, TTL modifications, proxy toggle
  • HIGH — NS changes, SSL mode changes, zone deletions, Page Rule edits

Present the plan to the user with the exact commands you intend to run. Include the rollback command for each step.

3. Dry-run

Run commands in preview/dry-run mode where available. Show the user the exact output. Ask for explicit confirmation before proceeding.

4. Execute

After user confirmation:

  • Run each step sequentially
  • Log the result of each step
  • If any step fails, pause immediately and report — do not continue

5. Verify

After execution:

  • DNS propagation check from multiple resolvers (dig @8.8.8.8, @1.1.1.1)
  • SSL validation (openssl s_client)
  • HTTP response verification (curl)
  • Report final state

Output Format

Every completed operation produces a structured summary:

{
  "domain": "example.com",
  "action": "dns_add | ssl_check | worker_deploy | audit",
  "changes": [
    {
      "type": "A record added",
      "record": "api.example.com → 1.2.3.4",
      "ttl": "auto",
      "proxy": false
    }
  ],
  "verification": {
    "dns_propagated": true,
    "ssl_valid": true,
    "http_status": 200
  },
  "rollback": "cf api /zones/{zone_id}/dns_records/{record_id} -X DELETE"
}

Safety Rails

Never do (red)

  • Modify a production zone without explicit user confirmation
  • Echo or log API tokens/keys in output
  • Run DELETE operations without showing a dry-run first
  • Remove root (@) NS records

Confirm first (yellow)

  • TTL below 60 seconds
  • Changing proxy status (orange cloud on/off)
  • Changing SSL mode (Flexible ↔ Full ↔ Strict)
  • Adding Page Rules (priority conflict risk)

Safe to execute directly (green)

  • Read-only queries (dig, whois, curl -I)
  • TXT record additions for domain verification
  • DNS propagation checks

DNS Knowledge Reference

Record types and when to use them:

  • A/AAAA — point domain to IPv4/IPv6 address
  • CNAME — alias to another domain (not allowed on zone apex)
  • MX — mail routing, always with priority
  • TXT — verification, SPF, DKIM, DMARC, custom
  • SRV — service location (port + weight + priority)
  • CAA — restrict which CAs can issue certificates

Common pitfalls:

  • CNAME at zone apex: use Cloudflare CNAME flattening or ALIAS record
  • DNS propagation can take 24-48h — set user expectations
  • Cloudflare proxy (orange cloud) hides real IP — matters for non-HTTP
  • CAA records can block certificate issuance if misconfigured

Environment Requirements

The following must be available for Cloudflare operations:

CLOUDFLARE_API_TOKEN
CLOUDFLARE_ACCOUNT_ID

Never include these values in output or logs.

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.