agentleFS
ajipalarajipalar/skillkit/skills/skill-manager/SKILL.md

skill-manager

Skill0 starsChanged 6 months agoMITView on GitHub

Manage project-level skills by adding or removing them from the project's .claude/skills/ or .agents/skills/ directory. Use when a user asks to "add a skill," "install a skill," "remove a skill," "uninstall a skill," "list available skills," "manage skills," "what skills can I add," or "set up skills for this project." Also triggers when the user names specific skills to add (e.g., "add skill-creator to this project"), asks to remove a skill (e.g., "remove conversation-summarizer"), or clarifies project scope in a way that implies certain skills would be useful (e.g., "this is a biotech project" or "I need research skills"). Operates only at project scope — never modifies global ~/.claude/skills/ or ~/.agents/skills/ directories. Discovers skill sources by searching for nearby directories that contain a skills/ subfolder with SKILL.md files (e.g., skillkit, skillsmith). Supports .ai-manifest.yaml for declarative skill management: --init snapshots installed skills into a manifest, --sync installs from a manifest, and add/remove automatically keep the manifest in sync when one exists.

  • Installs packages

37 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use github-to-skills, Skill Evolution Manager and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Arthur-devroleSkill

    github-to-skills

    Automated factory for converting GitHub repositories into specialized AI skills. Use this skill when the user provides a GitHub URL and wants to "package", "wrap", or "create a skill" from it. It automatically fetches repository details, latest commit hashes, and generates a standardized skill structure with enhanced metadata suitable for lifecycle management.

    Also in 4 projects that use this

  • Arthur-devroleSkill

    Skill Evolution Manager

    专门用于在对话结束时,根据用户反馈和对话内容总结优化并迭代现有 Skills 的核心工具。它通过吸取对话中的“精华”(如成功的解决方案、失败的教训、特定的代码规范)来持续演进 Skills 库。

    Also in 3 projects that use this

  • KKodiacSkill

    obsidian-bases

    Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 9 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 23 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

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

    NEVER modify global directories (~/.claude/skills/ or ~/.agents/skills/).

    line 37
  2. Distinctive:

    If the user names specific skills (e.g., "add skill-creator"), proceed directly without listing all available options.

    line 65
  3. Distinctive:

    If no sources are found, inform the user.

    line 104
  4. Distinctive:

    If the user already specified which skills to add, skip the listing and proceed to Step 4.

    line 118
  5. Distinctive:

    When the user clarifies project scope without naming skills, review available skills and recommend ones relevant to their domain.

    line 121
  6. Distinctive:

    Add all skills from a source:

    line 133
  7. Distinctive:

    Default: targets both tools if their config directories exist, otherwise defaults to Claude Code.

    line 150
  8. Very specific:

    Manifest behavior: If .ai-manifest.yaml exists in the project root, added skills are automatically appended to it.

    line 153
  9. Distinctive:

    Remove all project skills:

    line 167
  10. Very specific:

    Manifest behavior: If .ai-manifest.yaml exists, removed skills are automatically deleted from it.

    line 179
  11. Distinctive:

    Before running: Always confirm removal with the user.

    line 183
  12. Very specific:

    Create a .ai-manifest.yaml from the skills currently installed in the project:

    line 188
  13. Very specific:

    Look up each skill in the registry file (if provided or $AI_CONFIG_DIR/registry.yaml exists)

    line 213
  14. Distinctive:

    After the script runs, report:

    line 227

“Common” is measured: kept by at least 6 in 10 of the 23 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 Manager

Manage project-level skills: discover available skill sources, add skills to the current project, remove installed skills, and optionally track dependencies in .ai-manifest.yaml.

Scope

This skill operates ONLY at the project level:

  • .claude/skills/ for Claude Code
  • .agents/skills/ for Codex CLI

NEVER modify global directories (~/.claude/skills/ or ~/.agents/skills/). If the user asks to manage global skills, explain this scope limitation and suggest using the repository's install.sh script directly.

Workflow

  1. Determine the user's intent (add, remove, list, init, or sync)
  2. Discover skill sources (for add/list)
  3. Present available or installed skills
  4. Execute the action with scripts
  5. Confirm the result

Step 1: Determine Intent

Classify the user's request:

  • Add skills — proceed to Step 2.
  • Remove skills — skip to Step 4 (Remove).
  • List available skills — proceed to Step 2, present results, then ask what the user wants to do.
  • Init manifest — skip to Step 4 (Init).
  • Sync from manifest — skip to Step 4 (Sync).
  • Project scope clarification — the user describes their project or domain. Proceed to Step 2, then recommend relevant skills.
  • Ambiguous — ask the user whether they want to add, remove, or list skills.

