synthesis-context-lifecycle

synthesis-context-lifecycle is a skill for Claude Code, Codex from synthesisengineering/synthesis-skills. It costs 57 tokens per session (12,383 once invoked), scanned A, original, Apache-2.0.

A system for organizing the information an AI needs across long-running projects. It separates current working details, session history, stable facts, and records of completed work so each can be kept for the right length of time.

In plain words
What is it for?
Use it to manage project context, keep working memory concise, archive session records, maintain stable reference facts, and clean up old information.
Why use it?
It prevents one context file from growing without limit and burying current tasks under old logs and completed work.

Skill for Claude CodeCodex

Written for Claude Code and Codex: SessionStart hook event, but also agents/openai.yaml present. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

Part of the synthesis-skills plugin — 63 skills, 4 hooks shipped together

Good fit Use it to manage project context, keep working memory concise, archive session records, maintain stable reference facts, and clean up old information.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/synthesisengineering/synthesis-skills/synthesis-context-lifecycle
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add synthesisengineering/synthesis-skills --skill synthesis-context-lifecycle
Clone the repo
git clone --depth 1 https://github.com/synthesisengineering/synthesis-skills

Made for: Claude Code, Codex.

Or install synthesis-skills, the plugin that ships this one along with the rest of its 63 skills, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for synthesis-context-lifecycle

README.md
[![agentmods](https://agentmods.dev/badge/skills/synthesisengineering/synthesis-skills/synthesis-context-lifecycle/github.svg)](https://agentmods.dev/skills/synthesisengineering/synthesis-skills/synthesis-context-lifecycle)
Your own site
<a href="https://agentmods.dev/skills/synthesisengineering/synthesis-skills/synthesis-context-lifecycle"><img src="https://agentmods.dev/badge/skills/synthesisengineering/synthesis-skills/synthesis-context-lifecycle/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for synthesis-context-lifecycle

Your own site · 80×15
<a href="https://agentmods.dev/skills/synthesisengineering/synthesis-skills/synthesis-context-lifecycle"><img src="https://agentmods.dev/badge/skills/synthesisengineering/synthesis-skills/synthesis-context-lifecycle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 12,383 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.12383
Opus 5 $0.00028 $0.06191
Sonnet 5 $0.00011 $0.02477
Haiku 4.5 $0.00006 $0.01238

Measured yesterday against content hash d4871060dc00, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

synthesis-context-lifecycle scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 11 executable files (scripts/context_currency.py, scripts/context_doctor.py, scripts/context_edit.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/synthesis-context-lifecycle/SKILL.md · 943 lines

How it starts

The opening of the file, as written. The whole thing — 943 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Context Lifecycle Management

The Problem

AI collaborators start every session with zero context. Their effectiveness depends entirely on the quality of the context they receive. For short-lived projects (2-3 sessions), a single context file works. For long-running projects spanning weeks or months, that file grows unboundedly — combining four types of information with fundamentally different lifecycles:

Information type Access pattern Growth pattern Ideal treatment
Working memory (current state, active tasks) Every session Constant Keep lean, refresh often
Episodic memory (session logs) Rarely after 1 week Unbounded append Archive monthly
Semantic memory (stable facts, reference) Most sessions Slow, update-in-place Separate file
Completed work records Almost never Unbounded append Delete after archiving

Combining all four in one file means the file grows linearly with session count, with no mechanism for information to leave. This is the classic hot/warm/cold data problem from database engineering, manifesting in AI context management.


The Architecture

Three Tiers

project/
├── CONTEXT.md      # Working memory (budget: ≤150 lines)
├── REFERENCE.md    # Semantic memory (stable facts, update in place)
├── reference/      # Semantic memory, sharded — once one file is not enough
│   └── <topic>.md  # One topic per file; REFERENCE.md becomes its index
├── sessions/       # Episodic memory (archived session logs)
│   └── YYYY-MM.md  # Monthly files
└── [other files]   # Transcripts, artifacts, etc.

This maps to both cognitive science and systems engineering:

Human memory CPU cache Synthesis equivalent Properties
Working memory L1 cache CONTEXT.md Small capacity, constantly refreshed, always loaded
Semantic memory L2 cache REFERENCE.md Facts and relationships, updated in place, loaded on demand
Episodic memory L3 cache sessions/ Chronological events, append-only, searched when needed
Procedural memory Firmware CLAUDE.md / AGENTS.md + lessons/ How to do things, rules, patterns

Read the full file on GitHub · 943 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +14 lines d4871060dc00
  2. 4d ago Changed · +6 lines 3dbded78bf3c
  3. 5d ago Changed · +12 lines 86a72857a6ae
  4. 5d ago Changed · +81 lines ff8546a8e705
  5. 9d ago First seen · 830 lines · 57 tokens per session scan A 1cfa16159a08

Subscribe to this mod's changes

synthesis-context-lifecycle is a skill published in the GitHub repository synthesisengineering/synthesis-skills (18 stars, last pushed 2d ago), licensed Apache-2.0. It adds 57 tokens to every session and 12,383 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

media-ingest

Ingest video, audio, PDF, book, screenshot, and GitHub repo content into the brain. Multi-format handling with entity extraction and backlink propagation. Covers video-ingest, youtube-ingest, and book-ingest subtypes.

garrytan/gbrain · 52 tokens

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…

mem0ai/mem0 · 273 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

establishing-project-context

Use when the user asks to establish shared project language, or project work exposes a conflicting, renamed, or deprecated domain term that needs active semantic modeling. Routine small tasks stay on the fast path.

GanyuanRan/Aegis · 45 tokens