ecosystem-audit

ecosystem-audit is a skill for Claude Code from wan-huiyan/claude-ecosystem-hygiene. It costs 342 tokens per session (4,228 once invoked), scanned A, original, MIT.

An audit tool for Claude Code’s stored skills, memory, handoffs, worktrees, decision records, and project documents. It checks these parts of the setup and creates an HTML report.

In plain words
What is it for?
Use it to review the health of a Claude Code setup, decide what to clean up, and compare the setup before and after installing skills.
Why use it?
It helps reveal unused items, abandoned work, storage bloat, broken links, and other maintenance problems in one place.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Part of the ecosystem-audit plugin — 1 skill shipped together

Good fit Use it to review the health of a Claude Code setup, decide what to clean up, and compare the setup before and after installing skills.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wan-huiyan/claude-ecosystem-hygiene/ecosystem-audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wan-huiyan/claude-ecosystem-hygiene --skill ecosystem-audit
Clone the repo
git clone --depth 1 https://github.com/wan-huiyan/claude-ecosystem-hygiene

Made for: Claude Code.

Or install ecosystem-audit, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ecosystem-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/wan-huiyan/claude-ecosystem-hygiene/ecosystem-audit/github.svg)](https://agentmods.dev/skills/wan-huiyan/claude-ecosystem-hygiene/ecosystem-audit)
Your own site
<a href="https://agentmods.dev/skills/wan-huiyan/claude-ecosystem-hygiene/ecosystem-audit"><img src="https://agentmods.dev/badge/skills/wan-huiyan/claude-ecosystem-hygiene/ecosystem-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ecosystem-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/wan-huiyan/claude-ecosystem-hygiene/ecosystem-audit"><img src="https://agentmods.dev/badge/skills/wan-huiyan/claude-ecosystem-hygiene/ecosystem-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 342 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,228 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00342 $0.04228
Opus 5 $0.00171 $0.02114
Sonnet 5 $0.00068 $0.00846
Haiku 4.5 $0.00034 $0.00423

Measured 11d ago against content hash 70f35c49dbf5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

ecosystem-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/parse_skill_usage.py, scripts/score_health.py, scripts/score_trigger_coverage.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ecosystem-audit/SKILL.md · 328 lines

How it starts

The opening of the file, as written. The whole thing — 328 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ecosystem Audit

A comprehensive audit of the entire ~/.claude/ ecosystem that scans 9 categories of persistent artifacts, scores each on a health scale, and produces an interactive HTML dashboard with prioritized cleanup recommendations.

When to Use

  • User wants to know what skills are installed and which are actually used
  • User wants to clean up their Claude Code environment
  • User asks about ecosystem health, dormant artifacts, or storage bloat
  • Monthly hygiene check (recommend running every 30 days)
  • Before/after installing a batch of new skills
  • When memory-hygiene or schliff:doctor findings suggest broader issues

Architecture

This skill orchestrates parallel subagents for speed. The audit runs in 3 phases:

Phase 1: Scan (parallel subagents)
  ├── Skills: parse JSONL logs for invocations, classify by domain
  ├── Memory: check all project dirs, apply memory-hygiene thresholds
  ├── Handoffs: count, classify lifecycle state, find orphans
  └── ADRs + Docs: read status fields, check links, classify

Phase 2: Score (sequential)
  ├── Calculate health % per category
  ├── Apply lifecycle scoring for worktrees
  ├── Cross-reference with memory-hygiene thresholds
  └── Generate prioritized recommendations (P0/P1/P2)

Phase 3: Report (write files)
  ├── Markdown summary → docs/handoffs/ecosystem_audit_report.md
  └── Interactive HTML → docs/handoffs/ecosystem_audit_report.html

Phase 1: Scan

Launch 4 parallel subagents, each responsible for one scan domain. Each subagent reports structured findings back to the orchestrator.

1A. Skill Usage Scan

Parse JSONL session logs to determine which skills are actually invoked.

Data source: ~/.claude/projects/<dir>/<uuid>.jsonl

What to extract:

  • Lines where message.content[].name == "Skill" — these are invocations
  • Extract input.skill (skill name), input.args, and timestamp
  • Cross-reference with toolUseResult.commandName and toolUseResult.success

Classification rules:

  • Active: invoked in the session log window (default: 30 days)
  • Relevant-Dormant: not invoked but domain-aligned with user's work (check user profile in memory files for role/domain context)
  • Niche-Dormant: specialized domain unlikely to be needed (bio/chem databases, quantum computing, wet-lab integrations, astrophysics, game dev, embedded systems)
  • DevOps-Dormant: IaC/CI/CD tools (terraform, helm, k8s, ansible, dockerfile, jenkins, github-actions generators and validators)
  • Not-a-Skill: workspace directories, cloned repos, .DS_Store, README files
  • Deprecated: SKILL.md explicitly says "DEPRECATED" or "merged into"

Read the full file on GitHub · 328 lines

Files

What ships with it

10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 328 lines · 342 tokens per session scan A 70f35c49dbf5

Subscribe to this mod's changes

ecosystem-audit is a skill published in the GitHub repository wan-huiyan/claude-ecosystem-hygiene (1 stars, last pushed 25d ago), licensed MIT. It adds 342 tokens to every session and 4,228 once invoked, about $0.0017 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

session-handoff

End-of-session handoff that captures session knowledge, dispatches output across the canonical 7-bucket docs/ taxonomy (decisions/runbooks/analysis/references/reviews/handoffs/deliverables — aligned with memory-hygiene v3.3), triggers a doc-freshness reverse-lint + skill-freshness audit to catch stale normative…

wan-huiyan/context-baton · 247 tokens

llm-wiki

Build and maintain an LLM-curated personal knowledge base — the "LLM Wiki" pattern from Andrej Karpathy's April 2026 gist. Use this skill whenever the user wants to ingest a source (paper, article, transcript, PDF, notes) into a persistent compounding knowledge base, ask a question against accumulated notes, lint or…

praneybehl/llm-wiki-plugin · 221 tokens

reflect

Per-project self-improvement - reads the .harness ledger and feedback memories, then proposes gated rule/threshold/ADR changes so the project stops repeating mistakes. Run periodically.

sneg55/agent-starter · 37 tokens

remember

Review auto-memory entries and propose promotions to CLAUDE.md, CLAUDE.local.md, or shared memory. Also detects outdated, conflicting, and duplicate entries across memory layers.

sneg55/agent-starter · 38 tokens

ucai-patterns

Use when the user asks about Claude Code best practices, how to write agents, how to use hooks, how to manage context, or how to work effectively with Claude Code's native systems.

Joncik91/ucai · 42 tokens

dream

Memory consolidation - review, merge, prune, and index memory files. Run periodically to keep memories organized and up-to-date.

sneg55/agent-starter · 27 tokens