一键导入
architect-spec
Write an implementation spec for a hard issue. Read compiler source, identify exact functions/lines, design the fix, document edge cases.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write an implementation spec for a hard issue. Read compiler source, identify exact functions/lines, design the fix, document edge cases.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Compare two test262 result files to find exactly which tests changed status. Use after a test262 run shows unexpected pass count changes.
Compile a source file to WAT and analyze the output for codegen inefficiencies. Use after a codegen change to verify the output is clean, when investigating performance issues, or when creating optimization issues from real compiler output.
Quickly find which commit introduced a test262 regression using git bisect with automated test.
Atomically claim an issue for a developer (human or agent) via the cross-developer lock ref, so two devs never pick up the same task. Syncs with origin first, refuses if already claimed or already done on main, and pushes the claim immediately without touching main or triggering CI.
Create a new issue file from a test262 failure pattern. Includes smoke test, sample extraction, and proper frontmatter.
Merge self-check for a green PR. Reads the PR's required-check status from the checks API (the committed ci-status feed is RETIRED), outputs MERGE (mark task completed, stand down — server-side auto-enqueue enqueues,
| name | architect-spec |
| description | Write an implementation spec for a hard issue. Read compiler source, identify exact functions/lines, design the fix, document edge cases. |
Any agent can use this skill to produce an architect-quality implementation plan for an issue.
Read the issue file at plan/issues/{N}.md
For each sub-pattern in the issue, find the codegen function:
# Search for relevant function names
grep -n "function compile.*{keyword}" src/codegen/*.ts
# Or search for the Wasm instruction that's wrong
grep -n "{wasm_op}" src/codegen/*.ts
Read the function and understand current behavior (what it emits and why it's wrong)
Design the fix — what instructions should be emitted instead
Write the spec in the issue file under ## Implementation Plan:
## Implementation Plan
### Root cause
[1-2 sentences]
### Work Item {letter}: {title} (~{N} CE)
**Patterns addressed**: {which sub-patterns from the breakdown}
**Risk**: {Low|Medium|High} — {why}
**Priority**: {1st|2nd|3rd}
#### Root cause
{specific function and line that emits wrong instructions}
#### Changes
**File: `src/codegen/{file}.ts`**
- Function `{name}` (line ~{N})
- {what to change and why}
#### Edge cases
- {case 1}
- {case 2}
#### Test
{specific test262 file to verify: before fix = CE, after fix = pass or runtime error}