一键导入
validation-first
Use when planning a new pipeline stage or creating work items for parallel execution. Ensures validation tooling exists before content work begins.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when planning a new pipeline stage or creating work items for parallel execution. Ensures validation tooling exists before content work begins.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when working on Phase 3 formalization — translating mathematical text into Lean 4 statements and proofs, or filling sorry placeholders.
Standard claim/branch/verify/publish workflow for pod agent sessions. Read this skill at the start of any feature, review, summarize, or meditate session.
Use when working on Phase 2 dependency mapping — internal references, external dependencies, or reference attachment. Also use when reading blob content to identify mathematical references.
| name | validation-first |
| description | Use when planning a new pipeline stage or creating work items for parallel execution. Ensures validation tooling exists before content work begins. |
| allowed-tools | Read, Edit, Bash, Glob, Grep, Write |
Build validation tooling before starting content work for any pipeline stage. This pattern proved highly effective in Phase 1 and should be replicated for all subsequent phases.
For each pipeline stage:
This pattern was used successfully for:
scripts/items_schema.json + validate_items.py — caught gaps/overlaps in structure analysisscripts/dependencies_schema.json + validate_dependencies.py — 14 edge cases tested before any dependency workscripts/external_deps_schema.json + validate_external_deps.py — ready before external dep analysisAll validation tooling was created in dedicated issues (#414, #451, #459) before the content work issues were created. This sequencing is intentional.
Don't create content first and validate later. When validation is deferred:
After individual content work is complete, run a cross-validation pass that checks consistency across all outputs:
Cross-validation should be a separate issue, not an afterthought. Plan for it explicitly.
Crux issues often prescribe a proof strategy and mandate a numerical pre-formalization check ("validate before formalizing"). That check validates the strategy, not just an output format — and it can refute the strategy while the deliverable (the lemma statement) is still true.
When validation refutes the prescribed strategy:
--partial PR, not a bare skip. A
--partial PR ("Partial progress on #N") merges your validation scripts and
analysis doc into the repo and marks the issue replan; a bare skip
strands all of it on an unmerged branch where the next planner can't see it.
Keep the issue's Lean signature, flag only the refuted strategy section.Formalization adds a new dimension to validation — the Lean compiler itself is the ultimate validator.
Unlike Phases 1-2 (JSON schemas, text validation), Phase 3 has lake build as the ground truth:
Formal item status is tracked manually in progress/items.json. After proving a theorem (removing its sorry), update the item's status to sorry_free in the same commit.
For non-formal items (discussion blobs, external dependencies), status is also tracked in progress/items.json.
Before starting content work, create:
lake build and reports files with errorsWhen reviewing a formalization PR:
lake env lean <file> — the minimum bar)native_decide on large terms may indicate wrong approachsorry or admit remaining? Search the diffWhen a planner creates issues for a new stage:
The tooling issues should be dependencies of the content work issues.