Skip to content
Back to skills

Ontoplato Knowledge Submit

ASecurity

将用户在 OntoPlato 对话中明确确认的业务口径提交为待审业务知识(status=0),供管理员审核通过后生效。

  • 13 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgonode

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add ontomato-ai/OntoPlato --skill ontoplato-knowledge-submit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ontoplato Knowledge Submit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ontoplato Knowledge Submit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ontomato-ai-ontoplato-knowledge-submit-ontoplato/badge)](https://www.skillsdirectory.com/skills/ontomato-ai-ontoplato-knowledge-submit-ontoplato)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ontoplato-knowledge-submit
description: 将用户在 OntoPlato 对话中明确确认的业务口径提交为待审业务知识(status=0),供管理员审核通过后生效。
compatibility: 仅限 OntoPlato 平台托管会话(需要 Node.js 24+ 及宿主注入回调);平台外请改用 ontoplato-knowledge-governance。
---

# 知识提交

本技能是 OntoPlato 全平台唯一的“提交待审业务知识(`status = 0`)”规范。

> **运行边界**:本技能依赖宿主注入的平台托管回调(`ONTOMATO_KNOWLEDGE_SUBMIT_URL` 与 `ONTOMATO_EXECUTION_CALLBACK`),**仅在 OntoPlato 平台托管会话中可用**;在平台外批量或单条导入待审业务知识,请改用 `ontoplato-knowledge-governance` 技能。

从工作区根目录执行 `node <this-skill>/scripts/submit.mjs <command>`,其中 `<this-skill>` 指本 `SKILL.md` 所在目录,`@file` 参数路径相对于工作区根目录。需要将载荷写成临时 JSON 文件时,一律写在当前工作区可写目录(例如 `outputs/kb-submit.json` 或 `work/kb-submit.json`,不要写宿主机 `/tmp`)。

## 准入条件

仅提交用户**明确同意保存**、且后续问答会反复用到的长期业务口径;仅适用于本轮的一次性选择或未经用户确认的推测严禁提交。每条知识只记录一条独立规则:

- `title`:简洁命名该术语或口径,例如“学院(单位层级)”。
- `text`:以业务知识页读者能直接理解并复用的业务语言写清规则,不写数据库字段名、编码或本轮临时数值。
- `quote`:原样摘录用户消息中给出该口径/定义的原话片段,不得改写(无需把无关寒暄或指令前缀整段拷入)。

## 提交前查重

若当前会话可用 `ontoplato-query` 技能,提交前先调用其 `knowledge` 命令检索已有业务知识:

- 已有已审批条目表述相同规则时,不要重复提交;
- 若与已有条目冲突,如实向用户说明差异,由用户决定是否走治理流程修订,不要强行覆盖或重复提交。

## 命令与待审语义

| 命令 | 输入与输出 |
| --- | --- |
| `submit <json\|@file>` | 提交一条待审业务知识。输入为包含非空字符串字段 `title`、`text`、`quote` 的 JSON 对象。输出 `{id,status,created}`:`status` 为 `0` 表示待管理员审核(仅审批通过后才会影响后续问答);当服务端命中规范化文本完全一致的已有条目时返回该条目且 `created` 为 `false`,不重复创建。 |

Files in this skill

  • SKILL.md2.5 KB
  • ontoplato.json75 B
  • scripts/submit.mjs14.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.