Agent skill

Memory Archivist

by mage0535 in mage0535/hermes-memory-installer

“自动归档 + 知识图谱同步 + 记忆生命周期管理”

— description from SKILL.md by mage0535
MITAuto-check passedAgent Workflows

Install Memory Archivist

skills CLI
$ npx skills add mage0535/hermes-memory-installer --skill memory-archivist -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mage0535/hermes-memory-installer memory-archivist --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mage0535/hermes-memory-installer.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/memory-archivist .claude/skills/memory-archivist && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
memory-archivist
GitHub stars
209
Token cost
~255 tokens
SKILL.md length
73 words
Files
2 (incl. references)
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

  • Works in 6 steps: 会话归档 (archive_sessions.py) → 自动摘要 (auto_session_summary.py) → 知识图谱同步 (session_to_gbrain.py) → …
  • SKILL.md covers 核心脚本 and Cron 配置
  • Calls python3

About this skill

Memory Archivist is a skill in mage0535/hermes-memory-installer (209 stars). Its SKILL.md is about 255 tokens, with 1 other file in the folder (references). Licence: MIT.

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. 会话归档 (archive_sessions.py)
  2. 自动摘要 (auto_session_summary.py)
  3. 知识图谱同步 (session_to_gbrain.py)
  4. 记忆生命周期 (memory_lifecycle.py)
  5. 记忆守护 (memory_guardian.py)
  6. 记忆反思 (memory_reflect.py)

What it can do on your machine

Read from SKILL.md and the folder at commit 3f6974b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Memory Archivist loads about 255 tokens when it runs, and up to ~373 if it reads all its reference files. Until then it costs about 10 tokens; SKILL.md has 73 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~10
When it runs · the whole SKILL.md, loaded when a task matches
~255
With references · SKILL.md plus every file in references/, read only if the agent opens them
~373

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mage0535/hermes-memory-installer at commit 3f6974b, republished under its MIT licence (© mage0535). 73 words, ~255 tokens.

Download SKILL.mdSave it as .claude/skills/memory-archivist/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
memory-archivist
description
自动归档 + 知识图谱同步 + 记忆生命周期管理

Memory Archivist

进阶记忆层。实现自动化: 会话归档 → gbrain 知识图谱同步 → 记忆清理。

核心脚本

1. 会话归档 (archive_sessions.py)

从 state.db 提取完整对话 → 生成结构化摘要 → 写入 gbrain

bash
python3 scripts/archive_sessions.py --session-id <id>
2. 自动摘要 (auto_session_summary.py)

分析对话关键决策/学习/变更 → 生成 session_summary.md

3. 知识图谱同步 (session_to_gbrain.py)

增量同步: Hermes state.db → gbrain pages, 含 timeline + tags + wikilinks

bash
python3 scripts/session_to_gbrain.py --resume  # 断点续传
4. 记忆生命周期 (memory_lifecycle.py)
  • 检测 stale 记忆 (>30天未访问)
  • 标记 expired 记忆 (>90天)
  • 自动清理, 保护已标注 keep 的记忆
5. 记忆守护 (memory_guardian.py)

11.7KB, 最全面的记忆管理:

  • 容量检测 (memory tool 5KB cap)
  • 冲突检测 (新旧信息矛盾)
  • 智能压缩 (合并重复条目)
  • 过期清理
6. 记忆反思 (memory_reflect.py)

周期性运行, 分析近期记忆趋势, 生成用户画像更新建议

Cron 配置

yaml
# 每日归档
schedule: "30 3 * * *"
script: $AGENT_HOME/scripts/archive_sessions.py

# 每周生命周期
schedule: "0 4 * * 0"
script: $AGENT_HOME/scripts/memory_lifecycle.py

© mage0535, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in skills/memory-archivist of mage0535/hermes-memory-installer.

  • SKILL.md
  • references/archiving-policy.md

Open the folder on GitHubat commit 3f6974b

Compare with similar skills

