Kb logo

Kb

Organization
evidentloop
kb

管理 `.sopify/` 长期知识;负责初始化、渐进物化、读取、保留和 knowledge_sync 政策。

Overview

Publisherevidentloop
Repositorysopify
Skill namekb
Stars
368
Forks
30
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 evidentloop on GitHub. Read the source before you install it.

Installation

Install the Kb 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/evidentloop/sopify/tree/main/skills/zh/skills/sopify/kb
  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/evidentloop/sopify.git /tmp/sopify
mkdir -p .claude/skills
cp -r /tmp/sopify/skills/zh/skills/sopify/kb .claude/skills/kb
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Kb 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 Kb 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 Kb 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.

知识库管理

KB 负责长期知识,不替 Analyze、Design 或 Develop 做阶段判断,也不直接管理活动方案、handoff、receipt 或 finalize。文档结构来自 Templates,协议状态由 sopify_writer 管理。

目录职责

text
.sopify/
├── project.md              # 跨任务技术约定
├── user/                   # 长期偏好与原始反馈
├── blueprint/              # 长期目标、设计边界、未完成长期项及索引
├── plan/                   # 当前方案语义文件
├── history/                # 已归档方案与索引
└── state/                  # 本地协议状态

blueprint/README.md 只保留状态、维护方式、当前目标、当前焦点和阅读入口。深层内容进入对应 blueprint 文件。

初始化与渐进物化

kb_init: full 首次创建 project.md、user/preferences.md、user/feedback.jsonl 和四个 blueprint 文件;不预建方案正文、history 或空目录。

kb_init: progressive 为默认策略:

  • 首次真实项目触发:创建 project.md、user/preferences.md、blueprint/README.md。
  • 首次进入 plan 生命周期:补齐 blueprint/background.md、blueprint/design.md、blueprint/tasks.md 和当前方案目录。
  • 首次显式 ~go finalize:由协议流程创建 history/index.md 和归档目录。
  • 首次出现明确长期反馈:按需要创建 user/feedback.jsonl。

知识上下文读取

宿主先按正式 Protocol 完成 managed plan、handoff 和 receipts 的入口读取。本节只规定 KB 自己的长期知识顺序:

  1. project.md
  2. user/preferences.md
  3. blueprint/README.md
  4. 与当前任务有关的 blueprint/background.md、design.md、tasks.md

Consult 和 quick fix 不因缺少深层 blueprint 失败。history/ 只在追溯或 finalize 时读取。

保留与更新

只保留跨任务仍有价值的信息:

  • project.md:可复用技术约定。
  • background.md:长期目标、范围和非目标。
  • design.md:模块、宿主、目录和消费契约。
  • tasks.md:未完成长期项及有重访条件的明确延后项。
  • preferences.md:用户明确声明的长期偏好。

不要写入一次性实现细节、当前 plan 的任务拆解、临时取舍、已完成任务或 history 正文副本。代码与文档冲突时先核对代码事实,再修正文档;当前用户指令优先于历史偏好。

knowledge_sync

yaml
knowledge_sync:
  project: skip|review|required
  background: skip|review|required
  design: skip|review|required
  tasks: skip|review|required
  • skip:本轮不检查该文件。
  • review:finalize 前确认是否需要更新。
  • required:交付候选形成前必须更新;未完成时阻断 finalize。

KB 只执行方案声明的同步政策,不改变 plan 生命周期。同步时更新最窄的长期知识位置,避免在多个文件重复同一正文。

输出

初始化或同步完成后,先说明实际结果,再列 Changes,最后给 Next:。没有变化时明确写 Changes: 0 files。

Frequently asked questions

What does the Kb AI skill do?

管理 `.sopify/` 长期知识;负责初始化、渐进物化、读取、保留和 knowledge_sync 政策。

Why use Kb on TypingMind?

Because you install it once and use it with any model. Kb 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 Kb in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/evidentloop/sopify/tree/main/skills/zh/skills/sopify/kb. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Kb?

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 Kb?

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

Is the Kb AI skill free?

Yes. It is published on GitHub by evidentloop 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 👇