phira-ai/phira · Archived

phira-impl-vs-claim-audit

Procedure to audit alignment between a document's claims (e.g., algorithm description) and the actual implementation and defaults.

First seen Jun 20, 2026

Installation

$ npx skills add phira-ai/phira --skill phira-impl-vs-claim-audit

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from phira-ai/phira.

npx skills add phira-ai/phira

Browse all from phira-ai/phira

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 10
License LICENSE
Default branch main
Open issues 2
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,066 B
  • docs SUMMARY.md 163 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Use this skill when someone provides a document describing what was implemented (paper, design doc, README section, notes) and you need to check whether the code actually matches what the document claims.

Goal: detect "claim drift" (code does not implement the described algorithm/behavior) and "default drift" (defaults/baseline behavior changed unintentionally).

Inputs you should request (if missing)

  • The document excerpt(s): exact text, with section headings (and page/figure/equation numbers if applicable).
  • Implementation context: changed files/diff, new flags/config keys, and the intended entrypoint(s).
  • Any stated compatibility constraints (env versions, dependency policy).

Audit checklist

  1. Extract and restate the document claims
  • Pull out 3-10 testable claims from the document.
  • Separate:

- Algorithmic steps ("do A then B") - Definitions (symbols, losses, schedules) - Defaults (what happens if no flags are set) - Expected outputs/logs/metrics

  • Restate each claim in one sentence, testable language.
  1. Map document -> code
  • For each extracted claim, identify:

- where it is implemented (file + symbol) - how it is triggered (config/flag/entrypoint) - what the default does - what is intentionally omitted or approximated (if any)

  1. Default drift
  • Verify new code paths are gated when they should be.
  • Verify default config values preserve baseline behavior unless explicitly changed.

If the document describes a new algorithm but the feature is intended to be opt-in, explicitly confirm the gating and defaults.

  1. Evidence quality (did we actually test the claim?)
  • Check whether any reported commands actually exercise the described algorithm path.
  • Prefer evidence that would fail if the algorithm were not implemented (assertions, characteristic logs, shape/value invariants).

If there is no evidence, propose the smallest decisive check(s): a tiny run, a unit test, or a "print the computed term" invariant.

  1. Algorithmic fidelity traps
  • Look for the common mismatches between docs and code:

- wrong loss term sign/scaling/normalization - missing detach/stop-gradient - schedule differs (warmup, EMA, anneal) - sampling differs (teacher forcing vs free running, masking) - batch reduction differs (mean vs sum) - randomness/seed placement differs

  1. Integration seams
  • Look for the classic breakpoints: config plumbing, checkpoint load/save, distributed wrappers, dtype/device moves, shape conventions.

Required output (table)

Return a table like this:

Doc claim (with citation) -> Implementation (file:symbol + gate/default) -> Evidence -> Risk / Mismatch
- <claim 1 @ section/page/eq> -> <where + how enabled + default> -> <command/log/assertion or "none"> -> <mismatch or remaining risk>
- <claim 2 @ ...> -> ...

End with:

  • Verdict: PASS | FAIL
  • Smallest fix list (if FAIL)