Memory Archivist next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Memory Archivist compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Memory Archivist this skillmage0535/hermes-memory-installer209—~255Automated safety check: PassMIT
MCP Server Builderanthropics/skills180k64 repos~2.3kAutomated safety check: PassApache-2.0
MCP Server BuildershareAI-lab/learn-claude-code78k5 repos~1.2kAutomated safety check: PassMIT
Fastmcp Client CLIPrefectHQ/fastmcp28k1 repos~823Automated safety check: PassApache-2.0
Mem0 CLI Memory Commandsmem0ai/mem067k—~2kAutomated safety check: NotesApache-2.0
MemPalace Setup and OperationMemPalace/mempalace59k—~2.2kAutomated safety check: PassMIT

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 64 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • MCP Server Builder

    shareAI-lab/learn-claude-code

    Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.

    78k GitHub starsUsed in 5 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • Fastmcp Client CLI

    PrefectHQ/fastmcp

    Query and invoke tools on MCP servers using fastmcp list and fastmcp call.

    28k GitHub starsUsed in 1 repo~823 tokens
    Agent WorkflowsAuto-check passed
  • Adds, searches, lists, updates and deletes memories on the Mem0 platform from the terminal with the mem0 command, including a JSON mode built for agents.

    67k GitHub stars~2k tokensUpdated yesterday
    Agent WorkflowsAuto-check: notes
  • Installs and configures MemPalace as a private local palace, a shared-brain hub or a client of an existing hub, including MCP registration and version-correct initialization.

    59k GitHub stars~2.2k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Install and Run Cognee

    topoteretes/cognee

    Installs the cognee AI memory library in a Python environment, sets the LLM key and gets a first remember and recall script running with the Python SDK.

    32k GitHub starsUsed in 1 repo~1k tokens
    Agent WorkflowsAuto-check: notes

More from mage0535/hermes-memory-installer

  • Memory Proactive

    mage0535/hermes-memory-installer

    Proactive layered recall and generic domain-aware routing. An agent skill from mage0535/hermes-memory-installer.

    209 GitHub stars~354 tokensUpdated 1 mo ago
    Auto-check passed
  • Memory Starter Kit

    mage0535/hermes-memory-installer

    Historical starter note for the memory sidecar stack. An agent skill from mage0535/hermes-memory-installer.

    209 GitHub stars~363 tokensUpdated 1 mo ago
    Auto-check passed

Works with

Categories

Questions about Memory Archivist

How do I install Memory Archivist in Claude Code?

Run `npx skills add mage0535/hermes-memory-installer --skill memory-archivist -a claude-code`. Or copy the skill folder (skills/memory-archivist in mage0535/hermes-memory-installer) into .claude/skills/memory-archivist in your project. Claude Code loads it when a task matches its description.

How do I install Memory Archivist in Codex?

Run `npx skills add mage0535/hermes-memory-installer --skill memory-archivist -a codex`. Or copy the skill folder (skills/memory-archivist in mage0535/hermes-memory-installer) into .agents/skills/memory-archivist in your project. Codex loads it when a task matches its description.

Can I use Memory Archivist in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mage0535/hermes-memory-installer --skill memory-archivist -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/memory-archivist, .gemini/skills/memory-archivist, .github/skills/memory-archivist and .opencode/skills/memory-archivist in your project.

What does Memory Archivist need to run?

Going by SKILL.md and its folder, Memory Archivist needs the command-line tools its instructions call (python3).

Does Memory Archivist access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Memory Archivist safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Memory Archivist use?

Memory Archivist is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Memory Archivist use?

About 255 tokens (SKILL.md is roughly 1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 118 tokens, read only when the agent opens those files.

What are the alternatives to Memory Archivist?

Skills that share tags, products or a category with Memory Archivist: MCP Server Builder (anthropics/skills, 180k stars), MCP Server Builder (shareAI-lab/learn-claude-code, 78k stars), Fastmcp Client CLI (PrefectHQ/fastmcp, 28k stars) and Mem0 CLI Memory Commands (mem0ai/mem0, 67k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Memory Archivist?

mage0535 (a GitHub user) maintains it in mage0535/hermes-memory-installer, which has 209 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on August 22, 2026.

Source: mage0535/hermes-memory-installer on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.