跳到正文
Skillpedia
网站与界面(前端)7.0k · #13695

marionette

它能做什么

这项技能指导使用已安装包中附带的文档开发 Marionette v5 应用。它适合构建视图、测试交互,或决定数据与生命周期如何处理的开发者。

适用场景

  • ✓当你正在构建第一个 Marionette v5 视图的时候。
  • ✓当你需要测试 Marionette 应用中的交互、就绪状态或销毁过程时。
  • ✓当你需要把现有应用从其他 UI 框架迁移到 Marionette 时。

技能链接

https://github.com/marionettejs/marionette/blob/master/skills/marionette/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/marionettejs/marionette/blob/master/skills/marionette/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我正在构建一个 Marionette v5 视图,想为按钮绑定点击处理函数。你应该参考哪些文档?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会找到已安装的 Marionette 包,读取其版本,并打开与任务相匹配的打包页面,例如 DOM 事件绑定或测试指南。它不依赖当前网站。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Marionette applications

For application work, locate marionette/package.json with Node's require.resolve from the application workspace and read its version. For rendering, observation or persistence changes, check the configured renderer or data provider. For framework changes, follow repository guidance.

Choose one task or exact API section below directly from the installed package. Documentation paths are relative to that package, not this skill. Follow additional references when the task needs them. If docs are absent, obtain the exact release or known source revision; do not substitute current website contracts.

<!-- task-routes:start -->
Task Packaged page
Install and render a first View docs/quick-start.md
Migrate from another UI framework docs/guides/framework-migration.md
Migrate an existing v4 application docs/guides/migration.md
Test interaction, readiness, or teardown docs/guides/testing.md
Choose ownership and lifetimes docs/architecture.md
Bind a DOM event or trigger docs/api/shared/view-bindings.md#dom-events
Read or rebind named DOM elements docs/api/shared/view-bindings.md#ui-bindings
Edit a model or retain a draft docs/guides/local-editing.md
Prepare, start, restart, or stop a feature docs/api/application.md
Restart while retaining a draft or shell docs/guides/retained-restart.md
Enhance existing markup docs/guides/existing-html.md
Embed a feature in another UI docs/guides/existing-ui.md
Connect URLs and destination lifetimes docs/guides/routing.md
Show, replace, or retain child UI docs/api/region.md
Render, filter, or sort repeated children docs/guides/lists.md
Share observable data and state docs/api/shared/state.md
Connect events and clean up subscriptions docs/api/shared/events.md
Connect channels and request/reply handlers docs/packages/radio.md
Configure a renderer or another data layer docs/api/runtime.md#choose-a-configuration-scope
Write typed options, handlers, or lifecycle hooks docs/guides/typescript.md
Check types, lint, or diagnose a failure docs/tooling.md
Integrate an imperative control docs/guides/widgets.md
Check keyboard, focus, or rendering safety docs/guides/accessibility-rendering.md
Build and deploy an application docs/guides/production.md
Apply the concepts in a composed feature docs/records.md
<!-- task-routes:end -->

Apply and verify

Local interaction can stay in a View. An asynchronous call alone does not require an Application. A View may save its own model if the configured data layer supplies it; optional @mnjs/data supplies observation, with fetching and persistence provided separately, and does not supply Model.save().

Application preparation establishes readiness. Use restart to prepare new data while retaining a running feature; commit the prepared result in onStart and construct retained UI once. Use explicit operations for ongoing work that has a separate lifetime. Coordinate shared decisions at their owning lifetime. Use docs/architecture.md when choosing ownership. Verify changed interaction, replacement, cancellation or teardown as relevant; distinguish executed checks from source inspection.

Optional lookup

Read Markdown directly, or run node <skill>/scripts/docs.mjs --section docs/path.md#heading-anchor from the application directory. Replace <skill> with this skill directory and use a section link from the docs or a returned lookup ID. --page SOURCE --section 'Heading' reads a named section. Use --symbol Export.member for signatures and primary section IDs in primarySections, --search 'query' for an unknown location, or --page SOURCE for a full page. --list is optional page discovery. External package stores need --package-root <physical-directory>. The helper verifies installed documentation hashes and reports version/revision.

Only when using the plugin's hosted connection, follow the installed docs/tooling.md#hosted-documentation-mcp identity checks. Installed Markdown remains authoritative. The copied skill works without MCP.

常见问题

文档来自哪里?

该技能读取已安装 Marionette 版本中打包的文档。

如果文档缺失怎么办?

该技能要求获取确切的发布版本或源代码修订版本,而不是使用当前网站。

它涵盖从 v4 迁移吗?

涵盖。它包含一条用于迁移现有 v4 应用的任务路径。

详情

作者的原始描述

Build, debug, review, or test Marionette v5 applications using their installed, version-matched documentation.

repo: marionettejs/marionette

热度

GitHub 星标
7.0k
排名
#13695
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能