Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ecosystem-integrity-scanner

БесплатноЗапускает вложенные скриптыНе проверен

Deeply analyzes Agent Studio framework structural health: catching phantom require() references, wrong module depth paths, missing skill/agent dependencies…

oimiragieoот 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

  1. Always run from project root. validate-ecosystem-integrity.cjs resolves all paths relative to process.cwd(). Running from a subdirectory corrupts all path resolution. Never invoke from a non-root directory.

  2. Never ignore PHANTOM_REQUIRE errors. A [PHANTOM_REQUIRE] error means a hook or script will throw MODULE_NOT_FOUND at runtime. These always represent real breakage — no false positives once the scanner is properly calibrated.

  3. 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.

  4. Always route HIGH errors to specialist agents. Phantom skills → qa agent. Broken require() → developer agent. Archive refs in production → developer. Never attempt to remediate complex structural failures inline without delegation.

  5. Always save the audit report before completing. Write the categorized findings to .claude/context/reports/qa/ecosystem-integrity-report-{ISO-date}.md before calling TaskUpdate(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:

  1. [PHANTOM_REQUIRE] — Broken require() / import paths that resolve to non-existent files (after trying .js, .cjs, .mjs, .json extensions).
  2. [PHANTOM_SKILL] — Skills listed in agent frontmatter skills: arrays that have no corresponding .claude/skills/{name}/ directory.
  3. [EMPTY_DIR] — Empty directories in .claude/tools/ or .claude/skills/ that indicate abandoned scaffolding creating registr
Полный SKILL.md на GitHub

Установить ecosystem-integrity-scanner в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Bash
Glob
Grep

Вложенные файлы

commands/ecosystem-integrity-scanner.mdhooks/post-execute.cjshooks/pre-execute.cjsreferences/research-requirements.mdrules/ecosystem-integrity-scanner.mdschemas/input.schema.jsonschemas/output.schema.jsonscripts/main.cjstemplates/implementation-template.md

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить ecosystem-integrity-scanner с