Namecheap DNS工具
БесплатноБез исполняемых скриптовНе проверенManage Namecheap DNS records safely by fetching existing entries, merging。Use when 需要项目管理、任务规划、进度跟踪、团队协作时使用。不适用于实际人员绩效评估。适用于独立开发者、企业团队和自动化工作流场景。支持中文交互,无需复杂配置即开…
от thcjp453 установки в других каталогахОб этом скилле
功能说明: 本技能涵盖 中文交互、化工作流场景 等核心能力。
功能说明: 本技能涵盖 化流程场景 等核心能力。
Namecheap DNS
专业版专属特性
| 能力 | 免费版 | 付费版 |
|---|---|---|
| 基础功能 | 支持 | 支持 |
| Namecheap DNS安全管理 | 不支持 | 支持 |
| 深度质量检查与CVE关联 | 不支持 | 支持 |
| 配置基线合规审计 | 不支持 | 支持 |
| 批量资产风险评分 | 不支持 | 支持 |
| 情报分析实时订阅与告警 | 不支持 | 支持 |
适用范围
| 场景 | 输入 | 输出 |
|---|---|---|
| DNS记录管理 | 域名和记录类型 | DNS记录列表和变更确认 |
| 记录合并 | 现有记录和新记录 | 合并后的DNS配置和差异 |
| 安全更新 | 域名和API凭据 | DNS更新结果和验证状态 |
不适用于:非Namecheap域名注册商的DNS管理
输入规范
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| domain | string | 是 | Namecheap域名 |
| record_type | string | 否 | 记录类型, 可选: A/CNAME/MX/TXT, 默认: 全部 |
结果格式
{
"success": true,
"data": {
"overall_grade": "A",
"total_score": 92,
"max_score": 100,
"summary": "处理完成",
"details": [
{
"item": "代码风格",
"status": "pass",
"score": 95,
"comment": "符合规范"
},
{
"item": "安全合规",
"status": "warn",
"score": 80,
"comment": "符合规范"
}
],
"improvements": [
{
"priority": "high",
"suggestion": "建议优化",
"expected_gain": "+5分"
},
{
"priority": "medium",
"suggestion": "建议优化",
"expected_gain": "+3分"
}
]
},
"error": null
}
环境要求
运行环境
- Agent平台: 支持SKILL.md的任意AI Agent(Claude Code / Cursor / Codex / Gemini CLI等)
- 操作系统: Windows / macOS / Linux
第三方依赖
| 依赖项 | 类型 | 是否必需 | 获取方式 |
|---|---|---|---|
| LLM API | API | 必需 | 由Agent内置LLM提供 |
API Key 配置
-
可用性分类
- 分类: MD+execute()
- 说明: 基于Markdown的AI Skill,
API Key配置方式:
export API_KEY="${API_KEY:?请设置环境变量}"
配置后需重启会话或开启新终端生效。API Key应妥善保管,避免泄露到版本控制系统.
案例展示
Mailgun Setup
./namecheap-dns.js add menuhq.ai \
--txt "mail.menuhq.ai=v=spf1 include:mailgun.org ~all" \
--txt "smtp._domainkey.mail.menuhq.ai=k=rsa; p=MIGfMA0..." \
--txt "_dmarc.mail.menuhq.ai=v=DMARC1; p=quarantine;" \
--cname "email.mail.menuhq.ai=mailgun.org" \
--mx "mail.menuhq.ai=10 mxa.mailgun.org" \
--mx "mail.menuhq.ai=20 mxb.mailgun.org" \
--dry-run
Review the diff, then run without --dry-run to apply.
注意事项
This skill has critical limitations due to the Namecheap API's destructive nature. Please review carefully before use:
⚠️ The Namecheap API is Destructive
The Namecheap domains.dns.setHosts API method replaces ALL DNS records for a domain. There is no "add one record" or "update one record" endpoint. Every change requires:
- Fetch all existing records (
getHosts) - Modify the list
- Upload the entire list (
setHosts)
This skill handles this for you by always fetching first and merging changes.
🔍 Ghost Records: The Hidden Danger
Problem: domains.dns.getHosts does NOT return all DNS records. Records managed by Namecheap subsystems are invisible to the API:
- Email Forwarding — MX, SPF, and DKIM records
- URL Redirect — A/CNAME records for domain parking/redirects
- Third-party integrations — Records added through Namecheap's dashboard for services
Since setHosts replaces all records, using the API can silently delete these hidden records.
🛡️ How This Skill Protects You
verifycommand — Compares API records with actual live DNS (viadig) and warns about ghost records- Automatic safety check — Before any
add,remove, orrestore, the skill checks for ghost records - Refuses to proceed — If ghost records are detected, the operation is blocked (unless
--forceis used) - Clear warnings — Shows exactly which records will be lost if you proceed
- DNS snapshots in backups — Captures actual DNS state via
dig, not just API state
When to Use --force
Only use the --force flag when:
- You've manually verified the ghost records are no longer needed
- You're intentionally removing email forwarding or URL redirects
- You understand and accept that those records will be deleted
Never use --force blindly. Always run verify first to see what will be lost.
Example: The Production Incident
This skill was created after adding Mailgun DNS records via the API wiped out Namecheap's email forwarding records. The email forwarding MX/SPF/TXT records were invisible to getHosts, so the fetch-merge-write pattern deleted them.
Now, the skill would have:
- Detected the ghost records during
verify - Refused to proceed without
--force - Shown exactly which email forwarding records would be deleted
- Created a backup including the DNS snapshot
创新优势
效率提升量化分析
| 操作步骤 | 手动耗时 | 自动化耗时 | 时间节约 | 准确率提升 |
|---|---|---|---|---|
| DNS记录拉取 | 10分钟 | 2分钟 | 8分钟 | 5% |
| DNS记录合并 | 30分钟 | 5分钟 | 25分钟 | 10% |
| DNS记录备份 | 15分钟 | 3分钟 | 12分钟 | 8% |
| DNS记录更新 | 20分钟 | 2分钟 | 18分钟 | 7% |
| DNS记 |
Установить Namecheap DNS工具 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Namecheap DNS工具?
Manage Namecheap DNS records safely by fetching existing entries, merging。Use when 需要项目管理、任务规划、进度跟踪、团队协作时使用。不适用于实际人员绩效评估。适用于独立开发者、企业团队和自动化工作流场景。支持中文交互,无需复杂配置即开即用。 changes, auto-backing u。Use when 需要项目管理、任务规划、进度跟踪、团队协作时使用。不适用于实际人员绩效评估。适用于个人开发者、团队协作和自动化流程场景。'
Как установить скилл Namecheap DNS工具?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Namecheap DNS工具 запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic