agentleFS
m2ai-mcp-serversm2ai-mcp-servers/claude-skills/skills/skill-maintenance/SKILL.md

skill-maintenance

Skill0 starsChanged 7 months agoMITView on GitHub

Audit Claude Code skills for content quality against Anthropic best practices. Use when Forge runs maintenance cycles, when the user asks to check skill quality, or when reviewing skills before publishing.

11 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before publishing or sharing skills

    line 13
  2. Distinctive:

    After bulk skill creation to verify standards compliance

    line 14
  3. Distinctive:

    Ask the user (or accept from Forge):

    line 26
  4. Very specific:

    If reviewing the scoring methodology, read references/scoring-rubric.md.

    line 52
  5. Very specific:

    If reviewing what each check means and why it matters, read references/audit-criteria.md.

    line 53
  6. Distinctive:

    Score >= 80: No action needed. Mention any minor improvements.

    line 64
  7. Very specific:

    If the user wants to understand the patch format for Phase 2b integration, read references/patch-format.md.

    line 68
  8. Distinctive:

    All other patches require HIL (human-in-the-loop) approval before application

    line 104

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill Maintenance — Content Quality Auditor

When to Use

Activate when:

  • The user asks to audit, review, or check skill quality
  • Forge triggers a maintenance cycle
  • Before publishing or sharing skills
  • After bulk skill creation to verify standards compliance

What This Does

Audits skills in ~/.claude/skills/ against Anthropic's documented best practices for the agent skills open standard. Produces a scored report with actionable findings and patch candidates for Phase 2b auto-remediation.

This skill focuses on content quality (structure, metadata, progressive disclosure). It does NOT measure invocation metrics — that is handled by scorecard.py in skill-forge.

Workflow

Step 1: Determine Scope

Ask the user (or accept from Forge):

  • Single skill: audit one skill by name or path
  • Full sweep: audit all skills in ~/.claude/skills/

Step 2: Run the Audit

For a single skill:

bash ~/.claude/skills/skill-maintenance/scripts/audit-skill.sh ~/.claude/skills/<skill-name>

For all skills:

bash ~/.claude/skills/skill-maintenance/scripts/run-audit.sh

IMPORTANT: Run scripts via Bash tool. Do NOT read the script files — they execute without loading contents into context, keeping token usage efficient.

Step 3: Interpret Results

The audit scripts output JSON to stdout. Parse the output to understand:

  • Per-skill checks: boolean pass/fail for each criterion
  • Raw metrics: line counts, file references, code blocks
  • Content quality score: 0-100 weighted score

If reviewing the scoring methodology, read references/scoring-rubric.md. If reviewing what each check means and why it matters, read references/audit-criteria.md.

Step 4: Present Findings

For each skill, report:

  1. Score (0-100) with category: excellent (80+), good (60-79), needs attention (40-59), critical (<40)
  2. Top findings — what passed, what failed, and why it matters
  3. Patch candidates — specific improvements ranked by priority (1=quick fix, 3=major rework)

Step 5: Recommend Actions

  • Score >= 80: No action needed. Mention any minor improvements.
  • Score 40-79: List specific fixes. Offer to apply auto-applicable patches (frontmatter, name fixes).
  • Score < 40: Flag as critical. Recommend a focused improvement session.

If the user wants to understand the patch format for Phase 2b integration, read references/patch-format.md.

Output Format

Single Skill (human-readable)

## Skill: <name>
Score: <N>/100 (<category>)

### Checks
- [pass/fail] Frontmatter present and valid
- [pass/fail] Name valid and matches directory
- ...

### Findings
1. <finding with rationale>
2. ...

### Patch Candidates
| Priority | Type | Description |
|----------|------|-------------|
| 1 | add_frontmatter | Missing frontmatter block |
| ... | ... | ... |

Full Sweep (JSON to stdout, summary to stderr)

The run-audit.sh script outputs structured JSON for programmatic consumption and a human-readable summary to stderr. Present both to the user.

Important Notes

  • Skills under 60 lines are "simple skills" — they get full marks for directory structure even without subdirs
  • The scripts_run_not_read check only applies to skills that have a scripts/ directory
  • This skill should score >= 80 against its own rubric (it practices what it preaches)
  • Patch candidates with auto_applicable: true are safe to apply without human review
  • All other patches require HIL (human-in-the-loop) approval before application

Reference Files

FileWhen to Read
references/scoring-rubric.mdWhen you need to understand score weights or thresholds
references/audit-criteria.mdWhen you need rationale for specific checks
references/patch-format.mdWhen generating or applying Phase 2b patches

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.