agentleFS
2ykwang2ykwang/agent-skills/CLAUDE.md

agent-skills

CLAUDE.md19 starsChanged 9 months agoMITView on GitHub

Skills for AI coding agents. Each skill lives under skills/. The plugins/ directory and marketplace.json are auto-generated. .claude-plugin/marketplace.json is also generated. scripts/validate.py checks: Runs automatically via pre-push hook. Edit version in skills/<name>/SKILL.md frontmatter. Run just generate to propagate to plugin.json and marketplace.json. just version-bump auto-detects changed skills via git diff and bumps their patch version. When modifying scripts/validate.py, update tests/test_scripts.py as well. New check logic → add a corresponding test case. Verify with just test. Conventional Commits format:

The file

We split this CLAUDE.md into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When modifying scripts/validate.py, update tests/test_scripts.py as well.

    line 80
  2. Distinctive:

    Keep to one line. Add body only when the "why" isn't obvious from the subject

    line 94

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “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
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Overview

Skills for AI coding agents. Each skill lives under skills/. The plugins/ directory and marketplace.json are auto-generated.

Commands

just generate      # Generate plugins/ and marketplace.json from skills/
just validate      # Validate skill structure
just test          # Run script tests (unittest, no dependencies)
just check         # Run all pre-commit hooks
just version-bump  # Bump patch version for changed skills (edits SKILL.md frontmatter)

Skill Structure (source)

skills/<name>/
├── SKILL.md           # Skill definition (YAML frontmatter + body)
└── references/        # Optional supporting docs (read at runtime by the skill)

Generated Output (do not edit manually)

plugins/<name>/
├── .claude-plugin/
│   └── plugin.json       # Generated from SKILL.md frontmatter
├── skills/               # Copied from skills/<name>/
│   ├── SKILL.md
│   └── references/
└── README.md             # Generated with install commands

.claude-plugin/marketplace.json is also generated.

Adding a New Skill

  1. /add-skill <skill-name> — scaffolds skills/<name>/, generates plugins, updates README
  2. Edit skills/<name>/SKILL.md — replace TODO content
  3. just generate && just validate

Validation Rules

scripts/validate.py checks:

  • Each skills/<name>/SKILL.md has frontmatter fields: name, description, version (semver), category
  • Skill folder names are kebab-case (^[a-z0-9]+(-[a-z0-9]+)*$)

Runs automatically via pre-push hook.

SKILL.md Format

---
name: skill-name
version: 0.0.1
category: development
description: One sentence — what it does and when to trigger it.
argument-hint: "<argument>"
---

## Instructions

Use $ARGUMENTS to reference user input.

Versioning

Edit version in skills/<name>/SKILL.md frontmatter. Run just generate to propagate to plugin.json and marketplace.json.

just version-bump auto-detects changed skills via git diff and bumps their patch version.

Testing

When modifying scripts/validate.py, update tests/test_scripts.py as well. New check logic → add a corresponding test case. Verify with just test.

Commit Rules

Conventional Commits format:

<type>(<scope>): <subject>
  • type: feat, fix, chore, docs, refactor, test
  • scope: skill name or module (e.g. html-visual, scripts). Omit if project-wide
  • subject: lowercase, imperative, no period. English only
  • Keep to one line. Add body only when the "why" isn't obvious from the subject
  • Generated output (plugins/, marketplace.json) changes are included in the same commit — no separate commit

Examples:

feat(html-visual): add name derivation rule
fix(html-visual): resolve onclick contradiction in boilerplate
chore: regenerate plugins

Conventions

  • Folder names: kebab-case
  • One SKILL.md per skill
  • Categories: development, design-frontend, productivity, integrations, media

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.