namecheap
Installation
SKILL.md
Namecheap DNS Management
UTILITY SKILL — manages DNS records via the Namecheap API. USE FOR: "add DNS record", "update A record", "manage Namecheap domains", "set CNAME", "add MX record", "add TXT record", "list my domains", "show DNS records", "namecheap setup", "configure namecheap API", "what is my public IP" DO NOT USE FOR: domain registration/purchase, SSL certificate management, hosting configuration, non-Namecheap DNS providers
Workflow
First-time Setup
Before executing any API commands, verify credentials are configured:
- Check for existing config — look for
~/.namecheap-api - If not configured, guide the user through setup:
a. Show public IP — run
python3 namecheap.py public-ipto display the user's public IP b. Instruct IP whitelisting — tell the user to go to https://ap.www.namecheap.com/settings/tools/apiaccess/, enable API (select ON), and whitelist the displayed IP c. Have the user run setup themselves — ask the user to runpython3 namecheap.py setupdirectly in their own terminal. The script prompts for the username and reads the API key with a hidden prompt (getpass), writes~/.namecheap-apiwithchmod 600, and validates the connection. Never ask the user to paste their API key into the chat, and never log, echo, or display the API key value. If you cannot run an interactive terminal for the user, instruct them to runsetupthemselves, or to exportNAMECHEAP_API_USERandNAMECHEAP_API_KEYas environment variables in their own shell — rather than collecting the secret viaask_user. d. Confirm — once the user reports setup succeeded, proceed with DNS operations.