Agent skill

Archival Integrity

by bradygaster in bradygaster/squad

Preserve content when moving entries between tracked Squad state files

MITAuto-check passed

Install Archival Integrity

skills CLI
$ npx skills add bradygaster/squad --skill archival-integrity -a claude-code

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

GitHub CLI
$ gh skill install bradygaster/squad archival-integrity --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/bradygaster/squad.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.copilot/skills/archival-integrity .claude/skills/archival-integrity && 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
archival-integrity
GitHub stars
3.3k
Token cost
~735 tokens
SKILL.md length
368 words
Files
1
Skills in repo
31
Repo updated
First seen
Licence
MIT

At a glance

Preserve content when moving entries between tracked Squad state files

  • Works in 6 steps: Resolve a destination that is already… → Append first, re-read the destination,… → Compare entry counts before and after… → …
  • SKILL.md covers Context, Scope, Patterns and Stop conditions, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Archival Integrity is an agent skill from bradygaster/squad. Preserve content when moving entries between tracked Squad state files

Its SKILL.md is about 740 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Squad: AI agent teams for any project. The licence is MIT.

Example prompts

  • “/archival-integrity”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Resolve a destination that is already tracked before writing. If the requested destination is
  2. Append first, re-read the destination, and prove every moved heading is present.
  3. Compare entry counts before and after the append. Trim only when the count increased by exactly
  4. Report measured removed from source / added to destination counts. Do not use byte deltas as
  5. When inserting an inbox body beneath a ### entry, demote its shallowest heading to ####
  6. Prefer archiveEntries(), prepareInboxBodyForMerge(), and formatArchivalReport() from

What it can do on your machine

Read from SKILL.md and the folder at commit 71818eb. 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

    No scripts in the folder and no shell commands in SKILL.md.

    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

Archival Integrity loads about 735 tokens when it runs. Until then it costs about 22 tokens; SKILL.md has 368 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~22
When it runs · the whole SKILL.md, loaded when a task matches
~735

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 bradygaster/squad at commit 71818eb, republished under its MIT licence (© bradygaster). 368 words, ~735 tokens.

