contextlisted
Install: claude install-skill lukasrepublic/agentic-foundry
# /foundry:context
The context lifecycle, an additive WRAP layer over native primitives. The four ctx-* skills fold into one
`/foundry:context <action>` — each action is a THIN seam over a native primitive,
realizing (extend, don't compete).
| action | native primitive it wraps | foundry delta |
|---|---|---|
| `snapshot` | `/compact` (lossy in-session) + `--resume` (verbatim replay) | writes a DURABLE, hand-editable distilled arc-state file (§0–§6 schema) that survives session end + 30-day replay retention. Additive to `--resume`, not a replacement. |
| `resume` | `--resume <id>` (verbatim) | re-grounds a FRESH session from the distilled snapshot's §6 authoritative-artifact pointers (cheaper than verbatim replay; survives expiry). |
| `list` | — | lists snapshots (the `summary:` line per file). |
| `status` | the context sensor | reports context budget / tier. |
## The snapshot schema (§0–§6)
The distilled arc-state file has seven short sections, numbered so resumers can cite them:
§0 header (session id, date, mandate) · §1 the mandate/goal · §2 decisions taken (with why) ·
§3 current state (what is done/verified) · §4 open threads + blockers · §5 next steps ·
§6 authoritative artifact pointers (paths/commits/PRs a successor MUST re-read before trusting
the prose — the load-bearing section).
## Procedure
- `snapshot` — distill the session arc into the §0–§6 schema file; §6 (authoritative artifact pointers) is load-bearing (a snapshot whose §6 is empty is a defect).
- `