archive-agent-notes

Helps you add, organize, and manage agent notes and documentation.

Installation
Run `npx skills add "https://github.com/demon673/demon-agent-skill" --skill "archive-agent-notes"` to install this skill, then follow its SKILL.md instructions for my next request.

Paste this into Claude Code, Cursor, or any agent that can run commands.

SKILL.mdShow the author's original SKILL.md
---
name: archive-agent-notes
description: Use when adding, pruning, archiving, restoring, or reviewing Agent Notes.
---

# Archiving Agent Notes

Reduce the active decision corpus without erasing history that can still guide work. Judge every note semantically; word count and age are discovery aids, never archive criteria.

## Read the contracts

Read the repository's Agent Note rules, archive instructions, and the applicable lifecycle instructions before classifying. Use current skills, docs, newer notes, and inbound links to establish whether a rationale still owns or constrains anything.

## Check supersession when adding a note

Every new note triggers a scoped audit of active notes covering the same decision or mechanism. Classify each full or partial supersession while writing the new note: archive qualifying implemented triplets in the same PR, retain and cross-link partial supersessions, reject obsolete proposals, and delete rejected notes that no longer prevent a plausible mistake. Apply the consolidation rule when the new owner absorbs every unique proposition, deleting the absorbed triplet whole; do not defer a known match.

## Classify by future value

- **Implemented — keep active:** retain a note when its rationale, alternatives, negative guarantee, ownership boundary, or reintroduction condition is likely to guide a future change.
- **Implemented — archive:** archive a note when the shipped decision is complete and its body is unlikely to guide future work.
- **Proposed — never archive:** keep a live proposal active; if it is no longer worth pursuing, reject it with an honest reason.
- **Rejected — keep only as a guardrail:** retain a rejection only when the losing proposal remains a tempting, meaningful mistake.
- **Rejected — delete:** delete the whole triplet when the rejected idea is obsolete or unlikely to prevent re-litigation. Repair or delete inbound links.

Do not archive toward a quota. Inspect every note in scope, classify analogous groups under one principle, and record genuinely borderline decisions.

## Archive one implemented triplet

1. Make no body edits. Insert only `Archived: YYYY-MM-DD` immediately below `Status: implemented` in both language files, using the same date on both sides.
2. Re-record the consistency record mechanically for the two metadata-only edits, with the repository's pairing recorder in write mode. Do not translate, reformat, update facts, or repair links inside the note.
3. Move the complete `foo.md`, `foo.zh.md`, and `foo.i18n.yaml` triplet from `implemented/{class}/` to `archived/{class}/`; `implemented` is deliberately absent from the archive path.
4. Search for inbound links from active prose. Redirect them to current authority, retarget them to the archived path only when the historical snapshot is intentionally cited, or delete them. Never verify or repair links out of the archived note.

When inbound-link repair edited an active bilingual doc, hand the counterpart update to `translate-docs` so both sides stay in sync before the pairing gate.

After the triplet is sealed, never edit, move, translate, reformat, or delete it. Archived notes remain valid inbound-link targets but are historical snapshots, not authority for current behavior.

## Validate and report

Run the repository's archive seal gate in write mode first: it proves every existing seal still matches, then appends only the newly archived artifacts. Run the gate again normally, then the documentation gates and `git diff --check`. Report active implemented notes kept, implemented notes archived, rejected notes kept/deleted, proposed notes rejected if any, and every genuinely borderline case with its chosen outcome.

Ships with 1 supporting file:

  • agents/openai.yaml

Mirrored from the author's public source. Install counts from the open skills registry.

The systems behind these skills get built for partners every week.

Partner with us