Download SKILL.mdSave it as .claude/skills/archival-integrity/SKILL.md (or your agent's skills folder).
name
archival-integrity
description
Preserve content when moving entries between tracked Squad state files
domain
state-management, documentation
confidence
high
source
implemented archival helpers and regression tests

Context

Use this skill for decision archival, history summarization, or any operation that moves entries between repository state files. A move has two halves: append to the destination, then trim the source. Treat it as data loss prevention, not text cleanup.

Scope

  • Activate when moving entries between tracked Squad state files such as decision logs, histories, or inbox merges.
  • Allowed targets: tracked repository state files and their designated tracked archives.
  • Exclusions: untracked destinations, byte-delta-only validation, and trimming source content before the destination is verified.
  • This procedure is scoped to the local state backend unless the active backend exposes governed append, read-back, and trim operations. Runtime-owned orphan or two-layer state is not a valid archival destination; use the backend's state operation instead of editing a checkout copy.

Patterns

  1. Resolve a destination that is already tracked before writing. If the requested destination is untracked, redirect to a tracked archive or stop.
  2. Append first, re-read the destination, and prove every moved heading is present.
  3. Compare entry counts before and after the append. Trim only when the count increased by exactly the selected number of entries.
  4. Report measured removed from source / added to destination counts. Do not use byte deltas as an integrity signal.
  5. When inserting an inbox body beneath a ### entry, demote its shallowest heading to #### while preserving relative levels and fenced-code content.
  6. Prefer archiveEntries(), prepareInboxBodyForMerge(), and formatArchivalReport() from packages/squad-sdk/src/state/io/archival.ts over hand-rolled archival logic.
Show full SKILL.md (131 more words)Show less

Stop conditions

  • Stop if the destination is not already tracked.
  • Stop if the appended headings cannot be re-read from the destination.
  • Stop if the entry-count increase does not exactly match the selected move set.
  • Stop if the active backend is non-local and does not provide governed archival operations.
  • Stop if state appears orphaned, split across runtime and checkout layers, or owned by another process without an explicit handoff.

Examples

The archival tests in test/state/archival.test.ts cover append failures, swallowed writes, untracked destinations, CRLF inputs, count verification, and fence-aware heading demotion.

Anti-Patterns

  • Creating a timestamped archive under a git-excluded directory and assuming it will persist
  • Deleting source content before the destination has been verified
  • Reporting “no archival required” without measuring eligible entries
  • Treating a matching file-size delta as proof that the content survived

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

Files

Just SKILL.md in .copilot/skills/archival-integrity of bradygaster/squad.

Open the folder on GitHubat commit 71818eb

Compare with similar skills

Archival Integrity 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.

Archival Integrity compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Archival Integrity this skillbradygaster/squad3.3k—~735Automated safety check: PassMIT
Integration Testingthedaviddias/Front-End-Checklist74k—~514Automated safety check: PassMIT
Time Trackingsickn33/agentic-awesome-skills47k1 repos~3.8kAutomated safety check: PassMIT
API Integrationsickn33/agentic-awesome-skills47k1 repos~1.3kAutomated safety check: PassMIT
Cost Trackingaffaan-m/ECC276k1 repos~1.3kAutomated safety check: PassMIT
Labarchive Integrationdavila7/claude-code-templates32k10 repos~2.3kAutomated safety check: PassMIT

Similar skills

  • Integration Testing

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing CI coverage, automated checks, or test strategy related to Write integration tests for key workflows.

    74k GitHub stars~514 tokensUpdated 3 days ago
    Testing & QAAuto-check passed
  • Time Tracking

    sickn33/agentic-awesome-skills

    Time entry register: employee, project, client, task, hours, billable flag, rate and amount, invoice and approver.

    47k GitHub starsUsed in 1 repo~3.8k tokens
    Productivity & AutomationAuto-check passed
  • API Integration

    sickn33/agentic-awesome-skills

    Designs event-driven architectures, webhook systems, API chaining flows, ETL pipelines, and integration patterns between services.

    47k GitHub starsUsed in 1 repo~1.3k tokens
    Backend & APIsAuto-check passed
  • Cost Tracking

    affaan-m/ECC

    Track and report Claude Code token usage, spending, and budgets from the local ECC cost-tracker metrics log.

    276k GitHub starsUsed in 1 repo~1.3k tokens
    AI & LLM EngineeringAuto-check passed
  • Labarchive Integration

    davila7/claude-code-templates

    Electronic lab notebook API integration. An agent skill from davila7/claude-code-templates.

    32k GitHub starsUsed in 10 repos~2.3k tokens
    Backend & APIsAuto-check passed
  • Benchling Integration

    K-Dense-AI/scientific-agent-skills

    Benchling Python SDK and REST API integration for registry entities, inventory, ELN entries, workflows, Benchling Apps, and Data Warehouse queries.

    48k GitHub starsUsed in 1 repo~2.1k tokens
    Backend & APIsAuto-check: notes

More from bradygaster/squad

All 31 skills in this repo
  • Fact Checking

    bradygaster/squad

    Review and validate claims using counter-hypothesis testing.

    3.3k GitHub stars~503 tokensUpdated today
    Auto-check passed
  • Architectural Review

    bradygaster/squad

    How to review PRs for architectural quality — module boundaries, dependency direction, export surface, pattern consistency

    3.3k GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • CI Validation Gates

    bradygaster/squad

    Defensive CI/CD patterns: semver validation, token checks, retry logic, and draft detection

    3.3k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • CLI Wiring

    bradygaster/squad

    Checklist and patterns for wiring new CLI commands into cli-entry.ts

    3.3k GitHub stars~501 tokensUpdated today
    Auto-check passed
  • Enables squad agents on different machines to share work via git-based task queuing

    3.3k GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • Gh Aw Reliability

    bradygaster/squad

    Validate GitHub Agentic Workflow contracts through compiled artifacts and realistic mutations

    3.3k GitHub stars~444 tokensUpdated today
    Auto-check passed

Questions about Archival Integrity

What does Archival Integrity do?

Preserve content when moving entries between tracked Squad state files. Archival Integrity is an agent skill from bradygaster/squad.

How do I install Archival Integrity in Claude Code?

Run `npx skills add bradygaster/squad --skill archival-integrity -a claude-code`. Or copy the skill folder (.copilot/skills/archival-integrity in bradygaster/squad) into .claude/skills/archival-integrity in your project. Claude Code loads it when a task matches its description.

How do I install Archival Integrity in Codex?

Run `npx skills add bradygaster/squad --skill archival-integrity -a codex`. Or copy the skill folder (.copilot/skills/archival-integrity in bradygaster/squad) into .agents/skills/archival-integrity in your project. Codex loads it when a task matches its description.

Can I use Archival Integrity 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 bradygaster/squad --skill archival-integrity -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/archival-integrity, .gemini/skills/archival-integrity, .github/skills/archival-integrity and .opencode/skills/archival-integrity in your project.

What does Archival Integrity need to run?

SKILL.md names no scripts, command-line tools or credentials: Archival Integrity is instructions for the agent only.

Does Archival Integrity 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 Archival Integrity 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 Archival Integrity use?

Archival Integrity 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 Archival Integrity use?

About 735 tokens (SKILL.md is roughly 2.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Archival Integrity?

Skills that share tags, products or a category with Archival Integrity: Integration Testing (thedaviddias/Front-End-Checklist, 74k stars), Time Tracking (sickn33/agentic-awesome-skills, 47k stars), API Integration (sickn33/agentic-awesome-skills, 47k stars) and Cost Tracking (affaan-m/ECC, 276k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Archival Integrity?

bradygaster (a GitHub user) maintains it in bradygaster/squad, which has 3,259 GitHub stars. The repository holds 31 skills in this directory. The repository was last updated on October 9, 2026.

Source: bradygaster/squad on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.