capsule-forge

用于从零开始编写和调试 Unicity AOS 功能。适用于在 Skill、harness、capsule、composition、worker 或 host plugin 之间进行选择;创建或定位 capsule 源码;编写 Rust SDK 代码、Capsule.toml 功能配置和 IPC ACL;定义 WIT 合约;开发可发布的 Skill、可安装构件或 Forge 工作流;以及推理优先级/分层、安装、授权、用户同意或便携式激活等问题。

仓库最近推送
GitHub Stars
8,458
Forks
26
Issues / PRs
38

预览截图

来自skillπ 实验室的展示

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "capsule-forge":https://skillpi.com/zh/skills/deepskill-f323f597c02a98a98a2c52b5e447b1e3c9a58a2015b70efe3246c03ad6bc8342。安装前核对上游来源和版本:https://github.com/unicity-aos/aos-ce。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

用于从零开始编写和调试 Unicity AOS 功能。适用于在 Skill、harness、capsule、composition、worker 或 host plugin 之间进行选择;创建或定位 capsule 源码;编写 Rust SDK 代码、Capsule.toml 功能配置和 IPC ACL;定义 WIT 合约;开发可发布的 Skill、可安装构件或 Forge 工作流;以及推理优先级/分层、安装、授权、用户同意或便携式激活等问题。

0 下载

介绍来源: third_party · unicity-aos · 0.0.1 参考来源

SkillPi 解读

能完成的任务
作者和调试Unicity AOS能力从零. 在技能、使用、胶囊、组成、工人或主机插件之间选择时使用;创建或定位胶囊源;编写 Rust SDK 代码、 Capsule.toml 容量和 IPC ACLs、 WIT 合同、 运出技能、可安装文物或 Forge 工作流程; 关于优先级/优先级、安装、授予、同意或便携式激活的推理。
适合谁
来源文档未说明。
输入和输出
来源文档未说明。
软件、账号及付费要求
来源文档未说明。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: capsule-forge
description: 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.

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

  1. Inspect repository instructions, the current workspace, installed capsules, relevant Skills, and existing WIT/topic contracts.
  2. Load foundations and workspace; choose the owning repository or an isolated candidate workspace.
  3. Scaffold with aos capsule new <name> [--path <parent>] or scaffold_capsule.
  4. Load capsule, manifest, and the exact boundary chapters needed.
  5. Implement one cohesive capability. Validate untrusted data at its edge.
  6. Use suggest_capabilities as a draft, narrow every scope, then call validate_manifest and run aos capsule check.
  7. Run formatting, compile checks, unit/integration tests, and denied-path tests proportional to the extension.
  8. Build an installable artifact with aos capsule build.
  9. Load authority, present the exact authority delta, and install/grant only through authority the user or operator actually supplied.
  10. 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 distinct:

idea -> source candidate -> compiled artifact -> installed capsule
     -> principal grant -> per-action consent -> observed result

If the user asked for implementation, reversible source edits and compilation inside the authorized workspace are normal work. Proactive agent judgment can also create an isolated candidate when consistent with the user's standing instructions.

Generated code does not self-promote. Installation, replacement, persistent principal grants, broader capability/ACL changes, external effects, publishing, and memory changes still require the authority supplied by the user, AOS, and operator policy.

Before activation, name the actual capability paths/domains/binaries/endpoints, publish and subscribe topics, imports/exports, install hooks, secrets, host processes, persistence, uplink, identity, prompt-injection changes, and any separate host-plugin or user-space Skill changes.

Non-negotiable capsule boundaries

  • Target wasm32-unknown-unknown, not WASI.
  • Use astrid-sdk; host effects cross audited astrid:* WIT boundaries.
  • Treat [publish] and [subscribe] keys as enforced ACLs.
  • Read caller identity from kernel-stamped context, never a payload claim.
  • Keep environment, home paths, secrets, and state principal-scoped; do not cache them globally.
  • Build .capsule archives with aos capsule build; raw WASM is not installable.
  • Keep Skills out of Capsule.toml. Distribute trigger instructions through the host plugin or an agent-level Skills service; expose capsule-owned detailed guidance over IPC when appropriate.
  • Use Deny, not an ordinary error, when ordered policy middleware must stop a request.
  • Keep public WIT changes in the canonical contract/RFC workflow.

