AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Bkn Bind

skill-kweaver-ai-kweaver-dip-bkn-bind · by kweaver-ai

为 BKN 对象匹配数据视图,输出绑定决议。

No reviews yet
0 installs
7 views
0.0% view→install

Install

$ agentstack add skill-kweaver-ai-kweaver-dip-bkn-bind

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-kweaver-ai-kweaver-dip-bkn-bind)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Bkn Bind? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

视图绑定

公约:../_shared/contract.md | 绑定规则:references/binding-rules.md | 语义服务:references/semantic-guide.md

做什么

给定对象草案和候选视图,为每个对象找到最佳绑定视图,输出 bound / pending / rejected。

输入

  • object_draft_list:对象清单(含属性和 存储位置 标记)
  • candidate_views:候选视图(空则使用 bkn-env 输出的 dataview_availability.available_views 进行匹配)
  • dataview_availability:可选,bkn-env 输出的完整信封(含 total_viewsfetched_viewstruncatedavailable_views
  • network_context:网络名、领域

流程

  1. 存储位置过滤
  • 跳过 存储位置: local 的对象(本地对象无需数据视图绑定)
  • 在输出中记录被跳过的 local 对象列表
  • 仅对 platform 对象执行后续步骤
  1. 从对象描述提取数据源线索
  2. 委托 bkn-kweaver 查视图存在性 + 字段 schema(kweaver dataview get
  3. 字段 schema 输出:将每个已绑定对象的视图字段 schema 写入 view_schema_map,供 bkn-map 做属性回灌和 bkn-draft 做属性命名预对齐
  4. 字段兼容性验证:逐属性比对,not_found > 50% 降级为 ambiguous
  5. 补充匹配:语义服务(references/semantic-api.md)+ GKN 复用
  6. 逐对象决议:bound / pending / rejected
  7. 数据源一致性校验:不同 datasource_id 标记风险

判定规则见 references/binding-rules.md

输出

binding_decision_list:
  bound: [{object_id, object_name, selected_view_id, confidence, reason}]
  pending: [{object_id, object_name, candidates, blocking_points}]
  rejected: [{object_id, object_name, reason}]
  skipped_local_objects: [对象名]
binding_summary:
  total_objects: 0       # 仅计算 platform 对象
  bound_objects: 0
  binding_rate: 0.0      # bound_objects / total_objects(不含 local 对象)
view_schema_map:
  {object_name}: 
    view_id: ""
    view_name: ""
    datasource_id: ""           # 数据源 ID(用于跨数据源判断)
    fields: [{name, type, description}]
    foreign_keys:               # 外键信息(用于关系类型判定)
      - field: ""               # 本视图中的外键字段名
        references_view_id: ""  # 引用的视图 ID(如有)
        references_table: ""    # 引用的物理表名(如有)
        references_field: ""    # 引用的字段名

视图匹配职责

bkn-bind 是对象-视图匹配的唯一决策点。bkn-env 仅提供可用视图列表(dataview_availability),不做匹配推荐。

候选视图来源

  1. candidate_views 非空 → 使用用户传入的候选列表(dataview_availability 仅用于截断风险检查)
  2. candidate_views 为空 + dataview_availability 存在 → 使用 dataview_availability.available_views
  3. candidate_views 为空 + dataview_availability 不存在(如 update pipeline 跳过了 bkn-env)→ warn 用户"无候选视图列表,请手动指定 viewid 或 viewname 辅助匹配"

截断风险处理:当 dataview_availability.truncated == true 时:

  • 向用户发出 warning:"平台视图列表可能存在截断,自动匹配可能遗漏目标视图。建议手动指定 viewid 或 viewname 辅助匹配。"
  • 继续用已获取的候选列表执行匹配,不阻断流程
  • 匹配结果为 pending 时,提示用户可能需要手动确认 view_id

约束

  • 只做对象级绑定,属性映射交 bkn-map
  • 绑定值必须是 view_id,不用名称替代
  • 多候选无法裁决时输出 pending,不强选
  • 不静默忽略数据源不一致

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.