用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/enuno/unifi-mcp-server --skill source-command-unifi-api-docs-update命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | source-command-unifi-api-docs-update |
| description | Update UNIFI_API.md with latest endpoints from developer.ui.com |
Use this skill when the user asks to run the migrated source command unifi-api-docs-update.
Scrape the latest UniFi API documentation from developer.ui.com and update docs/UNIFI_API.md with newly discovered endpoints.
This command runs the scripts/update-api-docs.js Puppeteer-based scraper to fetch API documentation from the official UniFi developer site and compare it against the current documentation.
API Sources:
Steps to execute:
Verify dependencies are installed:
npm list puppeteer
If not installed, run: npm install puppeteer
Run the API documentation updater:
node scripts/update-api-docs.js
Review the changes:
Show summary:
git diff --stat docs/UNIFI_API.md
What the script does:
Extracts endpoints from each API source:
Compares with existing documentation:
Extracts detailed information for new endpoints:
Updates documentation:
Expected output:
🔍 UniFi API Documentation Updater
Loading existing documentation...
✓ Loaded (42243 characters)
Processing Site Manager v1.0.0...
Loading https://developer.ui.com/site-manager/v1.0.0/gettingstarted...
✓ Found 11 endpoints
→ 4 new endpoints found
Extracting: Query ISP Metrics...
Extracting: List SD-WAN Configs...
Extracting: Get SD-WAN Config by ID...
Extracting: Get SD-WAN Config Status...
Processing Network v10.1.68...
Loading https://developer.ui.com/network/v10.1.68/gettingstarted...
✓ Found 74 endpoints
→ 3 new endpoints found
Extracting: Adopt Devices...
Extracting: List DPI Application Categories...
Extracting: Quick Start...
Processing Protect v6.2.83...
Loading https://developer.ui.com/protect/v6.2.83/gettingstarted...
✓ Found 41 endpoints
→ 36 new endpoints found
Extracting: Get application information...
Extracting: Get viewer details...
[... more endpoints ...]
Generating updated documentation...
✓ Updated documentation saved to: docs/UNIFI_API.md
📊 Summary:
Site Manager: +4 new endpoints
Network: +3 new endpoints
Protect: +36 new endpoints
✅ Complete!
Report back with:
Safety checks:
Notes: