用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tile-ai/TileOPs --skill audit-family命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Generate or re-align one `src/tileops/manifest/` entry from a reference-API docs URL. Caller provides the manifest key (`op_name`); skill writes that one entry. Idempotent.
Scaffold a new T2 (L1-direct) Op file from a single `src/tileops/manifest/` entry by following the 7-step playbook in docs/design/ops-design.md. Emits the 17 scaffold slots (S1-S7, S12-S21); leaves family-specific protocol variables, optional hooks, and kernel implementations to downstream skills.
Write tests for the target spec using PyTorch as ground truth, verify they fail on current code.
基于 SOC 职业分类
正在显示 SKILL.md
| name | audit-family |
| description | Compare each op's code signature against its manifest spec, classify gaps, produce a structured report. |
Family name from src/tileops/manifest/ (e.g., reduction, norm, attention).
family name.foundry/migrations/<family>.jsonready ops verified via --check-op.stateDiagram-v2
[*] --> LOAD_MANIFEST
LOAD_MANIFEST --> FILTER: manifest loaded
FILTER --> SELECT_OP: spec-only ops filtered by family
SELECT_OP --> READ_CODE: op selected
READ_CODE --> COMPARE_SIGNATURE: code inspected
COMPARE_SIGNATURE --> CHECK_OP_VALIDATE: no signature difference
COMPARE_SIGNATURE --> CHECK_PYTORCH_REF: difference found
CHECK_OP_VALIDATE --> mark_ready: --check-op passes all levels
CHECK_OP_VALIDATE --> CHECK_PYTORCH_REF: --check-op fails (deeper gap)
CHECK_PYTORCH_REF --> mark_semantic_gap: pytorch_equivalent exists
CHECK_PYTORCH_REF --> mark_blocked: no PyTorch reference
mark_ready --> SELECT_OP: next op
mark_semantic_gap --> SELECT_OP: next op
mark_blocked --> SELECT_OP: next op
SELECT_OP --> WRITE_REPORT: all ops classified
WRITE_REPORT --> [*]
Key gate: pytorch_equivalent determines autonomous vs human-required migration. --check-op confirms ready classification.
| Classification | Condition | Downstream |
|---|---|---|
ready | --check-op passes, no signature difference | Orchestrator flips status directly |
semantic_gap | Manifest-code difference + pytorch_equivalent exists | test-op → implement-op |
blocked | Difference but no PyTorch reference; or kernel-level change needed | Terminate. reason field explains. |
Location: .foundry/migrations/<family>.json
Top-level:
{
"family": "reduction",
"audited_at": "2026-04-03T...",
"total": 21,
"summary": {"ready": 0, "semantic_gap": 21, "blocked": 0},
"ops": { "<op_name>": { ... } }
}
Per-op entry. Example — field set is not exhaustive. Add fields that aid the next step, omit those that don't.
{
"status": "spec-only",
"source_op": "src/tileops/ops/reduction/softmax.py",
"base_class": "_SoftmaxBaseOp",
"classification": "semantic_gap",
"missing_params": ["dim"],
"manifest_signature": {
"inputs": {"x": {"dtype": "float16 | bfloat16"}},
"outputs": {"y": {"dtype": "same_as(x)"}},
"params": {"dim": {"type": "int"
Required fields: classification, source_op, base_class, manifest_signature. base_class is the immediate parent class name (e.g., _SoftmaxBaseOp); if the op inherits Op directly, use "Op". The orchestrator uses base_class for GROUP_BY_BASE grouping. Gap report is a starting point — agent reads live code and manifest during downstream skills.
pytorch_equivalent: corresponding PyTorch function, or null. Not every op has one.
from tileops.manifest import load_manifest, or read src/tileops/manifest/<family>.yaml directly when scoping to one family.family == <arg> and status == spec-onlysource_op), find Op class, extract __init__ and forward explicit named params
b. Compare against manifest_signature (inputs, params)
c. If no difference → run python scripts/validate_manifest.py --check-op <name> to confirm → ready or deeper gap
d. If difference → determine pytorch_equivalent:
_fwd suffix, match against torch.nn.functional, torch, torch.special, torch.linalg → semantic_gap_bwd ops → always blocked (PyTorch backward is autograd-internal, no public reference function for autonomous testing)blocked.foundry/migrations/<family>.json