Skill Selector 标志

Skill Selector

社区
mizchi
skill-selector

通过 APM 为项目挑选技能的元技能。仅当用户明确要求设置 apm.yml、选择项目所需的技能或评估目录匹配项时调用;不要在常规的 project-init 或 apm-management 任务中自动调用。分两阶段进行:先从精选目录中挑选;只有目录中没有合适选项时,才扩大搜索和评估范围。避免冲动安装从未使用的技能,也避免在已有可靠答案时还手动搜索 GitHub。

概览

发布者mizchi
代码仓库skills
技能名称skill-selector
星标数
333
复刻数
4
附带文件
5
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 5 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 mizchi 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Skill Selector AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/mizchi/skills/tree/main/skill-selector
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mizchi/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skill-selector .claude/skills/skill-selector
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Skill Selector,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Skill Selector。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Skill Selector 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Skill Selector

Adding a skill is cheap on disk and not free in context. Pick deliberately.

This skill separates two concerns:

  1. Selection from a curated catalog — fast, opinionated, mostly enough.
  2. Search-and-evaluate — broader, slower, only when phase 1 doesn't fit.

Run them as distinct passes. The catalog has been pre-vetted. Outside-catalog skills haven't, and need explicit evaluation before adoption.

When to use

  • Starting a new project / new repo and you want it stocked with the right skills
  • Mid-development, when a recurring task type is uncovered (suddenly need Playwright, suddenly need release automation)
  • A slash command or another skill hints at a downstream skill not yet installed

When NOT to use:

  • One-off task that won't recur — solve it inline; don't install a skill you'll never trigger again
  • The project already lists the relevant skill in apm.yml — re-check before searching

Phase 1 — Curated catalog

The catalog lives in references/catalog.md. It is grouped by project signal (language / tool / process), with apm install strings inline.

