enuno/unifi-mcp-server/unifi-docs-sync
Claude Code and agent skill by enuno/unifi-mcp-server
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Use when adding, changing or removing an MCP tool, changing the A2A agent card or the native MCP prompt catalog, or changing what a deployment exposes - covers the tool registry, the agent card, the prompt catalog, API.md, the skills and the checks that fail when they drift.
Install
npx vskill@latest install enuno/unifi-mcp-server/unifi-docs-syncSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as enuno/unifi-mcp-server/unifi-docs-sync.
Keeping Tools, A2A, Prompts and Docs in Sync
The repository exposes the same capability surface in four places. They are derived from the tool registry, but each one is a separate artifact, and each can drift. This skill is the checklist for keeping them aligned.
The four surfaces
| Surface | Source of truth | Artifact | |
|---|---|---|---|
| MCP tools | src/tool_registry.py registration | Live at runtime | |
| A2A agent card | src/a2a/capabilities.py (the live registry) | agent-card.json | |
| Native MCP prompts | src/prompts/catalog.py | Live at runtime | |
| Documentation | API.md, README.md, skills/ | Files |
The rule that keeps them aligned: never write a tool name into a document from memory. Read it from the registry.
Read the real tool inventory
The count differs by mode and profile. Local mode registers 343 tools; the cloud modes register 71. Check the mode you are documenting.
The risk tier of each tool is in src/tool_registry.py:TOOL_TIERS, filled at registration. It is what the server authorizes against, so a document that calls a tool read-only when the registry says write is wrong.
When you add a tool
- Implement it in the right
src/tools/module, with@read_toolor
@write_tool. register_module_tools refuses a tool with no declaration, so this is not optional.
- Give a write tool a `confirm` parameter and, where the operation can
be previewed, a dry_run parameter. The wrapper enforces confirm; the dry_run gate is what makes a preview possible.
- Check the tests.
tests/unit/test_tool_declarations.pywalks the
call graph of every read tool and fails if one reaches a post, put, patch or delete.
- Add it to `API.md` under the right category, with its parameters.
- Add it to the right skill under
skills/. The operator skills cover
the tool surface; the developer skills cover the module mechanics.
- If it is a new module, add it to the profile lists in
src/tool_registry.py and to the module map in the developer skill.
- Regenerate the agent card if the tool surface changed:
``bash python scripts/generate_agent_card.py ``
tests/unit/a2a/test_agent_card.py fails when the artifact and the builder disagree.
When you remove or rename a tool
A rename breaks every document that mentions the old name. Search the whole repository:
The places a tool name appears:
API.md— the tool's entry.skills/*/SKILL.md— the operator and developer skills.src/prompts/catalog.py— the prompt catalog names the tools each
workflow reads. A prompt whose evidence tool is renamed must be updated too, or the workflow silently loses its evidence.
src/a2a/capabilities.py— the module-to-domain map, if the module
changed.
src/a2a/agent_card.py— the safety-requirement logic, if the tool's
tier changed.
The native prompt catalog
src/prompts/catalog.py names the tools each workflow reads, in two places: the evidence list and the requirements groups.
A workflow is advertised only when the tools its requirements name are registered. So:
- Renaming a tool breaks a workflow's availability, not just its text.
- A workflow that loses its last requirement tool disappears from
prompts/list in that configuration.
tests/unit/prompts/test_prompt_catalog.pychecks every named tool
against the live registry, so a stale name fails the test suite rather than producing a prompt that calls a tool that no longer exists.
The prompt text is guidance, not authorisation. It must never claim that a check was performed, and it must not promise a tool the server does not have.
The A2A agent card
The card is built from the live registry, so it follows the tools automatically. What it does not follow is anything you wrote by hand:
capabilitiesinsrc/a2a/capabilities.py— the advertised capability
names. A new domain needs a new entry there.
_MODULE_DOMAINSin the same module — the tool-module-to-domain map. A
new module must be placed, or it lands in fleet by default.
- The
skillslist in the card is the tool list, sorted by name. The
artifact agent-card.json is the reference for a default local deployment.
The card is public metadata. It must not carry a credential, a controller address or a filesystem path. tests/unit/a2a/test_agent_card_capabilities.py asserts that.
Tests that read the live registry
A test that compares a document against the live tool registry has to import the server itself, and that import is order-dependent. Another test module may have imported src.main first, under a different environment, so the module is already in sys.modules with a different tool surface. The comparison then fails, or passes, for reasons that have nothing to do with the change under test.
Re-import the server instead of reusing the cached one:
Build the Settings from explicit values rather than from the environment, because the test session clears the UNIFI_* variables:
Keep the reference environment in one place, and read it in both the test and whatever generates the artifact, so the two cannot drift apart.
The two guard tests
Two tests read the live registry and fail when a document drifts from it:
tests/unit/test_skill_tool_references.py— a skill table must not name a
tool the server does not register.
tests/unit/test_skill_parameter_references.py— a skill must not state an
argument the tool's schema does not have.
The second one reads an explicit argument list: a parenthesised or bracketed group of backticked names following the tool name. Prose that mentions a response field, a function name, or a contrasting spelling in the same breath is not an argument claim. Writing an argument list is therefore the way to state a parameter; writing it in prose does not get checked, and does not mislead the reader either.
When a tool's schema changes, both guards fail until the skills are updated. Run them before the full suite; they are the fastest signal that a registration change needs a documentation change with it.
The checks that catch drift
Two of these are drift detectors in their own right:
tests/unit/test_agent_docs.pyfails when a skill's frontmattername
does not match its folder, when a developer skill's copy in .claude/skills/ or .agents/skills/ differs from skills/, and when a document cites a path, link or tool name that does not exist.
tests/unit/a2a/test_agent_card.pyfails when the card artifact and
the builder disagree.
Copying a skill to the agent directories
skills/<name>/SKILL.md is the source of truth for the developer skills. After editing one, copy it:
Only the developer skills are copied. The operator skills live in skills/ alone.
The order that works
- Implement and register the tool.
- Run the focused test:
pytest tests/unit/tools/test_<module>.py -q. - Update
API.md. - Update the skills, and copy the developer ones to both agent
directories.
- Update the prompt catalog if a workflow read the tool.
- Regenerate the agent card.
- Run
make test, thenmake lint typecheck.
Doing 3-6 after 7 wastes a cycle: the drift tests will tell you what you missed, but the fix is the same either way.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/unifi-docs-sync/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/enuno/unifi-mcp-server/unifi-docs-sync)