# skm

Adopt this skill: https://proskills.md/skills/other/henriquefps-skills-manager-skills-skm

Page: https://proskills.md/skills/other/henriquefps-skills-manager-skills-skm
This document is the public skill bundle for that page. It contains SKILL.md and every helper file the catalog carries. No login is required.

## File: skills/skm/SKILL.md
size: 5730
sha: 8718a04e65153ed3749d9c65cd88b239b11b24dd
upstream: https://github.com/henriquefps/skills-manager/blob/main/skills/skm/SKILL.md

````text
---
name: skm
description: Use when the user names or describes one of their projects ("that sync plugin I built"), asks where something lives on their machine, or wants to inspect or change which agent skills are active, or asks about a project's CLAUDE.md / AGENTS.md files. Resolves projects to paths with the skm CLI.
---

# skm: project index and skills manager

`skm` indexes the user's local projects (path, git remote, stack, description) and manages their agent skills.
Use it instead of asking the user to paste a path.

## Prerequisite

Run `skm --help` first. If it is not found, say so: `skm` must be a real executable on PATH (`npm link` in the
skills-manager repo). Shell aliases are invisible to agents, so an alias does not count. Do not guess paths instead.

## Find a project

1. `skm projects find <words> --json --brief` (every word must match; best match first). Use distinctive words from
   what the user said: a name, a technology, a purpose ("sync plugin", "react dashboard").
2. One clear match: use its `path`. Several plausible matches: show the `name` and `description` of each and ask which one.
   No match: retry with fewer or different words, then ask.
3. `skm projects show <name|path>` for the full sheet (remote, branch, last commit, stack, tags, notes, skills) before
   working in the project. A name shared by two projects exits with the paths: pass the path instead.

Never run a bare `skm projects` or dump the whole list unless the user asks for it. Archived projects are hidden
unless you pass `--all`.

## Record what a project is

When the user explains a project, save it so the next search finds it:

```
skm projects set <name|path> --desc "Background sync plugin for OutSystems mobile apps" --tags outsystems,plugin
skm projects set <name|path> --status paused --note "waiting on the API team"
skm projects set <name|path> --add-tag work --rm-tag old
skm projects set <name|path> --clear notes
```

Description max 300 chars, notes max 2000, tags lowercase `a-z0-9-` (max 8), status `active|paused|archived`.
Only write what the user told you or what you verified. Ask before overwriting an existing description.

Hide noise from the index with `skm projects ignore <name|path|glob>` (undo: `skm projects unignore <entry>`, list: `skm projects ignored`).
An ignored folder is not scanned at all, unlike archived. If a project is missing, check `skm projects ignored`.

## Skills commands

| Command | Use |
| --- | --- |
| `skm list [--json]` | global and current-project skills with status, tokens, tags |
| `skm doctor` | layout problems with the suggested fix |
| `skm check [--json] [--projects]` | health check: broken links, missing sources (errors), forgotten inactive folders, diverged same-name copies (hints); exit 1 on errors |
| `skm cost` | context cost (estimated tokens) of the active skills |
| `skm lint [name]` | check SKILL.md content; exit 1 on errors |
| `skm outdated` | check tracked skills against their GitHub source |
| `skm update <name>` | update from the source (old version goes to the system Trash) |
| `skm pull <name...>` | copy a global skill, active or inactive, into the current project |
| `skm refresh <name...>` | replace a project's copy of a skill with the global one (inactive global too); old copy to the Trash |
| `skm promote <name>` | copy a project skill to the global store |
| `skm activate\|deactivate <name>` | switch a skill on or off |
| `skm profile list\|show <name>` | named skill kits (profiles) and where each skill comes from |
| `skm profile apply <name> --dry-run` | preview copying a profile's skills into the current project |
| `skm profile apply <name>` | copy them: skips skills already there, reports names missing from global |
| `skm profile save <name> [skill...]` | save a list of skills, or with none the current project's active skills |

When the user starts a new project or asks to set it up "like" another one, run `skm profile list` and suggest a
matching profile; apply it from inside the project, with `--dry-run` first. `--overwrite` replaces existing project
skills (old copies go to the system Trash): only with the user's agreement.

When a skill does not load or the user asks what is wrong with their skills, run `skm check --json`. Each finding has
`type`, `severity` (`error` or `hint`), `message`, `paths` and `fixes` (`{ label, request: { action, scope, name, ... } }`);
the text output prints the matching `skm` command for each fix. Show the findings, propose the fix, run it with
`--dry-run` first and only then for real, with the user's agreement (deleted folders go to the system Trash). Hints are
advisory: an old inactive skill may be kept on purpose.

