Skip to content
Agent Orchestration
Agent

delivery-api

This component-owned protocol is separate from capability.invocation (the repository currently defines that field for Python only). It does not expand the Agent's Read permission. The caller verifies the package source/version/hash, binds a fixed Node executable and this script

From plugin
kim-service
19815 skills15 agents10 commands

Claude Code

$ npx -y skills add KimYx0207/Kim_Service --agent claude-code

Agent definition

delivery-api.md

Artifact verification v1

Scope and binding

This component-owned protocol is separate from capability.invocation (the repository currently defines that field for Python only). It does not expand the Agent's Read permission. The caller verifies the package source/version/hash, binds a fixed Node executable and this script with shell=false, and supplies a task-authorized, stable artifact directory. No command from the task JSON is evaluated.

node scripts/verify.mjs --artifact-root /absolute/authorized/artifacts --input-json -

The root argument is a host binding, not proof of authorization. It must be an absolute, normalized path other than the filesystem root, without symlink ancestors. The helper does not look for directories, infer the user's home, enumerate contents, create locks, or obtain permissions. The caller must use a stable read-only snapshot or its existing lock and OS controls. This is not a filesystem sandbox and cannot guarantee protection from hostile concurrent path replacement, privileged mutation, mount changes or misleading receipt sources. Atime updates by the filesystem may occur on reads.

Node 22+ on POSIX with O_NOFOLLOW and O_NONBLOCK is required; unsupported safe-open flags block execution. Files are inspected with lstat, opened read-only with O_NOFOLLOW/O_NONBLOCK, checked against fstat, bounded-read and checked again. Root/directory identities are checked before and after reading. Symlinks, hardlinks and non-regular files are rejected. No network, arbitrary commands, paid model, persistent state or file writes occur in verify.mjs.

Host status is requires_host_binding and native Agent status is needs_probe. This Node contract is **not automatically compatible with an existing Python-only Meta delivery CLI**. A host adapter is future, separately authorized work; this package does not install one.

Input

UTF-8 stdin is exactly one JSON object. Duplicate keys (including escape-equivalent names), unknown envelope/manifest/criterion fields, invalid UTF-8, nonfinite numbers, unsafe integers, excessive depth and malformed JSON are rejected. No `approved`, `passed`, root, command, permission or runtime flag is accepted in task JSON.

{
  "schemaVersion": 1,
  "taskId": "demo-task",
  "artifacts": [{"id":"note", "path":"note.txt", "bytes":3, "sha256":"ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"}],
  "criteria": [
    {"id":"integrity", "description":"File matches the agreed manifest", "type":"artifact_integrity", "artifactId":"note"},
    {"id":"style", "description":"Human review of writing", "type":"external_review", "capability":"human-review"}
  ]
}

This example expects the three bytes `abc`; it is a design sample, not an execution record. `node scripts/demo.mjs` creates real synthetic input/output/receipt files in its own temporary directory, invokes the fixed helper and cleans up. Demo/test code writes fixtures; production verify.mjs does not.

Every manifest item is checked, even if no criterion directly names it. Ids are 1–80 ASCII letters/digits/dot/underscore/hyphen, starting with a letter or digit. SHA256 is 64 lowercase hex characters. bytes is a nonnegative safe integer. Relative paths use slash-separated, nonempty portable ASCII segments starting with a letter or digit; later characters may include spaces, dot, underscore and hyphen. No dot segments, leading dot, trailing spaces/dots, reserved Windows device names, colon, backslash, absolute path or encoded path syntax. Paths are at most 240 characters and case-insensitively unique. Non-ASCII filenames must be provided as caller-controlled copies under this portable naming convention, outside the helper.

Criteria have unique `id`, a nonblank `description` (at most 500 characters) and exactly one of:

  • `artifact_integrity`: `artifactId`. Passes only after actual bytes and hash match the manifest.
  • `json_equals`: `artifactId`, `pointer`, `equals`. Reads the verified file as strict JSON and compares the actual RFC 6901 JSON pointer value using structural equality. The empty pointer selects the whole document; arrays use canonical integer indices. No evaluation, regex, JSONPath or command syntax is run. Missing values fail, including when expected is null. Object key order is irrelevant, arrays are ordered, numbers are finite/safe as above. JSON numeric comparison uses JavaScript Number semantics, not arbitrary precision arithmetic.
  • `tool_receipt`: `receiptArtifactId`, `inputArtifactId`, `outputArtifactIds`, `tool`, `toolVersion`, `invocationId`, `assertions`. All references must be distinct as input/receipt/output roles, with at least one output; each assertion is exactly `{pointer, equals}`, with a distinct pointer starting `/result/`. Receipt, input and outputs must all pass actual file integrity first.
  • `work_handoff` (optional, helper 0.2.0): `artifactId`, `runId`, `workBinding`, `artifactBindings`. Checks the named handoff JSON against the host's expected organization, Work, run, context digest and exact artifact/version/file bindings. See below. Requests without this criterion keep their existing requirements.
  • `external_review`: `capability`. Always unverified and included in missingCapabilities. This is how human, browser, model or other unavailable review is represented. It cannot be marked passed by the caller. Unknown criterion types are invalid input, not silently ignored.

Tool receipt evidence

Receipt files use exactly these fields. Tools with a different native receipt format must supply an explicitly mapped evidence envelope through a separately authorized caller adapter. The verifier does not invoke or install that adapter or certify its source.

{
  "schemaVersion": 1,
  "taskId": "demo-task",
  "tool": "demo-count",
  "toolVersion": "0.1.0",
  "invocationId": "demo-invocation",
  "inputSha256": "<sha256 of actual input artifact>",
  "status": "completed",
  "exitCode": 0,
  "outputArtifacts": [{"id":"report", "bytes
Read more
@kimyx0207
Ships withkim-service

面向开发者、产品团队与内容创作者的开源 AI 角色方法与技能套件(Agent Playbooks & Skill Packs)。 Kim Service 将软件工程、产品设计、自媒体创作、商业财务与垂直运营中的实战方法论封装为可直接安装、可离线检索、带输入输出契约与验证脚本的标准组件包。无论是用 Claude Code / Codex / Cursor / Antigravity 写代码审接口,还是策划爆款选题、制作动态贴纸、搭建 12 个月现金流预测模型,都可以按领域套件一键装入你的 AI

19835 skills15 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
198
Star history of KimYx0207/Kim_Service on GitHub, a chart by star-history.com

Other agents on kim-service.

AGENT

AGENT

Agent

会计对账分析师(accounting reconciliation ledger bank settlement):逐笔核对银行、支付与账簿,把差额追到金额、时间、费用和缺失记录。

PROVENANCE

PROVENANCE

Agent

Inspected 2026-11-11. Kim Service authored the workflows, examples and acceptance rules. These are reference adaptations, not…

worked-delivery

worked-delivery

Agent

这是本包的原创合成工作样例,用于说明专业步骤、完整交付和拒收条件。它不是真实客户成果,也不是模型效果评测;实际任务替换输入与约束,按当前标准独立核验。

editable-example

editable-example

Agent

直接打开 [预约台页面](../examples/service-console/index.html)。这是原创合成数据,不连接业务系统,也不是客户成果或专业效果认证。

More agents from other plugins.

codemod-runner

codemod-runner

Agent

Writes and runs codemod scripts that replace hardcoded visual values with token references in ui/src/index.css. Use for Phase 2…

paperclip10d114k
@paperclipai@paperclipaiInstall Agent

Questions about delivery-api.

Which coding agents can use delivery-api?
delivery-api installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.