forge-snapshot
Skill2 starsChanged 8 days agoMITView on GitHub
Regenerates FORGE_SNAPSHOT.md to survive compaction. Use at a phase boundary.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- ForgeyClap/claude-forgeedited, first seen Oct 11, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- ForgeyClap/claude-forge★ 248% same
Wrote their own version · 0
None found.
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 repository99 other files it gives its agents.
- docs/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- brainstormingSkill
- claude-md-improverSkill
- dispatching-parallel-agentsSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- forge-a11ySkill
- forge-agent-reportSkill
- forge-agentSkill
- forge-apiSkill
- forge-authSkill
- forge-autoresearchSkill
- forge-botsSkill
- forge-brainstormSkill
- forge-cliSkill
- forge-cmsSkill
- forge-code-reviewSkill
- forge-contextSkill
- forge-councilSkill
- forge-craftSkill
- forge-databaseSkill
- forge-dataSkill
- forge-debugSkill
- forge-deeplearnSkill
- forge-devopsSkill
- forge-docdriftSkill
- forge-doctorSkill
- forge-ecc-adapterSkill
- forge-ecommerceSkill
- forge-electronSkill
- forge-extensionSkill
- forge-figmaSkill
- forge-fullstackSkill
- forge-gameSkill
- forge-graded-verifySkill
- forge-guardianSkill
- forge-heartbeatSkill
- forge-i18n-docsSkill
- forge-intakeSkill
- forge-integrationSkill
- forge-long-form-writingSkill
- forge-mcp-clientsSkill
- forge-memorySkill
- forge-migrationSkill
- forge-mindmapSkill
- forge-mlopsSkill
- forge-mobileSkill
- forge-n8nSkill
- forge-nightshiftSkill
- forge-observabilitySkill
- forge-paymentsSkill
- forge-plan-largeSkill
- forge-prdSkill
- forge-predictionSkill
- forge-projectbrainSkill
- forge-prompt-coachSkill
- forge-qualitySkill
- forge-ragSkill
- forge-registrySkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Self-improvement substrate (wp-skill-evals): before applying this skill, read learnings.md in this skill's own folder and honor its …
- Distinctive: line 47
Every generated claim carries a real evidence pointer (a relative path, optionally with an event type/heading) or is explicitly marked in …
- Very specific: line 63
Never hand-edit sections 2-10 of .claude/FORGE_SNAPSHOT.md.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Forge playbook — Snapshot (context-continuity snapshot system)
Self-improvement substrate (wp-skill-evals): before applying this skill, read
learnings.md in this skill's own folder and honor its corrections. After a run that produced a
genuine correction (an owner fix, a false assumption caught, a preference stated), append it to
learnings.md with a date and real evidence — never invent a lesson that didn't happen.
Owner request: "bij elke 50% context een snapshot.md zodat er geen memory wordt vergeten…
en dan een uitgebreid rapport zodat de agents nog weten wat we maken — dit geldt ook voor globaal." There is
no context-percentage available to a hook (a closed Claude Code feature request — the only percentage
lives in the separate statusline channel, context_window.used_percentage, which no hook can read). This
system never fabricates or estimates one. Instead it fires on the real, honest signals: a PreCompact
hook (the genuine "context is about to be compacted" event), a phase boundary, or an explicit manual call.
What it does
node .claude/forge-bin/forge-snapshot.cjs write [--run <id>] [--reason ...] regenerates .claude/FORGE_SNAPSHOT.md (ten fixed sections, every claim with an evidence pointer) from real project sources; check [--max-age-hours N] is a read-only staleness probe. A PreCompact hook (forge-snapshot-marker.cjs) writes a due-marker and a fresh snapshot; a SessionStart compact hook (forge-snapshot-reinject.cjs) re-injects Mission + Current state + Next actions. Both never block and never print a secret. The four tools, the sources read, the hook wiring and the settings merge helper in full: references/internals.md.
Anti-drift (the core design decision)
- Section 3 ("Current state") is ALWAYS re-derived fresh from source-of-truth on every regeneration —
never patched forward from a previous snapshot. Changing
events.jsonlorTODO_GRAPH.mdbetween twowrite()calls changes the output; nothing is ever carried over except what section-1 explicitly preserves. - Section 1 ("Mission") is the one deliberate exception — preserved VERBATIM across regenerations. It is
read from an existing
<!-- MISSION:BEGIN -->...<!-- MISSION:END -->marker if the currentFORGE_SNAPSHOT.mdalready has one; else migrated verbatim from a pre-existing hand-written snapshot's own first##section (a one-time migration path so a hand-authored stopgap's mission survives the switch to this tool); else derived fromFORGE_MEMORY.md's latest status heading; else an honest, clearly-marked TODO for a human/agent to fill in — never guessed prose.
Size discipline
Target <= ~2000 tokens of prose (chars/4 heuristic — approximate, not a real tokenizer, and reported honestly
as approxTokens rather than presented as exact). Long things are paths, never inlined. Every generated
section (2..9 — Mission is exempt) that would exceed its own character budget is cut with an explicit
"(truncated — see <path>)" marker rather than growing unbounded.
Honesty
Every generated claim carries a real evidence pointer (a relative path, optionally with an event type/heading) or is explicitly marked in the Honesty footer's "unknown/missing" list — never a bare, unattributed assertion. No context-window percentage is ever fabricated or estimated anywhere in this system.
Wiring
Opt-in, already applied 2026-07-29 (project-local and global hooks; live record in HOOKS_OPT_IN.md). Details: references/internals.md.
When to use
- Automatically: the wired PreCompact/SessionStart(compact) hooks fire on a real compaction.
- Manually:
/forge snapshot(phase boundary, or whenever the owner wants a fresh, evidenced snapshot without waiting for a compaction) ->node .claude/forge-bin/forge-snapshot.cjs write --reason phase. - Suggest
/compactwith a short focus note at a logical boundary (a phase just finished, or before an unrelated task) — around 60% context use — never in the middle of a task. node .claude/forge-bin/forge-snapshot.cjs check --max-age-hours 24to probe staleness (e.g. from a doctor pass or before a long unattended run).
Never hand-edit sections 2-10 of .claude/FORGE_SNAPSHOT.md; edit only the text between the MISSION markers to change the Mission. One agent, no team: any Boss can call write --reason phase at a natural checkpoint. Tools, fan-out and ship-readiness in full: references/internals.md.
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.

