用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tile-ai/TileOPs --skill implement-op命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | implement-op |
| description | Modify op code to match the manifest-declared interface, making spec tests pass. |
op_name, manifest_signature, source_op, source_test — passed by align-family orchestrator.
op_name, manifest_signature, source_op, source_testobservations list (returned to orchestrator)python scripts/validate_manifest.py --check-op <name> all levels pass + new tests pass.blocked with reason.src/tileops/manifest/. Must NOT modify tests written by test-op in this align-op run (spec contract). MAY update pre-existing tests in <source_test> whose call-sites use the legacy API. The parent orchestrator (align-op) handles the manifest flip at FLIP_STATUS. If your implementation needs a contractual-field change to make tests pass, return BLOCKED — do not edit the manifest yourself.__init__(M, N)) is NOT preserved — the manifest defines the target interface.stateDiagram-v2
[*] --> ANALYZE
ANALYZE --> DIAGNOSE: semantic knowledge extracted
DIAGNOSE --> VALIDATE: gap already resolved (base class fixed by previous op)
DIAGNOSE --> IMPLEMENT: gap exists
IMPLEMENT --> VALIDATE: sub-step completed
VALIDATE --> IMPLEMENT: sub-step failed
VALIDATE --> MARK_DONE: all pass
VALIDATE --> BLOCKED: fix exceeds Op layer scope
MARK_DONE --> COMMIT
COMMIT --> [*]
BLOCKED --> [*]: return blocked to orchestrator
Before refactoring a base class, count its subclasses:
grep -rlE "class\s+[A-Z][A-Za-z0-9]*\s*\(\s*<BaseName>\s*\)" src/tileops/ops/
__init__ path alongside the new one so unmigrated siblings still pass. Cleanup gate removes the legacy path after all siblings migrate.Do NOT preemptively migrate siblings to avoid dual-path — that violates per-op scope.
Read existing code (source_op) to extract semantic knowledge:
dim=-1, reshape(-1, N))Manifest = WHAT (target interface). Existing code = HOW (computation logic). The delta is the work.
This analysis is internal — not persisted.
Check if the gap still exists. A previous op's migration may have fixed the shared base class.
Decompose into independently verifiable sub-steps. Each sub-step either succeeds or fails with precise location (→ BLOCKED). No retry loops — if a sub-step fails with the same error twice, the task is beyond current scope.
Agent determines sub-steps based on the specific gap. Do not follow a fixed recipe.
Run all checks:
python scripts/validate_manifest.py --check-op <op_name>
python -m pytest <source_test> -v
All must pass. If not, return to IMPLEMENT.
Record observations — design knowledge discovered during migration:
Do not change the manifest or a design doc to match code that does not conform — the spec is the reference, not a record of the implementation. Observations are returned to the orchestrator and surfaced in the PR.
Commit code changes only. Do not commit manifest changes.