marionette
它能做什么
这项技能帮助智能体找到与应用中已有版本相匹配的 Marionette.js 指南。它适合构建、调试或升级使用 Marionette 的应用的开发者。
适用场景
- ✓当你正在调试或修改现有的 Marionette 应用时。
- ✓当你想把 Marionette v4 应用升级到 v5 的时候。
- ✓当你需要与项目所用 Marionette 版本相对应的文档时。
技能链接
https://github.com/marionettejs/marionette/blob/master/plugins/marionette/skills/marionette/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“你能帮我调试我的 Marionette 应用,并确保使用的是与我已安装版本对应的文档吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会对项目运行附带的定位脚本,该脚本只读取包信息,不运行应用代码。然后它会遵循与匹配版本一同发布的指南。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Marionette applications
Run node <skill>/scripts/locate.mjs --project <application-directory>, replacing
<skill> with this skill directory. It reads package metadata without importing
application code. Use --package-root <physical-directory> for an external store.
Read the returned skillPath and follow that installed skill. Use its scripts and
package-relative documentation, so instructions match the application version.
The plugin version identifies this loader, not the framework release. For framework
changes, follow that repository's guidance.
If the result identifies backbone.marionette 4.x, preserve its v4 contracts while
working on the existing application. For an upgrade, choose an exact v5 target and
read that target's packaged migration guide; do not interpret v5 instructions as
v4 APIs. Older releases require their own version-specific guidance. If both packages are installed, determine which entrypoint the feature
imports before selecting its guidance. Do not install or upgrade dependencies just
to obtain a skill unless the task authorizes it.
If an installed release has no packaged skill, use its own documentation or obtain its exact release/source revision. For a new project, select the intended release before loading guidance. Do not substitute this repository's current docs.
The plugin also connects the hosted documentation MCP. Read marionette://catalog
and compare its package version and source revision with the installed artifact.
Use installed documentation when they differ. Where present, the installed
docs/tooling.md#hosted-documentation-mcp explains the request identity protocol.
常见问题
它会运行我的应用代码吗?
不会。定位脚本只读取包元数据,不导入应用代码。
如果我的版本没有附带技能怎么办?
该技能要求使用该版本自身的文档,或其确切的源代码修订版本。
它会安装新的依赖吗?
除非任务授权,否则不会。它不会为了获得技能而升级包。
详情
作者的原始描述
Find installed Marionette guidance for application development, debugging, and v4 migration.
repo: marionettejs/marionette
热度
- GitHub 星标
- 7.0k
- 排名
- #13694
- 许可证
- MIT
- 更新时间
- 2026/11/1
评论
- …