Agent Skillsdifferent-ai/openwork › build-a-witness

build-a-witness

GitHub

构建确定性测试见证,通过模拟提供者、伪造API及管理请求日志,支持@openwork/testkit规范下的自动化测试与断言。

.opencode/skills/build-a-witness/SKILL.md different-ai/openwork

Trigger Scenarios

需要为测试套件构建模拟环境 编写或运行基于testkit的规格测试

Install

npx skills add different-ai/openwork --skill build-a-witness -g -y
More Options

Non-standard path

npx skills add https://github.com/different-ai/openwork/tree/dev/.opencode/skills/build-a-witness -g -y

Use without installing

npx skills use different-ai/openwork@build-a-witness

指定 Agent (Claude Code)

npx skills add different-ai/openwork --skill build-a-witness -a claude-code -g -y

安装 repo 全部 skill

npx skills add different-ai/openwork --all -g -y

预览 repo 内 skill

npx skills add different-ai/openwork --list

SKILL.md

Frontmatter
{
    "name": "build-a-witness",
    "description": "Mock a provider, add a mock, fake the API for tests. Use when building a deterministic provider witness for @openwork\/testkit specs."
}

Skill: Build a Witness

Follow the pattern established by labs/mock-mcp and the Google fixtures.

Witness contracts

  • Attribute requests per identity using the credential. Key observations by CREDENTIAL token-ID fingerprints, never by global state.
  • Expose since-ISO-scoped request logs so each assertion observes only its run.
  • Negative queries return immediately. An empty mailbox must not consume its full timeout; slow negative assertions are the first assertions people delete.
  • Consent and chooser pages must be programmatically drivable. Resolve only after the callback was actually served, never after a timer.
  • A mock contributes environment to server() at boot. Its address is Den boot configuration; a mock started after Den is a mock Den ignores.
  • On Daytona, publish the mock at a URL reachable by the remote Den with exposeMock.

Version History

  • ff5d298 Current 2026-08-20 11:35

Same Skill Collection

.opencode/skills/agent-first-screenshots/SKILL.md
.opencode/skills/browser-automation/SKILL.md
.opencode/skills/cloud-dashboard-walkthrough/SKILL.md
.opencode/skills/create-plugin/SKILL.md
.opencode/skills/daytona-chrome-cdp/SKILL.md
.opencode/skills/daytona-cloud-instance/SKILL.md
.opencode/skills/daytona-cloud-server/SKILL.md
.opencode/skills/daytona-dev/SKILL.md
.opencode/skills/daytona-electron-den/SKILL.md
.opencode/skills/daytona-electron-test/SKILL.md
.opencode/skills/daytona-flow-validator/SKILL.md
.opencode/skills/daytona-recording-artifacts/SKILL.md
.opencode/skills/daytona-secrets-volume/SKILL.md
.opencode/skills/daytona-seeded-cloud-demo/SKILL.md
.opencode/skills/daytona-windows-cert/SKILL.md
.opencode/skills/diagnose-a-red-run/SKILL.md
.opencode/skills/fraimz/SKILL.md
.opencode/skills/get-env-var/SKILL.md
.opencode/skills/openwork-models/SKILL.md
.opencode/skills/product-tutorial-pipeline/SKILL.md
.opencode/skills/prove-a-pr/SKILL.md
.opencode/skills/publish-evidence/SKILL.md
.opencode/skills/run-evals/SKILL.md
.opencode/skills/run-tests/SKILL.md
.opencode/skills/shadcn/SKILL.md
.opencode/skills/upload-photo/SKILL.md
.opencode/skills/write-a-spec/SKILL.md
.warden/skills/desktop-den-sync-review/SKILL.md
.warden/skills/diff-security-review/SKILL.md

Metadata

Files
0
Version
757601b
Hash
b710842e
Indexed
2026-08-20 11:35

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-17 05:45
浙ICP备14020137号-1