用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/rodydavis/signals.dart --skill jaspr-convert-html命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | jaspr-convert-html |
| description | Use when you need to convert / rewrite existing HTML (from a file or url) into Jaspr code. |
| metadata | {"jaspr_version":"0.23.1"} |
Converting existing HTML into Jaspr component syntax by hand is prone to errors and wastes time.
jaspr convert-html command to convert existing HTML.To convert HTML to Jaspr code, run one of the following commands in the terminal depending on your source:
From a local file:
jaspr convert-html --file some/path/to/file.html
From a URL:
jaspr convert-html --url https://example.com
The resulting Jaspr code is printed directly to the console. You can then copy this code directly into your component's build method.
If you only need a portion of the HTML, you MUST use the --query option with a CSS selector to target specific elements rather than converting the whole file and deleting pieces manually.
jaspr convert-html --file some/path/to/file.html --query "#my-id"
This will only convert and output the element with the id my-id.
Tip: To convert everything inside the <body> tag but exclude the <body> tag itself, use:
jaspr convert-html --file some/path/to/file.html --query "body > *"