Agent Skills › akeit0/okojo › okojo-test262

okojo-test262

GitHub

专注于 Okojo 引擎的 Test262 合规性工作,包括复现失败用例、对比 V8/Node 行为、修复标准对齐问题及添加回归测试。严格限制于 Test262Runner 相关任务,排除常规开发。

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

触发场景

Test262 合规性检查 Test262Runner 执行 处理失败的 Test262 用例 SkipList 管理

安装

npx skills add akeit0/okojo --skill okojo-test262 -g -y
更多选项

非标准路径

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

不安装直接使用

npx skills use akeit0/okojo@okojo-test262

指定 Agent (Claude Code)

npx skills add akeit0/okojo --skill okojo-test262 -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-test262",
    "description": "Run and continue Okojo Test262 compliance work. Use only when the request involves Test262, Test262Runner, compliance sweeps, failing Test262 cases, the passed cache, or SkipList. Do not use for ordinary Okojo implementation, refactoring, review, or debugging."
}

Okojo Test262

Use this skill only for Test262-driven work in tools/Test262Runner and the engine/test files needed to resolve a selected Test262 failure. Ordinary engine work belongs to the general Okojo development workflow.

Core policy

Fix standards-aligned behavior.

Do not prioritize deprecated/legacy behavior unless explicitly re-approved. Treat these as intentionally unsupported by default:

  • direct-eval-specific semantics
  • with
  • legacy __proto__
  • deprecated legacy accessor APIs
  • Function.prototype.arguments / Function.prototype.caller
  • arguments.callee

For these, prefer narrow intended Test262 skips with a clear reason over regressing core paths.

Do not add a skip merely to make a run green. A skip requires an intentionally unsupported feature or an explicit user decision.

Workflow

  1. reproduce the exact Test262 case
  2. classify it as engine/compiler/runtime behavior or intentionally unsupported coverage
  3. compare V8 for language/compiler/VM behavior or Node for built-in/runtime behavior
  4. implement the narrow root-cause fix
  5. add a focused regression under tests/Okojo.Tests
  6. rebuild the runner before trusting an exact rerun
  7. rerun the exact case, nearby coverage, and the requested continuation batch

Focused engine loop

dotnet build tests/Okojo.Tests/Okojo.Tests.csproj -c Release /p:UseSharedCompilation=false
dotnet test tests/Okojo.Tests/Okojo.Tests.csproj -c Release --no-build --filter <Name>

When the runner is involved:

dotnet build tools/Test262Runner/Test262Runner.csproj -c Release /p:UseSharedCompilation=false

Test262 runner

Show help:

dotnet run --project tools/Test262Runner/Test262Runner.csproj -c Release -- --help

Common continuation pattern:

dotnet run --project tools/Test262Runner/Test262Runner.csproj -c Release -- --max-tests 30 --full-path --skip-passed

Array.prototype sweep example:

dotnet run --project tools/Test262Runner/Test262Runner.csproj -c Release -- --max-tests 30 --category built-ins --filter Array/prototype --full-path --skip-passed

Useful runner notes:

  • --skip-passed uses the local passed cache
  • rebuild the runner after runtime/compiler changes before trusting exact reruns
  • SkipList.cs contains intentional exclusions
  • do not run a broad sweep when an exact or category-filtered rerun answers the current question

Editing guidance

  • Prefer minimal, local fixes.
  • Add a focused regression test for each fix.
  • Do not revert unrelated user changes.
  • Do not widen policy support accidentally just to satisfy a single Test262 file.

版本历史

  • 0.2.0-preview.2 当前 2026-09-22 11:31

    从通用开发工作流中分离出专门的 Test262 合规性任务范围;新增针对 Test262 runner 的具体命令示例(如 --skip-passed, category sweep)和更严格的跳过策略说明。

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

同 Skill 集合

.agents/skills/okojo-engine-development/SKILL.md
.agents/skills/okojo-node-ink-debug/SKILL.md

元信息

文件数
0
版本
0.2.0-preview.2
Hash
1b92bb9e
收录时间
2026-07-24 22:32

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-05 06:54
浙ICP备14020137号-1