Logo di Context Checkpoint

Context Checkpoint

Community
clarity-digital-development
context-checkpoint

Use when context usage needs checking or a compact/clear decision is due — a context warning or usage figure appears, the user asks whether to compact or clear, the session shows degradation (re-read files, repeated corrections, forgotten constraints), or a dev-workflow phase boundary is reached (step committed, review or QA report delivered).

Panoramica

Autoreclarity-digital-development
Repositorytworkflow
Nome della skillcontext-checkpoint
Stelle
46
Fork
3
File inclusi
2
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 2 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da clarity-digital-development su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Context Checkpoint in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/clarity-digital-development/tworkflow/tree/main/skills/context-checkpoint
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/clarity-digital-development/tworkflow.git /tmp/tworkflow
mkdir -p .claude/skills
cp -r /tmp/tworkflow/skills/context-checkpoint .claude/skills/context-checkpoint
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Context Checkpoint in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Context Checkpoint non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Context Checkpoint non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Context Checkpoint

Measured usage for this session (may be unavailable):

!python "${CLAUDE_SKILL_DIR}/scripts/context_usage.py" "${CLAUDE_SESSION_ID}"

You are deciding whether the session should reset, and recommending — you cannot run /compact or /clear yourself; only the user can.

1. Get a real number

  • If the measurement above shows a percentage, use it.
  • Otherwise ask the user to run /context (or read their status line) and tell you the figure. Never guess a percentage, and never act on a guessed one.

2. Under 40%: report and continue

One line — "Context at ~N%, no reset needed" — then back to the task.

3. At or past 40%: recommend a reset at the next clean boundary

A clean boundary is a just-committed step, a just-delivered review or QA report — any moment the working state is written down. First finish reaching the boundary (complete the commit, deliver the artifact); never stop mid-edit. Then recommend exactly one of:

Clear and reseed — preferred when state is written down. If the plan document is committed and current: have the user fill the session-handoff template (bundled docs/templates/SESSION-HANDOFF.md if the repo has it; otherwise: current step, decisions not yet in the plan, next action, known landmines — you can draft it for them), then /clear, then seed the new session with the plan and the handoff. In Claude Code, /clear keeps the old conversation available under /resume, so nothing is lost.

Compact — when state is NOT yet written down. Mid-task with decisions that exist only in conversation: offer to write the handoff note now, and give the user a ready-to-paste command with explicit preservation instructions, e.g.:

/compact preserve: the plan at docs/plans/<file>, current step <N> and its
status, decisions made this session, unresolved findings, the exact next action

Past 60%, or if auto-compact has already fired this session: recommend clear-and-reseed, not compact — the deliberate reset is overdue.

4. Rot symptoms override the number

If the session shows two or more of — re-reading files already read, re-asking answered questions, contradicting a recorded decision, forgetting a context-file or plan constraint — recommend the reset now, at whatever the usage number is, and name the symptoms. Do not offer "just push on" as the default option.

Rules

  • A measured or user-provided number only; never invented.
  • Never claim to have compacted or cleared — recommend, with the exact command, and let the user run it.
  • 40% is the default threshold (rationale: docs/07-context-hygiene.md); honor a different threshold if the user has set one.
  • The percentage is of the actual window. On Fable 5 / Sonnet 5 that's a 1M window, so 40% there is far more tokens than 40% of 200K — the rule still holds, but the rot symptoms matter more than the raw number. The bundled script sizes the window from the model (Fable, Mythos, Sonnet 5, and [1m] names); for other 1M configs like opus[1m] it assumes 200K until usage passes that, so set CONTEXT_CHECKPOINT_WINDOW or confirm with /context. If Fable 5 itself offers to start a fresh session, that's the model being cautious, not this rule firing — the deliberate reset still triggers on the threshold and the symptoms.
  • This skill checks only when invoked. The automatic nudge comes from the optional hook (scripts/context_hook.py next to this file — setup instructions in its header). If the user relies on the 40% rule, recommend once per project that they install the hook and a status line showing context_window.used_percentage.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Context Checkpoint?

Use when context usage needs checking or a compact/clear decision is due — a context warning or usage figure appears, the user asks whether to compact or clear, the session shows degradation (re-read files, repeated corrections, forgotten constraints), or a dev-workflow phase boundary is reached (step committed, review or QA report delivered).

Perché usare Context Checkpoint su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Context Checkpoint è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Context Checkpoint in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/clarity-digital-development/tworkflow/tree/main/skills/context-checkpoint. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Context Checkpoint?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Context Checkpoint?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Context Checkpoint: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Context Checkpoint è gratuita?

Sì. È pubblicata su GitHub da clarity-digital-development con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