agentleFS
hiteknodeposit20241hiteknodeposit20241/skillman/AGENTS.md

skillman

AGENTS.md2 starsChanged 10 months agoMITView on GitHub

skillman is a CLI wrapper to manage project skills and lock them in skills.json. It provides a declarative way to install skills per project, similar to how package managers work with package.json. colors.ts — ANSI escape codes for terminal styling: gitignore.ts — .gitignore management: Sources can include inline skills using colon or comma-separated syntax, or skills.sh URLs:

  • Installs packages
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repositoryOne other file it gives its agents.

The file

We split this AGENTS.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:

    Use explicit .ts extensions in imports

    line 109
  2. Distinctive:

    When making changes to the project (new APIs, architectural changes, updated conventions):

    line 144

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.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
AGENTS.md

AGENTS.md

Project Overview

skillman is a CLI wrapper to manage project skills and lock them in skills.json. It provides a declarative way to install skills per project, similar to how package managers work with package.json.

Architecture

src/
├── cli.ts              # CLI entry point with parseArgs
├── config.ts           # skills.json config management
├── skills.ts           # Skills CLI execution
└── utils/
    ├── colors.ts       # ANSI color codes for terminal output
    └── gitignore.ts    # .gitignore file management
test/index.test.ts      # Tests using vitest

Config (src/config.ts)

  • findSkillsConfig(cwd?) — Finds skills.json by traversing up from cwd
  • readSkillsConfig(options?) — Reads and validates skills.json (options: { cwd?, createIfNotExists? })
  • updateSkillsConfig(updater, options?) — Generic update with callback (options: { cwd?, createIfNotExists? }, defaults createIfNotExists: true)
  • addSkill(source, skills?, options?) — Adds a skill source (options: { cwd?, createIfNotExists? }, defaults createIfNotExists: true)
  • Auto-injects $schema field during validation if missing

Skills CLI (src/skills.ts)

  • findSkillsBinary(options?) — Finds local skills binary in node_modules/.bin (options: { cache? }, cached by default)
  • installSkills(options?) — Spawns skills add for each source with progress logging; options: { cwd?, agents?, global?, yes? }
  • installSkillSource(entry, options) — Installs a single skill source; options: { cwd?, agents?, global?, yes?, prefix? }

CLI Entry (src/cli.ts)

  • main(argv?) — CLI entry point using Node.js parseArgs
  • parseSource(input) — Parses source input into { source, skills }; supports:
    • Colon/comma format: owner/repo:skill1,skill2 or owner/repo:skill1:skill2
    • skills.sh URLs: https://skills.sh/owner/repo/skill-name

Utils (src/utils/)

colors.ts — ANSI escape codes for terminal styling:

  • c.reset, c.bold, c.dim — formatting
  • c.red, c.green, c.yellow, c.blue, c.magenta, c.cyan — colors
  • Auto-disabled when stdout is not a TTY

gitignore.ts — .gitignore management:

  • findGitignore(cwd?) — Finds .gitignore by traversing up from cwd (async)
  • addGitignoreEntry(entries, options?) — Adds entry/entries if not present; accepts string | string[] (options: { cwd?, createIfNotExists? })

skills.json Schema

interface SkillsConfig {
  $schema?: string; // auto-injected if missing
  skills: SkillSource[];
}

interface SkillSource {
  source: string; // e.g., "vercel-labs/skills"
  skills?: string[]; // specific skills to install (empty/omitted = all)
}

CLI Commands

skillman                                    # Install skills (default)
skillman install, i [--global] [--agent <name>...]  # Install skills from skills.json
skillman add <source>... [--agent <name>...]  # Add skill source(s) to skills.json

Source Format

Sources can include inline skills using colon or comma-separated syntax, or skills.sh URLs:

skillman add vercel-labs/skills              # Add all skills from source
skillman add owner/repo:pdf,commit           # Add specific skills inline
skillman add org/repo-a:skill1 org/repo-b:skill2  # Multiple sources
skillman add https://skills.sh/owner/repo/pdf     # skills.sh URL (https)
skillman add skills.sh/owner/repo/pdf             # skills.sh URL (no protocol)

Options

  • --agent <name> — Target agent (default: claude-code, repeatable)
  • -g, --global — Install skills globally (for install command)
  • -h, --help — Show help
  • -v, --version — Show version

Development

pnpm install    # Install dependencies
pnpm dev        # Run tests in watch mode
pnpm build      # Build with obuild
pnpm test       # Full test suite with coverage
pnpm lint       # Lint and format check
pnpm typecheck  # TypeScript type checking

Code Style

  • ESM only ("type": "module")
  • Use explicit .ts extensions in imports
  • Uses obuild for building, oxlint/oxfmt for linting/formatting
  • TypeScript strict mode enabled

Integration

Skillman delegates actual skill installation to Vercel's skills CLI. It first checks for a local skills binary in node_modules/.bin, falling back to npx skills:

# Uses local binary if available, otherwise:
npx skills add <source> --skill <name> --agent <agent-name> --yes

Automatic .gitignore

During install, skillman automatically adds .agents to .gitignore (creating the file if needed).

Install Output

Installation shows colored progress with timing:

🤹 Installing 2 skills...

◐ [1/2] Installing vercel-labs/skills (pdf, commit)
✔ Installed vercel-labs/skills (2s)

◐ [2/2] Installing anthropics/courses
✔ Installed anthropics/courses (1s)

🎉 Done! 2 skills installed in 3s.

Maintaining Documentation

When making changes to the project (new APIs, architectural changes, updated conventions):

  • AGENTS.md — Update with technical details, architecture, and best practices for AI agents
  • README.md — Update with user-facing documentation (usage, installation, examples) for end users

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.