## Instruction files (CLAUDE.md / AGENTS.md)

| Command | Use |
| --- | --- |
| `skm instructions [name\|path] [--json]` | which of `CLAUDE.md`, `AGENTS.md`, `CLAUDE.local.md`, `.claude/CLAUDE.md` a project has, plus `~/.claude/CLAUDE.md`: links, plain copies, files that differ |
| `skm instructions diff <a> <b> [--project <name\|path>]` | line diff of two of them (`global` = `~/.claude/CLAUDE.md`) |

Use it before editing a project's instructions, or when the user asks why the agent behaves differently in Claude and
other agents: two files that differ are the usual cause. A symlink between them is fine. skm does not edit these
files: change them yourself only when the user asks, and prefer a symlink over a second copy.

Add `--json` for structured output. Commands that delete or replace ask for confirmation; do not pass `--yes` unless
the user agreed.

## Privacy

Project paths, remotes and notes are private to this machine. Do not paste them into issues, commits, PRs or any
external service unless the user asks.
````

## File: README.md
upstream: https://github.com/henriquefps/skills-manager/blob/main/README.md

````text
<img src="docs/img/icon.svg" alt="" width="96" height="96">

# skm: skills manager

Manage your agent skills (folders with a `SKILL.md`) in one place, from the terminal or
a local web UI. `skm` sees your **global** skills (in your home folder) and your **local**
skills (in the project you are in) at the same time.

![skm web UI](docs/img/screenshot.png)

