一键导入
editor-lib
Optional OTA CodeMirror 6 module for Gist userscripts. Use GME_ensureEditorLib() with profiles; do not embed cdnjs CodeMirror.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Optional OTA CodeMirror 6 module for Gist userscripts. Use GME_ensureEditorLib() with profiles; do not embed cdnjs CodeMirror.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when integrating AI or automation with MagickMonkey (Gist script CRUD via REST v1, MCP, or chat function calling). Read for auth headers, routes, and tool names.
Project architecture and process live in .ai/; read INDEX.md and context/summary.md before substantial work. Code standards live in sibling .cursor/skills/.
Enforces TypeScript/React code comment standards and JSDoc formatting requirements. Use when writing TypeScript or React code, adding comments, documenting functions, or when code review requires proper JSDoc comments.
Automatically runs code quality checks (format, lint, typecheck) after generating or modifying code. Use when writing code, generating files, or when code changes need to be validated.
Enforces test file and test case naming conventions. Use when writing tests, creating test files, or when code review requires proper test naming.
Enforces TypeScript/React function export format standards. Use when exporting functions, creating React components, writing custom hooks, or when code review requires proper export syntax.
| name | editor-lib |
| description | Optional OTA CodeMirror 6 module for Gist userscripts. Use GME_ensureEditorLib() with profiles; do not embed cdnjs CodeMirror. |
Read public/docs/editor-lib-skill.md for author rules.
const api = await GME_ensureEditorLib()
const handle = api?.create({
parent: element,
profile: 'json', // plain | json | javascript | html | css | markdown
isolated: true, // iframe for third-party pages
value: '',
onChange: (v) => {},
})
handle?.destroy()
preset-uinull — scripts must handle gracefullyprofile onlysearch-icons.ts / unplugin-icons (not hand-written SVG)pnpm run build:editor-lib
Output: editor-lib/dist/editor-lib.js + manifest.json
pnpm dev serves OTA bundles. On any injected page: Cmd/Ctrl+Shift+P → ota → DEBUG OTA: Test editor-lib — in-page panel, no /dev/ota route.
See preset/src/ui/command-palette/debug-ota.ts and editor-lib/README.md.