Skill

From diegopacheco/ai-playground · View interactive version

Skill is an AI agent skill from the GitHub repository diegopacheco/ai-playground. Audit a CLAUDE.md for cruft and render a light-theme report website. Reads the file line by line and flags vague rules with no checkable criterion, low-signal lines that only restate what the model already does, overlapping rules said more than once, and internal contradictions, then scores the file

How to use this skill

Skill file

bs-claudemd

Audit a CLAUDE.md file and build a self-contained report website that comments on every line.

What it flags

Each line gets a one-line comment and a colored verdict. The header shows a BS-o-meter (0–100, lower is better), a letter grade, and metric cards including estimated tokens loaded every turn and estimated wasted tokens.

Steps

  1. Pick the target. With no argument, audit the global file at ~/.claude/CLAUDE.md. If the user says "project" or names a path, use that file (a project CLAUDE.md, AGENTS.md, or any instruction file works). If the user gives two files, run diff mode.
  2. Run the analyzer that ships with this skill (Python standard library only, nothing to install):

```

python3 ~/.claude/skills/bs-claudemd/bs_claudemd.py analyze <claude.md> <out-dir> [title]

```

For diff mode:

```

python3 ~/.claude/skills/bs-claudemd/bs_claudemd.py diff <A.md> <B.md> <out-dir> [title]

```

Use bs-report inside the current project as <out-dir> unless the user asks for another location. Pass a short title (the project name, or "global").

  1. The script writes a self-contained index.html plus data.json and prints the headline: BS score, grade, and the counts. Serve the folder with python3 -m http.server from <out-dir> on a free port, or tell the user to open the file directly. Report the URL/path and the headline numbers.
  2. Tell the user how to read it: the Overview tab has the verdict summary and rule-health donut; Line-by-line annotates every line with a filter and search box; Overlaps groups repeated rules; Contradictions lists conflicting rules; in diff mode a Cross-file conflicts tab shows where the two files tell the model opposite things.

How verdicts are decided

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.