- No dependencies, no build step. Node.js 20 or newer is all you need.
- Runs on `127.0.0.1` only; nothing leaves your machine.
- Never really deletes: delete moves the skill to the system Trash (macOS `~/.Trash`, Linux XDG trash; Windows: skm's own `%LOCALAPPDATA%\skm\Trash`, not the Recycle Bin).

## Install

```sh
git clone https://github.com/henriquefps/skills-manager.git
cd skills-manager
node -v   # must be >= 20
```

Pick one way to get the `skm` command in your terminal:

**Alias in your shell config** (installs nothing globally). From inside the cloned folder:

```sh
echo "alias skm='node \"$PWD/bin/skm.mjs\"'" >> ~/.zshrc   # or ~/.bashrc
source ~/.zshrc
```

**Or `npm link`** (puts a `skm` command on your PATH):

```sh
npm link
```

Check it with `skm --help`.

## How skills are organized

`skm` assumes this convention, and the `normalize` command brings your skills to it.

| What | Where |
| --- | --- |
| Global central store | `~/.agents/skills/<name>/` (real folder) |
| Claude view (global) | `~/.claude/skills/<name>` (symlink to the central folder) |
| Inactive global skills | `~/.agents/skills-inactive/<name>/` |
| Deleted skills | The system Trash: `~/.Trash` (macOS) `~/.local/share/Trash` (Linux) or `%LOCALAPPDATA%\skm\Trash` (Windows, not the Recycle Bin), outside the repo |
| Local skills | `<project>/.claude/skills` and/or `<project>/.agents/skills` |
| Inactive local skills | `skills-inactive` next to where the skill was |

The project root is the nearest ancestor of the current directory that has `.git`,
`.agents` or `.claude`.

## Quick start

```sh
cd my-project
skm            # opens the web UI (port 4747) for global + local
skm list       # table in the terminal
skm doctor     # lists problems and the command that fixes each one
```

## The web UI

Running `skm` with no arguments starts the server and opens your browser. There you can:

- switch between **Global** and **Local**, search, and filter by status;
- **activate/deactivate** a skill with its toggle;
- **Promote** a local skill to global, or **Copy to local** a global one;
- **Normalize** a skill with a problem (for `diverged`, pick which side to keep);
- **Delete** (moves it to the system Trash), with a confirmation that shows the exact destination;
- open **Details** to see the `SKILL.md` and the file tree;
- use **Fix all** in the problems banner, with a preview of what will change;
- press **Check for updates** to see which tracked skills are outdated, and **Update** them one by one, with a diff of what will change;
- see the **context cost** of every skill and the total for your active ones, and sort by it;
- see **lint** findings per skill and filter by them;
- open the **Projects** tab to browse your projects (what they are, their stack, tags and status) and their skills;
- switch the **theme** (System, Light or Dark) with the toggle in the top right corner; your choice is remembered in the browser;
- mark skills as **favorites**, add **tags**, filter by them, and copy several skills into the project at once;
- keep **profiles** (named skill kits) in the **Profiles** tab and **Apply** one to a project in one step;
- open **Instructions** on a project card to see its `CLAUDE.md` / `AGENTS.md` files, which are links or plain copies, and a diff of any two (read only);
- open the **Health** tab for broken links, missing sources, forgotten inactive folders and diverged copies, each with a fix button.

![skm in dark mode](docs/img/screenshot-dark.png)

Options: `--port <n>` picks the port (if it is taken, the next free one is used) and
`--no-open` skips opening the browser.

## Commands

```
skm                       open the UI for the current directory
skm list [--json]         global and local skills with status
skm doctor                problems found and the suggested fix
skm normalize [name|--all] [--keep agents|claude] [--dry-run]
skm activate <name>       [--local|--global]
skm deactivate <name>     [--local|--global]
skm promote <name>        local -> global (copy)   [--overwrite]
skm pull <name>           global -> local (copy)   [--overwrite] [--target agents|claude]
skm refresh <name...>     replace local copies with the global one   [--dry-run] [--yes]
skm delete <name>         [--local|--global]   # moves to the system Trash; restore it from there by hand
skm outdated [--json]     check the GitHub source of each tracked global skill
skm update <name>         [--force] [--dry-run] [--yes]
skm update --all          [--force] [--dry-run] [--yes]   # only the ones with an update available
skm diff <name>           [--json]   # installed vs upstream, before updating
skm diff <name> --local   [--json]   # local vs global, before refreshing
skm cost                  [--json] [--all]   # estimated context tokens of active skills
skm lint [name]           [--json] [--all]   # check SKILL.md content; exit 1 on errors
skm fav <name...>         |   skm unfav <name...>   # favorites
skm tag <name> <tag...>   |   skm untag <name> <tag...>   |   skm tags
skm list --fav            |   skm list --tag <tag>   # filters (FAV and TAGS columns)
skm pull <name...>        # copy one or more global skills (inactive ones too) into this project
skm projects              [--json] [--brief] [--all]   # scan the configured project folders
skm projects find <words...>   [--json] [--brief]   # search projects by name, description, tags, stack
skm projects show <name|path>  [--json]   # full sheet of one project
skm projects ignore <name|path|glob...>   |   skm projects unignore <entry...>   |   skm projects ignored   # hide folders from the scan
skm projects set <name|path>   [--desc "..."] [--tags a,b] [--add-tag t] [--rm-tag t] [--status active|paused|archived] [--note "..."] [--clear desc|tags|notes|status]
skm projects add <path>   |   skm projects rm <path>   |   skm projects depth <n>
skm config                # show the config file path and content
skm profile list|show|save|apply|rm   # named skill kits (skm profile --help)
skm check                 [--json] [--global|--local|--projects]   # health check with fixes; exit 1 on errors
skm instructions [name|path]   [--json]   # CLAUDE.md / AGENTS.md files of a project and the global one (read only)
skm instructions diff <a> <b>  [--project <name|path>] [--json]   # diff two of them (global = ~/.claude/CLAUDE.md)
```

General options: `--yes` (skip confirmation), `--dry-run` (only show what would happen),
`--json`, `--port <n>`, `--no-open`.

If the same name exists in both global and local, pass `--local` or `--global`.

## Checking and updating skills

![skm: skills with updates available](docs/img/screenshot-updates.png)

Skills installed with `npx skills` are recorded in `~/.agents/.skill-lock.json` (repo, path in the
repo and the git tree hash of the folder). skm reads it, never needs it, and shows the repo in the
`ORIGIN` column of `skm list`. A skill whose folder no longer matches the recorded hash is marked
`[modified]`.

`skm outdated` asks GitHub (one call pair per repo; it uses `GITHUB_TOKEN`, `GH_TOKEN` or `gh auth token`
when available, otherwise it is anonymous) and reports `up-to-date`, `update-available`,
`removed-upstream` or `unreachable`. It runs only when you ask.

`skm update <name>` clones the repo (with your git credentials), moves the old folder to the system
Trash, copies the new one in place and updates the hash and `updatedAt` in the lock file; all other
lock fields and its indentation are kept. A modified skill is refused unless you pass `--force`; an
inactive skill is updated where it lives. Use `--dry-run` to see the plan first.

Before you conf
````
