From cc7da4f4214e5c66521b2e055104a72c038d07a7 Mon Sep 17 00:00:00 2001 From: yunyingk Date: Fri, 11 Sep 2026 00:04:06 +0800 Subject: [PATCH] Clarify knowledge document creation constraints --- skills/seal-use/SKILL.md | 1 + skills/seal-use/references/cli.md | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/skills/seal-use/SKILL.md b/skills/seal-use/SKILL.md index a94b206..e504c7f 100644 --- a/skills/seal-use/SKILL.md +++ b/skills/seal-use/SKILL.md @@ -40,6 +40,7 @@ seal-use corps list - Parse JSON stdout. Do not scrape human text. - Do not hand-edit enterprise configs for normal setup. Use `seal-use corps ...`. - Before write operations on rules, documents, style preferences, or publishing, fetch current state and confirm the intended mutation with the user. For repeat test-environment rule resets, prefer `rules clear --dry-run` followed by `rules clear --yes`. +- Knowledge document creation is currently irreversible: the upstream API exposes no delete operation. Validate `contentType` and `scenarios` before creating, and use `enabled: false` when the document should be withdrawn. - For customer-feedback rule remediation, show an exact field-level diff and obtain explicit approval before updating. Default to changing only the narrowest necessary part of `description`; preserve `scope`, `strictness`, and unrelated clauses unless the user explicitly approves otherwise. - Resolve and lock the target enterprise `corpId` before diagnosis or mutation. Never assume the current tenant is the customer tenant. Re-fetch the target rule immediately before updating, then verify the draft and newly published version after writing. - For date questions, use explicit dates and `--timezone Asia/Shanghai`. diff --git a/skills/seal-use/references/cli.md b/skills/seal-use/references/cli.md index 3649995..c46173f 100644 --- a/skills/seal-use/references/cli.md +++ b/skills/seal-use/references/cli.md @@ -311,13 +311,17 @@ Create a document: "title": "标题", "purpose": "用途", "content": "Markdown 内容", - "contentType": "text/markdown", - "status": "可选", - "scenarios": ["场景"], + "contentType": "policy", + "status": "published", + "scenarios": ["audit"], "tags": ["标签"] } ``` +`contentType` 必须是 `document`、`video`、`pdf`、`feishu_doc` 或 `policy` 之一;`scenarios` 必填且至少包含一个 `fill`(智能填单)或 `audit`(智能审核)。这里的 `scenarios` 是产品能力开关,不是费用类别或业务场景名。 + +知识文档创建后当前 API 没有删除接口,创建操作不可逆;请在写入前确认标题、正文、内容类型和能力场景。需要撤下内容时,优先使用更新操作并设置 `enabled: false`(如果上游支持该字段),不要通过试探性创建来验证参数。规则支持删除,但知识文档与规则的生命周期能力并不对称。 + Update a document: ```json