Archive
Writes session learnings to .archive/YYYY-MM-DD/ with tagged frontmatter and a MEMORY.md index
Test report
- Verdict
- Tested · Works
- Score
- Tested
- Jul 21, 2026
- Environment
- Claude Code 2.x (agent harness)
- Upstream re-checked
- Aug 10, 2026 · 5444904
Fetched skills/archive/SKILL.md (HTTP 200, 55 lines, frontmatter has name+description) and spot-checked its three bundled files raw: references/TEMPLATE.md 200, hooks/hooks.json 200, hooks/load-memory.py 200 — all exist, no hardcoded machine paths, no curl|sh, no base64, no secret exfiltration; load-memory.py only reads $CLAUDE_PROJECT_DIR/.archive/MEMORY.md and prints it as SessionStart additionalContext (so whatever sits in that file enters context — keep it trusted-local). Trigger scored 5/5 on: SHOULD fire — "Archive this session, we finally fixed the CloudWatch log group permissions", "We just finished the ECS deploy, save the learnings so future sessions don't repeat this", "Have we hit this Alembic migration error before? check past session notes"; SHOULD NOT fire — "Compress the logs directory into a tar.gz archive and move it to backups" (different sense of the word), "Add a CHANGELOG entry for the v1.2 release" (repo file, not .archive notes). For output I ran one task twice in a scratch project: baseline gave a single freeform docs/session-notes-2026-07-21.md with no index, no tags, no exact commands, committed into the repo; the skill-followed run gave .archive/2026-07-21/vercel-deploy-node-version-lockfile.md with tags/category frontmatter, a Key Changes block holding the real env var and pnpm/git commands, a MEMORY.md index entry and a `.archive/` line in .gitignore — `grep -ri "tags:.*lockfile" .archive/` retrieved it while the baseline had no index to enter through. Docs docked one point: README's Quick Install leads with /plugin marketplace add, yet archive is absent from .claude-plugin/marketplace.json and ships .factory-plugin/plugin.json instead, so the plugin route and its automatic hook registration do not work in Claude Code.
Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works
- Installs cleanly 5/5
- Triggers reliably 5/5
- Output vs. baseline 8/10
- Docs & honesty 4/5
What Archive does
Archive captures what a working session produced — a bug fix, a deploy, a migration — as a dated markdown file under .archive/YYYY-MM-DD/ with YAML frontmatter (tags, category, related) plus a one-line entry appended to a .archive/MEMORY.md index. It triggers when a significant task finishes, when a tricky bug is resolved, when the user says "archive this", or when asking whether a problem was solved in an earlier session. A bundled SessionStart hook reads .archive/MEMORY.md back into context so past notes are available in later sessions.
How to install Archive
# Recommended (works with Claude Code, Cursor, Droid, Codex):
npx skills add ReScienceLab/opc-skills --skill archive -a claude # user-level
npx skills add ReScienceLab/opc-skills --skill archive # project-level
# Manual (no npx):
git clone --depth 1 https://github.com/ReScienceLab/opc-skills /tmp/opc-skills
mkdir -p ~/.claude/skills
cp -R /tmp/opc-skills/skills/archive ~/.claude/skills/archive
# Optional SessionStart auto-load of .archive/MEMORY.md: register
# ~/.claude/skills/archive/hooks/load-memory.py as a SessionStart command hook
# in settings.json. Note `/plugin install archive@opc-skills` does NOT resolve —
# archive is missing from the repo's .claude-plugin/marketplace.json.
# First use: add `.archive/` to your project .gitignore (the skill requires this).
Skills live in ~/.claude/skills/ (global) or .claude/skills/
(per-project). Restart Claude Code after installing.
Commands — how to trigger Archive
-
/archiveWrites session learnings to .archive/YYYY-MM-DD/ with tagged frontmatter and a MEMORY.md index
It also activates on plain-language prompts like these:
-
Archive this session's learnings for later reuse -
Save this debugging solution for later reuse -
Log this deployment in the archive
Frequently asked questions
- Is the Archive skill free?
- Yes. The skill itself is free from ReScienceLab/opc-skills. SkillProof publishes the install command and an independent test verdict at no cost.
- Does Archive work with Claude Code?
- We tested it with Claude Code 2.x (agent harness) on Jul 21, 2026. Verdict: Tested · Works. Fetched skills/archive/SKILL.md (HTTP 200, 55 lines, frontmatter has name+description) and spot-checked its three bundled files raw: references/TEMPLATE.md 200, hooks/hooks.json 200, hooks/load-memory.py 200 — all exist, no hardcoded machine paths, no curl|sh, no base64, no secret exfiltration; load-memory.py only reads $CLAUDE_PROJECT_DIR/.archive/MEMORY.md and prints it as SessionStart additionalContext (so whatever sits in that file enters context — keep it trusted-local). Trigger scored 5/5 on: SHOULD fire — "Archive this session, we finally fixed the CloudWatch log group permissions", "We just finished the ECS deploy, save the learnings so future sessions don't repeat this", "Have we hit this Alembic migration error before? check past session notes"; SHOULD NOT fire — "Compress the logs directory into a tar.gz archive and move it to backups" (different sense of the word), "Add a CHANGELOG entry for the v1.2 release" (repo file, not .archive notes). For output I ran one task twice in a scratch project: baseline gave a single freeform docs/session-notes-2026-07-21.md with no index, no tags, no exact commands, committed into the repo; the skill-followed run gave .archive/2026-07-21/vercel-deploy-node-version-lockfile.md with tags/category frontmatter, a Key Changes block holding the real env var and pnpm/git commands, a MEMORY.md index entry and a `.archive/` line in .gitignore — `grep -ri "tags:.*lockfile" .archive/` retrieved it while the baseline had no index to enter through. Docs docked one point: README's Quick Install leads with /plugin marketplace add, yet archive is absent from .claude-plugin/marketplace.json and ships .factory-plugin/plugin.json instead, so the plugin route and its automatic hook registration do not work in Claude Code.
- What is the Archive SkillProof Score?
- 8.8/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 8/10, docs & honesty 4/5.
- How do I install Archive?
- Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
- Can I use Archive with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
- The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.