If the user names specific skills (e.g., "add skill-creator"), proceed directly without listing all available options.

Step 2: Discover Skill Sources

Find directories that contain a skills/ subfolder with SKILL.md files. Use the discovery script:

scripts/add_skills.sh --discover

To search a specific path instead of the default (parent of cwd):

scripts/add_skills.sh --discover --search-path /path/to/search

What qualifies as a skill source: A directory containing a skills/ subfolder, where that subfolder has at least one subdirectory with a SKILL.md file.

Where the script searches by default:

  1. Sibling directories of the current project (parent directory)
  2. The current project itself

Example layout:

~/Projects/
├── skillkit/skills/          ← source
│   ├── skill-creator/SKILL.md
│   └── conversation-summarizer/SKILL.md
├── skillsmith/skills/        ← source
│   └── code-reviewer/SKILL.md
└── my-project/               ← current project
    └── .claude/skills/       ← target

If no sources are found, inform the user. Suggest providing a path to a skill repository or cloning one.

Step 3: Present Available Skills

List skills in a discovered source:

scripts/add_skills.sh --list --source /path/to/source-repo

This prints each skill's name and description. Present results grouped by source.

If the user already specified which skills to add, skip the listing and proceed to Step 4.

When the user clarifies project scope without naming skills, review available skills and recommend ones relevant to their domain. Ask which they want to add.

Step 4: Execute Action

Adding Skills

scripts/add_skills.sh --source <path> --skills name1,name2 [--claude] [--codex]

Add all skills from a source:

scripts/add_skills.sh --source <path> --all [--claude] [--codex]

Flags:

FlagDescription
--source <path>Path to the source repo (directory containing skills/)
--skills <names>Comma-separated skill names
--allAdd all skills from the source
--claudeTarget .claude/skills/ only
--codexTarget .agents/skills/ only
--forceOverwrite if skill already exists

Default: targets both tools if their config directories exist, otherwise defaults to Claude Code.

Manifest behavior: If .ai-manifest.yaml exists in the project root, added skills are automatically appended to it. If no manifest exists, the add proceeds normally without creating one.

Before running: Confirm the action with the user if they haven't already specified exact skills. State which skills will be added and where.

Removing Skills

scripts/remove_skills.sh --skills name1,name2 [--claude] [--codex]

Remove all project skills:

scripts/remove_skills.sh --all [--claude] [--codex]

List installed project skills:

scripts/remove_skills.sh --list [--claude] [--codex]

Manifest behavior: If .ai-manifest.yaml exists, removed skills are automatically deleted from it. If no manifest exists, the remove proceeds normally.

Before running: Always confirm removal with the user. List which skills will be removed.

Init Manifest

Create a .ai-manifest.yaml from the skills currently installed in the project:

scripts/add_skills.sh --init

This snapshots the current state. Use --force to overwrite an existing manifest.

When to suggest --init:

  • User asks about tracking or documenting project dependencies
  • User wants to replicate their setup in another project
  • User mentions .ai-manifest.yaml or "manifest" for the first time in a project that doesn't have one

Sync from Manifest

Install all skills listed in .ai-manifest.yaml:

scripts/add_skills.sh --sync [--registry /path/to/registry.yaml]

Resolution order:

  1. Look up each skill in the registry file (if provided or $AI_CONFIG_DIR/registry.yaml exists)
  2. Fall back to discovering skills in sibling directories

Errors if no .ai-manifest.yaml exists. Suggest --init first.

When to suggest --sync:

  • User cloned a project that has .ai-manifest.yaml but no skills installed yet
  • User asks to "set up" or "install dependencies" for a project
  • User mentions their skills are missing or out of date

Step 5: Confirm Result

After the script runs, report:

  • Which skills were added or removed
  • Which target directories were affected
  • Whether the manifest was updated (if applicable)
  • Any warnings (skill already existed, skill not found, etc.)

Edge Cases

  • No skill sources found — inform the user. Suggest providing a path or cloning a skill repository.
  • Skill already installed — the script warns and skips unless --force is used. Ask the user if they want to overwrite.
  • Skill not found for removal — the script reports which skills were not found and removes the rest.
  • Project config directory missing — the add script creates .claude/skills/ or .agents/skills/ automatically.
  • User asks for global install — explain that this skill manages project-level skills only. Point to the repository's install.sh for global installs.
  • No .ai-manifest.yaml and user runs --sync — error with a helpful message suggesting --init to create one.
  • No .ai-manifest.yaml and user adds/removes skills — works normally, manifest is not created. Skill manager only persists to the manifest if one already exists.
  • yq not installed — manifest operations warn and skip gracefully. The core add/remove still works. Suggest brew install yq for manifest support.

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.