Installable Skill Hygiene logo

Installable Skill Hygiene

Community
st1page
installable-skill-hygiene

发布/维护 installable skill(installable-skills/{name})时的结构与引用卫生:自包含、禁止引用 skill 目录外路径、校验 front matter/YAML、以及发布口径(单文件 vs references/)取舍。触发条件:新增/更新 installable-skills、技能发布、安装后坏链接排查。

Overview

Publisherst1page
Repositoryagent-knowledge-framework
Skill nameinstallable-skill-hygiene
Stars
42
Forks
6
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by st1page on GitHub. Read the source before you install it.

Installation

Install the Installable Skill Hygiene AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/st1page/agent-knowledge-framework/tree/main/roles/maintainer/skills/installable-skill-hygiene
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/st1page/agent-knowledge-framework.git /tmp/agent-knowledge-framework
mkdir -p .claude/skills
cp -r /tmp/agent-knowledge-framework/roles/maintainer/skills/installable-skill-hygiene .claude/skills/installable-skill-hygiene
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Installable Skill Hygiene in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Installable Skill Hygiene on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Installable Skill Hygiene is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Installable Skill Hygiene(发布质量与引用卫生)

目标:让 installable-skills/<skill-name>/ 安装后仍然可用(不依赖原仓库布局/当前工作目录),并且可维护(变更可 review、可回滚)。

核心约束(必须)

  1. 自包含:skill 安装后只应依赖 installable-skills/<skill-name>/ 目录内的文件。
  2. 禁止"逃逸路径":SKILL.md(以及被它引导打开的文件)不得引用 ../ 等跳出 skill 根目录的路径;不得要求读 base/、roles/、仓库根 README.md 这类"在原仓库里存在、安装后可能不存在"的路径。
  3. 入口可读:SKILL.md 里要能让读者在不打开别的文件的情况下理解"要做什么 + 怎么做 + 何时触发"。

发布口径(两种都允许,选其一)

A)单文件口径(最稳)

把必要内容尽量内嵌在 SKILL.md。适用于:

  • skill 短小、步骤清晰
  • 不希望出现任何跨文件引用(包括 references/...)

代价:SKILL.md 会变长,维护时更容易出现"改一点动全篇"。

B)skill 内部引用口径(更可维护)

允许使用 skill 目录内部 的相对引用,例如:

  • references/...
  • scripts/...
  • assets/...

适用于:

  • 需要附带 API 参考/长文档/示例配置
  • 需要脚本提高确定性

注意:这里的"相对路径"只允许 相对于 skill 根目录 的内部路径;不要出现任何 ../ 逃逸。

发布前检查(推荐顺序)

1)front matter 基本校验(YAML)

如果本机有 skill-creator 的 quick_validate.py,优先跑:

bash
python <path-to-skill-creator>/scripts/quick_validate.py installable-skills/<skill-name>

2)引用闭包扫描(禁止逃逸 + 禁止仓库根依赖)

在 skill 目录下扫一遍可疑引用(按需加关键字):

bash
rg -n "(^|\\s)(\\.\\./|/base/|\\broles/|\\binstallable-skills/\\b|README\\.md\\b|AGENTS\\.md\\b)" -S installable-skills/<skill-name>

解释:

  • ../:大概率是"逃逸路径"
  • base/、roles/:大概率是"依赖原仓库布局"
  • installable-skills/:skill 内不应再写全局路径(安装后不稳定)
  • README.md、AGENTS.md:常见误指向仓库根文件(除非它们位于 skill 目录内)

3)安装体验抽查(可选)

在仓库的 installable-skills/ 目录下执行:

bash
npx skills add . --skill='<skill-name>' -g -y

Escalate to experience if

  • 安装后出现坏链接/缺文件,但在原仓库里"看起来没问题"
  • 需要同时维护 internal/public 两个仓库的 installable skills,且希望 diff 可控
  • 文档附录对比出现"附录 diff 远大于正文"的异常现象

Frequently asked questions

What does the Installable Skill Hygiene AI skill do?

发布/维护 installable skill(installable-skills/{name})时的结构与引用卫生:自包含、禁止引用 skill 目录外路径、校验 front matter/YAML、以及发布口径(单文件 vs references/)取舍。触发条件:新增/更新 installable-skills、技能发布、安装后坏链接排查。

Why use Installable Skill Hygiene on TypingMind?

Because you install it once and use it with any model. Installable Skill Hygiene is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Installable Skill Hygiene in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/st1page/agent-knowledge-framework/tree/main/roles/maintainer/skills/installable-skill-hygiene. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Installable Skill Hygiene?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Installable Skill Hygiene?

As many as you like. As long as a model supports skills, you can use Installable Skill Hygiene with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Installable Skill Hygiene AI skill free?

Yes. It is published on GitHub by st1page under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