Spec delta checker
Skill Yue-Zhou1/zkcrypto-audit/plugins/core-audit-flow/skills/spec-delta-checker
Compare cryptographic code against a reference specification or paper. Use when implementation details look close to a standard but may have drifted in validation, transcript binding, parameter negotiation, or caller obligations.From its SKILL.md
npx -y skills add Yue-Zhou1/zkcrypto-audit --skill spec-delta-checkerAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.1 KB, 383 tokens by cl100k_base, as published. Nobody here has run it
spec-delta-checker
Focused skill for specification-versus-implementation review.
Core principle: verify what the code actually enforces, not what the docs claim.
When to Use
- The implementation claims to follow a paper, RFC, or upstream reference crate
- You suspect the code omits a condition that the specification assumes
- Security depends on caller obligations that may not be enforced locally
- Protocol glue code appears to adapt a standard primitive or proof system
When NOT to Use
- Building initial context before you know which spec or paper governs the code
- Reporting a finding without first identifying the exact delta
- Writing final report prose without finishing the deviation review
Rationalizations to Reject
| Rationalization | Why it is wrong |
|---|---|
| "The deviation is just a performance optimization" | Optimizations are a primary source of semantic-drift bugs |
| "The paper doesn't apply to this implementation" | If the code cites the paper, the deltas are audit surface |
| "The spec is ambiguous here" | Ambiguity in the spec plus code that picks one interpretation is still an untested assumption |
Workflow
Execute workflows/delta-review.md in order. Treat every implementation delta as a potential finding candidate until you can prove it is benign.
Reference Use
- Use
crypto-audit-contextfirst if the target codebase is still unfamiliar - Send surviving deviations to
crypto-fp-check - Use
audit-commonwhen the delta turns into a reportable finding
Output Contract
Produce a delta handoff that includes:
- The governing reference specification or paper
- The exact place where the implementation diverges
- Whether the delta changes enforcement, assumptions, or caller obligations
- The recommended next skill for validation or reporting
What ships with it: 2 files
2.0 KB alongside SKILL.md
agents/
- openai.yaml576 B
workflows/
- delta-review.md1.4 KB