sc-cf

Solid

Cloudflare DNS automation — idempotent per-record A/AAAA/CNAME/TXT writes via the Cloudflare v4 API, DNS-only (grey cloud) by default so Let's Encrypt works. Use this provider whenever the domain's nameservers actually delegate to Cloudflare; it mirrors the lib/hostinger.js contract so /sc-all can swap providers. Workers/Pages/R2/tunnel still stubs.

DevOps & Infrastructure 12 stars 2 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
37
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# /sc-cf — Cloudflare > **Status:** **DNS is implemented** (`lib/cloudflare.js` + `scripts/dns.js`). Workers, Pages, R2 and Zero Trust tunnel are **not implemented** — see [Not implemented yet](#not-implemented-yet). ```mermaid flowchart TD A["/sc-cf set --domain be.example.com"] --> B["resolve zone<br/>longest suffix wins<br/>(or CLOUDFLARE_ZONE_ID pin)"] B --> C["GET /zones/:id/dns_records<br/>?type=A&name.exact=be.example.com"] C --> D{"exact name+type<br/>matches?"} D -->|"0"| E["POST /dns_records<br/>proxied:false"] D -->|"1, content+proxied ok"| F["no-op ✅<br/>{ alreadyExists: true }"] D -->|"1, wrong"| G["PATCH /dns_records/:recordId<br/>that ONE id"] D -->|">1"| H["refuse ⚠️<br/>{ skipped:true, reason:'ambiguous' }"] E --> I["settle 5s, then ✅<br/>{ skipped:false, created:true }"] G --> I ``` ## When to use - **The domain's nameservers point at Cloudflare.** That is the whole deciding factor — see [Hostinger vs Cloudflare](#hostinger-vs-cloudflare-which-provider-owns-the-zone). - You need a subdomain A record so Traefik/Dokploy can obtain a Let's Encrypt certificate (the driving case). - `/sc-all` needs a DNS provider and `CLOUDFLARE_API_TOKEN` is set — `configureDns` here is signature-compatible with `lib/hostinger.js`. ## Scope (implemented) `lib/cloudflare.js` is the client; `skills/sc-cf/scripts/dns.js` is the CLI over it. - **Zone resolution** — longest-matching-suffix probe (`GET /zones?name=<candidate>`, longest-first)...

Details

Author
rahmanef63
Repository
rahmanef63/si-coder-agent
Created
5 months ago
Last Updated
2 days ago
Language
JavaScript
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category