Agent skill
ecosystem-health
Analyzes Claude Code ecosystem health by tracking all 27 extensibility components across 6 tiers - including plugin components, core configuration, environment/CLI, authentication, session features, and integrations. Use when checking if Claude Code components are up-to-date, orchestrating audits efficiently, tracking documentation coverage, applying updates from new Claude Code versions, or getting an overview of ecosystem component staleness.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/ecosystem-health
SKILL.md
Ecosystem Health
MANDATORY: docs-management Delegation
CRITICAL: This skill follows the anti-duplication principle. ALL component details MUST be queried from docs-management at runtime.
What This Skill Hardcodes (Static - Changes Rarely)
| Data | Why Static |
|---|---|
| Tier structure (1-6) | Design decision, architectural choice |
Audit commands (/audit-*) |
OUR commands in claude-ecosystem plugin |
| Audit types (automated/manual/documentation) | Classification policy |
| Scoring/prioritization logic | Policy decisions |
What MUST Be Delegated (Dynamic - Changes With Releases)
| Data | Why Dynamic | How to Get |
|---|---|---|
| CLI flags list | New flags every release | Query: docs-management: cli-reference.md CLI flags |
| Environment variables | New env vars frequently | Query: docs-management: settings.md environment variables |
| Authentication methods | New providers added | Query: docs-management: iam.md authentication methods |
| Permission modes | Modes evolve | Query: docs-management: iam.md permission modes |
| Cloud providers | New providers added | Query: docs-management: setup.md cloud providers |
| IDE integrations | New integrations added | Query: docs-management: third-party-integrations.md IDE |
| Change keywords | Terminology evolves | Derive from docs-management index keywords |
| File patterns | Locations can change | Query official docs for current patterns |
Delegation Rules
- NEVER use hardcoded lists for CLI flags, env vars, auth methods, cloud providers, IDE integrations, permission modes, or any frequently-changing data
- ALWAYS query docs-management when you need component details
- Use claude-code-guide agent for live verification during
--discoverand--checkmodes - If docs-management returns empty, that's a signal to check if the component still exists
Query Patterns for docs-management
# Tier 3: Environment & CLI
"cli-reference.md CLI flags" → Get current CLI flags list
"settings.md environment variables" → Get current env vars list
"iam.md permission modes" → Get current permission modes
# Tier 4: Authentication & Access
"iam.md authentication methods" → Get current auth methods
"iam.md configuring permissions" → Get permission rule patterns
"iam.md credential management" → Get credential features
# Tier 5: Session & Runtime
"cli-reference.md session features" → Get session features (resume, checkpoints)
"security.md sandbox configuration" → Get sandbox settings
# Tier 6: Integration
"third-party-integrations.md IDE" → Get IDE integrations list
"setup.md cloud providers" → Get cloud provider list
"common-workflows.md CI/CD" → Get CI/CD platforms
# Changelog for change categorization
"CHANGELOG recent changes" → Get changelog entries
Overview
This skill tracks Claude Code ecosystem health across ALL extensibility points - not just plugin components. It monitors 27 component types across 6 tiers:
Component Tiers
| Tier | Category | Components | Audit Type | Description |
|---|---|---|---|---|
| 1 | Core Configuration | 4 | Mixed | User, project, and enterprise settings |
| 2 | Plugin Components | 12 | Automated | Components packaged in plugins |
| 3 | Environment & CLI | 3 | Documentation | Env vars, CLI flags, permission modes |
| 4 | Authentication & Access | 3 | Mixed | Auth methods, permission rules |
| 5 | Session & Runtime | 2 | Mixed | Session features, sandbox config |
| 6 | Integration | 3 | Documentation | IDEs, cloud providers, CI/CD |
Audit Types Explained
| Type | Description | Has Audit Command? | Tracking Method |
|---|---|---|---|
automated |
Full audit via /audit-* |
Yes | Pass rate, component count |
manual |
Requires human review | No | Human review tracking |
documentation |
Tracks doc coverage only | No | Doc coverage via docs-management queries |
The skill provides:
- Parsing changelogs to identify new features and changes
- Tracking audit coverage across all 27 component types
- Documentation coverage for non-auditable components (queried from docs-management)
- Identifying pending updates needed for compliance
- Orchestrating audits efficiently (avoiding token waste)
- Helping apply updates from new Claude Code versions
When to Use This Skill
Use this skill when:
- Checking if ANY Claude Code extensibility component is up-to-date
- Getting an overview of audit coverage and staleness across all tiers
- Tracking documentation coverage for non-auditable components
- Planning which audits to run (token-efficient approach)
- Applying updates after Claude Code releases new versions
- Preparing a plugin release
- Detecting new/deprecated Claude Code features
Tracking File
Location: .claude/ecosystem-health.yaml
This file persists ecosystem health state across sessions. It stores audit metadata ONLY - not component details (which are delegated to docs-management).
Schema v2.1 Structure:
schema_version: "2.1"
last_check:
date: "YYYY-MM-DD"
claude_code_version: "X.Y.Z"
changelog_hash: "sha256:..."
component_coverage:
# Tier 1: Core Configuration
tier1_configuration:
user_settings:
last_audit: null
components_audited: 0
pass_rate: null
audit_type: "manual"
# Query docs-management for: settings.md user configuration
project_settings:
last_audit: "YYYY-MM-DD"
components_audited: N
pass_rate: 0.XX
audit_type: "automated"
audit_command: "/audit-settings"
managed_settings: { ... }
memory_system: { ... }
# Tier 2: Plugin Components (12 components)
tier2_plugins:
skills: { audit_type: "automated", audit_command: "/audit-skills" }
agents: { audit_type: "automated", audit_command: "/audit-agents" }
# ... (12 components, each with audit_type and audit_command)
# Tier 3-6: Documentation-tracked (DELEGATE to docs-management)
tier3_environment:
environment_variables:
audit_type: "documentation"
# DELEGATE: Query docs-management for: settings.md environment variables
cli_flags: { ... }
permission_modes: { ... }
tier4_authentication: { ... }
tier5_session: { ... }
tier6_integration: { ... }
changelog_versions_checked:
- version: "X.Y.Z"
checked_date: "YYYY-MM-DD"
changes_applied: true/false
pending_updates:
- feature: "feature name"
since_version: "X.Y.Z"
affects: ["skills", "commands"]
status: "pending" | "applied" | "skipped"
last_discovery:
date: "YYYY-MM-DD"
docs_scanned: [...]
changelog_version: "X.Y.Z"
components_detected: 27
tiers_scanned: 6
gaps_found: 0
Key Design Decision: The tracking file does NOT contain tracked_* arrays (no hardcoded lists of env vars, CLI flags, auth methods, etc.). All such data must be queried from docs-management at runtime.
Changelog Access
MANDATORY: Access changelog via docs-management skill.
Doc ID: raw-githubusercontent-com-anthropics-claude-code-refs-heads-main-CHANGELOG
Access pattern:
python plugins/claude-ecosystem/skills/docs-management/scripts/core/find_docs.py \
content raw-githubusercontent-com-anthropics-claude-code-refs-heads-main-CHANGELOG
Version Extraction
Parse changelog for version entries:
Pattern: ^##\s*\[?(\d+\.\d+\.\d+)\]?
Examples:
"## 2.1.3" → version 2.1.3
"## [2.1.0]" → version 2.1.0
Change Categorization
Map changelog keywords to component types across all 6 tiers.
IMPORTANT: Do NOT use hardcoded keyword lists. Query docs-management for current keywords via the index, then match changelog entries against those keywords.
Categorization Algorithm
- Query docs-management index for keyword lists by doc section
- For each changelog entry: a. Match against keywords from relevant doc sections b. Assign to tier(s) based on which docs matched c. Record affected components
Tier-to-Doc Mapping
| Tier | Components | Query docs-management for |
|---|---|---|
| 1 | user_settings, project_settings, managed_settings, memory_system | settings.md, iam.md, memory.md |
| 2 | skills, agents, commands, hooks, mcp, memory, plugins, settings, output_styles, statuslines, rules, lsp | skills.md, sub-agents.md, slash-commands.md, hooks.md, mcp.md, memory.md, plugins-reference.md, terminal-config.md |
| 3 | environment_variables, cli_flags, permission_modes | settings.md, cli-reference.md, iam.md |
| 4 | authentication_methods, permission_rules, credential_management | iam.md |
| 5 | session_features, sandbox_configuration | cli-reference.md, security.md |
| 6 | ide_integrations, cloud_providers, cicd_integrations | third-party-integrations.md, setup.md, common-workflows.md |
For detailed categorization patterns, see references/change-categories.md.
Modes of Operation
Status Mode (Default / --status)
Shows current ecosystem health without running audits. Displays all 6 tiers.
Algorithm:
- Load tracking file (or show "never checked" if missing)
- Read audit data for each component in all 6 tiers
- Calculate staleness (days since last audit/review)
- Show summary tables by tier with recommendations
Check Mode (--check)
Compares current changelog against last check. Identifies changes across all tiers.
Algorithm:
- Load tracking file
- Fetch changelog via docs-management
- Compute changelog hash
- If hash differs from tracked hash: a. Parse new versions since last check b. Query docs-management for current keyword mappings c. Categorize changes by tier d. Add to pending_updates with tier info
- Spawn claude-code-guide agent for live verification of new features
- Update tracking file
- Report findings by tier
Audit Mode (--audit [type])
Runs audits intelligently. Only applies to Tier 2 components (automated audits).
Without type argument: Audits all stale/never-audited Tier 2 components With type argument: Audits only specified type
Priority Order:
- Never audited (Priority 1)
- Affected by recent changelog changes (Priority 2)
- Stale >90 days (Priority 3)
Batching:
- Max 3 audits per batch
- Present results between batches
- Allow user to continue or stop
Audit Command Mapping (Tier 2 Only):
| Component | Audit Command |
|---|---|
| skills | /audit-skills |
| agents | /audit-agents |
| commands | /audit-commands |
| hooks | /audit-hooks |
| mcp | /audit-mcp |
| memory | /audit-memory |
| plugins | /audit-plugins |
| settings | /audit-settings |
| output_styles | /audit-output-styles |
| statuslines | /audit-statuslines |
| rules | /audit-rules |
| lsp | /audit-lsp |
Compliance Audits (Cross-Cutting):
| Audit Type | Audit Command | Description |
|---|---|---|
| docs-delegation | /audit-docs-delegation |
Audits skills and memory files for proper docs-management delegation patterns |
| agent-consolidation | /audit-agent-consolidation |
Analyzes agents for consolidation opportunities, groups by config, tracks references |
Doc Coverage Mode (--doc-coverage)
Tracks documentation coverage for non-auditable components (Tiers 3-6).
Algorithm:
- Load tracking file
- For each documentation-tracked component: a. Query docs-management for official doc section b. Extract current feature list from doc content c. Report coverage status
- No hardcoded lists - all data comes from docs-management queries
Note: Coverage is always based on current docs-management content. There's no "tracked list" to compare against - docs-management IS the source of truth.
Apply Mode (--apply)
Interactive mode to apply pending updates.
For each pending update:
- Show what changed in Claude Code
- Show affected tiers
- Load relevant development skill
- Search codebase for affected patterns
- Present affected files
- Ask user for action:
- Show detailed changes
- Apply changes automatically
- Skip this update
- Mark as already applied
Since Mode (--since )
Shows all changes since a specific version, organized by tier.
Algorithm:
- Fetch changelog
- Parse entries from specified version to current
- Query docs-management for keyword mappings
- Categorize all changes by tier
- Present summary by tier
Discover Mode (--discover)
Scans official documentation to detect ecosystem drift across ALL 6 tiers.
Algorithm:
-
Query docs-management for ALL relevant doc sections:
- Tier 1: settings.md, iam.md, memory.md
- Tier 2: plugins-reference.md, skills.md, hooks.md, etc.
- Tier 3: settings.md#environment-variables, cli-reference.md, iam.md#permission-modes
- Tier 4: iam.md#authentication-methods, iam.md#configuring-permissions
- Tier 5: cli-reference.md, security.md
- Tier 6: third-party-integrations.md, setup.md, common-workflows.md
-
Spawn claude-code-guide agent for live web verification of:
- Recent changelog entries
- New feature announcements
- Deprecated features
-
Build detected components list by tier:
- Extract features from docs-management responses
- Compare to tracked component types (27 total)
- Identify gaps
-
Report findings with evidence:
- Show doc_id or changelog version as source
- Provide recommendation (add tracking, update name, merge)
- Indicate affected tier
Quick Decision Tree
What do you want to do?
- Get overview of all Claude Code extensibility → Use Status Mode (default)
- Check for Claude Code updates → Use Check Mode (
--check) - Run audits for Tier 2 plugin components → Use Audit Mode (
--audit) - Check documentation coverage for Tiers 3-6 → Use Doc Coverage Mode (
--doc-coverage) - Apply pending updates → Use Apply Mode (
--apply) - See changes since version X → Use Since Mode (
--since X.Y.Z) - Check for new/changed components in any tier → Use Discover Mode (
--discover)
Delegation Pattern
This skill delegates to specialized skills for domain-specific guidance:
ecosystem-health
├── docs-management (MANDATORY - changelog, official docs for all tiers)
├── claude-code-guide (live verification during --discover and --check)
│
├── Tier 1 & 2 - Settings/Memory
│ ├── settings-management
│ └── memory-management
│
├── Tier 2 - Plugin Components
│ ├── skill-development
│ ├── subagent-development
│ ├── command-development
│ ├── hook-management
│ ├── mcp-integration
│ ├── plugin-development
│ ├── output-customization
│ └── status-line-customization
│
├── Tier 3-4 - Auth/Environment
│ ├── settings-management
│ ├── permission-management
│ └── enterprise-security
│
├── Tier 5 - Session/Runtime
│ └── sandbox-configuration
│
└── Tier 6 - Integration (documentation tracking only)
Token Efficiency
Goal: Minimize tokens while maintaining coverage.
Strategies:
- Skip recently-audited components (use tracking file)
- Prioritize by changelog impact (audit what changed)
- Batch audits (max 3 at a time)
- Progressive disclosure (load references only when needed)
- Delegate to docs-management (no local caches to maintain)
- Use claude-code-guide only when live verification needed
Expected savings: 60-80% compared to running all audits blindly.
Schema Migration
The skill handles migration between schema versions:
v1.0 → v2.0: Tiered organization v2.0 → v2.1: Delegation pattern (remove hardcoded lists)
Migration algorithm:
- Detects schema version
- Creates backup at
.claude/ecosystem-health.yaml.backup - Preserves existing audit data (last_audit, pass_rate, components_audited)
- Removes deprecated fields (tracked_*, file_patterns)
- Writes new schema version
References
For detailed implementation guidance:
- Changelog Parsing: See references/changelog-parsing.md
- Change Categories: See references/change-categories.md
- Audit Orchestration: See references/audit-orchestration.md
- Component Discovery: See references/component-discovery.md
- Delegation Detection: See references/delegation-detection.md
Related Skills
| Skill | Relationship |
|---|---|
docs-management |
MANDATORY - Primary source for ALL dynamic data |
claude-code-guide |
Live verification for --discover and --check modes |
skill-development |
Skills validation and guidance |
subagent-development |
Agents validation and guidance |
command-development |
Commands validation and guidance |
settings-management |
Settings guidance |
All other *-development skills |
Domain-specific validation |
Test Scenarios
Scenario 1: First Run
Query: /ecosystem-health
Expected: Creates tracking file with v2.1 schema, shows "never checked" status for all tiers
Success: Tracking file created, 27 components displayed across 6 tiers, NO hardcoded lists in file
Scenario 2: Check for Updates (with Delegation)
Query: /ecosystem-health --check
Expected:
- Fetches changelog via docs-management
- Queries docs-management for keyword mappings
- Spawns claude-code-guide for live verification
- Reports new versions by tier Success: Updates detected with evidence from docs-management, not hardcoded assumptions
Scenario 3: Smart Audit (Tier 2)
Query: /ecosystem-health --audit
Expected: Audits only stale/never-audited Tier 2 components
Success: Targeted audits run, tracking file updated (audit metadata only)
Scenario 4: Documentation Coverage (Delegated)
Query: /ecosystem-health --doc-coverage
Expected:
- Queries docs-management for each Tier 3-6 doc section
- Reports coverage based on current docs content
- NO comparison against hardcoded lists Success: Coverage reported from live docs-management queries
Scenario 5: Component Discovery (with claude-code-guide)
Query: /ecosystem-health --discover
Expected:
- Queries docs-management for ALL tier doc sections
- Spawns claude-code-guide for live web verification
- Reports gaps with evidence from both sources Success: Discovery report generated with dual-source verification
Version History
-
v2.1.0 (2026-01-10): Delegation pattern
- Removed ALL hardcoded lists (tracked_*, file_patterns)
- Added MANDATORY docs-management delegation section
- Added claude-code-guide integration for live verification
- Schema v2.1 with audit-data-only tracking file
- Anti-duplication compliance
-
v2.0.0 (2026-01-10): Expanded to ALL Claude Code extensibility points
- 27 component types across 6 tiers (up from 12 plugin components)
- New schema version (v2.0) with tiered organization
- Added doc-coverage mode for non-auditable components
- Discover mode now scans all 6 tiers
- Automatic schema migration from v1.0
-
v1.1.0 (2026-01-10): Added discover mode
- Self-audit capability for component drift detection
- Scans official docs for new/deprecated components
- Reports gaps with evidence and recommendations
-
v1.0.0 (2026-01-10): Initial release
- Status, check, audit, apply, and since modes
- Tracking file persistence
- Changelog parsing and categorization
- Smart audit prioritization
Last Updated
Date: 2026-01-10 Model: claude-opus-4-5-20251101
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?