Skill Library Builder 标志

Skill Library Builder

社区
randommonicle
skill-library-builder

Turn a real repository into a project-specific skill library that preserves a senior engineer's operating knowledge, so juniors and smaller models can carry the project forward. Load when asked to build, refresh, or audit a skill library or engineering playbook for a codebase, to capture tribal knowledge before someone leaves, to onboard engineers, or to make a repo easier for AI agents to work on. This is project-agnostic and installed user-level, so it applies to every project on this machine; the PropOS repo's own propos-* family is the worked example it was derived from. Do not load it to write a single skill on a topic you already know (write that skill directly).

概览

发布者randommonicle
代码仓库claude-skills
技能名称skill-library-builder
星标数
27
复刻数
3
附带文件
1
许可协议Apache-2.0
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 1 个附带文件

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

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

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

在 TypingMind 中使用此技能

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

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

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

Skill library builder

Turn a repository into a project-specific skill library: what the system is, what must not break, how it is set up, run and tested, how it fails, how to prove a fix is real, and how to change it safely. The output is a set of focused runbooks under .claude/skills/, not generic documentation. Reject any skill that only restates the README.

This skill is the method behind the PropOS library (16 skills authored by Fable, reviewed by Sonnet and a domain reviewer, fixed by Opus, on 2026-07-02). The PropOS artefacts docs/PLAN_fable_skill_library.md and docs/FABLE_PROMPT_skill_library.md are a full worked instance of everything below.

When this applies

Load this when the task is to build or refresh a library of operating knowledge for a repository, especially before a knowledgeable engineer leaves, when onboarding, or when a codebase needs to be workable by a cheaper model. Do not load it to author one skill on a subject you already understand: write that directly. Do not load it to change product code: this is a read-and-author job.

Non-negotiables

  1. Discover before you author. No skill is written until its facts are verified against the repo.
  2. Write only under the skills root (.claude/skills/). The rest of the repo is read-only unless the user explicitly asks for code changes.
  3. Ground truth only. Verify every command, flag, path and claim against the repo before stating it. Do not invent commands, flags, paths, ownership, history or success claims. Label inference as inference.
  4. Verify provenance with git, not memory. Dates, PR and commit numbers, and "who added what when" are the claims most likely to be wrong. Confirm each with git log --follow <path> or git show <sha> before writing it. This is the single most common authoring error: the technical facts (function names, config keys, error codes) verify cleanly while the story of when and why a thing landed drifts, especially when two similar artefacts exist.
  5. Do not route around the project's change-control. Nothing you write may tell a reader to bypass the project's gates.
  6. Do not present candidate work as proven. Open, deferred or experimental items stay labelled open.
  7. Put volatile facts behind re-verification commands and date-stamp them.
  8. No mutating git and no side effects. Forbidden without explicit authorisation: reset, checkout, switch, clean, commit, push, pull, merge, rebase, publish, deploy, and any database or production write.

Source priority (when sources disagree)

  1. Current checked-out code. 2. Tests and fixtures. 3. CI config. 4. Build scripts and manifests. 5. Runtime and deploy scripts. 6. Official repo docs. 7. Git history and reverts. 8. Issues, TODO/FIXME anchors, ADRs, memory and notes. 9. Inference from patterns (labelled). Where a handover doc and the live code disagree, the live code wins.

Procedure

1. Census (read-only)

bash
git status --short
git log --oneline --decorate -n 80

Then locate the docs of record, manifests, CI config and tests, and grep the hotspots:

bash
grep -rniE "TODO|FIXME|HACK|deprecated|flaky|workaround|revert|rollback|known issue" .

Expected: a list of the repo's own admissions of debt and fragility. These seed the debugging and failure-archaeology skills.

2. Build the System Map (before any skill)

Write an internal map: domain, durable and runtime state, actors, who or what may mutate each state, the idea-to-release workflow, the known risks and historical failures, the diagnostic tools, and what a real successful change looks like. If the map is thin, keep discovering. A shallow map produces shallow skills.

3. Choose the taxonomy (aim for 10 to 16)

Adapt this template to the repo. Merge thin categories, split deep ones, add domain categories the repo demands.

  • <project>-architecture-contract: load-bearing designs, invariants, known-weak points.
  • <project>-change-control: how changes are classified and gated, each rule with its rationale and the incident behind it.
  • <project>-debugging-playbook: symptom-to-triage table for this repo's failure modes.
  • <project>-failure-archaeology: the dated chronicle of settled battles, so none is re-fought.
  • <domain>-reference: the field's theory as it applies HERE, not a textbook.
  • <project>-config-and-flags: every configuration axis, production versus experimental, with re-verify commands.
  • <project>-build-and-env: recreate the environment from scratch.
  • <project>-run-and-operate: run and deploy the thing.
  • <project>-diagnostics-and-tooling: how to measure instead of eyeball; the real scripts with interpretation guides.
  • <project>-validation-and-qa: what counts as evidence; acceptance thresholds; the golden inventory.
  • <project>-docs-and-writing: maintaining the docs of record; house style.
  • <project>-external-positioning: papers, releases, competitors; novel versus known; reproducibility.
  • Advanced: <project>-<hardest-problem>-campaign (a decision-gated campaign with expected numbers at each gate), <project>-proof-and-analysis-toolkit, <project>-research-frontier, <project>-research-methodology.

