agentleFS
wei63wwei63w/skill-monitor/skills/skill-monitor/SKILL.md

skill-monitor

Skill1 starsChanged 4 months agoMITView on GitHub

Monitor local Agent Skill usage, Rules/AGENTS.md context bloat, and Task / sub-agent startup cost (starts × system-prompt volume). Use for skill frequency, skill token estimates, unused skills, context bloat, AGENTS.md / rules size, subagent cost, backfill from transcripts, or project skill tracking. Also use for skill 监控, skill 统计, skill 频率, Rules 膨胀, AGENTS.md 体积, 子 Agent / Task 成本.

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. oliver-kriska/claude-elixir-phoenix★ 573same name
    2. bd-dxg/skills★ 28same name
    3. guiyuan0619/skill-monitor★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

Files
SKILL.md

Skill Monitor

Track skill usage, always-on context bloat, and sub-agent startup cost in the project-local data/ directory. Capture is best-effort.

Quick setup

node .cursor/skills/skill-monitor/scripts/cli.mjs setup --project . --hooks
node .cursor/skills/skill-monitor/scripts/cli.mjs backfill
node .cursor/skills/skill-monitor/scripts/cli.mjs backfill-tasks
node .cursor/skills/skill-monitor/scripts/cli.mjs analyze --project . --write
node .cursor/skills/skill-monitor/scripts/cli.mjs bloat --project . --snapshot --write
node .cursor/skills/skill-monitor/scripts/cli.mjs analyze-tasks --project . --write

setup --hooks installs:

  • beforeReadFile → record SKILL.md loads
  • subagentStart + preToolUse (Task) → record sub-agent starts with Rules/AGENTS volume

Commands

CommandPurpose
setup [--hooks]Init data/; merge Cursor hooks
record --path <SKILL.md>Record one skill use
analyze [--write]Skill frequency + est. tokens
bloat [--snapshot] [--write]Rules / AGENTS.md bloat + budgets
record-task --type <name>Record one Task / sub-agent start
analyze-tasks [--write]Startup cost: starts × avg prompt volume
backfillSkills from Cursor transcripts
backfill-tasksTask/subagent starts from transcripts
reestimateRefresh skill estTokens
list-skills / summaryDiscovery / aggregates

Data layout

  • data/events.jsonl — skill loads (estTokens)
  • data/summary.json — skill aggregates
  • data/tasks.jsonl — sub-agent starts (systemPromptTokens)
  • data/context-snapshots.jsonl — optional bloat history
  • data/report.md / bloat-report.md / tasks-report.md

Agent workflow

  1. Skill stats → analyze --write
  2. Context inflation → bloat --snapshot --write
  3. Sub-agent cost → analyze-tasks --write (after hooks or backfill-tasks)
  4. Mention limits: estimates are not provider billing; hooks are strongest in Cursor.

Manual fallbacks

node .cursor/skills/skill-monitor/scripts/cli.mjs record --path "C:/path/to/skill/SKILL.md"
node .cursor/skills/skill-monitor/scripts/cli.mjs record-task --type explore --project .

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.