用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/neovateai/neovate-desktop --skill new-plugin命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | new-plugin |
| description | Scaffold a new Neovate Desktop plugin across main, shared, and renderer |
| disable-model-invocation | true |
| argument-hint | <plugin-name> (e.g. bookmarks, snippets) |
Create the boilerplate for a new Neovate Desktop plugin across all three processes. All paths are relative to packages/desktop/.
Create shared contract at src/shared/plugins/<name>/contract.ts:
import { oc } from "@orpc/contract";
export const <name>Contract = {
// Define oRPC contract methods here
};
Register contract in src/shared/contract.ts:
import { <name>Contract } from "./plugins/<name>/contract";contract object: <name>: <name>Contract,Create main plugin at src/main/plugins/<name>/index.ts:
import type { MainPlugin, PluginContext } from "../../core/plugin/types";
import { create<Name>Router } from "./router";
export default {
name: "<name>",
async configContributions(ctx: PluginContext) {
return {
router: create<Name>Router(ctx.orpcServer),
};
},
} satisfies MainPlugin;
Create main router at src/main/plugins/<name>/router.ts:
import type { os } from "@orpc/server";
export function create<Name>Router(orpcServer: typeof os) {
return {
// Implement contract handlers here
};
}
Register plugin in src/main/index.ts:
import <name>Plugin from "./plugins/<name>";<name>Plugin to the plugins array in the MainApp constructorCreate renderer directory at src/renderer/src/plugins/<name>/ with an initial component if needed.
Run bun check to verify everything compiles.
See src/main/plugins/terminal/index.ts for the simplest working example (22 lines).