用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/phira-ai/Phira --skill phira-archive-format命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| 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>
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.