‹ 首页

neko-plugin

@project-n-e-k-o · 收录于 昨天 · 上游提交 昨天

Work on N.E.K.O plugins end to end. Use when the user asks to create, modify, review, run, debug, inspect, document, validate, package, or reason about N.E.K.O plugins, plugin.toml, plugin SDK usage, plugin UI surfaces, plugin CLI tooling, plugin runtime behavior, or plugin system contracts.

适合你,如果需要创建、修改或调试 N.E.K.O 插件

/ 通过 npx 安装 校验哈希
npx oh-my-skill add project-n-e-k-o/n.e.k.o/neko-plugin
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- project-n-e-k-o/n.e.k.o/neko-plugin
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify project-n-e-k-o/n.e.k.o/neko-plugin
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
2258GitHub stars
~1.3K最小装载
~19.8K含声明引用
~19.8K文本包总量
索引托管

怎么用

商店整理自技能原文 · 版本 b0c3c15 · 表述以原文为准
它做什么

装上后,Claude 能处理 N.E.K.O 插件的完整生命周期:创建、修改、调试、审查、文档、验证、打包等。它会读取标准文件,使用命令行生成脚手架,仅在指定工作区内编辑代码,并自检后才输出结果。

什么时候触发

当你要求创建、修改、审查 N.E.K.O 插件,或涉及 plugin.toml、SDK 用法、UI、CLI 工具、运行时行为等时触发。

装好后可以这样说
Claude 会询问必要信息并生成结构。
Claude 会读取合约并验证。
Claude 会按流程检查状态和代码。
技能原文 SKILL.md作者撰写 · Apache-2.0 · b0c3c15

N.E.K.O Plugin

Use this as the single entry point for N.E.K.O plugin work. Keep the workflow continuous: understand the plugin contract, edit when needed, validate the result, and self-review before reporting back.

Non-Negotiables
  • Read references/execution-boundary.md before any plugin edit.
  • Read references/core-plugin-contract.md before changing plugin identity, manifest, entry code, SDK imports, UI surfaces, runtime settings, dependencies, or package type.
  • Default writable area is only plugin/plugins/<plugin_id>/.
  • Plugin workspaces live under repository-relative plugin/plugins/<plugin_id>/; read references/core-plugin-contract.md for the canonical file tree.
  • Docs, tests, examples, indexes, and platform source are read context; platform edits require explicit user request or confirmation.
  • Create standard plugin scaffolds with uv run neko-plugin init ...; do not hand-create the initial plugin directory, plugin.toml, or entry class.
  • Prefer public SDK facades: plugin.sdk.plugin, plugin.sdk.extension, plugin.sdk.adapter. Do not add new plugin.sdk.shared imports in plugin workspace code.
  • Runtime-triggered @plugin_entry handlers must be async def; plugin_runtime.auto_start=false is manual-start, not disabled or import-safe.
  • Prefer Hosted TSX for new interactive plugin UI, Markdown for read-only docs, and Static only for legacy standalone pages or unsupported browser/runtime needs.
Package Types

Choose package type from the manifest/SDK contract, not from feature vibes:

  • plugin: default independent feature. It can include entries, lifecycle/background work, timers, message handlers, UI, storage/settings, cross-plugin calls, and ordinary external API/device integrations.
  • extension: adds entries/hooks to an existing host plugin and requires [plugin.host].
  • adapter: bridges an external protocol or request stream into N.E.K.O plugin calls. Calling an external service is not enough to make something an adapter.
Unified Workflow
Create a Plugin
  1. Read references/plugin-creation-workflow.md.
  2. Ask only unresolved minimum questions: name, purpose, package type, first-version scope, and out of scope.
  3. Derive and show the Identity Lock.
  4. Present a short Plugin Design Brief.
  5. After confirmation, run the standard uv run neko-plugin init ... command.
  6. Read the generated files, add plugin/plugins/<plugin_id>/DESIGN.md, then implement only inside that workspace.
  7. Validate with the focused checks from references/plugin-checks-and-tests.md.
Modify an Existing Plugin
  1. Identify plugin_id and workspace.
  2. Read DESIGN.md if present, then plugin.toml, entry class, nearby files, and relevant tests/docs.
  3. Check the request against plugin purpose and out-of-scope boundaries.
  4. Make the smallest local change inside plugin/plugins/<plugin_id>/.
  5. Run the narrowest plugin-facing check or test that covers the change.
Debug a Plugin
  1. Read references/plugin-cli-and-debugging.md and references/plugin-checks-and-tests.md.
  2. Identify whether the plugin is running, disabled, manual-start, or load-failed.
  3. Inspect plugin.toml, entry class, local tests, logs, and DESIGN.md.
  4. Run uv run neko-plugin check <plugin_id|plugin_path> first unless the symptom clearly points elsewhere.
  5. For entry/runtime failures, verify runtime-triggered entries are async def.
  6. For UI failures, verify mode, surface permissions, running state, context/action exposure, and targeted Hosted TSX checks when relevant.
  7. Fix only inside the plugin workspace unless escalation is confirmed.
Review Plugin Work

Review plugin work as an integration contract, not only code style. Lead with findings ordered by risk.

Check:

  • Boundary: diff stays inside plugin/plugins/<plugin_id>/ unless escalation was requested.
  • Identity: folder, [plugin].id, [plugin].name, [plugin].entry, and main class express one plugin concept.
  • Manifest: plugin.toml follows the contract and uses minimum permissions.
  • SDK: plugin code uses public facades, not new plugin.sdk.shared imports.
  • UI/Permissions: surface kind and render mode are separate; Hosted TSX/Markdown/Static choice is justified.
  • Runtime/Lifecycle: entries, imports, startup, shutdown, dependencies, and auto_start semantics are safe.
  • Validation: CLI checks, focused tests, or manual trigger paths cover the changed behavior.

Use labels in review output: Boundary, Identity, Manifest, SDK, UI/Permissions, Runtime/Lifecycle, Validation.

Escalate Platform Work

If a plugin goal cannot be achieved inside plugin/plugins/<plugin_id>/, stop before editing platform code and report:

  1. The plugin-level goal.
  2. Why the plugin workspace cannot support it.
  3. The smallest out-of-bound change required.
  4. Compatibility and test impact.
Reference Map
  • references/core-plugin-contract.md: identity lock, plugin.toml, entry imports, package type, capabilities.
  • references/execution-boundary.md: write workspace, read context, and escalation rules.
  • references/plugin-creation-workflow.md: minimum questions, design brief, scaffold commands.
  • references/plugin-system-surface-map.md: SDK/API capability index; check before inventing abstractions.
  • references/plugin-cli-and-debugging.md: CLI usage and runtime/debug workflow.
  • references/plugin-checks-and-tests.md: plugin-facing checks and tests.
  • references/hosted-ui-authoring.md: Hosted UI manifest, Python context/action, TSX runtime, source limits, and validation workflow.
  • references/hosted-ui-api.md: Hosted TSX public component, hook, type, toast, confirm, and bridge API.

Do not answer plugin authoring questions from memory when the references point to repo code. Read the relevant docs, tests, indexes, and source first; keep writes local.

按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。