Layering warning

Priority is not just sort order. Equal-priority matching handlers use independent concurrent fan-out. If any priorities differ, all matches become an ordered middleware chain. In that chain lower priorities run first, Continue can transform the next payload, Final and Deny stop, and ordinary errors continue. Load ipc before setting any priority.

Tools

  • forge_quickstart: smallest compiling tool-capsule path.
  • forge_guide: exhaustive, progressively loaded author chapters.
  • meta_harness_quickstart: compact proactive world-extension loop.
  • scaffold_capsule: complete starter files as a path/content map.
  • explain_interface: inspect installed WIT by filename or declared interface.
  • suggest_capabilities: candidate manifest scopes from an intent.
  • validate_manifest: lint common manifest and tool-bus errors.
  • capsule_doctor: diagnose installed wiring and unsatisfied imports.

Use the tools to inspect and construct. Use tests and AOS authority to decide whether the result is correct and may become active.

版本历史

  1. 2026.10.1 GitHub ↗
    原版更新说明

    Unicity AOS Community Edition 2026.10.1. This product release bundles Astrid Runtime v2026.10.1. The exact runtime release identity, WIT commit, and compatibility pins are published in `runtime-compatibility.toml` and in every archive's `release-manifest.json`. The release also contains the 22 signed, installable capsule artifacts selected by Community Edition. Published `astrid-capsule-*` identities remain unchanged. Install this exact release: ```sh curl --proto '=https' --tlsv1.2 -fsSL https://aos.unicity.ai/install.sh | sh -s -- --version 2026.10.1 ``` Moving channel installs change only after a separate protected promotion. ### Fixed - Run approved shell commands with Bash when available and POSIX `sh` on minimal hosts without Bash, including Alpine. Foreground and background commands keep their existing approval and sandbox boundaries. - After installing on Linux, run the packaged runtime's host setup check and report missing native prerequisites as an installation failure with recovery instructions. Keep the installed package available for repair and retry. - Bundle Astrid 2026.10.1 with its native runtime-media isolation, Linux multi-user startup, host setup, workspace rename and Apple Node repairs.

  2. 2026.10.0 GitHub ↗
    原版更新说明

    Unicity AOS Community Edition 2026.10.0. This product release bundles Astrid Runtime v2026.10.0. The exact runtime release identity, WIT commit, and compatibility pins are published in `runtime-compatibility.toml` and in every archive's `release-manifest.json`. The release also contains the 22 signed, installable capsule artifacts selected by Community Edition. Published `astrid-capsule-*` identities remain unchanged. Install this exact release: ```sh curl --proto '=https' --tlsv1.2 -fsSL https://aos.unicity.ai/install.sh | sh -s -- --version 2026.10.0 ``` Moving channel installs change only after a separate protected promotion. ### Added - Add a shared software-update inventory to Command Center and `aos console`, with signed-channel checks, explicit candidate-bound AOS/Oracle installation, per-item failures, and honest activation status. Principal-scoped capsule discovery keeps distribution-managed capsules out of independent updates. - Expand the canonical Oracle event and policy-routing surface so host adapters can forward native client events through the same AOS hook adapter. Client recognition and protocol translation remain in Oracles, not AOS or Astrid. ### Changed - Treat Finder/FSKit mounting as optional on Darwin. Product install no longer fails closed when the host is older than the bundled `AstridFS.app` `LSMinimumSystemVersion` (currently 26.0); native volume mounts still require that minimum and extension approval. - Skip copying `AOS Command Center.app` into `~/Applications` when the host is older than the tray bundle `LSMinimumSystemVersion` (currently 13.0). The CLI still installs; the app remains in the release `share/` directory. ### Fixed - Reapply or recover the bundled distro after a product/runtime upgrade by verifying the retained signed distro and checking the prior receipt under the same signing key and principal; failed applies preserve the prior receipt. Distro Apply requires the selected packaged runtime and refuses foreign runtime overrides before dispatch. - Both AOS version commands identify the product and bundled Astrid runtime. Automatic update checks follow the installed release train and never advertise an older stable release as an upgrade. - Reuse authenticated installer downloads and intact installations, repair missing or mode-damaged managed files, and report progress on slow transfers. Retain the verified Sigstore tool across authenticated installer handoffs. - Recover a crashed console's identity-linked approval socket under an exclusive owner lock, without replacing live consoles or unattributed sockets. - Reclaim an interrupted installer's same-version release staging and backup directories after a successful retry, preserving live owners and backups that have not been superseded. - Wait for the native hook adapter to become ready after a cold runtime start before routing the first host hook. - Return authenticated nested provider failures promptly, including tool calls resumed after approval, and allow healthy calls to continue on the same connection. Older runtimes retain bounded timeout compatibility. - Select the product runtime workspace consistently when starting or attaching from different project directories, without changing relative file arguments or the agent's MCP project context. Requires the corresponding Astrid daemon workspace selector in the bundled runtime. - Preserve authenticated policy decisions across the Oracle relay instead of treating context text as a blocking decision. - Batch fast provider text while preserving ordered delivery and reject stale turn replies after cancellation or replacement. - Select the product workspace for principal discovery instead of accidentally inspecting the caller's unrelated project layout. - Keep cold MCP tool discovery open through its bounded collection deadline, including providers delayed behind other capsule calls. Warm cached discovery stays immediate; receive failures are reported instead of called complete. - Grant the default CE fleet during the first `astrid init` instead of spawning a second runtime CLI after capsules are installed. - Do not mistake regular Finder `.DS_Store` metadata for unfinished runtime shutdown; genuine leftover state and redirected entries still block confirmation. - Support Apple-ID app-specific-password notarization for Command Center release signing; retain API-key and keychain-profile support in the helper.

  3. 2026.9.3 GitHub ↗
    原版更新说明

    Unicity AOS Community Edition 2026.9.3. This product release bundles Astrid Runtime v2026.9.4. The exact runtime release identity, WIT commit, and compatibility pins are published in `runtime-compatibility.toml` and in every archive's `release-manifest.json`. The release also contains the 22 signed, installable capsule artifacts selected by Community Edition. Published `astrid-capsule-*` identities remain unchanged. Install this exact release: ```sh curl --proto '=https' --tlsv1.2 -fsSL https://aos.unicity.ai/install.sh | sh -s -- --version 2026.9.3 ``` Moving channel installs change only after a separate protected promotion. ### Added - Add `aos console` on Unix: a keyboard/mouse Command Center for permission decisions and masked private input. Connected console approvals return prompt pending MCP results with directions to the correct local or remote AOS home; a read-only status tool retrieves the original result without replaying work. - Add a developer-preview macOS AOS menu-bar app with permission dialogs, typed private-input forms, runtime overview, searchable capsule inventory and owned-principal selection. Explicit local setup pairs a dedicated responder; disconnection and cancellation never approve. - Package Darwin `share/AOS Command Center.app` from `AOS_COMMAND_CENTER_APP` and copy it unchanged into both the immutable release directory and the current user's Applications directory when present. The installer opens the stable app, it registers as a login item, and `aos start`/`restart` plus Oracle-facing `aos mcp serve` sessions reopen it so native approval and input requests have a visible presenter. Archives without the member still install. Developer preview builds are not packaged GO. - Intercept modern MCP `input_required` results in `aos mcp serve` native, auto (when the client lacks forms), and deny modes. The original `tools/call` is resumed to the runtime with echoed `requestState`; incomplete results stay off the host stream. - Optional `aos mcp serve --interaction-socket PATH` for native tray presentation over a same-user Unix socket. Requires `--interaction native` and does not fall back to AppKit or the MCP host. The tray prompt deadline defaults to 120 seconds via `--interaction-timeout` and is distinct from `--request-timeout`, which is forwarded to the runtime. - Bound native MRTR tracking with `--max-in-flight-calls` (default 32) and `--max-input-rounds` (default 8). Excess unique calls fail closed without dropping already-tracked requests. Exhausted input rounds complete the tracked call, return a JSON-RPC internal error to the host, and cancel the runtime request. ### Fixed - Repair permissions in existing legacy `runtime/secrets`, `runtime/home`, and `runtime/cow` trees during upgrade so pre-2026.9 homes satisfy Astrid's owner-only private-root contract without creating or following unsafe entries. - No-args AOS Tray launch binds the current user's `~/.aos/bin/aos` and `~/.aos`, or a valid absolute `AOS_HOME`, instead of leaving Finder launches unable to inventory or set up native input. `PATH` search, app-adjacent binaries, and silent pairing remain out of scope. - Failed native-input setup now removes only files this attempt created and refuses preexisting device-key sidecars instead of deleting them. A successful pairing redeem is not rolled back in the daemon. - Native-input setup canonicalizes macOS `/tmp` home aliases before pairing and binds setup receipts to the requested principal and expected connection path. - Bind MCP tool results to the kernel-stamped identity selected during tool discovery as well as the call ID, including calls resumed after approval. - Preserve partial MCP frames when bidirectional reads are interrupted, rather than discarding the already-read prefix before the next read. - Return locally handled MCP approval replies to the requesting runtime, rather than emitting them to the agent host and leaving the runtime waiting. - Fail `aos mcp serve` closed when a native-tracked `tools/call` reuses an in-flight JSON-RPC id or is malformed, instead of forwarding it and resuming the original call.

  4. 2026.9.2 GitHub ↗
    原版更新说明

    Unicity AOS Community Edition 2026.9.2. This product release bundles Astrid Runtime v2026.9.2. The exact runtime release identity, WIT commit, and compatibility pins are published in `runtime-compatibility.toml` and in every archive's `release-manifest.json`. The release also contains the 22 signed, installable capsule artifacts selected by Community Edition. Published `astrid-capsule-*` identities remain unchanged. Install this exact release: ```sh curl --proto '=https' --tlsv1.2 -fsSL https://aos.unicity.ai/install.sh | sh -s -- --version 2026.9.2 ``` Moving channel installs change only after a separate protected promotion. ### Changed - Bundle Astrid 2026.9.2, adding optional authenticated MCP Streamable HTTP transport and honoring the selected workspace configuration for that transport. Existing stdio host integration and Community capsule selection are unchanged. - Update the exact runtime and client-library pins while retaining GNU, musl, and macOS filesystem providers and authenticated runtime metadata.

  5. 2026.9.1 GitHub ↗
    原版更新说明

    Unicity AOS Community Edition 2026.9.1. This product release bundles Astrid Runtime v2026.9.1. The exact runtime release identity, WIT commit, and compatibility pins are published in `runtime-compatibility.toml` and in every archive's `release-manifest.json`. The release also contains the 22 signed, installable capsule artifacts selected by Community Edition. Published `astrid-capsule-*` identities remain unchanged. Install this exact release: ```sh curl --proto '=https' --tlsv1.2 -fsSL https://aos.unicity.ai/install.sh | sh -s -- --version 2026.9.1 ``` Moving channel installs change only after a separate protected promotion. ### Changed - Bundle Astrid 2026.9.1 for initialization, resumed grants, durable capsule preservation across shutdown, clean daemon retirement, and native capsule subprocess input fixes. GNU, musl, and Darwin keep their filesystem providers. ### Fixed - Allow Community and Oracle host setup without an OpenAI API key. Provider credentials can be configured when needed; host MCP tools do not require them. - Read principal-scoped loaded capsule metadata for system inspection instead of an obsolete private capsule directory. Shared executable hashes remain references; missing metadata is reported instead of silently omitted.

此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值78/100

亮点

  • 面向 Unicity AOS 开发者提供从零构建 capsule 的完整工作流指导
  • 涵盖架构选型、源码组织、Rust SDK、WIT 合约、权限模型等深度内容
  • 具有明确的垂直领域实用价值
触发精准92/100

亮点

  • 触发词精准覆盖多种技术场景(capsule/composition/WIT/IPC 等)
  • 边界清晰,无歧义或重叠风险
结构规范94/100

亮点

  • 十步工作流结构清晰,含出口条件和端到端示例
  • frontmatter 完整,文档组织良好
执行可靠91/100

亮点

  • 工具来源明确,参数正确
  • 覆盖权限模型、分层警告等关键异常场景
  • 不可逆操作有用户授权确认机制
证据可验 (前四项均值)89/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

来源文档未说明。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。