4. Author (one agent per skill)

Each skill is .claude/skills/<name>/SKILL.md with YAML frontmatter (name plus a trigger-rich description stating exactly when to load it and which sibling to use instead). Use imperative runbook voice. Include: purpose, when NOT to use it, source-of-truth files, procedure, commands WITH expected observations, decision gates, known traps, the evidence required for success, and a final "Provenance and maintenance" section with one-line re-verification commands for volatile facts. One home per fact; cross-reference elsewhere.

5. Review, then fix

Three review passes over the complete set, then a fixer:

  • Factual review re-verifies flags, paths, commands, citations, and provenance (dates, PRs, commits) against the repo.
  • Doctrine review finds contradictions with project rules or between skills, overstated claims, anything that changes behaviour without a gate, and any skill that routes around change-control. Use a domain reviewer for regulated or safety-critical content.
  • Usability review checks the description's trigger quality, one-home-per-fact discipline, self-containedness, and scannability.

The fixer applies blocking and important findings without introducing new unverified claims.

6. Slop gate

If the unslop skills are installed, scan the prose and any scripts. The bar is 0 high-severity.

bash
python ~/.claude/skills/unslop-text/scripts/unslop_text_scan.py <SKILL.md> --severity high

Expected: high: 0. A clean scan clears the surface tells only; the structural ones (a skill that restates the README, an invented command) still need a reviewer.

Running it as a multi-agent workflow

The efficient shape, proven on PropOS: a pipeline of one author agent per skill, then a review stage, then a conditional fix stage, all running per-skill in parallel. Route the authoring to your strongest available author model and the review to a cheaper independent one, so the reviewer is not biased by the author. Give each author its exact source-file list and its scope plus the sibling that owns what it excludes. Assign a domain reviewer to the regulated skills. See docs/PLAN_fable_skill_library.md for the exact routing used.

What good looks like

A zero-context engineer or a small model can answer, from the skills alone: what is this system and what must not break; how do I set it up, run it and test it; how do I debug the real failures; how do I know a fix is real; how do I avoid re-fighting a settled battle; how do I change behaviour safely; how do I advance the project without unverifiable claims.

What this skill does not do

It does not write good product code, and it has no house style: it captures the project's operating knowledge in the project's own voice. It does not replace the project's change-control, its tests or its docs of record; it makes them findable and executable. For a single self-contained skill on a subject you already know, use anthropic-skills:skill-creator instead.

Why

The knowledge that keeps a complex project safe lives in one or two people's heads: the invariants, the settled debates, the traps that cost a week once. When they leave or when a cheaper session picks up the work, that knowledge is gone and the same mistakes get re-made. A library built to this discipline turns tribal knowledge into executable runbooks that a reader can trust, because every claim was verified against the repo and the volatile ones carry their own re-check command.

Provenance and maintenance

Date stamp: 2026-07-02. Distilled from the PropOS engagement: docs/PLAN_fable_skill_library.md, docs/FABLE_PROMPT_skill_library.md, and the pilot that established the git-provenance rule (finding 4 above). Portable: copy this directory to ~/.claude/skills/skill-library-builder/ to use it on any project.

bash
cp -R .claude/skills/skill-library-builder ~/.claude/skills/

Volatile facts and their re-checks:

FactRe-verify withExpected
Unslop scanners installedls ~/.claude/skills | grep unslopunslop-text, unslop-code, unslop-ui
The worked-example artefacts still presentls docs/PLAN_fable_skill_library.md docs/FABLE_PROMPT_skill_library.mdboth listed

A lesson is not a control (added 2026-07-23)

Skills must encode mechanical steps — grep this, run that, assert this count — not awareness. A documented trap in the worked-example repo recurred anyway until the procedure was fixed mechanically; prose that raises awareness fails exactly when attention is elsewhere, which is when the trap fires. When authoring any skill, convert each "be careful about X" into a command or a check, or expect the lesson to repeat.

Additions from the misses-log sweep (2026-11-01)

  • Name the trigger that delivers the rule at the moment it applies, and check it fires. A rule added to a skill is not learned by being on disk. It is learned when a description matches the situation in which it is needed, so a new rule comes with the answer to "what is the model doing, in what words, at the moment this should load", and that wording goes into the description. Then check it: state the situation plainly and see whether the skill loads. A rule whose description no situation reaches is a comment in a file nobody opens. (Rimagent 2026-10-16; Rimagent 2026-10-29, where prove-it-can-fail line 79 already existed and did not load; library 39, "It did not load".)

附带文件

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

常见问题

Skill Library Builder AI 技能有什么作用?

Turn a real repository into a project-specific skill library that preserves a senior engineer's operating knowledge, so juniors and smaller models can carry the project forward. Load when asked to build, refresh, or audit a skill library or engineering playbook for a codebase, to capture tribal knowledge before someone leaves, to onboard engineers, or to make a repo easier for AI agents to work on. This is project-agnostic and installed user-level, so it applies to every project on this machine; the PropOS repo's own propos-* family is the worked example it was derived from. Do not load it...

为什么在 TypingMind 中使用 Skill Library Builder?

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

如何在 TypingMind 中安装 Skill Library Builder?

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

哪些 AI 模型可以使用 Skill Library Builder?

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

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

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

Skill Library Builder AI 技能免费吗?

是的。randommonicle 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

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

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

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

查看全部

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

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