AGENTS.md@packages/capability-runtimeA

AGENTS.md@packages/capability-runtime from maomaochong-ai/open-astravia is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add maomaochong-ai/open-astravia/packages/capability-runtime/AGENTS.md@git:20261001.0ce1911

Pins git:20261001.0ce1911 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
AGENTS.md file
Repository
maomaochong-ai/open-astravia
Path
packages/capability-runtime/AGENTS.md
Versions recorded
5
Latest version
git:20261001.0ce1911, committed Oct 1, 2026
First version recorded
Aug 11, 2026
Size
2,780 bytes
Repository stars
39
License
Apache-2.0

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Team: Capability

本文件适用于 `packages/capability-runtime/` 及其全部子目录。

## 必读文档

修改 Registry、Hub、Provider binding、Access Controller、Constraint 或审计行为前,必须先阅读:

- [`docs/registry-and-access.md`](docs/registry-and-access.md)
- [`../../docs/capabilities/README.md`](../../docs/capabilities/README.md)

## 职责范围

本包执行 `@astravia-org/capability-sdk` 定义的合同,拥有 Foundation/Domain Registry、Hub、Provider
注册与替换、AccessSession、精确 Grant、通用 Constraint、取消和审计机制。它不定义产品能力,也不实现
Desktop、Plugin、Theme 或 Action 业务。

## 边界规则

- 本包只能依赖 `@astravia-org/capability-sdk` 的通用合同,不得导入或根据 `desktop`、`plugin-sdk`、
  `theme-sdk`、Action、trust level、manifest 或系统权限名称分支。
- Runtime 可以由 main、renderer、CLI 或测试宿主实例化;部署在 renderer 不等于可以依赖 DOM、React、
  Jotai 或 Router。具体 UI/宿主行为必须由上层 Provider 实现。
- Main 与 Renderer 共享的 Runtime 路径使用 `globalThis.crypto`、`AbortSignal` 等标准 API;Node 专用模块
  和兼容逻辑留在 Host/Provider,不得重新引入通用 Runtime 执行路径。
- Capability Token 和业务 Schema 属于 `capability-sdk`;Provider 实现和组合根属于宿主;本包只拥有
  注册、路由、授权、约束求值、生命周期和调用执行机制。
- Registry 路由依据 Token 的显式 layer 和完整 ID;前缀只用于校验、检索和诊断,不得用于隐式授权。
- 新 Capability、Module 或 Provider 默认没有 Grant;不得按 publisher、domain、前缀或调用者类型自动扩权。
- Provider 注册、替换和卸载必须保持 owner 明确、原子提交、失败保留旧实现、在途调用取消和确定性释放。
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add maomaochong-ai/open-astravia/packages/capability-runtime/AGENTS.md@sha256:08904a1482547ecc

The line at the top of this page pins the label git:20261001.0ce1911, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_jdd6mqukoco2syoh.svg)](https://markdownregistry.com/a/art_jdd6mqukoco2syoh)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Aug 11, 2026 and Oct 1, 2026, about one every 13 days.

versioncommittedcommitsizeaudit
git:20261001.0ce1911 latest2026-10-01 0ce1911 2,780 BA view · diff
git:20260914.0a9ccc62026-09-14 0a9ccc6 2,774 BA view · diff
git:20260818.995e8e12026-08-18 995e8e1 2,766 BA view · diff
git:20260811.89df0a92026-08-11 89df0a9 2,770 BA view · diff
git:20260811.fa7275c2026-08-11 fa7275c 2,553 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (2780 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

maomaochong-ai/open-astravia · 39 stars · license Apache-2.0 · pushed 2026-11-01 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_jdd6mqukoco2syoh
GET https://markdownregistry.com/api/v1/resolve?ref=maomaochong-ai/open-astravia/packages/capability-runtime/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/08904a1482547ecc5db9fbfab71a5797256654c637603b0958c5e49115ca4324

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.

More from maomaochong-ai/open-astravia

astravia-testing SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/astravia-testing/SKILL.md · 为 OpenAstravia 的功能变更、Bug 修复、重构、公共合同和 UI 交互设计、编写或审查测试;在决定测试范围、补充回归测试、覆盖用户常见使用流程或评估测试质量时使用。纯文档或没有运行时行为变化的编辑不使用。
git:20261014.02ac874 · audit A · 39 stars
compose-component-design SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/compose-component-design/SKILL.md · Use when designing or reviewing reusable Jetpack Compose component APIs with modifier parameters, root layout…
git:20260928.e3f9971 · audit A · 39 stars
compose-state-and-effects SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/compose-state-and-effects/SKILL.md · Use when writing or reviewing Jetpack Compose state ownership, remember state, state hoisting, screen state holders…
git:20260928.e3f9971 · audit A · 39 stars
design-taste-frontend SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/design-taste-frontend/SKILL.md · Anti-slop frontend skill for landing pages, portfolios, and redesigns. The agent reads the brief, infers the right…
git:20260911.9951787 · audit B · 39 stars
diagnose SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/diagnose/SKILL.md · Disciplined diagnosis loop for hard bugs and performance regressions. Reproduce → minimise → hypothesise → instrument →…
git:20260922.7ea4a67 · audit A · 39 stars
expo-overview SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/expo-overview/SKILL.md · Framework (OSS). Entry point and router for every Expo or EAS task. Load this skill first — before writing code and…
v1.1.0 · audit A · 39 stars
expo-project-structure SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/expo-project-structure/SKILL.md · Framework (OSS). Folder structure for a new Expo app. Use when scaffolding or laying out a new Expo project with Expo…
v1.0.0 · audit B · 39 stars
expo-router SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/expo-router/SKILL.md · Framework (OSS). Navigation and routing for Expo Router. Covers file-based routes, groups and dynamic routes, folder…
v1.0.1 · audit A · 39 stars
find-skills SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/find-skills/SKILL.md · Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is…
git:20260901.3ee8f34 · audit A · 39 stars
frontend-design SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/frontend-design/SKILL.md · Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with…
git:20260911.9951787 · audit A · 39 stars
grill-me SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/grill-me/SKILL.md · Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of…
git:20260922.7ea4a67 · audit A · 39 stars
grill-with-docs SKILL.md skill
maomaochong-ai/open-astravia · .agents/skills/grill-with-docs/SKILL.md · Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates…
git:20260922.7ea4a67 · audit A · 39 stars

Every file in maomaochong-ai/open-astravia

Browse by kind, by grade A, or by owner.