Agent Skills › akeit0/okojo › okojo-node-ink-debug

okojo-node-ink-debug

GitHub

用于调试 Okojo.Node 大型应用失败的技能,涵盖沙盒复现、最小化还原、反汇编分析及兼容性修复。

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

Trigger Scenarios

调试 Okojo.Node 运行时或编译器 Bug 处理 CommonJS/ESM 兼容性问题 分析大型应用崩溃并生成回归测试

Install

npx skills add akeit0/okojo --skill okojo-node-ink-debug -g -y
More Options

Non-standard path

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

Use without installing

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.

Version History

  • 0.1.2-preview1 Current 2026-07-24 22:32

Same Skill Collection

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

Metadata

Files
0
Version
0.2.0-preview.2
Hash
334b4d0f
Indexed
2026-07-24 22:32

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-04 23:34
浙ICP备14020137号-1