capsule-forge
它能做什么
这项技能指导为 Unicity AOS 智能体构建和修复新能力,例如胶囊、技能和插件。适合扩展智能体系统、并希望选择正确构件类型的开发者。
适用场景
- ✓当你需要智能体获得一项运行代码的新能力的时候。
- ✓当你需要在技能、胶囊、harness 或插件之间为某项工作做出选择时。
- ✓当现有的胶囊需要被理解、修复或扩展时。
技能链接
https://github.com/unicity-aos/aos-ce/blob/main/capsules/capsule-forge/src/skills/capsule-forge/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我希望我的智能体能够检查我们服务器的状态。这应该做成技能还是胶囊?请帮我构建它。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体首先选择最小而持久的方案,然后加载构建手册中所需的章节。在构建过程中,它会处理能力、访问规则和安装步骤。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Build naturally on Unicity AOS
Unicity AOS is the operating system for agents. Astrid Runtime supplies the sandbox, typed IPC, principal scope, capability enforcement, metering, and audit. Intelligence belongs in user space: instructions, skills, memory, harnesses, capsules, providers, connectors, and their composition.
Forge is the construction workbench. Use it when work needs a new executable ability or when an existing capsule must be understood, repaired, or extended.
Start with the artifact, not the code
Choose the smallest durable answer:
- discover or configure an existing ability;
- remember a fact or standing preference;
- write a Skill for reusable reasoning or procedure;
- improve harness code for context, retrieval, planning, or recovery;
- compose existing typed services;
- build a capsule for new governed executable behavior;
- add an optional worker only when the host supports it and durable independent work makes it useful;
- add a host plugin only for client-native discovery, hooks, commands, or MCP adaptation.
Load the meta-harness Skill when the opportunity arose proactively from real
work or the agent is improving its own user-space world.
Load the manual progressively
Call forge_guide with no topic to list the exhaustive author manual. Then load
only the chapters required by the current decision. A host plugin may vendor
the same chapters under references/<topic>.md; use that offline snapshot when
the Forge tool is unavailable.
| Topic | Load when |
|---|---|
foundations |
choosing an artifact or explaining AOS versus Astrid, capsules, harnesses, and plugins |
workspace |
deciding where source belongs on this machine or in a repository |
capsule |
writing Rust macros, SDK calls, lifecycle hooks, state, or principal-scoped behavior |
manifest |
authoring any Capsule.toml section or packaged asset |
capabilities |
selecting or reviewing host authority and VFS scope |
ipc |
tools, topics, wildcard matching, handlers, fan-out, middleware, layering, or priority |
wit |
imports, exports, typed payloads, providers, or a new contract |
skills |
shipping instructions, progressive references, precedence, or a host plugin |
authority |
deciding whether to draft, install, replace, grant, persist, or activate |
build |
scaffold, check, build, install, test, diagnose, upgrade, remove, or release |
security |
adversarial review, failure behavior, limits, isolation, or evaluation |
meta-harness |
building a proactive self-extension loop from the ground up |
Do not claim the compact Skill is the whole manual. Forge's guide chapters are the authoritative detailed path. Host-plugin references are a distribution snapshot, not mutable runtime state or a machine-specific source location.
Default capsule workflow
- Inspect repository instructions, the current workspace, installed capsules, relevant Skills, and existing WIT/topic contracts.
- Load
foundationsandworkspace; choose the owning repository or an isolated candidate workspace. - Scaffold with
aos capsule new <name> [--path <parent>]orscaffold_capsule. - Load
capsule,manifest, and the exact boundary chapters needed. - Implement one cohesive capability. Validate untrusted data at its edge.
- Use
suggest_capabilitiesas a draft, narrow every scope, then callvalidate_manifestand runaos capsule check. - Run formatting, compile checks, unit/integration tests, and denied-path tests proportional to the extension.
- Build an installable artifact with
aos capsule build. - Load
authority, present the exact authority delta, and install/grant only through authority the user or operator actually supplied. - Exercise it in the real harness, observe traces, and preserve what worked.
Portable source placement
Follow the current repository's established capsule layout. For a standalone
project, aos capsule new writes under the current directory by default and
--path selects a parent.
If an agent proactively creates a candidate and no durable owner can be inferred, use an isolated writable scratch directory or worktree. Build and evaluate there, then ask where it should live before moving, committing, installing, or publishing it when that choice changes user scope.
Never develop inside an installed runtime tree or plugin cache. Never hardcode a particular user's home or repository path.
Authority model
Keep these states dist
常见问题
什么是胶囊?
胶囊是一个小型的受管程序,在系统的沙箱中运行,负责处理特定的工作。
我需要写代码吗?
做胶囊通常需要。技能可以只是纯文字指令。
手册是什么?
它是一组章节,智能体会按需加载,而不是一本很长的指南。
详情
作者的原始描述
Author and debug Unicity AOS capabilities from zero. Use when choosing between a Skill, harness, capsule, composition, worker, or host plugin; creating or locating capsule source; writing Rust SDK code, Capsule.toml capabilities and IPC ACLs, WIT contracts, shipped Skills, installable artifacts, or Forge workflows; reasoning about priority/layering, installation, grants, consent, or portable activation.
repo: unicity-aos/aos-ce
热度
- GitHub 星标
- 8.5k
- 排名
- #12452
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/22
评论
- …