restore-exocortex

restore-exocortex is a skill for Claude Code from TserenTserenov/FMT-exocortex-template. It costs 34 tokens per session (1,149 once invoked), scanned A, original, MIT.

A recovery procedure that restores an agent’s saved working memory from an exocortex backup, meaning an external copy of its project information. It restores memory, extensions, configuration guidance, and the required link while protecting existing data unless approval is given.

In plain words
What is it for?
Use it to restore a governance repository, recover memory and extensions, review the recovery report, and restart the agent afterward.
Why use it?
It helps recover the agent’s working context after moving to a new device or losing or damaging its memory files.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit Use it to restore a governance repository, recover memory and extensions, review the recovery report, and restart the agent afterward.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tserentserenov/fmt-exocortex-template/restore-exocortex
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 TserenTserenov/FMT-exocortex-template --skill restore-exocortex
Clone the repo
git clone --depth 1 https://github.com/TserenTserenov/FMT-exocortex-template

Made for: Claude Code.

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 restore-exocortex

README.md
[![agentmods](https://agentmods.dev/badge/skills/tserentserenov/fmt-exocortex-template/restore-exocortex/github.svg)](https://agentmods.dev/skills/tserentserenov/fmt-exocortex-template/restore-exocortex)
Your own site
<a href="https://agentmods.dev/skills/tserentserenov/fmt-exocortex-template/restore-exocortex"><img src="https://agentmods.dev/badge/skills/tserentserenov/fmt-exocortex-template/restore-exocortex/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 restore-exocortex

Your own site · 80×15
<a href="https://agentmods.dev/skills/tserentserenov/fmt-exocortex-template/restore-exocortex"><img src="https://agentmods.dev/badge/skills/tserentserenov/fmt-exocortex-template/restore-exocortex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,149 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium analysis-evasion · line 1
    Suspicious Unicode normalization or mixed-script content
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
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.00034 $0.01149
Opus 5.5 $0.00014 $0.00460
Sonnet 5.5 $0.00007 $0.00230
Haiku 4.5 $0.00003 $0.00115

Measured 3d ago against content hash 3f5932eb73e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

restore-exocortex 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 3d ago.

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.

.claude/skills/restore-exocortex/SKILL.md · 69 lines

How it starts

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

/restore-exocortex — Восстановление памяти из exocortex

Роль: R6 Кодировщик Триггер: «восстанови экзокортекс / память», новое устройство, потеря/повреждение memory/ Service Clause: DP.SC.153 (родительский, скиллы); реализация #125

Обещание (контракт)

Вход: (опц.) путь к governance-репо. По умолчанию $WORKSPACE_DIR/$GOVERNANCE_REPO (${IWE_WORKSPACE:-$HOME/IWE}/DS-strategy). Выход: восстановленные memory/ + extensions/ + CLAUDE.md + симлинк memory/; отчёт + напоминание перезапустить Claude Code. Инвариант: НЕ перезаписывает населённую memory/ или extensions/ без явного подтверждения пользователя.

Оркестрация, не реализация. Скилл судит (свежее устройство vs существующая инсталляция, резолв пути, подтверждение) и зовёт детерминированный примитив scripts/restore-from-exocortex.sh. Сам file-ops не делает. На голом терминале без агента используется скрипт напрямую — это bootstrap-путь (см. SETUP-GUIDE).

Алгоритм

Шаг 1. Резолв скрипта и пути

  • Скрипт: restore-from-exocortex.sh из $IWE_SCRIPTS (при пустой переменной — ${IWE_SCRIPTS:-$HOME/IWE/scripts}), иначе $WORKSPACE_DIR/FMT-exocortex-template/scripts/restore-from-exocortex.sh. Нет файла → см. Режим отказа.
  • Governance-репо: аргумент пользователя, иначе $WORKSPACE_DIR/${GOVERNANCE_REPO:-DS-strategy}. Убедиться, что <gov>/exocortex/ существует.

Шаг 2. Pre-flight (judgment — здесь LLM уместен)

  • Определить целевую auto-memory: ~/.claude/projects/$(echo "$HOME" | tr '/_.' '-')-IWE/memory (Claude Code слугифицирует /, _, . → -; tr '/' '-' промахнётся при _ в username).
  • Пусто/нет → свежее устройство, восстановление без --force.
  • Населена → существующая инсталляция. Это destructive: показать --dry-run и спросить подтверждение перед --force (Правило 7, исключение «необратимое»).

Шаг 3. Превью → восстановление

  1. Всегда сначала restore-from-exocortex.sh <gov> --dry-run — показать пользователю, что будет сделано.
  2. После согласия (или сразу, если memory пуста) — запуск без --dry-run (с --force, если memory населена и пользователь подтвердил).

Read the full file on GitHub · 69 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. 3d ago Changed · +2 lines 3f5932eb73e4
  2. 13d ago Changed 98e6a018ec25
  3. 1mo ago Changed · +4 lines 02bcaf876952
  4. 1mo ago Changed e8b659343fe6
  5. 2mo ago Changed · +1 lines 0acf583aac6e
  6. 3mo ago First seen · 62 lines · 34 tokens per session scan A 8d60c8468653

Subscribe to this mod's changes

restore-exocortex is a skill published in the GitHub repository TserenTserenov/FMT-exocortex-template (65 stars, last pushed today), licensed MIT. It adds 34 tokens to every session and 1,149 once invoked, about $0.0001 per session on Opus 5.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

restore-exocortex compared with skills from other repositories

restore-exocortex next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
restore-exocortexTserenTserenov/FMT-exocortex-templateSkill65todayMITA34Claude Code
agent-memory-mcpdavila7/claude-code-templatesSkill34ktodayMITA26Claude Code, Codex
rememberyonatangross/orchestkitSkill312todayMITA66Claude Code
67-agency-vendor-brief-globalminhnv0807/ai-business-skillsSkill72125d agoMITA166Claude Code
dreamyonatangross/orchestkitSkill312todayMITA34Claude Code
context-engineeringjcarlosrodicio/opencode-agent-orchestration-kitSkill163todayApache-2.0A43Claude Code, Codex
neo4j-agent-memory-skillneo4j-contrib/neo4j-skillsSkill1225d agoMITA242Claude Code