/kb
Manage long-lived `.sopify/` knowledge, including bootstrap, progressive materialization, reads, retention, and knowledge_sync policy.
$ npx -y skills add evidentloop/sopify --skill kb --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/kb
Context preview
The summary Claude sees to decide when to auto-load this skill.
Manage long-lived `.sopify/` knowledge, including bootstrap, progressive materialization, reads, retention, and knowledge_sync policy.
SKILL.md
kb.SKILL.mdname: kb
description: Manage long-lived `.sopify/` knowledge, including bootstrap, progressive materialization, reads, retention, and knowledge_sync policy.
Knowledge Base Management
KB owns long-lived knowledge. It does not make Analyze, Design, or Develop decisions, and it does not manage the active plan, handoff, receipts, or finalize directly. Document structures come from Templates; protocol state is managed through `sopify_writer`.
Directory responsibilities
.sopify/
├── project.md # reusable technical conventions
├── user/ # long-term preferences and raw feedback
├── blueprint/ # long-term goals, design boundaries, open work, and index
├── plan/ # current plan semantic files
├── history/ # archived plans and index
└── state/ # local protocol state
`blueprint/README.md` keeps only status, maintenance guidance, current goal, current focus, and reading links. Put detailed content in the relevant blueprint file.
Bootstrap and progressive materialization
`kb_init: full` creates `project.md`, `user/preferences.md`, `user/feedback.jsonl`, and the four blueprint files on first use. It does not pre-create plan content, history, or empty directories.
`kb_init: progressive` is the default:
- First real project use: create `project.md`, `user/preferences.md`, and `blueprint/README.md`.
- First plan lifecycle: add `blueprint/background.md`, `blueprint/design.md`, `blueprint/tasks.md`, and the current plan directory.
- First explicit `~go finalize`: let the protocol flow create `history/index.md` and the archive directory.
- First explicit long-term feedback: create `user/feedback.jsonl` when needed.
Knowledge context reads
The host completes the governing Protocol entry for a managed plan, handoff, and receipts before invoking KB. This section defines only KB's long-lived context order:
1. `project.md` 2. `user/preferences.md` 3. `blueprint/README.md` 4. Relevant parts of `blueprint/background.md`, `design.md`, and `tasks.md`
Consult and quick fix do not fail when deep blueprint files are absent. Read `history/` only for trace-back or finalize.
Retention and updates
Keep information only when it remains useful across tasks:
- `project.md`: reusable technical conventions.
- `background.md`: long-term goals, scope, and non-goals.
- `design.md`: module, host, directory, and consumption contracts.
- `tasks.md`: unfinished long-term work and explicit deferrals with a revisit condition.
- `preferences.md`: explicit long-term user preferences.
Do not store one-off implementation details, current-plan task breakdowns, temporary tradeoffs, completed tasks, or copies of history content. When code and documentation conflict, verify the code and then correct the documentation. Current user instructions override historical preferences.
`knowledge_sync`
knowledge_sync:
project: skip|review|required
background: skip|review|required
design: skip|review|required
tasks: skip|review|required
- `skip`: do not inspect that file for this plan.
- `review`: decide whether it needs an update before finalize.
- `required`: update it before the delivery candidate; block finalize while incomplete.
KB applies the plan's sync policy without changing the plan lifecycle. Update the narrowest long-lived location and avoid duplicating the same content across files.
Output
After bootstrap or sync, state the actual result, list `Changes`, and end with `Next:`. Use `Changes: 0 files` when nothing changed.
Read more
name: kb description: Manage long-lived `.sopify/` knowledge, including bootstrap, progressive materialization, reads, retention, and knowledge_sync policy.
Knowledge Base Management
KB owns long-lived knowledge. It does not make Analyze, Design, or Develop decisions, and it does not manage the active plan, handoff, receipts, or finalize directly. Document structures come from Templates; protocol state is managed through `sopify_writer`.
Directory responsibilities
.sopify/ ├── project.md # reusable technical conventions ├── user/ # long-term preferences and raw feedback ├── blueprint/ # long-term goals, design boundaries, open work, and index ├── plan/ # current plan semantic files ├── history/ # archived plans and index └── state/ # local protocol state
`blueprint/README.md` keeps only status, maintenance guidance, current goal, current focus, and reading links. Put detailed content in the relevant blueprint file.
Bootstrap and progressive materialization
`kb_init: full` creates `project.md`, `user/preferences.md`, `user/feedback.jsonl`, and the four blueprint files on first use. It does not pre-create plan content, history, or empty directories.
`kb_init: progressive` is the default:
- First real project use: create `project.md`, `user/preferences.md`, and `blueprint/README.md`.
- First plan lifecycle: add `blueprint/background.md`, `blueprint/design.md`, `blueprint/tasks.md`, and the current plan directory.
- First explicit `~go finalize`: let the protocol flow create `history/index.md` and the archive directory.
- First explicit long-term feedback: create `user/feedback.jsonl` when needed.
Knowledge context reads
The host completes the governing Protocol entry for a managed plan, handoff, and receipts before invoking KB. This section defines only KB's long-lived context order:
1. `project.md` 2. `user/preferences.md` 3. `blueprint/README.md` 4. Relevant parts of `blueprint/background.md`, `design.md`, and `tasks.md`
Consult and quick fix do not fail when deep blueprint files are absent. Read `history/` only for trace-back or finalize.
Retention and updates
Keep information only when it remains useful across tasks:
- `project.md`: reusable technical conventions.
- `background.md`: long-term goals, scope, and non-goals.
- `design.md`: module, host, directory, and consumption contracts.
- `tasks.md`: unfinished long-term work and explicit deferrals with a revisit condition.
- `preferences.md`: explicit long-term user preferences.
Do not store one-off implementation details, current-plan task breakdowns, temporary tradeoffs, completed tasks, or copies of history content. When code and documentation conflict, verify the code and then correct the documentation. Current user instructions override historical preferences.
`knowledge_sync`
knowledge_sync: project: skip|review|required background: skip|review|required design: skip|review|required tasks: skip|review|required
- `skip`: do not inspect that file for this plan.
- `review`: decide whether it needs an update before finalize.
- `required`: update it before the delivery candidate; block finalize while incomplete.
KB applies the plan's sync policy without changing the plan lifecycle. Update the narrowest long-lived location and avoid duplicating the same content across files.
Output
After bootstrap or sync, state the actual result, list `Changes`, and end with `Next:`. Use `Changes: 0 files` when nothing changed.
Resumable AI coding — ask first, plans stay with the repo AI coding tools are fast. But when they jump to code before the facts are clear, speed turns into rework.
Other skills on sopify.
- /analyze
Analyze phase entry. Aggregates scoring, follow-up, and scope-check rules; loads references/assets/scripts on demand.
Open skill - /design
Design phase entry. Aggregates plan-level selection, task breakdown, and package output rules; loads references/assets/scripts on demand.
Open skill - /develop
Develop phase entry; routes task execution, state updates, KB sync, and plan close-out through references/assets/scripts.
Open skill - /templates
Knowledge-base document templates, loaded when long-lived knowledge files are created or materialized.
Open skill - /analyze
需求分析阶段入口;聚合评分、追问与范围判定规则,按需加载 references/assets/scripts。
Open skill - /design
方案设计阶段入口;聚合方案分级、任务拆分与方案包输出规则,按需加载 references/assets/scripts。
Open skill

