跳到正文
cccskills
免费在 GitHub 公开中文介绍

add-rules

将用户授权的政策和长期约束编入 OpenViking Rules,并跟踪任务状态、核对保存内容及实际变更。可使用 Python SDK 或 HTTP 流程。

原文查看原文说明

Compile durable constraints into OpenViking Rules with rules/compile. Use when the user asks to add rules or import a policy. Do not use for preferences, facts, or rule search.

volcengine/OpenViking星标 41,138(GitHub 41,138 + cccskills 0)

实测评分 未实测

查看安装方法

适用场景

  • 将团队政策加入 OpenViking Rules
  • 把长期约束整理为 Rule
  • 核对任务完成情况和保存内容

中文介绍

功能

将用户要求添加或导入的政策及长期约束登记到 OpenViking Rules。Agent 使用 Python 且 SDK 可用时采用 Python SDK,否则使用 HTTP;同一处理流程中不会混用两种方式。处理时保留原文中的义务、适用条件、例外、阈值和标识符,不补充来源中没有的政策。持续查询任务状态直到完成,并核对已保存的 Rule 或 Scenario 内容、实际变更以及尚未解决的判断事项。

适用场景

需要把组织或团队政策导入 OpenViking,或将持续生效的约束整理为 Rule 时,可以使用此技能。它也能帮助区分任务已被受理和 Rule 已实际保存这两个阶段。

使用示例

  • “请将这项政策登记到 OpenViking Rules。”
  • “从指定文档中导入长期约束,并核对保存结果。”
  • “查询任务状态和已保存 Rule 的内容。”

注意事项

连接 OpenViking 是必要条件。流程使用 Python SDK 或 HTTP,处理对象必须是可读取的文本,不能提交图片、音频或视频。未经用户明确许可,不会暂停或删除规则等状态变更。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

文档检查

AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。

安全性发送数据、删除文件、执行命令等是否有说明
A良好状态变更须获明确许可,并规定不得暴露认证信息。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足需要连接 OpenViking 并使用 SDK 或 HTTP,但未提供连接配置步骤。

不计入评分。 由 AI(OpenAI Codex)于 2026年10月27日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(1)

  • SKILL.md5.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Add Rules

Goal

Use POST /api/v1/rules/compile to compile user-authorized durable constraints into OpenViking Rules, then verify the task result and saved Rules.

Workflow

  1. Identify the user's rule text or policy sources and the intended OpenViking connection. Use the same instance and identity for upload, compilation, task polling, and verification.

  2. Choose exactly one invocation mode for the entire workflow:

    • Python SDK mode: use when the Agent runs in Python and the OpenViking SDK is available. Use SDK methods for source upload, compilation, task polling, and reading.
    • HTTP mode: use for other languages or general-purpose Agents. Use HTTP endpoints for source upload, compilation, task polling, and reading. Do not mix SDK calls and direct HTTP calls within one compilation workflow.
  3. Build a request with top-level instruction and sources; at least one must be non-empty. Preserve the source's obligations, applicability conditions, exceptions, thresholds, and identifiers without inventing policy.

  4. Continue only with the selected mode and use its exact parameter shape:

    Python SDK mode

    options supports sources. Each source may be a local file or directory path, a remote URL, a Resource URI, or an advanced source dictionary. The SDK uploads local paths automatically.

    task = client.rule_compile(
        instruction="Compile the supplied policy into durable Rules.",
        options={
            "sources": [
                "/local/path/policy.md",
                "https://example.org/policy.md",
                "viking://resources/team-policy",
            ]
        },
    )
    task_id = task["task_id"]
    

    Poll with client.get_task(task_id) and read saved content with client.read_raw(uri).

    HTTP mode

    HTTP has no options wrapper. Put instruction and sources directly in the JSON body. Use resource_uri for an existing Resource, path for a remote text source, or temp_file_id returned by POST /api/v1/resources/temp_upload for local content.

    {
      "instruction": "Compile the supplied policy into durable Rules.",
      "sources": [
        {"resource_uri": "viking://resources/team-policy"},
        {"path": "https://example.org/policy.md"},
        {"temp_file_id": "tmp_xxx", "source_name": "policy.md"}
      ]
    }
    

    Submit this body to POST /api/v1/rules/compile. Never send a client-local path to that endpoint. Poll GET /api/v1/tasks/{task_id} and read saved content through GET /api/v1/content/read?uri=...&raw=true.

    Save the returned task_id; acceptance does not mean compilation has completed.

  5. Poll using the selected mode until the task is completed, failed, or cancelled. Query the existing task rather than resubmitting the request.

  6. Inspect result.operations, written_uris, and write_result. Distinguish saved Rules from NOOP, UNCERTAIN, and REJECT results; completed does not guarantee new Rules.

  7. Read representative saved Rules and their Scenarios using the selected mode. Check the policy text and evidence, and verify rules/<scenario_id>/abstract.md holds Scenario metadata while Rule files sit directly beside it as <atomic_id>.md. Report the task ID, actual changes, representative URIs, and unresolved decisions.

Boundaries

  • Compile durable constraints only; do not promote preferences, facts, or one-task advice.
  • Prefer faithful, non-empty applies_when conditions supported by the source. Empty applies_when means applicable in every situation except exception, not unknown.
  • Request lifecycle changes only when the user explicitly authorizes them. Use ARCHIVE only when the user's instruction explicitly asks to delete, discard, or move a Rule to the recycle bin. Use PAUSE for pause, disable, deactivate, retire, stop-applying, or stop-using requests without deletion intent. Archived Rules are logically deleted: they are not compiler candidates and cannot be restored through Rule compilation.
  • Use client connection configuration, not service-side model credentials. Do not switch instances or expose credentials to resolve a failed request.
  • The API accepts at most 16 sources and 64000 instruction characters; source collection reads at most 128 files and 128000 characters. Split oversized material into self-contained policies with their conditions and exceptions rather than silently omitting content.
  • Rule compilation requires readable text. Do not submit image, audio, or video sources.
  • If a request fails or its status is unknown, check the task and saved files before retrying. Previously imported Resources are not rolled back when later Rule compilation fails.
  • Do not treat an immediate empty search result as proof that writing failed; semantic indexing may still be pending.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

cron

免费有简介

使用 `cron` 安排提醒或周期性代理任务,接收固定消息或任务结果。也可安排一次性执行,查看已登记的任务,并删除不再需要的任务。

  • 定时提醒自己休息
  • 会前收到一次提醒
  • 定期获取检查结果
volcengine/OpenViking4.1万2026年10月29日 更新

daily-report

免费有简介

将会话记录、会议纪要、任务记录等 OpenViking 资料整理为按日 Markdown 报告,区分已证实成果与计划,并为进展、决定、阻碍和承诺附上来源链接。

  • 汇总分散记录生成每日报告
  • 将会议纪要和聊天整理成报告
  • 区分已完成工作与代理计划
volcengine/OpenViking4.1万2026年10月29日 更新

experience_loader

免费有简介

开始任务前,在OpenViking中查找相关的过往执行经验,先核对适用条件和排除条件,再读取可能适用的建议,并以当前事实、政策和工具结果为准。

  • 为新任务查找过往经验
  • 排除不符合当前条件的经验
  • 对照过往建议与当前工具结果
volcengine/OpenViking4.1万2026年10月29日 更新

github

免费有简介

通过 GitHub 命令行工具 `gh` 查看和操作 Issue、拉取请求及自动检查。可排查失败步骤和日志,提取所需字段,并通过 GitHub API 查询常规命令未提供的数据。

  • 查看拉取请求的自动测试结果
  • 排查失败工作流的日志
  • 列出 Issue 编号和标题
volcengine/OpenViking4.1万2026年10月29日 更新

github-proxy

免费有简介

GitHub 访问较慢时,将仓库、Release 附件、Raw 文件、压缩包和 Gist 链接转换为代理网址,便于克隆或下载;也介绍使用 Python 脚本转换链接。

  • GitHub 访问慢时克隆仓库
  • 下载 Release 附件
  • 获取 Raw 文件或仓库压缩包
volcengine/OpenViking4.1万2026年10月29日 更新

Set up the OpenViking long-term memory plugin for OpenClaw through conversation. The skill handles installation, configuration, and verification so chat facts can be saved and relevant memories recalled across sessions, using an existing OpenViking server.

中文简介正在准备中。当前显示英语简介。

  • Add long-term memory to OpenClaw
  • Recall saved facts across chat sessions
  • Separate memories by assistant or sender
volcengine/OpenViking4.1万2026年10月29日 更新

查看 volcengine 的全部技能

报告此技能的问题