用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/s4wave/spacewave --skill spacewave-debug命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Optimize text copy to fit rendered UI layout using spacewave-debug eval to measure exact line breaks and eliminate orphans.
Use after completing implementation work to catch AGENTS.md violations, dead code, and issues missed during development. Run before showing results to the user.
基于 SOC 职业分类
正在显示 SKILL.md
| name | spacewave-debug |
| description | Use the spacewave-debug CLI to inspect and interact with the running page. |
Use the spacewave-debug CLI tool to inspect the running Spacewave Alpha page from the terminal.
Quick reference:
# Get page info
go run ./cmd/spacewave-debug/ info
# Evaluate JS expression (auto-returns single expressions)
go run ./cmd/spacewave-debug/ eval "document.title"
# Evaluate from file (avoids shell quoting issues)
go run ./cmd/spacewave-debug/ eval --file .tmp/script.js
# Evaluate TypeScript from file (bundles with the app aliases first)
go run ./cmd/spacewave-debug/ eval --file .tmp/script.ts
# Show exact visual line breaks
go run ./cmd/spacewave-debug/ linebreaks "h1"
# Detect typographic orphans
go run ./cmd/spacewave-debug/ orphans "p"
# Dump geometry and typography
go run ./cmd/spacewave-debug/ measure ".card"
# Check grid row height consistency
go run ./cmd/spacewave-debug/ grid-check ".grid"
# Preview text rendering (inject, measure, restore)
go run ./cmd/spacewave-debug/ preview-text "h1" "New heading"
# Watch: re-evaluate a JS file on interval
go run ./cmd/spacewave-debug/ watch --file .tmp/script.js
eval --file .tmp/script.js or eval --file .tmp/script.ts for
anything more than a short expression. Inline shell quoting gets fragile fast.return when a result is needed.@s4wave/... are available.JSON.stringify. Convert
bigint values to strings in debug scripts before exporting or returning.window.__s4wave_debug.root to access the SDK root from page context.
When using resource handles in TypeScript eval scripts, dispose only actual
resource instances. For example, mountSessionByIdx returns a wrapper object;
use const mounted = await root.mountSessionByIdx(...) and then
using session = mounted.session./p/spacewave-debug/eval/*.js and the emitted chunks in
.bldr/debug/eval/out/.