Skip to main content
ClaudeWave
Skill2.5k estrellas del repoactualizado today

bkn-creator

bkn-creator orchestrates CRUD operations and lifecycle management for knowledge network creation within the Wanwu ontology framework. It routes user intents through specialized workflows (Create, Read, Update, Delete, Extract), enforces progressive execution gates, and delegates all CLI operations to child skills while maintaining strict confirmation protocols before advancing stages.

Instalar en Claude Code
Copiar
git clone --depth 1 https://github.com/UnicomAI/wanwu /tmp/bkn-creator && cp -r /tmp/bkn-creator/configs/microservice/bff-service/configs/agent-skills/ontology/bkn-creator ~/.claude/skills/bkn-creator
Después abre una sesión nueva de Claude Code; el skill carga automáticamente.

SKILL.md

# BKN 编排器(CRUD + 渐进式)

**角色定位**:流程编排器 + 生命周期管理器。  
**Never** 直接执行 `ontology` CLI;所有执行均委托子技能完成。

## 职能矩阵(谁做什么)

| 组件 | 输入 | 输出 | 禁止事项 |
|------|------|------|----------|
| **bkn-creator** | 用户意图、上下文、各子流程结果 | 阶段推进决策、确认门禁、最终回执 | Never 直接执行 CLI;Never 绕过确认门禁 |
| **ontology-core** | bkn-creator 的 CLI 委托 | 命令执行结果与回执 | Never 跳过 bkn-creator 直接接管流程 |
| **create-bkn** | 已确认的建模清单 | 标准 `.bkn` 文件树 | Never 改写流程门禁 |
| **bkn-modeling-advisor** | 模糊业务意图、领域上下文 | 结构化建模清单 | Never 直接推进阶段三/四/五 |

## 流程路由(第一层)

| 意图 | 关键词 | 路由目标 |
|------|--------|----------|
| **新增(Create)** | 创建、新建、建立、搭建、本体建模 | `./FLOW_CREATE.md` |
| **提取(Extract)** | 提取对象类、提取关系类、抽取实体关系、对象关系梳理 | `./FLOW_EXTRACT_TYPES.md` |
| **查找(Read)** | 查询、搜索、列出、有哪些、看看 | `./FLOW_READ.md` |
| **更新(Update)** | 修改、编辑、更新、调整、改一下 | `./FLOW_UPDATE.md` |
| **删除(Delete)** | 删除、清除、移除、去掉 | `./FLOW_DELETE.md` |

MUST 回显流程路由识别结果并等待用户确认后进入对应流程。意图不明确时先澄清。
MUST 在"流程路由确认(验证阶段)"通过前,Never 进入任何 `FLOW_*` 的阶段化执行与对用户阶段回显(包括"阶段一/Step 1"等内容)。

## 渐进式执行协议(第二层)

所有 CRUD 流程统一遵循:

`discover -> preview -> confirm -> execute -> verify -> report`

完整确认语义、门禁规则、全局硬约束见:`./COMMON_RULES.md`。

## 子流程调用规则(第三层)

仅当"流程路由确认"通过后,才可读取并执行对应 `FLOW_*.md` 的阶段内容。

- 新增:读取 `./FLOW_CREATE.md`
- 提取:读取 `./FLOW_EXTRACT_TYPES.md`
- 查找:读取 `./FLOW_READ.md`
- 更新:读取 `./FLOW_UPDATE.md`
- 删除:读取 `./FLOW_DELETE.md`

## 顶层约束(路由阶段即生效)

以下约束在加载任何 `FLOW_*.md` 之前即生效;细则统一以 `./COMMON_RULES.md` 为准:

- MUST:流程路由确认未通过时,仅允许输出“流程路由识别结果 + 确认请求”
- MUST:任何写操作必须先完成确认步骤
- MUST:凡需执行 CLI,统一委托 `../ontology-core/SKILL.md`
- MUST:对用户输出使用专业文本,不使用 emoji

## 统一目录与回执(顶层强制)

目录、落盘、归档回执规则统一以 `./COMMON_RULES.md` 与 `./FLOW_CREATE.md` 为准,不在本文件重复定义。

## 流程衔接

- 提取流程(Extract)的结果可作为新增流程(Create)的快速输入:若用户在完成提取后希望创建知识网络,可将提取清单直接带入新增流程,跳过阶段一的重复提取,从清单确认(A2/B2/C1)开始
- 查找流程(Read)完成后,若用户希望修改或删除结果,可直接发起流程路由切换到更新或删除流程
- 跨流程切换时仍需经过流程路由确认门禁

## 失败回退

- 输入不足:一次只追问最高优先级字段,不批量追问
- 工具调用失败:停在当前阶段,向用户报错并等待指令,Never 自动重试或跳过
- 结果不确定:标注低置信度,不得自动推进到下一阶段

## 示例

### 正例:新增流程

用户:"根据这份 PRD 创建知识网络"  
执行:流程路由识别为新增 -> 路由 `FLOW_CREATE` -> 按门禁逐阶段推进。

### 反例:未确认推进

助手:"是否确认删除?"  
用户:"先这样,你继续说。"  
处理:必须停在流程路由确认门禁,不得执行删除。

## 上下文资源

- `./COMMON_RULES.md`
- `./FLOW_CREATE.md`
- `./FLOW_EXTRACT_TYPES.md`
- `./FLOW_READ.md`
- `./FLOW_UPDATE.md`
- `./FLOW_DELETE.md`
- `./references/DOMAIN_ROUTING.md`
- `./references/common/generic_extraction.md`
- `../ontology-core/SKILL.md`
- `../create-bkn/SKILL.md`
- `../bkn-modeling-advisor/SKILL.md`
agent-stream-nesting-logicSkill

万悟平台 SSE 子会话递归嵌套与三明治序列渲染架构指南。涵盖 parentId 领养、order 绝对排序、动静 Chunk 分层及 Vue 2 响应式引用协议。

algorithmic-artSkill

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.

brand-guidelinesSkill

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

canvas-designSkill

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

claude-apiSkill

Build apps with the Claude API or Anthropic SDK. TRIGGER when: code imports `anthropic`/`@anthropic-ai/sdk`/`claude_agent_sdk`, or user asks to use Claude API, Anthropic SDKs, or Agent SDK. DO NOT TRIGGER when: code imports `openai`/other AI SDK, general programming, or ML/data-science tasks.

doc-coauthoringSkill

Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.

docxSkill

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.

frontend-designSkill

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.