Agent skill

Source Command Unifi MCP Test Coverage

by enuno in enuno/unifi-mcp-server

Run tests and analyze coverage gaps by module to reach 80% target

Apache-2.0Auto-check passedTesting & QA

Install Source Command Unifi MCP Test Coverage

skills CLI
$ npx skills add enuno/unifi-mcp-server --skill source-command-unifi-mcp-test-coverage -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install enuno/unifi-mcp-server source-command-unifi-mcp-test-coverage --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/enuno/unifi-mcp-server.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/source-command-unifi-mcp-test-coverage .claude/skills/source-command-unifi-mcp-test-coverage && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
source-command-unifi-mcp-test-coverage
GitHub stars
282
Token cost
~707 tokens
SKILL.md length
239 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
Apache-2.0

At a glance

Run tests and analyze coverage gaps by module to reach 80% target

  • Works in 6 steps: Run full test suite with detailed coverage → Analyze coverage by module → Generate coverage gap analysis → …
  • Tasks that involve Test coverage
  • Calls pytest

What it does

Source Command Unifi MCP Test Coverage is an agent skill from enuno/unifi-mcp-server. Run tests and analyze coverage gaps by module to reach 80% target

Its SKILL.md is about 710 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Test coverage. It works with Model Context Protocol. The repository describes itself as: An MCP server that leverages official UniFi API. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Test coverage

Example prompts

  • “/source-command-unifi-mcp-test-coverage”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Run full test suite with detailed coverage
  2. Analyze coverage by module
  3. Generate coverage gap analysis
  4. Read TESTING_PLAN.md to understand priorities
  5. Provide actionable recommendations
  6. Compare with previous coverage

What it can do on your machine

Read from SKILL.md and the folder at commit f0801c7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pytest

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Source Command Unifi MCP Test Coverage loads about 707 tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 239 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~26
When it runs · the whole SKILL.md, loaded when a task matches
~707

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from enuno/unifi-mcp-server at commit f0801c7, republished under its Apache-2.0 licence (© enuno). 239 words, ~707 tokens.

