用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/joshka0/foxctl --skill foxctl-html-edit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | foxctl HTML Edit |
| description | Precise DOM-aware HTML editing using CSS selectors for targeted modifications. |
Edit HTML precisely using CSS selectors. DOM-aware for reliable modifications.
# Query elements (read-only)
foxctl run html/edit --input '{"path": "index.html", "operations": [{"type": "select", "selector": ".feature-card"}]}'
# Insert content (before/after/prepend/append)
foxctl run html/edit --input '{"path": "index.html", "operations": [{"type": "insert", "selector": "#content", "position": "append", "html": "<section>New</section>"}]}'
# Replace element or inner HTML
foxctl run html/edit --input '{"path": "index.html", "operations": [{"type": "replace", "selector": ".hero h1", "html": "<h1>New Title</h1>", "inner": false}]}'
# Update/remove attributes (null to remove)
foxctl run html/edit --input '{"path": "index.html", "operations": [{"type": "update_attr", "selector": "a[href^=\"http\"]", "attributes": {"target": "_blank", "onclick": null}}]}'
# Delete elements
foxctl run html/edit --input '{"path": "index.html", "operations": [{"type": "delete", "selector": ".deprecated"}]}'
# Wrap elements
foxctl run html/edit --input '{"path": "index.html", "operations": [{"type": "wrap", "selector": "img", "html": "<figure></figure>"}]}'
# Unwrap (remove wrapper, keep children)
foxctl run html/edit --input '{"path": "index.html", "operations": [{"type": "unwrap", "selector": ".wrapper"}]}'
# Structure - DOM tree outline (read-only, ideal for large files)
foxctl run html/edit --input '{"path": "index.html", "operations": [{"type": "structure"}]}'
# Options: selector (start point), max_depth (default: 10)
# Extract - Get full HTML of matched elements (read-only)
foxctl run html/edit --input '{"path": "index.html", "operations": [{"type": "extract", "selector": ".hero"}]}'
# Options: include_parent (N levels), max_length (chars), limit (default: 10)
dry_run: true - Preview changes without writingnth: 1 - Target nth match only (1-indexed)limit: 5 - Max elements to affectfoxctl run html/edit --input '{
"path": "index.html",
"dry_run": true,
"operations": [
{"type": "delete", "selector": ".deprecated"},
{"type": "update_attr", "selector": "img", "attributes": {"loading": "lazy"}}
]
}'
Full docs: ~/.foxctl/share/configs/skills/foxctl-html-edit/Skill.md