Workflow:

  1. Read references/catalog.md.
  2. Identify project signals from three sources:
    • Repo files: package.json (Node), moon.mod.json (MoonBit), gleam.toml (Gleam), flake.nix (Nix), .github/workflows/ (CI), Playwright config, dotenvx keystore.
    • Stated user intent: in-message cues like "we plan to deploy to X", "we publish a small npm utility eventually".
    • CLAUDE.md mandates: persistent rules in user-level ~/.claude/CLAUDE.md or project-level CLAUDE.md (e.g., "task runner: justfile", "lint: ast-grep") count as signals even when the scenario text is silent. When mandate and stated intent disagree, surface the conflict to the user before installing. In the proposal, label mandate-driven rows explicitly (e.g., # from ~/.claude/CLAUDE.md: task runner = justfile) so a reviewer doesn't mistake them for padding.
  3. Confirm with the user before installing — propose, let them subtract. Default to fewer skills, not more. Each skill consumes context every conversation.
    • Non-interactive contexts (subagent dispatch, scripted automation, batch runs): emit the proposal as the deliverable and stop. The caller subtracts. Do not stall waiting for a confirmation that will not come.
    • Active-in-language heuristic: if the user is actively writing code in a language with a <lang>-practice skill in the catalog (e.g. moonbit-practice, gleam-practice), include it. If they only consume a single binding or dep written in that language, hold off.
    • Platform-name caveat: when a catalog row's description names a specific CI provider / runtime / cloud:
      • Project platform matches: adopt as-is. Do not re-read the underlying SKILL.md; the catalog row already answered the question.
      • Project platform differs: read the underlying SKILL.md before deciding. The core capability may still apply — install for that core, note "integration glue N/A." Skipping for platform mismatch alone is wrong.
      • If you cannot read the underlying SKILL.md (no local install, no upstream clone, no network): do NOT silently skip the check. Surface the uncertainty in the proposal explicitly — e.g., note "adopting <skill> based on its catalog description; the SKILL.md was not consulted, so the core-vs-integration split is unverified." The user can then decide whether to verify before committing the install. Silently dropping the verification leaves a bug (the wrong skill adopted, or a usable skill rejected) that no later step recovers.
    • Out-of-band rows: rows tagged (out-of-band) in the catalog cannot be installed via public APM (chezmoi-local, gated, etc.). Mention them in prose if the project would benefit, but do NOT put them in apm.yml.
  4. Install via APM. Read apm-usage first to confirm the exact apm.yml syntax — the manifest format is non-trivial and field names should not be inferred from this skill alone.
    • Project scope: edit apm.yml, run apm install. Commit apm.lock.yaml.
    • Global scope: apm install -g <repo>/<path>, verify in ~/.apm/apm.yml.
    • targets: declaration is required. APM 0.12+ does not fall back to a default target when no marker directory (.claude/ / .github/ / etc.) exists at the repo root — apm install errors out asking for an explicit choice. Write targets: [claude] (or whatever the host harness is) in apm.yml unconditionally; do not rely on directory auto-detection.
    • targets: does not strictly gate deploy directories. Even with targets: [claude], APM 0.12+ may also write to .agents/skills/ alongside .claude/skills/. Inspect the apm install output (Skill integrated -> ...) and treat every listed path as a deploy target for the gitignore decision below.
    • Pinning: catalog entries do not carry tags. Resolve a concrete tag or SHA via apm view <repo> (or check the upstream repo's release page) before committing apm.yml. Floating refs are listed under Common mistakes.
  5. Decide the gitignore policy before the first commit. apm install auto-adds apm_modules/ to .gitignore but does NOT add the deploy targets. Pick one and stick to it:
    • Commit deploy targets (.claude/skills/, .agents/skills/, …): repo is self-contained, teammates / CI can clone without running apm install. Cost: file count balloons (7 skills ≈ 700 files in a recent utels install). Choose when teammates may not have APM, or when you want skill content reviewable in PRs.
    • Gitignore deploy targets: leaner repo; teammates run apm install --frozen-lockfile after clone. Add the exact paths emitted by apm install (e.g., .claude/skills/, .agents/skills/). Caveat: if the project also keeps local skills under the same directory (.claude/skills/<local-skill>/), gitignore only the APM-managed subpaths, not the whole directory.
    • Always commit apm.yml and apm.lock.yaml regardless. Without the lockfile the install is not reproducible — the deploy-target gitignore choice only changes whether the generated artifacts live in git.
    • Propose the choice to the user when the install lands the first APM skills in the repo. Don't silently pick — file-count bloat vs. clone-time install are both legitimate but the trade-off is repo-specific.
  6. If a need is unmet, escalate to Phase 2. Do not skip Phase 1 — even if a search query is already forming in your head, scanning the catalog is cheaper.

Phase 2 — Search and evaluate (delegated to skill-finder)

Phase 2 is owned by the skill-finder skill. Trigger it only when all of the following are true:

  • Phase 1 has no candidate (catalog scanned, no row matched within ~30 seconds).
  • The need is recurring, not a one-off setup task. One-off scaffolding (Vite/React init, single-shot config conversion, ad-hoc data migration) belongs inline.
  • The need is stated as an active pain or near-term task, not just an ambient signal. A Rust service that exists in the repo but isn't currently causing skill-shaped questions does not by itself justify Phase 2 — wait until the recurring need surfaces.

If any of the three is false, do nothing. Re-read the "When NOT to use" section above before escalating.

To run Phase 2: tell the user "Phase 1 catalog has no fit; want me to invoke skill-finder for a cross-source search?" and only proceed on explicit go-ahead. skill-finder performs the cross-source survey (Anthropic official → claude-skill-registry → VoltAgent → ComposioHQ → Superpowers → GitHub topic), applies the same rubric, and gates adoption through a mandatory waxa eval. Do not duplicate that workflow inline.

Phase boundary — do not blur

The two phases solve different problems:

  • Phase 1 trades breadth for confidence. The catalog is curated; trust it.
  • Phase 2 trades confidence for breadth. Compensate with explicit evaluation.

Common failure: starting in Phase 2 ("let me grep GitHub for a Playwright skill") when Phase 1 already has playwright-test. Always read the catalog first.

Reverse failure: forcing a Phase 1 fit when the catalog truly has nothing suitable. If no row matches within ~30 seconds of scanning, escalate — don't pad the install list with adjacent-but-not-quite skills.

Maintenance of the catalog

  • Catalog is part of this skill. Keep it in sync when mizchi/skills (and upstream skill repos referenced) gain or lose skills.
  • A skill discovered through Phase 2 (skill-finder) may be promoted into the catalog after it has been used in 2+ projects without issue and after passing its waxa eval.
  • If the catalog feels stale, cross-check against mizchi/skills README before falling back to skill-finder.

Common mistakes

MistakeFix
Installing skills "just in case"Don't. Each one costs context per conversation. Install only when there's a near-term task that needs it.
Skipping the catalog and going straight to GitHub searchRe-read the catalog first. It exists to avoid this.
Adopting a Phase 2 skill without testingskill-finder requires a waxa eval gate before adoption. Don't bypass it — descriptions can lie.
Floating refs in apm.yml for project scopePin to a tag or SHA. Drift mid-feature is its own debugging hell.
Re-evaluating the same rejected skill quarterlyRecord the rejection reason in-repo. Don't re-search ground already covered.
Silently committing (or silently gitignoring) the APM deploy targetsSurface the choice — see step 5. Default-commit can balloon the repo; default-ignore can break teammates without APM.
Assuming targets: [claude] keeps deploy paths under .claude/skills/ onlyAPM 0.12+ may also write to .agents/skills/. Read the apm install output and treat every path it lists as a deploy target.
Treating Phase 1 catalog as exhaustiveIf nothing matches in ~30 seconds, escalate to Phase 2. Don't shoehorn.

Related

  • skill-finder — Phase 2 owner; cross-source survey + waxa eval gate when the catalog has no fit
  • apm-usage — actual apm install syntax and manifest format
  • empirical-prompt-tuning — how to test a candidate skill before adopting it
  • superpowers:writing-skills — when no existing skill fits, write one instead of adopting a poor match
  • chezmoi-management — for skills that must stay private (the APM-vs-chezmoi boundary)

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Skill Selector AI 技能有什么作用?

通过 APM 为项目挑选技能的元技能。仅当用户明确要求设置 apm.yml、选择项目所需的技能或评估目录匹配项时调用;不要在常规的 project-init 或 apm-management 任务中自动调用。分两阶段进行:先从精选目录中挑选;只有目录中没有合适选项时,才扩大搜索和评估范围。避免冲动安装从未使用的技能,也避免在已有可靠答案时还手动搜索 GitHub。

为什么在 TypingMind 中使用 Skill Selector?

因为您只需安装一次,就能搭配任何模型使用。Skill Selector 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Skill Selector?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/mizchi/skills/tree/main/skill-selector。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Skill Selector?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Skill Selector 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Skill Selector 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Skill Selector AI 技能免费吗?

mizchi 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