使用 iwsdk CLI 针对 poke 示例验证环境系统与组件配置是否正常
该技能材料本质上是用于测试环境系统的提示/文档,且声明为无密钥、无远程端点;若按元数据“prompt-only”理解,整体风险较低。需注意 README 中包含安装依赖、启动开发服务器与调用本地 CLI 的操作指引,若实际被自动执行,则会涉及本地代码执行与数据访问。
材料与元数据均表明不需要密钥或环境变量,未见要求输入账号、token 或其他敏感凭证的内容,凭证泄露面较小。
未声明任何远程端点,材料中也未明确描述向第三方服务发送用户数据;从现有事实看,没有直接的数据外发目标。
README 明确包含 `npm run fresh:install`、`npm run dev`、`npx iwsdk ...`、`sleep` 等命令,若宿主会照此执行,则会在本机安装依赖、启动进程并运行 CLI。这属于工具常规本地执行能力,需留意但仅凭此不足以上升为高风险。
文档要求在 `$IWSDK_REPO_ROOT/examples/poke` 工作区内运行,并对示例工程进行安装、重载、日志读取和 ECS 修改测试;这意味着会访问并可能修改该本地工作区数据,但未见超出声明用途的系统级过度授权描述。
来源指向 GitHub 开源仓库,源码可审计,这是降低风险的正面因素;但仓库 star 为 0、许可证未声明、维护状态未知,且材料引用 `npx iwsdk`/`npm` 依赖安装,仍存在常规依赖供应链不确定性,因此建议谨慎。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "test-environment" 技能: 1. 下载 https://raw.githubusercontent.com/facebook/immersive-web-sdk/main/.claude/skills/test-environment/SKILL.md 2. 保存为 ~/.claude/skills/test-environment/SKILL.md 3. 装好后重载技能,告诉我可以用了
请用 iwsdk CLI 基于 poke example 测试 test-environment,重点验证 default lighting 是否正确加载,并输出测试步骤、结果和异常项。
一份默认光照测试报告,包含执行步骤、通过情况与发现的问题。
请针对 poke example 运行 test-environment 测试,检查 DomeGradient 和 IBLGradient 的配置是否生效,并总结各组件的表现与差异。
一份渐变环境组件检查结果,说明两个组件是否正常工作及其差异。
请使用 iwsdk CLI 对 test-environment 做一次完整校验,基于 poke example 检查 component schemas 是否符合预期,并列出不匹配字段和修复建议。
一份 schema 校验结果,包含字段级错误、原因分析和修复建议。
Run 6 test suites covering default lighting verification, system registration, component registration, scene hierarchy, ECS data modification, and stability.
Configuration:
$IWSDK_REPO_ROOT/examples/pokeTool calls: every tool call is npx iwsdk <subcommand> [--input-json '<JSON>'] [--timeout <ms>], run from inside the example workspace (cwd $EXAMPLE_DIR). The CLI auto-discovers the IWSDK app root from cwd, so no path tricks are required. Run npx iwsdk mcp inspect from the example to discover available tools and their CLI subcommands.
<JSON> is a JSON object string. Omit --input-json if no arguments are needed.{ok, workspaceRoot, operation, result}. Parse it to check assertions.--timeout 20000 for operations that may take longer (reload, xr enter, screenshot).IMPORTANT: Run each Bash command one at a time. Parse the JSON output and verify assertions before moving to the next command. Do NOT chain multiple CLI commands together.
IMPORTANT: When the instructions say "wait N seconds", use sleep N as a separate Bash command.
IMPORTANT: Boolean values in ecs set-component must be actual JSON booleans (value: true), NOT strings (value: "true"). Strings silently fail to coerce.
cd $IWSDK_REPO_ROOT/examples/poke && npm run fresh:install
Wait for this to complete before proceeding.
Start the dev server as a background task using the Bash tool's run_in_background: true parameter:
cd $IWSDK_REPO_ROOT/examples/poke && npm run dev
IMPORTANT: This command MUST be run with run_in_background: true on the Bash tool — do NOT append & to the command itself.
Once the background task is launched, poll the output for Vite's ready message (up to 60s). You can also run npx iwsdk dev status from the example directory until state.running becomes true. You do not need to extract or manage the port yourself; subsequent commands resolve the active runtime through the CLI automatically.
If the server fails to start within 60 seconds, report FAIL for all suites and skip to Step 5.
npx iwsdk ecs systems 2>/dev/null
This must return JSON with a list of systems. If it fails:
Run these commands in order:
npx iwsdk browser reload --timeout 20000 2>/dev/null
Then: sleep 3
npx iwsdk xr enter --timeout 20000 2>/dev/null
Then: sleep 2
npx iwsdk browser logs --input-json '{"count":20,"level":["error","warn"]}' 2>/dev/null
Assert: No error-level logs.
Test 1.1: Find LevelRoot Dynamically
npx iwsdk ecs find --input-json '{"withComponents":["LevelRoot"]}' 2>/dev/null
Assert: Exactly 1 entity. Save its entityIndex as <root>.
Test 1.2: LevelRoot Has Environment Components
npx iwsdk ecs query --input-json '{"entityIndex":<root>,"components":["DomeGradient","IBLGradient"]}' 2>/dev/null
Assert: Both components present with default values:
DomeGradient defaults:
| Field | Expected Value |
|---|---|
sky | [0.2423, 0.6172, 0.8308, 1.0] (soft blue) |
equator | [0.6584, 0.7084, 0.7913, 1.0] (gray-blue) |
ground | [0.807, 0.7758, 0.7454, 1.0] (warm beige) |
intensity | 1.0 |
_needsUpdate | false (already processed) |
IBLGradient defaults:
| Field | Expected Value |
|---|---|
sky | [0.6902, 0.749, 0.7843, 1.0] (soft blue-gray — different from DomeGradient!) |
equator | [0.6584, 0.7084, 0.7913, 1.0] (same as DomeGradient) |
…
帮助开发者高效开发、调试并优化 IWSDK 的 PanelUI 界面面板。
使用 iwsdk CLI 测试抓取系统的多种交互抓取模式
在 XR 场景中定位并点击目标对象,用于验证按钮与交互元素是否正常工作
帮助规划 IWSDK 新功能、系统架构与代码模式,并提供最佳实践建议。
帮助开发者用 iwsdk CLI 测试 XR 交互与面板音频行为是否正常。
用于测试 XR 会话生命周期与模式切换,排查进入退出及状态异常问题。
使用 iwsdk CLI 对关卡层级、标签与默认灯光配置进行测试验证。
使用 iwsdk CLI 针对 poke 示例测试 UI 系统行为与兼容性。
通过 iwsdk CLI 验证 ECS 核心功能与示例运行状态,辅助快速测试排障。
使用 iwsdk CLI 对比示例场景,测试滑动、瞬转、传送与跳跃移动系统。
使用 iwsdk CLI 测试 Havok 物理系统的重力与刚体行为表现
用于逐帧调试 WebXR 场景中的物理、动画与实时交互行为。