specification-system
它能做什么
这项技能讲解如何编写和复用规格文件,这些文件描述一组 AI 智能体可重复使用的设置。适合运行 OpenRig、并希望无需重新输入就能再次使用同一配置的人。
适用场景
- ✓当你想把一个运行良好的 AI 智能体团队保存为文件,以便之后重新启动时。
- ✓当你想分享一套智能体配置,让别人也能在他们的电脑上启动相同的配置时。
- ✓当你检查某个设置文件在另一台电脑上是否仍然可用时。
技能链接
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/specs/agents/shared/skills/core/specification-system/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我为我的 AI 智能体团队编写一个可复用的设置文件,以便之后重新启动。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体遵循一套规则编写设置文件,这些规则不依赖某台电脑上的文件夹。这样文件就能描述预期的配置,并在其他地方复用。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Specification System
The declarative primitive family for OpenRig intent: rig specs, agent specs, workflow specs, startup/context fragments, operating-mode declarations, and the user spec library that stores and reuses them.
Specs are how humans and agents describe repeatable topology and behavior without re-explaining it in chat. They are also shareable artifacts: a user should be able to publish a spec or spec family so another user can instantiate the same rig shape, role structure, or workflow pattern.
Without a dependable spec primitive, OpenRig depends on manual startup prompts and tribal memory. That blocks repeatability, product demos, rig bundles, and autonomous rig construction.
Use this when
- Authoring a RigSpec / AgentSpec / workflow spec
- Designing a startup/context fragment
- Reasoning about spec-library lifecycle (validation, sharing, upgrade semantics)
- Auditing a spec for portability (does it run on another host?)
- Distinguishing spec vs bundle vs extension cleanly
Don't use this when
- The work is one-off and won't be reused. Manual rig assembly is fine for one-shot work.
- The intent is to package a topology + workflow as a shareable artifact. That's
rig-bundles-and-shareable-artifacts. - The intent is to add runtime behavior. That's
extension-and-user-workspace.
Failure modes (4)
- A spec can instantiate a topology but not the workflow or operating mode needed to use it. Topology is necessary but not sufficient — workflow and operating mode must be declared too.
- A shared spec depends on local paths or hidden startup fragments and fails on another host. Specs must be self-describing for portability.
- Agents modify specs as one-off files instead of preserving reusable user/library intent. Specs are reusable; treating each instance as one-off destroys the primitive's value.
- Validation proves YAML shape but not whether the declared topology can actually run. Structural validation is not enough; runtime realization is the real proof.
Proof standard
Proof should:
- Author a spec
- Validate it (structural)
- Install it (into spec library)
- Instantiate it on a clean OpenRig environment
- Show both structural validation AND runtime realization
Validation alone is insufficient.
Spec / bundle / extension boundary
| Concept | Declares | Example |
|---|---|---|
| Spec | Topology / role / workflow shape (declarative intent) | rig.yaml, agent.yaml, workflow.yaml |
| Bundle | Spec(s) + supporting fragments packaged for shareable instantiation | A Velocity Team bundle |
| Extension | Runtime behavior added to user workspace | RigX command, custom view |
Don't conflate them. The contract should distinguish spec, bundle, and extension cleanly.
Currently shipped surfaces
OpenRig already has:
- RigSpec / AgentSpec authoring (
agent.yaml,rig.yamlformats; seeopenrig-architectskill) - Workflow specs (markdown/YAML files, daemon read-through cache via
workflow_specstable; seeworkflow-runtimeskill) - Bundle/spec command surface (
rig bundle / spec / agent / specs ls/show/preview/add/sync/remove/rename) - Spec library (filesystem-backed at
packages/daemon/specs/+~/.openrig/specs/per cli-reference.md)
Not yet shipped:
- Spec library lifecycle (validation, sharing, upgrade) treated as a first-class primitive
- Cross-host spec sharing
- Marketplace / public registry
See also
openrig-architectskill — RigSpec / AgentSpec authoring disciplineworkflow-runtimeskill — workflow spec authoring + transactional-scribe contractrig-bundles-and-shareable-artifactsskill — bundle is the packaged form of specsextension-and-user-workspaceskill — extensions add runtime behavior; specs declare intentopenrig/docs/reference/rig-spec.md(product reference doc) — RigSpec format specificationopenrig/docs/reference/agent-spec.md(product reference doc) — AgentSpec format specification
常见问题
这项技能能在 OpenRig 之外使用吗?
不能。它是为 OpenRig 设置文件编写的,例如 rig 规格和智能体规格。
我可以把设置文件分享给别人吗?
可以。这项技能围绕他人也能使用的设置文件设计,而不是只能在你自己电脑上运行的笔记。
使用它需要懂 YAML 吗?
不太需要。智能体会处理文件格式,但你在分享之前仍应检查它写的内容。
详情
作者的原始描述
Use when authoring rig specs, agent specs, workflow specs, startup/context fragments, operating-mode declarations, or designing the user spec library. Covers the 4 failure modes (spec instantiates topology but not workflow/mode; spec depends on local paths and fails on another host; agents modify specs as one-off files instead of preserving reusable intent; validation proves YAML shape but not whether topology can run) and the validation-vs-runtime-realization distinction.
repo: mvschwarz/openrig
热度
- GitHub 星标
- 8.6k
- 排名
- #12413
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-operated-software
8.6k帮你的智能体设计、构建或调试一个后端包含 AI 智能体的持续运行应用,例如基于 Markdown 或 JSON 的智能体控制层。
agent-operated-workflows
8.6k帮你的智能体判断一个有边界的流程应由 AI 智能体还是普通代码执行,并基于已验证的证据从中断处恢复。
applying-a-permission-policy
8.6k帮你的智能体在团队设置时配置 AI 编程智能体使用的命令权限,让常规命令减少审批提示。
claude-compaction-restore
8.6k帮助 Claude Code 智能体在上下文被压缩后,借助保存的恢复图、对话记录和它改动过的文件,重建工作认知。