用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/enuno/unifi-mcp-server --skill source-command-unifi-mcp-test-coverage命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Manage UniFi network infrastructure via the UniFi MCP Server. Use this skill for any task involving UniFi devices, clients, networks, VLANs, WiFi, firewall rules, zone-based firewall, VPNs, traffic monitoring, backups, RADIUS, QoS, DPI, port forwarding, ACLs, DHCP, DNS, or site management. Triggers when the user mentions UniFi, Ubiquiti, network clients, APs, switches, gateways, firewall policies, or traffic flows in a network management context.
Use when creating or modifying Model Context Protocol (MCP) servers with FastMCP framework - guides through tools, resources, prompts, authentication, Codex Desktop integration, and production deployment with Python and TypeScript examples
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
基于 SOC 职业分类
正在显示 SKILL.md
| name | source-command-unifi-mcp-test-coverage |
| description | Run tests and analyze coverage gaps by module to reach 80% target |
Use this skill when the user asks to run the migrated source command unifi-mcp-test-coverage.
Analyze test coverage for the UniFi MCP Server and identify areas needing improvement.
This command runs comprehensive coverage analysis and provides actionable recommendations to reach the 80% coverage target.
Steps to execute:
Run full test suite with detailed coverage:
pytest --cov=src --cov-report=term-missing --cov-report=html --cov-report=json -v
Analyze coverage by module:
Generate coverage gap analysis:
Read TESTING_PLAN.md to understand priorities:
Provide actionable recommendations:
Compare with previous coverage:
Report back with:
Example output:
Current Coverage: 34.10%
Target: 80%
Gap: 45.90%
Coverage by Category:
✓ Models: 86.62% (above target)
✗ API Client: 45.23% (needs +34.77%)
✗ Tools: 38.54% (needs +41.46%)
✗ Webhooks: 12.00% (needs +68.00%)
Top Priority Files (from TESTING_PLAN.md Phase 1):
1. src/api/client.py - 45.23% (55 missing lines)
- Need tests for: rate limiting, error handling, retry logic
2. src/config/settings.py - 60.00% (20 missing lines)
- Need tests for: environment variable loading, validation
3. src/webhooks/receiver.py - 12.00% (88 missing lines)
- Need tests for: webhook validation, signature checking
Next Action: Focus on src/api/client.py
Estimated effort: 8-10 test cases
Expected coverage gain: +11.13%
Integration with TESTING_PLAN.md: