Automated summary
Scans the current Claude Code session for corrections, preferences, errors and recurring patterns, then proposes numbered patches for memory, settings and skills/rules, routing corporate-classified files to a separate review queue.
Strengths
- Turns in-session corrections into concrete numbered patches grouped by target (memory, settings, skills, rules)
- Explicit pre-flight checks (git, working tree, routing map) with specific recovery messages instead of silent failures
- Strong safety guard: corporate-classified files are never auto-applied and land in a dedicated review queue
- Single atomic git commit plus a low-token light mode for quick sweeps
Limitations
- Manual invocation only: it never auto-triggers, so you must remember to run /calibrate at session end
- Assumes a git repo, the scripts/calibrate.py parser for full mode and config/routing-map.yaml, and aborts otherwise
- Auto-commit may sweep in unrelated edits when the working tree holds non-transient changes (it asks for confirmation)
- Scoped to a single internal owner-level workspace, with no propagation to other teams
Use at the end of a working session to capture learnings and convert observed corrections and preferences into configuration patches.
Use /dream for cross-session memory consolidation, or /evaluate to grade a single artifact.
Security analysis
CautionThe 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.
Examples
/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.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/calibrate-end-of-session-self-improvement-mt59ovyv/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
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. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Read, Edit, Write, Bash(python3:*, git:*), Glob, Grep
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
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 must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/calibrate-end-of-session-self-improvement-mt59ovyv'openskills read 'calibrate-end-of-session-self-improvement-mt59ovyv'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/calibrate-end-of-session-self-improvement-mt59ovyv/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
PDF Reader
Productivity
Read and extract text from PDF files, including documents, reports, contracts, and spreadsheets. Works with local files, URLs, and WhatsApp attachments. Use whenever PDF content is needed, even if not explicitly requested.
Discord Messaging Workflows
Productivity
Use the message tool to send, edit, and moderate Discord messages with interactive components.
Interactive Verdict Preview
Productivity
Generate an interactive HTML preview of keep/drop verdicts for maintainer review, then process the pasted feedback JSON.