用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/enuno/unifi-mcp-server --skill source-command-unifi-mcp-add-tool命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | source-command-unifi-mcp-add-tool |
| description | Scaffold a new UniFi MCP tool with model, function, tests, and docs |
Use this skill when the user asks to run the migrated source command unifi-mcp-add-tool.
Scaffold a complete new MCP tool for the UniFi MCP Server.
This command creates all necessary files and code for a new tool following the project's architecture and standards.
Steps to execute:
Ask the user for tool details:
Create or update the Pydantic model in src/models/:
Create the tool function in src/tools/:
Register the tool in src/main.py:
Create comprehensive unit tests in tests/unit/:
test_<category>_tools.pyUpdate API.md documentation:
Run validation:
black src/ tests/pytest tests/unit/test_<category>_tools.py -vpython -c "from src.main import mcp; print(mcp.list_tools())"Report back with:
Example workflow:
User: "I want to add a tool to get WLAN groups"
Assistant:
1. Creates src/models/wifi.py with WLANGroupResponse model
2. Creates src/tools/wifi.py with get_wlan_groups() function
3. Updates src/main.py to register the tool
4. Creates tests/unit/test_wifi_tools.py
5. Updates API.md with documentation
6. Runs tests and reports results
Safety checks: