Logo de Skills Manager Cli

Skills Manager Cli

ComunidadePopular
jiweiyeah
skills-manager-cli

Drive the Skills Manager CLI (`skm`) to initialize the hub, adopt unmanaged skills, list/enable/disable skills per AI tool, and doctor/fix symlink sync. Use whenever the user or an agent needs to manage skills from a terminal, SSH session, CI job, or headless machine; when a skill is missing in Claude Code, Codex, Cursor, Gemini, OpenCode, or any other supported tool; when asked to run skm / Skills Manager CLI; or when setting up Skills Manager without the GUI. Do not use for `npx skills` / skills.sh search (different CLI), for writing SKILL.md content (skill-creator), or for marketplace browse/install (not in skm).

Visão geral

Publicado porjiweiyeah
RepositórioSkills-Manager
Nome da habilidadeskills-manager-cli
Estrelas
1K
Forks
63
Arquivos incluídos
2
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    Habilidades de IA são Markdown simples, não código específico de um provedor, por isso funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • 2 arquivos incluídos

    Scripts, modelos de documentos e referências que o modelo pode ler enquanto trabalha. Os arquivos são somente leitura e nunca são executados.

  • Código aberto

    Publicada por jiweiyeah no GitHub. Leia o conteúdo-fonte antes de instalar.

Instalação

Instale a habilidade de IA Skills Manager Cli no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL da pasta da habilidade exibida abaixo e confirme.
    https://github.com/jiweiyeah/Skills-Manager/tree/main/skills/skills-manager-cli
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Nova habilidade → Via URL GitHub, depois cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jiweiyeah/Skills-Manager.git /tmp/Skills-Manager
mkdir -p .claude/skills
cp -r /tmp/Skills-Manager/skills/skills-manager-cli .claude/skills/skills-manager-cli
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Skills Manager Cli em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Skills Manager Cli automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Skills Manager Cli não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Skills Manager CLI (skm)

New here? This skill drives skm, the command-line tool that ships with Skills Manager — a desktop app (macOS / Windows / Linux) that installs one copy of a skill into a central hub and symlinks it into every AI coding tool you use (Claude Code, Codex, Cursor, Gemini, and ~30 more), so you write a skill once and it shows up everywhere.

If you found this skill on ClawHub but don't have Skills Manager yet, that is the missing piece: skm is not a standalone binary you npm install. Get it by installing the app from the official website (then Settings → Command Line Tool, or run skm init), or grab a skm-<target>.tar.gz / .zip from the GitHub Releases page. Source and docs: https://github.com/jiweiyeah/skills-manager.

skm is the terminal front-end of Skills Manager. It reads and writes the same ~/.skills-manager/config.json and the same hub/tool symlinks as the desktop app, so GUI and CLI are interchangeable.

It does not create, edit, search, translate, tag, or marketplace-install skills. Those stay in the GUI (or you write files into the hub yourself, then skm enable).

Preconditions

  1. Resolve the binary. Prefer skm on PATH. If missing, say so and point at install: the Skills Manager app (Settings → Command Line Tool), or a release archive skm-<target>.tar.gz / .zip from GitHub Releases. Do not fall back to npx skills — that is a different, unrelated CLI.
  2. Confirm with skm --version. A stale binary from an older app release should be updated from Settings or a matching release.
  3. Every command except init requires an initialized config. If stderr says so, run skm init --json once — it is idempotent and will not clobber an existing config. skm init and Settings → Install CLI also copy this companion skill into the hub and enable it for every currently active tool, so you usually do not need to install it by hand.

Hub path is fixed at ~/.skills-manager/skills (%USERPROFILE%\.skills-manager\skills on Windows). save() always rewrites skills_dir to that default; there is no supported way to pick another hub from the CLI.

Agent conventions

These exist because skm is designed to be called by agents, not just humans.

  • Prefer --json on init, list, doctor, fix, and adopt (apply). Data is one JSON document on stdout. Errors go to stderr as {"error":"..."} when the command was in JSON mode, otherwise error: .... A command can print a result on stdout and still exit 1 (fix with failed repairs) — parse stdout, then trust the exit code.
  • enable / disable have no --json. Success is a one-line enabled '<id>' for '<tool>' (or disabled). Failure is error: ... on stderr, exit 1.
  • Never wait on a TTY prompt. adopt without --yes and without --json blocks on [y/N]. Pass --yes when applying. --json also skips the prompt (and therefore applies) — still pass --yes so the intent is obvious in the command line.
  • skm adopt --json --dry-run is not a machine-readable preview: if candidates exist it prints nothing. Preview with skm adopt --dry-run (human text), then apply with skm adopt --yes --json.
  • doctor --json exits 0 even when there are issues. Gate on .issues_count, not the exit code.
  • fix without --yes does not repair. JSON then looks like {"applied": false, "issues_found": N, ...}. Apply with skm fix --yes --json.
  • Write commands (init, adopt, enable, disable, fix --yes) take an advisory lock on config.json and fail fast if another skm is mid-write. Retry once. The desktop app does not take this lock.
  • Do not enable a skill for every detected tool unless the user asked. Pick the tool they named, or the host agent (see Which tool).

JSON shapes, exit codes, and the dry-run/apply matrix live in references/json.md. Read that before parsing output or writing a script.

Command map

IntentCommand
First-run / is it initialized?skm init --json
What skills exist, and where are they linked?skm list --json
Same, one tool onlyskm list --tool <id> --json
Turn a hub skill on for a toolskm enable <skill> --for <tool>
Turn it off (remove the link, keep the hub copy)skm disable <skill> --for <tool>
Which tools are installed, any broken links?skm doctor --json
Repair what doctor reportedskm fix --yes --json
Preview leftover real dirs in tool skill foldersskm adopt --dry-run
Move those dirs into the hub and relinkskm adopt --yes --json

<skill> and <tool> accept an exact id, an exact instance_id, or a unique prefix (claude → claude-code). Ambiguous prefixes error and list the matches — do not guess, rerun with a longer token. Exact tool id wins before prefix (trae is Trae, not Trae CN). Full ids and collision notes: references/tools.md.

Workflows

First-run on a machine with no GUI

bash
command -v skm
skm init --json
skm adopt --dry-run
skm adopt --yes --json
skm list --json
skm doctor --json

init on an already-initialized config returns {"already_initialized": true, ...} and does nothing else. If config.json exists but cannot be parsed, init refuses to overwrite it — move or fix the file, then retry.

Make an existing hub skill available to a tool

bash
skm list --json                          # find id / instance_id
skm enable <skill> --for <tool>
skm list --tool <tool> --json            # confirm enabled_for

Enabled state is derived from the link on disk, not stored as a separate flag. enable creates the symlink (Windows: symlink → junction → tracked copy). disable removes that link; the hub copy stays.

If the same skill id exists in both global and the active project, a bare id is ambiguous. Use the instance_id from list: global:<id> or project:<project_id>:<id>.

Add a brand-new skill (CLI cannot scaffold it)

  1. Write ~/.skills-manager/skills/<id>/SKILL.md with YAML name + description. A directory is a skill if it contains SKILL.md, skill.md, or meta.json.
  2. skm enable <id> --for <tool>
  3. skm list --tool <tool> --json to confirm.

Do not copy the folder into ~/.claude/skills (or any other tool dir) yourself — that bypasses the hub and adopt will later see it as an unmanaged real directory.

Adopt skills that already live in a tool directory

adopt looks at active tools (enabled + detected) for real directories that are not symlinks/junctions and not hidden. It moves each one into the hub, then puts a link back at the original path.

  • Duplicate hub names are skipped and left in place (contents are not merged — they may differ).
  • Preview first (--dry-run), then apply (--yes --json).
  • After apply, list should show the new ids as enabled for the source tool.

Diagnose "the skill is not showing up in Claude / Codex / …"

bash
skm doctor --json
skm list --tool <tool> --json

Read the results in this order:

  1. Binary missing or not on PATH → install, reopen the shell.
  2. config_initialized false → skm init --json.
  3. Tool detected: false → the tool's config dir is not on this machine. CLI does not re-detect existing tools on every call; a tool installed after init may still show not installed until the GUI redetects or the config is updated. Do not try to invent a custom tool from skm.
  4. Tool enabled: false → CLI cannot flip that flag. Use the GUI Tools page, or say so.
  5. Skill absent from list → it is not in the hub (and not in the active project). Write it into the hub or adopt.
  6. Skill present but not in enabled_for → skm enable <skill> --for <tool>.
  7. link_issues > 0 or issues_count > 0 → skm fix --yes --json. If failed_count > 0, report the failed[].message values; do not loop fix.
  8. A wrong-target or deleted link is treated as disabled, not as a doctor issue. Re-enable to recreate the link over the tampered path.

fix only repairs what should_report_sync_issue flags. It will not delete a real (non-link) directory sitting in a tool's skills folder — that is what adopt is for.

Which tool

If the user named a tool, resolve it via references/tools.md and pass --for <id>. If they did not:

Host--for
Claude Codeclaude-code
Codexcodex
Cursorcursor
Gemini CLIgemini
OpenCodeopencode
Unsureskm doctor --json, pick detected && enabled

Prefix shortcuts that are unique today: claude → claude-code. Do not use trae when the user said Trae CN (trae-cn), or qoder when they said QoderWork CN (qoderwork-cn).

Out of scope (do not fake these with skm)

NeedWhat to do instead
Search / install from skills.shnpx skills / find-skills, or the GUI Marketplace
Author SKILL.mdWrite the file; this skill only covers linking it
Tags, notes, favorites, translationGUI
Add/remove a custom tool, bind a projectGUI
Enable or disable a tool itselfGUI Tools page
Change the hub directoryNot supported; always ~/.skills-manager/skills
Marketplace publish / ClawHubGUI

Install locations (when skm is missing)

The desktop app copies a bundled binary:

  • macOS / Linux: /usr/local/bin/skm if writable, else the first of ~/bin, ~/.local/bin that is already on PATH, else ~/.local/bin/skm (then the folder may need to be added to PATH)
  • Windows: next to the app executable (skm.exe)

Standalone: GitHub Releases skm-<target>.tar.gz (.zip on Windows), extract, put on PATH.

Arquivos incluídos

O modelo lê esses arquivos sob demanda enquanto a habilidade está carregada. Eles são disponibilizados para leitura e nunca são executados.

Perguntas frequentes

O que a habilidade de IA Skills Manager Cli faz?

Drive the Skills Manager CLI (`skm`) to initialize the hub, adopt unmanaged skills, list/enable/disable skills per AI tool, and doctor/fix symlink sync. Use whenever the user or an agent needs to manage skills from a terminal, SSH session, CI job, or headless machine; when a skill is missing in Claude Code, Codex, Cursor, Gemini, OpenCode, or any other supported tool; when asked to run skm / Skills Manager CLI; or when setting up Skills Manager without the GUI. Do not use for `npx skills` / skills.sh search (different CLI), for writing SKILL.md content (skill-creator), or for marketplace br...

Por que usar Skills Manager Cli no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. Skills Manager Cli é escrito em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. O TypingMind usa suas próprias chaves de API, então o pagamento é feito diretamente aos provedores, em vez de uma assinatura por licença de usuário, e suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Skills Manager Cli no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/jiweiyeah/Skills-Manager/tree/main/skills/skills-manager-cli. O TypingMind lê o arquivo SKILL.md, reúne os arquivos da habilidade e a instala para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Skills Manager Cli?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Skills Manager Cli?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Skills Manager Cli com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Skills Manager Cli é gratuita?

Sim. A habilidade é publicada no GitHub por jiweiyeah sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, modelos de documento ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas para chamar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA fornece conhecimento e um processo ao modelo: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