Agent skill

Kb

by evidentloop in evidentloop/sopify

管理 .sopify/ 长期知识;负责初始化、渐进物化、读取、保留和 knowledgesync 政策. An agent skill from evidentloop/sopify.

Apache-2.0Auto-check passed

Install Kb

skills CLI
$ npx skills add evidentloop/sopify --skill kb -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install evidentloop/sopify kb --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/evidentloop/sopify.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/zh/skills/sopify/kb .claude/skills/kb && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
kb
GitHub stars
372
Token cost
~492 tokens
SKILL.md length
102 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
Apache-2.0

At a glance

管理 .sopify/ 长期知识;负责初始化、渐进物化、读取、保留和 knowledgesync 政策. An agent skill from evidentloop/sopify.

  • Works in 4 steps: project.md → user/preferences.md → blueprint/README.md → …
  • SKILL.md covers 目录职责, 初始化与渐进物化, 知识上下文读取 and 保留与更新, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Kb is an agent skill from evidentloop/sopify. 管理 .sopify/ 长期知识;负责初始化、渐进物化、读取、保留和 knowledgesync 政策。

Its SKILL.md is about 490 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Resumable, traceable AI coding — plans, handoffs, and evidence stay with the repo across hosts. The licence is Apache-2.0.

Example prompts

  • “/kb”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

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

What it can do on your machine

Read from SKILL.md and the folder at commit 9d9b319. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are yaml).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Kb loads about 492 tokens when it runs. Until then it costs about 15 tokens; SKILL.md has 102 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~15
When it runs · the whole SKILL.md, loaded when a task matches
~492

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from evidentloop/sopify at commit 9d9b319, republished under its Apache-2.0 licence (© evidentloop). 102 words, ~492 tokens.

Download SKILL.mdSave it as .claude/skills/kb/SKILL.md (or your agent's skills folder).
name
kb
description
管理 `.sopify/` 长期知识;负责初始化、渐进物化、读取、保留和 knowledge_sync 政策。

知识库管理

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。

© evidentloop, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/zh/skills/sopify/kb of evidentloop/sopify.

Open the folder on GitHubat commit 9d9b319

Compare with similar skills

Kb next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Kb compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Kb this skillevidentloop/sopify372—~492Automated safety check: PassApache-2.0
Analyzeevidentloop/sopify372—~486Automated safety check: PassApache-2.0
Designevidentloop/sopify372—~442Automated safety check: PassApache-2.0
Analyzeevidentloop/sopify372—~268Automated safety check: PassApache-2.0
Kbevidentloop/sopify372—~901Automated safety check: PassApache-2.0
Developevidentloop/sopify372—~484Automated safety check: PassApache-2.0

Similar skills

  • Analyze

    evidentloop/sopify

    Analyze phase entry. An agent skill from evidentloop/sopify.

    372 GitHub stars~486 tokensUpdated 1 mo ago
    Auto-check passed
  • Design

    evidentloop/sopify

    Design phase entry. An agent skill from evidentloop/sopify.

    372 GitHub stars~442 tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • Analyze

    evidentloop/sopify

    需求分析阶段入口;聚合评分、追问与范围判定规则,按需加载 references/assets/scripts. An agent skill from evidentloop/sopify.

    372 GitHub stars~268 tokensUpdated 1 mo ago
    Auto-check passed
  • Kb

    evidentloop/sopify

    Manage long-lived .sopify/ knowledge, including bootstrap, progressive materialization, reads, retention, and knowledgesync policy.

    372 GitHub stars~901 tokensUpdated 1 mo ago
    Auto-check passed
  • Develop

    evidentloop/sopify

    Develop phase entry; routes task execution, state updates, KB sync, and plan close-out through references/assets/scripts.

    372 GitHub stars~484 tokensUpdated 1 mo ago
    Auto-check passed
  • Design

    evidentloop/sopify

    方案设计阶段入口;聚合方案分级、任务拆分与方案包输出规则,按需加载 references/assets/scripts。

    372 GitHub stars~241 tokensUpdated 1 mo ago
    Auto-check passed

More from evidentloop/sopify

All 8 skills in this repo
  • Develop

    evidentloop/sopify

    开发实施阶段入口;聚合任务执行、状态更新、知识库同步与收尾状态规则,按需加载 references/assets/scripts。

    372 GitHub stars~274 tokensUpdated 1 mo ago
    Auto-check passed

Questions about Kb

What does Kb do?

管理 .sopify/ 长期知识;负责初始化、渐进物化、读取、保留和 knowledgesync 政策. An agent skill from evidentloop/sopify. Kb is an agent skill from evidentloop/sopify.

How do I install Kb in Claude Code?

Run `npx skills add evidentloop/sopify --skill kb -a claude-code`. Or copy the skill folder (skills/zh/skills/sopify/kb in evidentloop/sopify) into .claude/skills/kb in your project. Claude Code loads it when a task matches its description.

How do I install Kb in Codex?

Run `npx skills add evidentloop/sopify --skill kb -a codex`. Or copy the skill folder (skills/zh/skills/sopify/kb in evidentloop/sopify) into .agents/skills/kb in your project. Codex loads it when a task matches its description.

Can I use Kb in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add evidentloop/sopify --skill kb -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/kb, .gemini/skills/kb, .github/skills/kb and .opencode/skills/kb in your project.

What does Kb need to run?

SKILL.md names no scripts, command-line tools or credentials: Kb is instructions for the agent only.

Does Kb access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Kb safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Kb use?

Kb is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Kb use?

About 492 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Kb?

Skills that share tags, products or a category with Kb: Analyze (evidentloop/sopify, 372 stars), Design (evidentloop/sopify, 372 stars), Analyze (evidentloop/sopify, 372 stars) and Kb (evidentloop/sopify, 372 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Kb?

evidentloop (a GitHub organization) maintains it in evidentloop/sopify, which has 372 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on August 30, 2026.

Source: evidentloop/sopify on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.