Download SKILL.mdSave it as .claude/skills/source-command-unifi-mcp-test-coverage/SKILL.md (or your agent's skills folder).
name
source-command-unifi-mcp-test-coverage
description
Run tests and analyze coverage gaps by module to reach 80% target

source-command-unifi-mcp-test-coverage

Use this skill when the user asks to run the migrated source command unifi-mcp-test-coverage.

Command Template

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:

  1. Run full test suite with detailed coverage:

    bash
    pytest --cov=src --cov-report=term-missing --cov-report=html --cov-report=json -v
  2. Analyze coverage by module:

    • Parse coverage.json to extract per-file coverage percentages
    • Identify modules below 80% threshold
    • Prioritize based on TESTING_PLAN.md priorities
  3. Generate coverage gap analysis:

    • List files with coverage < 80%
    • Show missing lines for each file
    • Calculate how many tests needed to reach 80%
  4. Read TESTING_PLAN.md to understand priorities:

    • Phase 1 (Critical): API client, config, webhooks
    • Phase 2 (High): Tool modules by usage frequency
    • Phase 3 (Medium): Utility modules
    • Phase 4 (Low): Edge cases and error scenarios
  5. Provide actionable recommendations:

    • Which module to focus on next
    • Specific functions/lines that need tests
    • Suggested test scenarios to add
    • Estimated effort (number of tests needed)
  6. Compare with previous coverage:

    • Show coverage trend (if available)
    • Highlight improvements or regressions

Report back with:

  • Current overall coverage percentage
  • Coverage by category:
    • API client modules
    • Tool modules (by category)
    • Model modules
    • Utility modules
    • Webhook modules
  • Top 5 files needing the most coverage
  • Recommended next steps based on TESTING_PLAN.md
  • Estimated tests needed to reach 80%

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:

  • Reference Phase priorities
  • Track completion of milestones
  • Suggest updates to the plan based on findings

© enuno, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/source-command-unifi-mcp-test-coverage of enuno/unifi-mcp-server.

Open the folder on GitHubat commit f0801c7

Compare with similar skills

Source Command Unifi MCP Test Coverage next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Source Command Unifi MCP Test Coverage compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Source Command Unifi MCP Test Coverage this skillenuno/unifi-mcp-server282—~707Automated safety check: PassApache-2.0
Reviewapollographql/apollo-mcp-server311—~2.9kAutomated safety check: PassMIT
Sonar CoverageSonarSource/sonarqube-agent-plugins111—~2.1kAutomated safety check: PassCustom licence
Jab Hookcoreyhaines31/makerskills848—~2kAutomated safety check: PassMIT
Unblock PRdatadog-labs/agent-skills177—~2.7kAutomated safety check: PassMIT
Sealeap Bixie Amazon Variation Keyword Role Mappingxjli360/sealeap-amazon-skills240—~683Automated safety check: PassMIT

Similar skills

  • Review

    apollographql/apollo-mcp-server

    Review a GitHub pull request for a Rust codebase. An agent skill from apollographql/apollo-mcp-server.

    311 GitHub stars~2.9k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Sonar Coverage

    SonarSource/sonarqube-agent-plugins

    Official

    Find files with low test coverage and inspect uncovered lines in a SonarQube project (project key optional when MCP integration already defines the default project)

    111 GitHub stars~2.1k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Jab Hook

    coreyhaines31/makerskills

    Gary Vaynerchuk's jab-jab-jab-right-hook framework applied to a personal portfolio rotation on X and LinkedIn.

    848 GitHub stars~2k tokensUpdated 1 mo ago
    Testing & QAAuto-check passed
  • Unblock PR

    datadog-labs/agent-skills

    Load when investigating a failing PR CI pipeline or checking PR health.

    177 GitHub stars~2.7k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Analyze keyword coverage at the parent-ASIN level to assign each child variation a distinct keyword role instead of letting variations compete for the same terms.

    240 GitHub stars~683 tokensUpdated 10 days ago
    Testing & QAAuto-check passed
  • Score Harness

    ruvnet/metaharness

    5-dimension scorecard (0-100, grade A/B/C/F) for a scaffolded harness.

    690 GitHub stars~613 tokensUpdated yesterday
    DevelopmentAuto-check passed

More from enuno/unifi-mcp-server

All 12 skills in this repo
  • Unifi

    enuno/unifi-mcp-server

    Manage UniFi network infrastructure via the UniFi MCP Server.

    282 GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Unifi MCP Tool Builder

    enuno/unifi-mcp-server

    Specialized guide for adding new MCP tools to the UniFi MCP Server following project standards, UniFi API patterns, and test-driven development practices.

    282 GitHub stars~5.8k tokensUpdated today
    Auto-check passed
  • Source Command Unifi MCP Add Tool

    enuno/unifi-mcp-server

    Scaffold a new UniFi MCP tool with model, function, tests, and docs

    282 GitHub stars~748 tokensUpdated today
    Auto-check passed
  • Prepare a new release with version bump, changelog, and quality checks

    282 GitHub stars~939 tokensUpdated today
    Auto-check passed
  • Auto-generate and update API.md documentation from tool docstrings

    282 GitHub stars~899 tokensUpdated today
    Auto-check passed

Categories

Questions about Source Command Unifi MCP Test Coverage

What does Source Command Unifi MCP Test Coverage do?

Run tests and analyze coverage gaps by module to reach 80% target. Source Command Unifi MCP Test Coverage is an agent skill from enuno/unifi-mcp-server.

When should I use Source Command Unifi MCP Test Coverage?

Source Command Unifi MCP Test Coverage fits situations like: tasks that involve Test coverage.

How do I install Source Command Unifi MCP Test Coverage in Claude Code?

Run `npx skills add enuno/unifi-mcp-server --skill source-command-unifi-mcp-test-coverage -a claude-code`. Or copy the skill folder (.agents/skills/source-command-unifi-mcp-test-coverage in enuno/unifi-mcp-server) into .claude/skills/source-command-unifi-mcp-test-coverage in your project. Claude Code loads it when a task matches its description.

How do I install Source Command Unifi MCP Test Coverage in Codex?

Run `npx skills add enuno/unifi-mcp-server --skill source-command-unifi-mcp-test-coverage -a codex`. Or copy the skill folder (.agents/skills/source-command-unifi-mcp-test-coverage in enuno/unifi-mcp-server) into .agents/skills/source-command-unifi-mcp-test-coverage in your project. Codex loads it when a task matches its description.

Can I use Source Command Unifi MCP Test Coverage in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add enuno/unifi-mcp-server --skill source-command-unifi-mcp-test-coverage -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/source-command-unifi-mcp-test-coverage, .gemini/skills/source-command-unifi-mcp-test-coverage, .github/skills/source-command-unifi-mcp-test-coverage and .opencode/skills/source-command-unifi-mcp-test-coverage in your project.

What does Source Command Unifi MCP Test Coverage need to run?

Going by SKILL.md and its folder, Source Command Unifi MCP Test Coverage needs the command-line tools its instructions call (pytest).

Does Source Command Unifi MCP Test Coverage access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Source Command Unifi MCP Test Coverage safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Source Command Unifi MCP Test Coverage use?

Source Command Unifi MCP Test Coverage is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Source Command Unifi MCP Test Coverage use?

About 707 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Source Command Unifi MCP Test Coverage?

Skills that share tags, products or a category with Source Command Unifi MCP Test Coverage: Review (apollographql/apollo-mcp-server, 311 stars), Sonar Coverage (SonarSource/sonarqube-agent-plugins, 111 stars), Jab Hook (coreyhaines31/makerskills, 848 stars) and Unblock PR (datadog-labs/agent-skills, 177 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Source Command Unifi MCP Test Coverage?

enuno (a GitHub user) maintains it in enuno/unifi-mcp-server, which has 282 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 8, 2026.

Source: enuno/unifi-mcp-server on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.