Get the FREE Ultimate OpenClaw Setup Guide →

archive

Scanned
npx machina-cli add skill ReScienceLab/opc-skills/archive --openclaw
Files (1)
SKILL.md
2.1 KB

Archive Skill

Capture, index, and reuse project knowledge across sessions.

When to Archive

  • After completing a significant task (deploy, migration, major feature)
  • After resolving a tricky debugging session
  • When the user says "archive this"
  • After any multi-step process with learnings worth preserving

When to Consult Archives

  • Before debugging infrastructure, deploy, or CI issues
  • Before repeating a process done in a past session
  • When encountering an error that may have been solved before

Search: grep -ri "keyword" .archive/ Index: .archive/MEMORY.md

Archive Workflow

  1. Read .archive/MEMORY.md — check for related existing archives
  2. Create .archive/YYYY-MM-DD/ directory if needed
  3. Write markdown file with YAML frontmatter (see references/TEMPLATE.md)
  4. Update .archive/MEMORY.md: add one-line entry under the right category
  5. If related archives exist, add related field in frontmatter

Lookup Workflow

  1. Read .archive/MEMORY.md to find relevant entries
  2. Read the specific archive file for detailed context
  3. Apply learnings to current task

Categories

  • infrastructure — AWS, ECS, IAM, networking, secrets, CloudWatch
  • release — TestFlight, versioning, Git Flow, CHANGELOG
  • debugging — Bug fixes, error resolution, gotchas
  • feature — Feature design, implementation notes
  • design — UI/UX, icons, visual design

Rules

  • .archive/ must be in .gitignore — local-only notes
  • Keep entries concise but reproducible
  • Focus on problems, fixes, and exact commands
  • Always update MEMORY.md after creating an archive
  • Use descriptive filenames (e.g., cloudwatch-logging.md not session.md)
  • Include YAML frontmatter with tags, category, and optional related

Source

git clone https://github.com/ReScienceLab/opc-skills/blob/main/skills/archive/SKILL.mdView on GitHub

Overview

Archive captures session learnings, debugging solutions, and deployment logs into dated markdown files under .archive/, with searchable tags. It creates an indexed, reusable knowledge base and maintains a MEMORY.md index for cross-session reuse.

How This Skill Works

When triggered, the skill checks MEMORY.md for related archives, creates a .archive/YYYY-MM-DD/ directory if needed, writes a markdown file with YAML frontmatter (tags, category, and optional related), and updates MEMORY.md with a one-line entry. Descriptive filenames are encouraged, and .archive/ should be ignored by Git to keep notes local.

When to Use It

  • After completing a significant task (deploy, migration, major feature)
  • After resolving a tricky debugging session
  • When the user says archive this
  • After any multi-step process with learnings worth preserving
  • Before repeating a process in a new session to reuse prior learnings

Quick Start

  1. Step 1: Read .archive/MEMORY.md to identify related entries
  2. Step 2: Create .archive/YYYY-MM-DD/ and a descriptive markdown file (e.g., cloudwatch-logging.md)
  3. Step 3: Write YAML frontmatter with tags, category, and optional related; update MEMORY.md

Best Practices

  • Keep entries concise but reproducible
  • Use descriptive filenames (e.g., cloudwatch-logging.md)
  • Include YAML frontmatter with tags, category, and optional related
  • Always update MEMORY.md after creating an archive
  • .archive/ must be in .gitignore; notes are local-only

Example Use Cases

  • Archive a deployment run with steps, fixes, and rollback commands
  • Archive a flaky API debugging session with commands to reproduce
  • Archive a feature rollout plan including changelog references
  • Archive a database migration script and rollback instructions
  • Archive a CI/CD pipeline optimization session with config changes

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers