specification-system
Skill này làm gì
Skill này giải thích cách viết và tái sử dụng đặc tả (spec), tức các file mô tả một thiết lập lặp lại được cho một nhóm agent AI. Skill dành cho người chạy OpenRig muốn dựng lại cùng một thiết lập mà không phải gõ lại.
Khi nào nên dùng
- ✓Khi bạn muốn lưu một đội agent AI đang chạy tốt thành file để khởi động lại sau này.
- ✓Khi bạn muốn chia sẻ một thiết lập agent để người khác khởi động trên máy của họ.
- ✓Khi bạn kiểm tra xem file thiết lập có còn chạy được trên máy khác không.
Liên kết skill
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/specs/agents/shared/skills/core/specification-system/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Giúp tôi viết một file thiết lập có thể tái sử dụng cho đội agent của mình để sau này có thể khởi động lại.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent làm theo một bộ quy tắc viết file thiết lập không phụ thuộc vào thư mục của một máy tính, nhờ đó file mô tả thiết lập dự định và có thể dùng lại ở nơi khác.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Skill này có hoạt động ngoài OpenRig không?
Không. Skill được viết cho các file thiết lập của OpenRig, như đặc tả rig và đặc tả agent.
Tôi có thể chia sẻ file thiết lập cho người khác không?
Có. Skill được xây dựng quanh các file thiết lập mà người khác cũng dùng được, thay vì ghi chú chỉ chạy trên máy của bạn.
Tôi có cần biết YAML để dùng không?
Không cần lắm. Agent của bạn sẽ lo định dạng file, nhưng bạn vẫn nên xem lại nội dung trước khi chia sẻ.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 8.6k
- Vị trí xếp hạng
- #12413
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-operated-software
8.6kGiúp agent của bạn thiết kế, xây dựng hoặc gỡ lỗi một ứng dụng đang chạy có backend là agent AI, như một lớp điều khiển agent bằng Markdown hoặc JSON.
agent-operated-workflows
8.6kGiúp agent của bạn quyết định một quy trình có ranh giới nên do agent AI hay code thông thường điều khiển, và cách tiếp tục từ bằng chứng đã xác minh.
applying-a-permission-policy
8.6kGiúp agent của bạn thiết lập quyền lệnh mà agent lập trình AI dùng khi cài đặt đội, để các lệnh thông thường chạy với ít lần xác nhận hơn.
claude-compaction-restore
8.6kGiúp agent Claude Code dựng lại bức tranh làm việc sau khi ngữ cảnh bị nén, bằng một bản đồ khôi phục đã lưu, transcript và các file nó đã chạm vào.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.