musepi-extension-dev SKILL.md skillA
musepi-extension-dev from muselinn/musepi is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add muselinn/musepi/musepi-extension-dev@git:20261102.a583336Pins git:20261102.a583336 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- muselinn/musepi
- Path
packages/coding-agent/src/bundled-plugins/product-skills/skills/musepi-extension-dev/SKILL.md- Versions recorded
- 1
- Latest version
- git:20261102.a583336, committed Nov 2, 2026
- Size
- 8,791 bytes
- Repository stars
- 18
- License
- MIT
为 MusePi(TUI/CLI + 桌面 GUI)开发扩展——custom tools、extensions(生命周期/事件)、hooks、plugins、slash commands、skills。触发:用户要求"加个工具/扩展/命令/hook/插件"、"给 musepi 加 X 支持"、修改扩展加载机制、写 MCP 相关集成。桌面 GUI 会话(daemon)与 TUI 共享同一扩展系统,扩展天然两形态可用。.
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
# MusePi 扩展开发
扩展系统在 `packages/coding-agent/src/extensibility/`。六种形态,各有用途:
| 形态 | 是什么 | 关键文件 |
|---|---|---|
| **Custom tool** | 模型可调用的函数(execute + Zod schema) | `extensibility/custom-tools/loader.ts` |
| **Extension** | 生命周期/事件框架——可注册工具、拦截/修改事件 | `extensibility/extensions/`(loader/runner) |
| **Hook** | 外部 pre/post 命令脚本(如 tool_call 拦截) | `extensibility/hooks` |
| **Plugin** | 可安装的扩展包(`musepi.extensions` 清单,`omp`/`pi` 遗留兼容) | `extensibility/plugins` |
| **Slash command** | 斜杠命令(`/xxx`) | `extensibility/slash-commands.ts` |
| **Skill** | 静态知识包(SKILL.md) | `extensibility/skills.ts` + `discovery/builtin.ts` |
## 快速路径:最小扩展(够用 90% 场景)
写一个 TS 文件(默认导出 factory),放到 `~/.musepi/agent/extensions/<name>/index.ts`(用户级)或 `<cwd>/.musepi/extensions/<name>/index.ts`(项目级):
```ts
import type { ExtensionAPI } from "@musepi/pi-coding-agent";
export default function (pi: ExtensionAPI) {
const z = pi.zod;
pi.setLabel("My Extension");
pi.on("tool_call", async (event) => {
if (event.toolName === "bash" && /rm -rf/.test(event.input.command ?? "")) {
return { block: true, reason: "Blocked by extension policy" };
}
});
pi.registerTool({
name: "my_tool",
label: "My Tool",
…Read the whole file at its exact version.
How to install
mdr add muselinn/musepi/musepi-extension-dev@sha256:931f02ef6be43c5aThe line at the top of this page pins the label git:20261102.a583336, 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.
[](https://markdownregistry.com/a/art_qzt5q56bum2ogj6r)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Nov 2, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (8791 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
muselinn/musepi · 18 stars · license MIT · pushed 2026-11-07 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_qzt5q56bum2ogj6r GET https://markdownregistry.com/api/v1/resolve?ref=muselinn/musepi/musepi-extension-dev GET https://markdownregistry.com/api/v1/blob/931f02ef6be43c5a26cac06cbd26a8a66264c77251ba83d4e5f5c2becde6fad7
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: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.