bkn-modeling — community bkn-modeling, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for AI Agents needing advanced Business Knowledge Network modeling capabilities, such as Cursor, Windsurf, or Claude Code. ADP is an intelligent data platform that bridges the gap between heterogeneous data sources and AI agents. It abstracts data complexity through business knowledge networks (Ontology), provides unified data access (VEGA), and orchestrates data processing through DataFlow pipelines.

kweaver-ai kweaver-ai
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The bkn-modeling skill by kweaver-ai is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for AI Agents needing advanced Business Knowledge Network modeling capabilities, such as Cursor, Windsurf, or Claude Code.

Core Value

Empowers agents to create and manage complex business knowledge networks using Ontology, VEGA, and DataFlow pipelines, enabling unified data access and processing through BKN files and templates.

Capabilities Granted for bkn-modeling

Creating new knowledge networks with templates and examples
Modeling entity relationships and actions using BKN files
Orchestrating data processing through DataFlow pipelines

! Prerequisites & Limits

  • Requires understanding of Business Knowledge Network concepts and Ontology
  • Limited to specific data sources and AI agents
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

bkn-modeling

Install bkn-modeling, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

BKN 业务知识网络建模

辅助编写 BKN (Business Knowledge Network) 业务知识网络建模文件。

快速开始

创建新的知识网络

  1. 使用模板创建:docs/ontology/bkn_docs/templates/network.bkn.template
  2. 参考样例:docs/ontology/bkn_docs/examples/k8s-topology.bkn
  3. 查阅规范:docs/ontology/bkn_docs/SPECIFICATION.md

BKN 文件结构

markdown
1--- 2type: network 3id: my-network 4name: 我的网络 5version: 1.0.0 6--- 7 8# 网络标题 9 10## Entity: entity_id 11... 12 13## Relation: relation_id 14... 15 16## Action: action_id 17...

三种类型

实体类 (Entity)

描述业务对象,直接映射数据视图:

markdown
1## Entity: pod 2 3**Pod实例** - 描述 4 5### 数据来源 6 7| 类型 | ID | 8|------|-----| 9| data_view | view_id | 10 11> **主键**: `id` | **显示属性**: `pod_name`

配置模式:

  • 完全映射: 只声明数据来源,自动继承所有字段
  • 属性覆盖: 仅声明需要特殊配置的属性
  • 完整定义: 完整声明所有属性(精细控制)

关系类 (Relation)

描述两个实体之间的关联:

markdown
1## Relation: pod_belongs_node 2 3**Pod属于节点** 4 5| 起点 | 终点 | 类型 | 6|------|------|------| 7| pod | node | direct | 8 9### 映射规则 10 11| 起点属性 | 终点属性 | 12|----------|----------| 13| pod_node_name | node_name |

行动类 (Action)

描述可执行的操作:

markdown
1## Action: restart_pod 2 3**重启Pod** 4 5| 绑定实体 | 行动类型 | 6|----------|----------| 7| pod | modify | 8 9### 触发条件 10 11```yaml 12field: pod_status 13operation: in 14value: [Unknown, Failed] 15`` ` 16 17### 工具配置 18 19| 类型 | 工具ID | 20|------|--------| 21| tool | kubectl_delete_pod | 22 23### 参数绑定 24 25| 参数 | 来源 | 绑定 | 26|------|------|------| 27| pod | property | pod_name |

常用操作

添加实体

  1. # 实体定义 section 下添加 ## Entity: {id}
  2. 声明数据来源(必须)
  3. 声明主键和显示属性(必须)
  4. 可选:属性覆盖、逻辑属性

添加关系

  1. # 关系定义 section 下添加 ## Relation: {id}
  2. 声明起点、终点、类型(必须)
  3. 声明映射规则(必须)

添加行动

  1. # 行动定义 section 下添加 ## Action: {id}
  2. 声明绑定实体和行动类型(必须)
  3. 声明工具配置和参数绑定(必须)
  4. 可选:触发条件、调度配置

增量导入

BKN 支持动态增量导入,任何 .bkn 文件可直接导入到已有的知识网络。

文件类型

type用途
entity单个实体,独立文件
relation单个关系,独立文件
action单个行动,独立文件
fragment混合片段,包含多个定义
delete删除标记

导入行为

  • ID 不存在: 新增定义
  • ID 已存在: 更新定义(覆盖)
  • type: delete: 删除指定定义

稳定性要求(重要)

  • 幂等:同一文件重复导入,结果必须一致
  • 确定性:同一批输入文件(不依赖目录遍历顺序)导入结果必须一致
  • 冲突处理:同一个 (network, type, id) 在同一批次重复定义时,默认应 fail-fast(推荐)

行动治理(重要)

行动连接执行面(tool/mcp),建议遵循:

  • 导入不等于启用;启用/执行需要独立权限与审计
  • Action 文档中明确:触发、影响范围、权限与前置条件、回滚/失败策略

新增实体示例

创建独立文件 deployment.bkn:

markdown
1--- 2type: entity 3id: deployment 4name: Deployment 5network: k8s-network 6--- 7 8# Deployment 9 10## 数据来源 11 12| 类型 | ID | 13|------|-----| 14| data_view | deployment_view | 15 16> **主键**: `id` | **显示属性**: `deployment_name`

导入后自动添加到 k8s-network

命名规范

类型格式示例
网络 IDsnake_casek8s_topology
实体 IDsnake_casepod, node
关系 IDsnake_casepod_belongs_node
行动 IDsnake_caserestart_pod

验证清单

编写完成后检查:

  • Frontmatter 包含 type, id, name, version
  • 每个实体有数据来源、主键、显示属性
  • 每个关系有起点、终点、映射规则
  • 每个行动有绑定实体、工具配置、参数绑定
  • ID 使用 snake_case 格式
  • 表格格式正确

参考文档

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is bkn-modeling?

Perfect for AI Agents needing advanced Business Knowledge Network modeling capabilities, such as Cursor, Windsurf, or Claude Code. ADP is an intelligent data platform that bridges the gap between heterogeneous data sources and AI agents. It abstracts data complexity through business knowledge networks (Ontology), provides unified data access (VEGA), and orchestrates data processing through DataFlow pipelines.

How do I install bkn-modeling?

Run the command: npx killer-skills add kweaver-ai/adp/bkn-modeling. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for bkn-modeling?

Key use cases include: Creating new knowledge networks with templates and examples, Modeling entity relationships and actions using BKN files, Orchestrating data processing through DataFlow pipelines.

Which IDEs are compatible with bkn-modeling?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for bkn-modeling?

Requires understanding of Business Knowledge Network concepts and Ontology. Limited to specific data sources and AI agents.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add kweaver-ai/adp/bkn-modeling. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use bkn-modeling immediately in the current project.

Related Skills

Looking for an alternative to bkn-modeling or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI