proof
Skill67 starsChanged 2 months agoMITView on GitHub
Read and update Flatbread Proof, the repository's durable project memory, through bounded queries and typed mutations. Use for recall when resuming a known effort, checking blockers, or when the user mentions Proof or journaling. Use the write path only for a decision-relevant turning point that outlives the current PR or session and adds unique causal rationale. Never journal routine progress, handoffs, review notes, temporary gaps, implementation steps, or journal corrections.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- udaysharmadev/Skillstheir own version, first seen Sep 17, 2026
- ericmasiello/skillstheir own version, first seen Sep 10, 2026
- lavine888/career-alphatheir own version, first seen Aug 30, 2026
- saschb2b/skillstheir own version, first seen Aug 8, 2026
- Sanexxxx777/curated-claude-codetheir own version, first seen Jun 28, 2026
- kwana117/claude-skillstheir own version, first seen Jun 3, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- saschb2b/skills★ 19same name
- Sanexxxx777/curated-claude-code★ 16same name
- udaysharmadev/Skills★ 4same name
- CodeWithBehnam/cc-docs★ 2same name
- ericmasiello/skills★ 0same name
- kwana117/claude-skills★ 0same name
- lavine888/career-alpha★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/cursor-cloud-agent-url.mdcCursor rule
- .cursor/rules/cursor-grok-latest.mdcCursor rule
- .cursor/rules/flatbread-pmf-workflow.mdcCursor rule
- .cursor/rules/flatbread-schema-migration.mdcCursor rule
- .cursor/rules/orwell-prose.mdcCursor rule
- .cursor/rules/post-edit-lint-fix.mdcCursor rule
- .cursor/rules/typescript-rules.mdcCursor rule
- agent-browserSkill
- effort-modelingSkill
- grill-with-effortsSkill
- mergify-ciSkill
- mergify-configSkill
- mergify-merge-protectionsSkill
- mergify-merge-queueSkill
- mergify-stackSkill
- flatbread-major-migrationSkill
- orchestrator-executorSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Read glossary.md for the primitive and edge semantics before inventing a new record kind or relation.
- Very specific: line 20
All commands run from the project root via the flatbread CLI (pnpm exec flatbread, npm exec -- flatbread, yarn flatbread, or bunx …
- Very specific: line 26
Read setup.md, make the reviewed config and gitignore edits, then run flatbread proof bootstrap followed by flatbread proof bootstrap …
- Distinctive: line 67
Before a create or a body edit that adds claims, score the information being added — not the record that would receive it.
- Distinctive: line 81
Do not create a record or add body claims unless the information scores
- Distinctive: line 127
When superseding, open the new record's body with a short rollup of what changed and why — reads render ancestors only as one-line …
- Very specific: line 137
Every read returns a bounded envelope, not records: a ≤160-token summary, an artifact_path to a rendered markdown digest (the evidence — …
- Very specific: line 139
Read on it, or grep it), served_generation, page info, and ≤10 executable hints.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Proof — agent journaling and recall
Proof stores durable project memory as markdown records in the repository. It has eight record types: Effort, Issue, Finding, Decision, Constraint, and Risk capture the work and reasoning; Citation stores a source or reference; and Blob stores attached content such as a document, JSON, or image. Every record belongs to one Effort. Create and update records through 17 typed mutations, and read them through 5 bounded queries. Do not hand-edit record frontmatter, although you may edit record bodies freely.
Read glossary.md for the primitive and edge semantics before inventing a new record kind or relation.
All commands run from the project root via the flatbread CLI (pnpm exec flatbread, npm exec -- flatbread, yarn flatbread, or bunx flatbread).
Commands print one JSON object to stdout;
errors print JSON to stderr and exit 1.
First activation
Read setup.md, make the reviewed config and gitignore edits, then
run flatbread proof bootstrap followed by flatbread proof bootstrap --verify. Bootstrap is report-only and never edits project files.
Prerequisites
Your flatbread.config.* must include the preset:
import {
defineConfig,
sourceFilesystem,
transformerMarkdown,
proofContent,
} from 'flatbread';
export default defineConfig({
source: sourceFilesystem(),
transformer: transformerMarkdown(),
content: [...proofContent()],
});Records live under <root>/{efforts,issues,findings,decisions,constraints,risks,citations,blobs}/.
The write journal is <root>/.journal/; read digests cache under
.flatbread/proof/read-cache/ (both gitignored).
Writing (journaling)
Mandatory write gate
Proof is a map of durable reasons, not a work log. How to use Proof lives in this skill; do not journal the process itself as a Decision.
Score only new retained information: create mutations and body text that add
claims. Lifecycle transitions (AcceptDecision, ReopenDecision, ResolveIssue,
SetEffortStatus, MitigateRisk, SetRiskState), Retract, and
proof cache prune do not add retained claims and do not need a 4/4 score.
Supersede and Invalidate write retained edges; score the reason for the
edge the same as a create. Body edits that only drop claims stay out of the
gate.
Before a create or a body edit that adds claims, score the information being added — not the record that would receive it. Answer each test in private reasoning:
- Future need: Would losing it make a future agent materially misunderstand why the project is shaped this way?
- Durable effect: Will it outlive the current PR or session and change a product principle, public contract, architecture, constraint, risk, or docs direction?
- Causal value: Does it explain why that change happened or what evidence could reverse it?
- Unique signal: Does it add a reason or link that code, docs, Git, the PR or tracker issue, and retained records do not already make clear?
Do not create a record or add body claims unless the information scores 4/4. An existing or open record does not bypass this gate; appending low-value text still consumes bounded reads. Keep failed candidates in the PR, tracker issue, commit, or run artifact. Citations and Blobs persist only when they support a 4/4 record.
One command for all 17 mutations — pass the payload as a single JSON argument:
flatbread proof write '{"type":"WriteDecision","effort":"<eff-id>","title":"...","body":"...","derives_from":["<id>"]}'AcceptDecision response: {"generation":"<token>","dryRun":false,"artifacts":[{"id","path","operation"}],"touched":[...],"changedDecisionIds":["dec-..."],"rejectedIds":["dec-..."]}.
For creates, capture artifacts[0].id to wire later edges. Keep the
returned generation for strict read-your-writes.
Full payload shapes for all 17 mutations: read reference.md. Critical semantics:
- Creates always start in the initial lifecycle state:
WriteDecision→proposed,WriteIssue→open,WriteRisk→open. You cannot pass a state; use lifecycle mutations (AcceptDecision,ResolveIssue,MitigateRisk,SetRiskState) to transition.WriteCitationandWriteBlobhave no lifecycle state. Retractremoves a record from browse reads without deleting the file. Pass a reason. The writer strips that id from other records in the same Effort so reads do not fail closed. Use it for session noise that should never have been journaled. Do notgit rmrecords or hand-edit frontmatter.proof getstill returns a retracted record. Efforts cannot be retracted; abandon them instead.AcceptDecisiondefaultsrejectSiblings: true, which rejects only proposed Decisions derived from the samequestionIssue, even if the Issue is closed. Userejects: ["<dec-id>"]to name other alternatives. The result listschangedDecisionIdsandrejectedIds; passdryRun: trueto preview without saving. UseReopenDecisionwith a reason to restore a rejected Decision to proposed while keeping its rejection inreopen_history.- Edges are forward-only in payloads (
derives_from,supersedes,invalidates); back-edges are materialized automatically. - External sources: create a
WriteCitationrecord (its body may be a URL, with optionalblobandrolefields), then addcites: ["<cit-id>"]when creating an Issue, Finding, Decision, Constraint, or Risk. Both the Citation incitesand the Blob inCitation.blobmust belong to the same Effort as the record that links to them. Bounded digests omit Blob bodies; useproof get <blob-id>to read one. - When superseding, open the new record's body with a short rollup of what changed and why — reads render ancestors only as one-line checkpoints.
- For a hard-to-reverse, surprising decision made after a real trade-off, use the Decision body as the durable rationale: include context, alternatives, consequences, and reversal criteria. Do not create a parallel ADR; use effort-modeling when the decision is still being grilled.
Reading (recall)
Every read returns a bounded envelope, not records: a ≤160-token summary,
an artifact_path to a rendered markdown digest (the evidence — spend one
Read on it, or grep it), served_generation, page info, and ≤10 executable
hints. Digests cap at 25 records / one-hop expansion / 50 edges / 64 KiB.
Browse digests (list, records, relations, blocking-decisions) excerpt
each body at 600 chars / 12 lines ([…truncated]). proof get digests
always include the full record body (still subject to the 64 KiB digest
byte cap). Zoom in with get, then Read/grep that digest — do not open
.flatbread-proof/**/*.md for normal full-body recall.
# What's gating this effort? (proposed Decisions deriving from open blocker Issues)
flatbread proof blocking-decisions <effortId>
# Resume: discover active Efforts first
flatbread proof list --status active
# Scoped listing with filters (AND across flags, OR within comma lists).
# --status filters Issues and --state filters Decisions, so combining them in
# one call ANDs across kinds and matches nothing — query each kind separately.
flatbread proof records <effortId> --kinds issue --status open --since 2026-07-01T00:00:00Z --limit 10
flatbread proof records <effortId> --kinds decision --state proposed --limit 10
# One-hop neighbors of a record
flatbread proof relations <effortId> <fromId> --relations derives_from,superseded_by
# Single record with full body; --resolve head follows supersession to the tip
flatbread proof get <id> [--resolve head]Flags shared by reads: --strict-min-generation <token> (with optional
--timeout-ms <ms>, default 3000) and, on list/records/relations, --limit
(≤25) and --cursor (opaque next_cursor from a prior page; only valid for
the same query at the same generation).
proof list is bounded Effort discovery. It defaults to active; valid
statuses are exactly active, paused, completed, and abandoned.
Comma-separated statuses are ORed. Results use the shared created_at, then
id ordering. After discovery, use bounded effort-scoped reads.
Consistency: reads are eventual by default. Immediately after a write,
pass the returned generation as --strict-min-generation — you get either
fresh data or a PROOF_GENERATION_WAIT_TIMEOUT error (exit 1),
never silently stale results. Do not build polling loops; the wait is
server-side.
Recommended session workflow
- Resume / status briefing (bounded fast-path):
proof list --status activeand trust the returned digest. For each active Effort, runproof records <effortId> --kinds issue,decisionand read each record's status/state from that one digest. Runproof blocking-decisions <effortId>only for an Effort whose digest shows an openblockerIssue — skip it otherwise. Do not open raw.flatbread-proof/**/*.mdfor briefing; browse digests are authoritative for status/state. Budget ≈ (1 + number of active Efforts) digest reads. A 12-run experiment across three model families showed this roughly halves recall tool calls with no loss of answer quality (Decisiondec-adopt-a-bounded-status-briefing-fast-path-for-ef--kcw0rw39g3b2ym2h). - When a browse digest shows
[…truncated]and you need the body: runflatbread proof get <id>, then Read/grep that digest (artifact_path) for the full body. Reserve opening.flatbread-proof/**/*.mdfor rare cases (e.g. digest byte-cap miss on an oversized record), not normal zoom-in. - During work: apply the write gate above before any create or body
edit that adds claims. When outside material supports a 4/4 record, save
large content with
WriteBlobif needed, then create aWriteCitation, then create the Issue, Finding, Decision, Constraint, or Risk withcites: ["<cit-id>"]. You cannot add a citation later, so create the Citation first. Open Issues for real gaps or blockers, and usederives_fromon Decisions to link the Findings, Constraints, and Issues they respond to. - On commitment: preview
AcceptDecisionwithdryRun: true, inspect itsrejectedIds, then commit the acceptance. UseResolveIssuewithresolvedByciting the closing Decision/Findings. These lifecycle transitions do not need a 4/4 score. Retract session noise withRetractrather than deleting files. - Maintenance:
flatbread proof cache prunedeletes digests older than 24h / over the 100 MiB ceiling. Prune does not need a 4/4 score.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

