Synthèse automatique
Analyse la session Claude Code en cours pour repérer corrections, préférences, erreurs et motifs récurrents, puis propose des correctifs numérotés à appliquer à la mémoire, aux réglages et aux skills/règles, avec routage des fichiers corporate vers une file de revue.
Points forts
- Transforme les corrections d'une session en correctifs concrets et numérotés, groupés par cible (mémoire, réglages, skills, règles)
- Contrôles préalables explicites (git, arbre de travail, carte de routage) avec messages de récupération plutôt qu'un abandon silencieux
- Garde-fou net : les fichiers de classification corporate ne sont jamais appliqués automatiquement et partent dans une file de revue dédiée
- Commit git atomique unique et mode « light » économe en tokens pour les états rapides
Limites
- Invocation strictement manuelle : le skill ne se déclenche jamais tout seul, il faut penser à lancer /calibrate en fin de session
- Suppose un dépôt git propre, le script scripts/calibrate.py pour le mode complet et config/routing-map.yaml, sinon il s'arrête
- Le commit automatique peut inclure des modifications non liées si l'arbre de travail contient des changements hors transitoires (une confirmation est demandée)
- Périmètre restreint à un usage interne de type direction, sans propagation vers les équipes
À lancer en fin de session de travail pour capitaliser sur les corrections et préférences observées et les transformer en correctifs de configuration.
Pour consolider la mémoire entre plusieurs sessions (utiliser /dream) ou pour noter un artefact unique (utiliser /evaluate).
Analyse de sécurité
PrudenceThe skill is a legitimate, interactive end-of-session improvement workflow. It uses powerful tools (git, python, file edits to agent config) but for a coherent, documented purpose, with fail-closed classification, hard-denied paths, and user approval before any write or commit. No network calls, exfiltration, destructive commands, or obfuscation are present. Rated caution because it auto-commits and self-modifies configuration files, and trust hinges on unreviewed local scripts.
- •Runs local Python scripts (`scripts/calibrate.py`, `scripts/sanitize-text.py`, `scripts/utils/workspace.py`) via Bash(python3:*); safety depends on those scripts being reviewed since the skill does not show their contents.
- •Makes an automatic `git commit` of workspace files; it warns and requires confirmation only when uncommitted non-transient changes exist, so files could be committed without granular per-file review.
- •Self-modifies agent configuration (`memory/`, `.claude/skills/`, `.claude/rules/`, `.claude/settings.local.json`); this is approval-gated and CEO-only, but is a powerful self-editing capability.
- •Mitigations present: corporate-classified edits are fail-closed to a review queue, hard blocks on `_secure/` and global `~/.claude/CLAUDE.md`, and explicit user approval before applying patches.
- •Self-modifying capability: the skill edits its own instruction/config files (`.claude/settings.local.json`, `.claude/skills/{name}/SKILL.md`, `.claude/rules/*.md`, and memory files) without showing the exact diffs to the auditor; approval gating and corporate routing mitigate but do not eliminate this.
- •Step 5.4 stages and commits 'any other modified workspace files'; if a user confirms the Phase 0 warning, unrelated uncommitted changes can be swept into the atomic commit.
- •Full mode executes local Python helper scripts (`scripts/calibrate.py`, `scripts/utils/workspace.py`, `scripts/sanitize-text.py`) whose contents are not included in the skill, so their actual behavior cannot be verified from this artifact.
- •Bash allowlist is broad (`python3:*`, `git:*`), permitting arbitrary commands executed via those interpreters/binaries, though it is scoped and used for legitimate purposes.
Exemples
/calibrate/calibrate lightTerminons la session : lance /calibrate pour capturer les corrections et préférences de cette session et me proposer les correctifs à appliquer.name: calibrate
disable-model-invocation: true
description: >
Reflective end-of-session self-improvement. Scans the current Claude Code
session for corrections, preferences, repeated patterns, errors, success
patterns, and voice violations, then proposes numbered concrete patches to
memory, settings, ceo-only skills, and ceo-only rules. Corporate files
route to a separate review queue and are NEVER auto-applied. Use at end of
every working session. Light mode for low-token state or quick sweeps.
CEO-only - never propagates to execs.
argument-hint: "[light]"
allowed-tools: "Read, Edit, Write, Bash(python3:, git:), Glob, Grep"
context: fork
model: sonnet
metadata:
author: Misha Hanin
email: misha.hanin@odinix.com
version: "1.1"
x-heading-orchestration:
parallel_safe: false
shared_state:
- "memory/"
- ".claude/skills/"
- ".claude/rules/"
- ".claude/settings.local.json"
- "outputs/operations/calibrate/"
triggers:
- "calibrate"
- "self-improve agent"
- "end of session capture"
- "/calibrate"
- "/calibrate light"
x-heading-capability:
what: >
Reflective end-of-session self-improvement - scans the session for corrections,
preferences, errors, and voice violations, then proposes numbered patches to memory,
settings, and ceo-only skills/rules. Corporate-classified patches route to a review
queue and are never auto-applied. CEO-only.
how: >
Run /calibrate (explicit-invocation-only, never auto-triggers). Full mode parses the
session JSONL; /calibrate light scans only the in-context conversation. Applies approved
patches and makes one atomic git commit; any corporate queue lands in outputs/operations/calibrate/.
when: >
Use at the end of a working session to capture learnings. For cross-session memory
consolidation use /dream; for grading a single artifact use /evaluate.
x-heading-routing:
category: Operations
label: /calibrate [light]
triggers:
- NEVER auto-trigger. Explicit /calibrate [light] only.
exclusions:
- Cross-session memory hygiene -> /dream
- quality grade on a single artifact -> /evaluate
compound: 'No'
router: manual
/calibrate - End-of-Session Self-Improvement
Scans the current session for friction and successes. Proposes numbered patches grouped by target (Memory / Settings / Skills / Rules), applies approved patches, and makes a single atomic git commit. Corporate files route to a separate review queue, never auto-applied.
Design spec: docs/superpowers/specs/2026-05-13-calibrate-skill-design.md (data overlay: .heading-os-data/docs/superpowers/specs/2026-05-13-calibrate-skill-design.md).
Detection prompts: references/detection-prompts.md.
Phase 0 - Pre-flight + mode dispatch
Run these checks before any other work. Each failure has a specific recovery message; never abort silently.
-
Git available + in repo. Run
git rev-parse --is-inside-work-tree. If exit != 0: abort with "git not available or not in a repo. /calibrate cannot safely auto-commit." -
Working tree state. Run
git status --porcelain. The typical transient set isoutputs/,crm/aggregated/,.sessions/anddatastore/operations/tribe/fireside-state/. If any modified file sits outside it, warn: "Working tree has uncommitted changes that aren't typical transients. /calibrate's auto-commit will include them. Stage and commit first, or confirm to proceed? (proceed / cancel)". Wait for explicit answer. -
Mode dispatch. Parse
$ARGUMENTS:- Empty / no flag -> full mode
lightor--light-> light mode
-
Full mode only: verify
scripts/calibrate.pyexists. If missing, abort: "Parser script missing. Cannot run full mode. Try/calibrate light." -
All modes: verify
config/routing-map.yamlexists. If missing, abort with: "Routing map missing. /calibrate's safety filter cannot run. Aborting."
Phase 1 - Acquire signal envelope
Full mode
Invoke the parser:
python scripts/calibrate.py > /tmp/calibrate-envelope.json
Read /tmp/calibrate-envelope.json via the Read tool. Validate the envelope
has the expected keys (user_turns, assistant_turns, tool_errors,
system_reminders, workspace). If validation fails: report parser error
and abort.
If envelope["truncated"] is true, surface a one-line notice in Phase 4
preamble: "Note: session exceeded budget. Oldest user turns truncated. Recent
corrections still captured."
If envelope["event_count"] is 0: exit cleanly with "Session produced no
actionable events. Nothing to calibrate."
Light mode
Skip the parser. Use the current in-context conversation directly. Announce in the Phase 4 preamble:
Light mode active. Scanning only in-context conversation (no JSONL parse). Categories 3 (repeated patterns) and 4 (errors / friction) skipped - they require the structured envelope. Long sessions may have auto-compacted early turns - those signals are not recoverable here. Run
/calibrate(full) for the complete pass.
Phase 2 - Six-category detection
Load references/detection-prompts.md via Read. Walk the envelope through the
six detection prompts in order. Each detected signal becomes a candidate of
the shape specified in detection-prompts.md.
| # | Category | Full mode | Light mode | |---|---|---|---| | 1 | Corrections | kept | kept | | 2 | Preferences | kept | kept | | 3 | Repeated patterns | kept | SKIPPED | | 4 | Errors / friction | kept | SKIPPED | | 5 | Success patterns | kept | kept | | 6 | Voice violations | kept | kept |
For each candidate, also run the idempotency check from detection-prompts.md: Grep the proposed target file for substring match of the proposed diff body. If matched, drop the candidate silently. This prevents duplicate patches.
Also: NEVER propose patches to files under _secure/ regardless of category.
Hard block, even if a signal points there.
Also: NEVER propose patches to ~/.claude/CLAUDE.md (the global private
CLAUDE.md). V1 scope is per-project memory only.
Phase 3 - Classification filter
For each candidate, resolve the target file's classification:
python scripts/utils/workspace.py get_classification <target-path>
Returns "ceo-only" or "corporate". On any error from the resolver, treat as corporate (fail-closed - never auto-apply on doubt).
Routing:
ceo-only-> proceeds to Phase 4 numbered listcorporate-> moves to the corporate review queue (Phase 5 step 5)
For new-file candidates (proposed target does not yet exist):
- Path starts with
~/.claude/projects/.../memory/-> ceo-only - Path starts with
outputs/-> ceo-only - Otherwise -> corporate (fail-closed)
Phase 4 - Grouped numbered presentation
Sort the ceo-only candidates per the sort order in detection-prompts.md. Group by target category (Memory / Settings / Skills / Rules). Number sequentially across groups.
Auto-include: thread-log capture
Before presenting Phase 4, check whether the session edited any file under
threads/business/ or threads/personal/. If yes, prepend a special
candidate to the Memory group (or Skills group if the thread skill itself
needs an entry):
0. [PROJECT-LOG] Append a session-log entry to threads/{layer}/{slug}.md
-> threads/{layer}/{slug}.md
Session touched this thread; capture key decisions, files changed, open
questions, and what's next so the next session resumes cleanly.
If multiple threads were touched, list one candidate per thread. Skip entirely if no thread files were read or written.
This is a CEO-only auto-include. The threads/ tree is CEO-only per the workspace classification rule, and the auto-include logic itself never fires in exec workspaces because /calibrate is CEO-only.
Numbered candidate presentation
Display format and strict input grammar: references/presentation-format.md.
Wait for user input after rendering. Re-prompt rather than guess on unrecognised input.
Phase 5 - Apply + commit
After user approval, in this exact order:
Step 5.1: Apply ceo-only patches
For each approved candidate (in sorted order):
- Memory files (
~/.claude/projects/.../memory/):- If patch is "append": Edit to add the new bullet under the body's main rule
- If patch is "update": Edit to replace the affected section
- If patch is "create new": Write the new
feedback_{slug}.mdfile with full frontmatter, then EditMEMORY.mdto add the one-line index pointer
- Settings file (
.claude/settings.local.json): Edit to set the new property - Skills (
.claude/skills/{name}/SKILL.md, ceo-only): Edit the specific section named in the proposal - Rules (
.claude/rules/{file}.md, ceo-only): Edit the specific section named
If any Edit fails (old_string no longer unique, file changed since Phase 1, etc.): stop immediately. Report: "Patch {N} failed: {reason}. Patches 1 through {N-1} applied. Patches {N} through {M} skipped. Run /calibrate again to retry. No commit made." Skip Steps 5.2-5.5 entirely.
Step 5.2: Write corporate review queue (only if any corporate candidates)
If any candidates routed to corporate review, write a single file:
outputs/operations/calibrate/{YYYY-MM-DD}_corporate-review.md
Format per the references/detection-prompts.md section on corporate review
queue patches. The fields are source quote, category, proposed target, and the
proposed diff in a fenced code block (read-only format, NOT git-applyable). Then
the rationale, then "to apply: review the diff manually, edit the target file by
hand, run /push-updates."
If no corporate candidates: skip this step. Do not write an empty file.
Step 5.3: Sanitisation pass
Run python scripts/sanitize-text.py {modified-files} --scan on every file
that was modified or created by Steps 5.1 and 5.2. If hidden Unicode is
detected, auto-run with --fix to clean. Note in commit body if cleanup
happened.
Step 5.4: Stage + commit
Stage .claude/, outputs/operations/calibrate/, and any other modified
workspace files. Memory files at ~/.claude/projects/.../memory/ are outside
the workspace tree - NOT staged. Settings file at
.claude/settings.local.json is gitignored - staged but git ignores it.
Commit message template + behaviour on pre-commit hook rejection:
references/patch-application-protocol.md.
Step 5.5: Report final state
Final state report template: references/patch-application-protocol.md.
NEVER
- Never auto-apply corporate patches. Corporate-classified files only
route to the review queue. Edits to corporate files require manual
review +
/push-updates. - Never write to
_secure/. Detection skips _secure/ targets entirely. - Never write to
~/.claude/CLAUDE.md(global). V1 scope is per-project memory only. - Never rollback automatically on partial failure. Stop on first error, report, let the user decide.
- Never run silently on ambiguous input. Strict grammar in Phase 4 - re-prompt rather than guess.
- Never propose duplicate patches. Idempotency check before every candidate goes into the numbered list.
- Never propagate to execs. This skill is ceo-only. Not in
templates/GETTING-STARTED.md, not in the corporate repo, not incorporate/sync.
Error handling
Specific recovery messages per failure mode. See spec section 9 for the complete matrix. Always provide actionable recovery; never raw tracebacks.
Voice rules
- Single hyphens
-in prose, never--. - No em-dashes in any prose Claude generates within this skill.
- ODUN.ONE when referencing 31C platform.
- DPI+ for deep packet intelligence.
- Language matches the user's language (Russian question = Russian output).
Output-prose plain-English mandate
Candidate summaries, bodies, and rationales must be plain-language so the
user can scan and pick apply 1, 3, 5 in seconds. Banned-vocabulary table,
plain-form replacements, and worked good/bad examples:
references/output-prose-style.md.
If a 12-year-old reading the candidate out loud would not roughly understand it, rewrite it.
Examples
Two end-to-end runs (light mode with 2 candidates, and a clean session
with no actionable events): references/examples.md.
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/calibrate-end-of-session-self-improvement-mt59ovyv/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/calibrate-end-of-session-self-improvement-mt59ovyv' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/calibrate-end-of-session-self-improvement-mt59ovyv/download' --output '.skill-downloads/calibrate-end-of-session-self-improvement-mt59ovyv/SKILL.md.part' && mv '.skill-downloads/calibrate-end-of-session-self-improvement-mt59ovyv/SKILL.md.part' '.skill-downloads/calibrate-end-of-session-self-improvement-mt59ovyv/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Outils déclarés par l’auteur (à vérifier dans votre agent) : Read, Edit, Write, Bash(python3:*, git:*), Glob, Grep
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/calibrate-end-of-session-self-improvement-mt59ovyv/SKILL.md' && test -s '.skill-downloads/calibrate-end-of-session-self-improvement-mt59ovyv/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/calibrate' && cp -R '.skill-downloads/calibrate-end-of-session-self-improvement-mt59ovyv' '.claude/skills/calibrate'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/calibrate-end-of-session-self-improvement-mt59ovyv'openskills read 'calibrate-end-of-session-self-improvement-mt59ovyv'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/calibrate-end-of-session-self-improvement-mt59ovyv/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Lecteur PDF
Productivite
Lit et extrait le texte de fichiers PDF (rapports, contrats, tableurs). Gère les fichiers locaux, les URL et les pièces jointes WhatsApp. Utilisez-le dès qu'un contenu PDF est nécessaire, même sans demande explicite.
Workflows de messagerie Discord
Productivite
Utilisez l'outil message pour envoyer, modifier et modérer des messages Discord avec des composants interactifs.
Aperçu interactif des verdicts
Productivite
Générer un aperçu HTML interactif des verdicts (garder/supprimer) pour la revue par le mainteneur, puis traiter le JSON de retour.