一键导入
phira-archive-format
Canonical per-record archive format (YAML front matter + Markdown body).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Canonical per-record archive format (YAML front matter + Markdown body).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Deterministic Graphviz/DOT derivation + validation for archive records.
Pointer semantics for "since last record" and detected-change bookkeeping.
Checklist for proving baseline behavior is unchanged (or changes are intentional) via controlled A/B runs.
Fast, compute-aware verification checklist for implementation changes (imports, configs, tiny runs).
Workflow for conference/venue paper search and short reading lists.
Procedural checklist to infer and state the repo's effective runtime environment and dependency policy.
| name | phira-archive-format |
| description | Canonical per-record archive format (YAML front matter + Markdown body). |
Use this skill when writing or updating .archive/**.
.archive/records/: per-record files (canonical source of truth).archive/pointers/: pointer files ("since last record" state).archive/graph.dot: derived Graphviz/DOT (committed)--- lines<record_id>.mdrecord_id requirements:
[a-z0-9][a-z0-9-]*r-YYYYMMDD-<slug>id: string, equals filename without .mdschema_version: number, current: 1type: one of:
Design (ideas/specs/reading/plans/pseudocode)Build (implementation/integration/refactors/infrastructure changes)Evaluate (tests/benchmarks/experiments + analysis)Decide (normative decisions: adopt/reject/pivot/change defaults)title: short human labelparents: list of record IDs (lineage). Use [] only for the initial root record.status: short outcome/valence (prefer a small, consistent set)
proposed, active, archivedin_progress, done, revertedpositive, negative, inconclusiveadopted, rejected, supersededtags: list of short tagscreated_at: ISO-8601 timestamp (e.g. 2026-02-28T18:10:00Z)git (when applicable):
branch: stringhead: string (commit sha)range: string (e.g. <base>..<head>)stash: string (e.g. stash@{0})edges: list of typed links to other records (semantic links; not lineage)
{ type: <edge_type>, to: <record_id>, note: <optional> }edge_type: implements, tests, evaluates, supports, refines, refutes, depends_on, supersedes, produces, parallelslinks: list of external references
{ kind: <kind>, ref: <string>, note: <optional> }url, doi, arxiv, issue, pr, paperartifacts: list of repo-local artifacts
{ path: <repo-relative path>, note: <optional> }metrics: list of structured metrics (primarily for Evaluate)
{ name: <string>, value: <number|string>, split: <optional>, unit: <optional>, direction: <optional>, baseline: <optional>, note: <optional> }direction suggestions: higher_better, lower_better, targettime: optional structured timing
{ started_at: <optional ISO-8601>, ended_at: <optional ISO-8601> }opencode: optional provenance (when git is missing or insufficient)
{ session_id: <string>, message_id: <optional string>, note: <optional string> }## Intent, ## Spec, ## Open questions, ## Next## Intent, ## What changed, ## Notes, ## Next## Intent, ## Setup, ## Command, ## Metrics, ## Outcome, ## Notes## Decision, ## Rationale, ## Consequences, ## Alternatives considered## Outcome / ## Root cause / ## Decision), include at least one evidence hook:
parents to encode provenance/derivation (the DAG spine). Do not use parents for mere chronology.edges that simply duplicate what parents already expresses.edges are not rendered as separate arrows (they may be used as hints for edge labels).Build: parent the Design plan it implements.Evaluate: parent the Build or Design record it evaluates.Decide: parent the evidence records used to decide (typically Evaluate nodes).Decide:
parents.edges: supports back to those same parents unless you need a non-lineage cross-link.Evaluate:
Command block, keep it exact (copy/paste).parents; avoid adding an extra edges link unless it is a non-lineage cross-link.Build:
apply mode; omit or ask for the exact paths.Decide
id: r-YYYYMMDD-slug schema_version: 1 type: Decide title: "..." parents: [r-...] status: adopted tags: [topic] git: branch: "..." head: "..." edges:
Evaluate
id: r-YYYYMMDD-slug schema_version: 1 type: Evaluate title: "..." parents: [r-...] status: inconclusive tags: [topic] git: branch: "..." head: "..." range: "..." metrics:
<copy-paste command>