ecosystem-integrity-scanner
БесплатноЗапускает вложенные скриптыНе проверенDeeply analyzes Agent Studio framework structural health: catching phantom require() references, wrong module depth paths, missing skill/agent dependencies…
от oimiragieo★ 48 звёзд на GitHubОб этом скилле
Ecosystem Integrity Scanner
Overview
Automated structural integrity scanner for the entire Agent Studio framework.
Catches issues that silently break agent workflows: wrong require() paths that
crash at runtime, phantom skills referenced in agent frontmatter that don't exist
on disk, stale agent registry counts, archived references still active in
production code, UTF-16 encoding that breaks parsers, and bloated agent configs.
Core principle: Framework structural issues are pre-production bugs. A phantom
skill reference means an agent will fail silently. A broken require() means a hook
crashes at the wrong moment. The scanner enforces zero-tolerance for these.
When to Invoke
Skill({ skill: 'ecosystem-integrity-scanner' });
Invoke proactively after:
- Bulk framework changes (batch skill/agent/hook creation or archiving)
- Refactoring module paths or directory structure
- Running a major audit or cleanup pass
- Suspecting phantom references or broken require() chains
- Before finalizing any CI sanity gate
Mandatory Skills
Invoke before starting this skill:
| Skill | Purpose | When |
|---|---|---|
task-management-protocol |
Track scan progress | Always |
ripgrep |
Fast targeted code search | When investigating |
code-semantic-search |
Concept discovery | When pattern hunting |
context-compressor |
Compress large audit results | When output is large |
verification-before-completion |
Gate completion on zero errors | Before marking done |
memory-search |
Check prior audit patterns | At start |
Iron Laws
Always run from project root.
validate-ecosystem-integrity.cjsresolves all paths relative toprocess.cwd(). Running from a subdirectory corrupts all path resolution. Never invoke from a non-root directory.Never ignore PHANTOM_REQUIRE errors. A
[PHANTOM_REQUIRE]error means a hook or script will throwMODULE_NOT_FOUNDat runtime. These always represent real breakage — no false positives once the scanner is properly calibrated.Never mark scan complete while errors > 0. Warnings are advisory; errors are blocking. Report path and severity but do not call the pipeline done until errors reach zero or are explicitly accepted as known exceptions with owner annotation.
Always route HIGH errors to specialist agents. Phantom skills →
qaagent. Broken require() →developeragent. Archive refs in production →developer. Never attempt to remediate complex structural failures inline without delegation.Always save the audit report before completing. Write the categorized findings to
.claude/context/reports/qa/ecosystem-integrity-report-{ISO-date}.mdbefore callingTaskUpdate(completed). Evidence must persist across context resets.
Anti-Patterns
| Anti-Pattern | Risk | Correct Approach |
|---|---|---|
Treating [STALE_CATALOG] as informational noise |
Registry drifts from reality; agents get wrong counts | Always update agent-registry.json when agent files change |
| Skipping scan after bulk framework batch ops | Batch ops most commonly create phantom refs | Run scan as the FINAL step of every batch operation |
| Manually patching require() paths without re-scanning | One fix may mask three new breaks | Always re-run full scan after patching paths |
Running scanner against _archive/ subtrees |
Archive content has intentionally broken refs; false positives | Scanner skip rules handle this; trust the skip list |
Adding to DYNAMIC_SCRIPT_GENERATORS without review |
Accidentally suppressing real phantom detections | Only add files that provably generate child scripts |
Step 1: Run the Integrity Audit Engine
node scripts/validation/validate-ecosystem-integrity.cjs
The script performs six targeted checks:
[PHANTOM_REQUIRE]— Brokenrequire()/importpaths that resolve to non-existent files (after trying.js,.cjs,.mjs,.jsonextensions).[PHANTOM_SKILL]— Skills listed in agent frontmatterskills:arrays that have no corresponding.claude/skills/{name}/directory.[EMPTY_DIR]— Empty directories in.claude/tools/or.claude/skills/that indicate abandoned scaffolding creating registr
Установить ecosystem-integrity-scanner в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadBashGlobGrepВложенные файлы
FAQ
Что делает скилл ecosystem-integrity-scanner?
Deeply analyzes Agent Studio framework structural health: catching phantom require() references, wrong module depth paths, missing skill/agent dependencies, bloated configurations, archived references in active code, stale catalog counts, and empty tool/skill directories.
Как установить скилл ecosystem-integrity-scanner?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ecosystem-integrity-scanner запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic