agentleFS
lyhcodelyhcode/agent-skills/skills/gandi-cli/SKILL.md

gandi-cli

Skill2 starsChanged 8 months agoMITView on GitHub

Manage Gandi.net domains, DNS records, certificates, and email using the gandi CLI. Use when the user wants to manage domain names, LiveDNS records, SSL certificates, email forwarding, mailboxes, or organizations on Gandi.net. Triggers on mentions of Gandi, domain management, DNS records, or gandi-cli.

  • Installs packages

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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. Very specific:

    Run directly with uvx (no install needed):

    line 28
  2. Distinctive:

    All supported types: A, AAAA, ALIAS, CAA, CDS, CNAME, DNAME, DS, HTTPS, KEY, LOC, MX, NAPTR, NS, OPENPGPKEY, PTR, RP, SOA, SPF, SRV, SSHFP, …

    line 142

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Gandi CLI Assistant

Help users manage Gandi.net services using the gandi CLI.

Source: https://github.com/lyhcode/agent-gandi-cli

Prerequisites

Installation & Usage

Run directly with uvx (no install needed):

uvx agent-gandi-cli gandi <command>

Or install globally:

pip install agent-gandi-cli
gandi <command>

Authentication

Token priority: --token flag > GANDI_PAT env var > config file.

# Save token to config file
gandi auth login --token <your-pat>

# Or set environment variable
export GANDI_PAT="your-personal-access-token"

# Check authentication status
gandi auth status

# Remove saved token
gandi auth logout

# Set default organization
gandi auth set-org <sharing-id>

Config file location: ~/.config/gandi-cli/config.toml (TOML format)

[auth]
pat = "your-token"

[defaults]
sharing_id = ""
output = "table"

Global Options

OptionDescription
--output, -oOutput format: table (default), json, plain
--tokenAPI token (overrides config, env: GANDI_PAT)
--sharing-idOrganization ID (env: GANDI_SHARING_ID)
--sandboxUse sandbox API (api.sandbox.gandi.net)

Domain Management

# List domains
gandi domain list
gandi domain list --fqdn "example"       # Filter by FQDN pattern
gandi domain list --per-page 50          # Pagination

# Domain details
gandi domain info example.com

# Check availability and pricing
gandi domain check newdomain.com
gandi domain check newdomain.com --currency TWD

DNS Record Management (LiveDNS)

# List all records
gandi dns list example.com
gandi dns list example.com --type A               # Filter by type
gandi dns list example.com --name www              # Filter by name

# Get specific record
gandi dns get example.com www A
gandi dns get example.com @ MX

# Create record
gandi dns create example.com www A 1.2.3.4
gandi dns create example.com www A 1.2.3.4 5.6.7.8    # Multiple values
gandi dns create example.com mail MX "10 mail.example.com." --ttl 3600
gandi dns create example.com @ TXT "v=spf1 include:_spf.google.com ~all"

# Update record
gandi dns update example.com www A --value 9.8.7.6
gandi dns update example.com www A --value 1.1.1.1 --value 2.2.2.2 --ttl 600

# Delete record
gandi dns delete example.com www A
gandi dns delete example.com www A --force          # Skip confirmation

# Export zone file
gandi dns export example.com

Common DNS Record Types

TypeExample ValueDescription
A1.2.3.4IPv4 address
AAAA2001:db8::1IPv6 address
ALIASalias.example.com.Alias for bare domain (like CNAME on @)
CNAMEalias.example.com.Canonical name (trailing dot)
MX10 mail.example.com.Mail exchange (priority + host)
TXT"v=spf1 ..."Text record (SPF, DKIM, verification)
NSns1.example.com.Nameserver
SRV10 5 5060 sip.example.com.Service record
CAA0 issue "letsencrypt.org"Certificate authority authorization

All supported types: A, AAAA, ALIAS, CAA, CDS, CNAME, DNAME, DS, HTTPS, KEY, LOC, MX, NAPTR, NS, OPENPGPKEY, PTR, RP, SOA, SPF, SRV, SSHFP, SVCB, TLSA, TXT, WKS

Important Constraints

  • ALIAS + DNSSEC: ALIAS records on bare domain (@) will break DNSSEC — avoid combining them
  • CNAME exclusivity: CNAME cannot coexist with other record types on the same name
  • Email forwards: Max 100 creations/updates per week per domain (HTTP 429 on exceed)

Certificate Management

# List SSL certificates
gandi cert list
gandi cert list --cn example.com              # Filter by Common Name
gandi cert list --status valid                # Filter: valid, expired, pending, revoked

# Certificate details
gandi cert info <cert-id>

Email Management

Email Forwarding

# List forwards
gandi email forward list example.com

# Create forward
gandi email forward create example.com info user@gmail.com
gandi email forward create example.com sales user1@gmail.com user2@gmail.com

# Delete forward
gandi email forward delete example.com info
gandi email forward delete example.com info --force

Mailboxes

# List mailboxes
gandi email mailbox list example.com

# Mailbox details
gandi email mailbox info example.com <mailbox-id>

Organization Management

# List organizations
gandi org list
gandi org list --name "My Company"

# Organization details
gandi org info <org-id>

# Show current user
gandi org whoami

Output Formats

# Table output (default, human-readable)
gandi domain list

# JSON output (for scripting)
gandi domain list -o json

# Plain output (minimal)
gandi domain list -o plain

# Pipe JSON to jq
gandi dns list example.com -o json | jq '.[].rrset_name'

Common Patterns

Set up a new subdomain

gandi dns create example.com blog A 1.2.3.4
gandi dns create example.com blog AAAA 2001:db8::1

Update DNS for a migration

gandi dns update example.com www A --value 10.0.0.1 --ttl 300
# After migration is verified, restore normal TTL
gandi dns update example.com www A --value 10.0.0.1 --ttl 10800

Add email forwarding

gandi email forward create example.com info personal@gmail.com
gandi email forward create example.com support team@company.com

Export DNS for backup

gandi dns export example.com > example.com.zone

Shell Completion

# Install completion for current shell
gandi --install-completion

# Show completion script
gandi --show-completion

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.