Agent Skillsakeit0/okojo › okojo-node-ink-debug

okojo-node-ink-debug

GitHub

针对 Okojo.Node 引擎进行调试,通过复现、缩小范围、使用沙箱和反汇编工具分析运行时/编译器 bug,并与 Node.js 行为对比以实施精准修复。

.agents/skills/okojo-node-ink-debug/SKILL.md akeit0/okojo

触发场景

Okojo.Node 大型应用失败排查 CommonJS/ESM 兼容性调试 引擎或编译器层面的运行时 Bug 定位 需要反汇编或调试器状态分析的复杂问题

安装

npx skills add akeit0/okojo --skill okojo-node-ink-debug -g -y
更多选项

非标准路径

npx skills add https://github.com/akeit0/okojo/tree/main/.agents/skills/okojo-node-ink-debug -g -y

不安装直接使用

npx skills use akeit0/okojo@okojo-node-ink-debug

指定 Agent (Claude Code)

npx skills add akeit0/okojo --skill okojo-node-ink-debug -a claude-code -g -y

安装 repo 全部 skill

npx skills add akeit0/okojo --all -g -y

预览 repo 内 skill

npx skills add akeit0/okojo --list

SKILL.md

Frontmatter
{
    "name": "okojo-node-ink-debug",
    "description": "Debug Okojo.Node large-app failures through sandbox\/OkojoInkProbe and sandbox\/OkojoNodeDebugSandbox. Use this for Ink bring-up, reduced Okojo.Node repros, CommonJS\/ESM\/runtime compatibility debugging, debugger\/disassembly investigation, and focused regression-driven fixes."
}

Okojo.Node Ink Debug

Use this skill for work under:

  • sandbox\OkojoInkProbe
  • sandbox\OkojoNodeDebugSandbox
  • src\Okojo.Node
  • src\Okojo
  • tests\Okojo.Node.Tests
  • docs\PALE_NODE_INK_DEBUG_WORKFLOW.md

Primary goal

Move sandbox\OkojoInkProbe forward by fixing real engine/runtime/compiler bugs and missing compatibility surfaces in a disciplined order.

Prefer:

  1. correctness
  2. observability/tooling
  3. focused compatibility increments
  4. measured optimization

Core policy

Do not treat large-app failures as app-specific until reduction proves they are.

Prefer:

  • Node as the reference for Node-facing behavior
  • V8 / Node bytecode behavior when the failure looks compiler/VM related

Avoid:

  • broad speculative fixes
  • Ink-specific hacks for general runtime/compiler bugs
  • skipping the reduction step when a smaller repro is possible

Required workflow

  1. reproduce in sandbox\OkojoInkProbe
  2. reduce to the smallest JS shape possible
  3. move the reduced shape into tests\Okojo.Node.Tests when stable
  4. inspect disassembly / debugger state in sandbox\OkojoNodeDebugSandbox
  5. compare with Node behavior
  6. implement the narrow fix
  7. rerun focused regressions
  8. rerun Ink to reveal the next blocker

Read:

  • docs\PALE_NODE_INK_DEBUG_WORKFLOW.md

before doing substantial work in this area.

Required tools

Real integration checkpoint

dotnet run --project sandbox\OkojoInkProbe\OkojoInkProbe.csproj -c Release -- --debugger

Focused debugger sandbox

dotnet run --project sandbox\OkojoNodeDebugSandbox\OkojoNodeDebugSandbox.csproj -c Release -- --app-root <appRoot> --entry <entry> --stop caught --log <logPath>

Use the focused debugger sandbox for:

  • debugger; stops
  • caught exceptions
  • disassembly around the current PC
  • locals/register inspection
  • reduced app repros

Testing loop

Focused loop:

dotnet test tests\Okojo.Node.Tests\Okojo.Node.Tests.csproj -c Release --filter <Name>

After a fix, rerun nearby focused regressions before going back to Ink.

If the change becomes broad or touches shared compiler/runtime paths, expand validation appropriately.

Current known lessons

  • the old Ink require(undefined) failure was actually a wide-register compiler bug
  • dedicated debugger/disassembly tooling was necessary to prove the root cause
  • AbortController support may be needed tactically for bring-up, but Abort* / Event* likely belong long-term in Okojo.WebPlatform / shared web globals

Deliverables expected from this skill

When using this skill, aim to leave behind:

  • a reduced repro
  • a focused regression test
  • a narrow code fix
  • a rerun of Ink showing either success or the next blocker

If the blocker changes, update the workflow note or the active session plan so other agents can resume cleanly.

版本历史

  • 0.1.2-preview1 当前 2026-07-24 22:32

同 Skill 集合

.agents/skills/okojo-test262/SKILL.md

元信息

文件数
0
版本
0.1.2-preview1
Hash
334b4d0f
收录时间
2026-07-24 22:32

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-17 17:34
浙ICP备14020137号-1