AGENTS.md@packages/pluginsA

AGENTS.md@packages/plugins 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/plugins/AGENTS.md@git:20261014.fd1144b

Pins git:20261014.fd1144b 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/plugins/AGENTS.md
Versions recorded
5
Latest version
git:20261014.fd1144b, committed Oct 14, 2026
First version recorded
Sep 18, 2026
Size
16,416 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

# Plugin Development Rules

本目录中的包统一属于仓库根 workspace。创建或修改以下内容时,必须遵守本文件:

- `plugin-sdk/`:插件运行时 API 和类型契约。
- `plugin-vite/`:插件 Vite、Module Federation 和 zip 打包工具。
- `presets/<id>/`:随 Astravia Desktop 发布的系统插件。
- `externals/<id>/`:不随 App 打包、供用户安装的外置插件。
- `tenants.json`:按业务租户划分系统插件的打包清单(见下)。

修改子目录文件前仍需继续读取更具体的同级或下级说明文件(如存在)。

## 相关文档

- [Module Federation 共享依赖约定](./docs/module-federation.md):说明 `astraviaPluginFederation` 的宿主共享依赖、构建期本地依赖要求、顶层求值限制和验证方式。

## 改动对外合同时必须同步文档

**判据**:改动会不会让仓库外的插件作者写出不一样的代码?会,就落在本节。包括
`plugin-sdk` 的公开类型与 manifest Schema、`plugin-vite` 的构建约定、宿主对清单字段的解析行为、
以及 `plugin-cli` 的命令与输出。纯内部重构、仓库内 preset 的业务逻辑不算。

漏同步的代价不对称:**仓库外的作者只能看到手册**。代码合上了而手册没跟上,他们会照着旧手册写出
编译不过、或者能编译但装不上的东西,而且这种错误只在别人机器上复现。

### 唯一真源:`docs/plugin/`

手册写在仓库根的 `docs/plugin/`,**不要在别处维护副本**。它有两个自动出口:

| 出口 | 机制 | 到达谁 |
| --- | --- | --- |
| npm tarball | `plugin-sdk/scripts/bundle-docs.mjs` 在 `plugin-sdk` 的 `build` 里跑,把整个目录拷进包 | 插件工程的 `node_modules/@astravia-org/plugin-sdk/docs/`,由 `astravia-plugin-cli docs` 解析 |
| 插件工作台 | 工作台内置 `plugin-cli`(`bundle-cli.mjs`),由它解析上面那份 | 工作台里开发的插件 |

两条都是构建期自动的,**不需要手工拷贝**。改 `docs/plugin/` 就够了。

### 一次对外合同改动要动的东西

按顺序过,缺一项都会让作者在某个环节卡住:
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add maomaochong-ai/open-astravia/packages/plugins/AGENTS.md@sha256:89e37d94039f77da

The line at the top of this page pins the label git:20261014.fd1144b, 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_hiovso33ar5rnvnd.svg)](https://markdownregistry.com/a/art_hiovso33ar5rnvnd)

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

Versions

The registry has recorded 5 versions of this file, between Sep 18, 2026 and Oct 14, 2026, about one every 7 days.

versioncommittedcommitsizeaudit
git:20261014.fd1144b latest2026-10-14 fd1144b 16,416 BA view · diff
git:20261008.acb56542026-10-08 acb5654 16,323 BA view · diff
git:20261001.0ce19112026-10-01 0ce1911 16,182 BA view · diff
git:20260919.c82cd042026-09-19 c82cd04 16,089 BA view · diff
git:20260918.31cb4cf2026-09-18 31cb4cf 16,056 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 (16416 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_hiovso33ar5rnvnd
GET https://markdownregistry.com/api/v1/resolve?ref=maomaochong-ai/open-astravia/packages/plugins/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/89e37d94039f77da347f96935abdc00215afba5319dae556cb8538eb48911550

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.