SkillPulse
AI Agent Skills & MCP Contract Analyzer
Created on 24th October 2026
•
SkillPulse
AI Agent Skills & MCP Contract Analyzer
The problem SkillPulse solves
As AI engineering shifts from monolithic system prompts to modular Agent Skills (SKILL.md) and Model Context Protocol (MCP 2025-11-25) tool servers, developers face a silent reliability crisis: broken cross-boundary contracts between markdown instructions and JSON tool manifests.
Today, when an agent workspace breaks, it fails silently at runtime:
- Ghost Tools (
MCP003): ASKILL.mdprompt instructs an agent to invoke a tool (e.g.,delete_production_db), but that tool is missing, misspelled, or renamed inmcp_tools.json—causing the agent to hallucinate tool calls or crash mid-execution. - Orphan Tools (
MCP004) & Context Window Bloat (SKILL005): Unreferenced MCP tools and bloated markdown skills silently consume thousands of tokens of context window budget on every single turn. - Malformed Schemas (
MCP002): MissinginputSchemaobjects, invalid property dictionaries, or mismatchedrequiredarrays break strict LLM tool-calling parsers. - False-Positive Stubs (
MCP005): Auto-generated schema placeholders are often mistaken for working backend tools in multi-developer repos.
SkillPulse is eslint + pytest for the agentic stack. Built with 100% Python 3.10+ standard library (zero external dependencies) and verified by 45 unit/integration tests, it executes in under 200ms to provide:
- Static Skill Linter (
SKILL001–SKILL006): Validates YAML frontmatter delimiters, naming regexes, trigger cues, relative markdown file links on disk, and BPE token footprint estimates (~1.3 tokens/word). - MCP 2025-11-25 Contract Validator (
MCP001–MCP005): Validates JSON Schema definitions and cross-references every tool call inSKILL.mdagainstmcp_tools.jsonto catch Ghost Tools, Orphan Tools, and Unimplemented Stubs. - Deterministic Ecosystem Health Score (0–100, Grade A–F): Computed via
Score = max(0, 100 - (20 * errors) - (5 * warnings)). - Deterministic Contract Auto-Fixer (
skillpulse fix): Repairs missing frontmatter descriptions, injects compliant MCP2025-11-25object schema skeletons, and stubs missing Ghost Tools—honestly classifying auto-generated placeholders asMCP005: STUB / UNIMPLEMENTED(-5 pts) rather than faking backend verification (lifting our broken test workspace from 25% Grade F to 80% Grade B automatically). - Self-Contained Obsidian HTML Dashboard & CI Exports: Generates a zero-dependency offline dark-mode report featuring an interactive Skill <-> MCP Contract Topology Map, a Model Context Window Budget Meter (8k Skill Budget vs. GPT-4o 128k / Claude 200k / Gemini 1M), client-side severity filters, 1-click Copy Fix buttons, and
--format json/--format markdownoutputs for GitHub Actions and GitLab CI pipelines.
Challenges I ran into
-
Strict Zero-Dependency Architecture:
We wanted SkillPulse to run instantaneously (<200ms) inside any developer's local environment or air-gapped CI container without requiring C-compilers, Rust toolchains, or third-partypippackages (PyYAML,jsonschema,pydantic). We engineered a custom line-by-line YAML frontmatter parser (SimpleYAMLParsersupporting inline lists and key-value extraction), a pure-stdlib MCP2025-11-25JSON Schema validator, and a heuristic BPE token estimator (~1.3 tokens/word) using only Python 3.10+ built-in modules. -
Eliminating False Positives in Cross-Boundary Tool Extraction:
Extracting MCP tool invocations from free-form markdown (SKILL.md) initially risked flagging regular inline code snippets or sibling skill names as Ghost Tools (MCP003). We solved this by scoping AST/regex extraction specifically totools:/mcp_tools:YAML frontmatter declarations and dedicated# MCP Toolsmarkdown sections, adding regression tests (test_tool_extraction_does_not_extract_sibling_skills_or_generic_backticks) to guarantee zero false positives. -
Honest Contract Verification vs. Placeholder Stubs (
MCP005):
When buildingskillpulse fix, automatically generating a valid MCP2025-11-25schema entry for a missing Ghost Tool resolved the fatalMCP003schema error, but initially caused the dashboard topology map to label the tool as a✓ Verified Contracteven though no backend server logic existed yet. To prevent misleading developers, we engineered RuleMCP005(is_stubtracking via"x_skillpulse_stub": true), which downgrades the fatal-20 ptGhost Tool error into an explicit-5 ptSTUB / UNIMPLEMENTEDwarning and visually separates schema stubs from verified contracts in both the CLI and HTML Topology Map. -
Safe Offline Clipboard Handling Across
file://Origins:
Because the generatedskillpulse-report.htmldashboard is opened directly from disk viafile://, standard inline JavaScript string interpolation broke when remediation snippets contained nested JSON quotes or backslashes, and modern browsers restrictnavigator.clipboardon non-HTTPS local files. We eliminated inline string interpolation collisions and built a zero-dependency clipboard fallback (fallbackCopy) with r
Tracks Applied (1)
