Skip to main content

folio-stimulus-migration-from-legacy-js

星标10
分支2
更新时间2026年4月14日 12:36

Converts legacy front-end scripts (jQuery, global document listeners, IIFEs) to Stimulus controllers plus vanilla DOM/fetch, aligned with Folio ViewComponent patterns. Use when migrating jQuery handlers, `$(document).on`, CoffeeScript-era bundles, or ad-hoc `window.*` APIs to Stimulus; when the user asks to remove jQuery from a feature; or when adding behavior to Folio components.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

SKILL.md
readonly