squad: Skill for Claude Code

.copilot/skills/archival-integrity/SKILL.md

archival-integrity is a skill for Claude Code, Codex from bradygaster/squad. It costs 16 tokens per session (591 once invoked), scanned A, original, MIT.

A data-preservation procedure for moving entries between tracked repository state files, such as decision logs, histories, or inboxes. It requires appending to the destination, reading it back to confirm the entries arrived, and only then trimming the source.

In plain words
What is it for?
Use it when archiving decisions, merging history, or moving tracked state entries between files while preserving every required heading and entry.
Why use it?
It reduces the chance of losing records while archiving or summarising repository state. It also rejects unsafe destinations and prevents source content from being removed before the copy is verified.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is bradygaster/squad's own configuration. It tells Claude Code and Codex how to work on squad itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything squad configures →

About the project

bradygaster/squad is a tool that creates a human-directed team of AI development agents inside a project repository through GitHub Copilot. Developers use it to delegate work among persistent specialists such as frontend, backend, testing, and lead agents while retaining responsibility for decisions and review. The catalogue entries are the skills, agents, and instructions that define and coordinate those team members.

bradygaster/squad · 3,300 stars · on GitHub · bradygaster.github.io

Reuse

Borrowing it

Nothing to install: this file belongs to bradygaster/squad. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bradygaster/squad/dev/.copilot/skills/archival-integrity/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/bradygaster/squad

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for archival-integrity

README.md
[![agentmods](https://agentmods.dev/badge/skills/bradygaster/squad/archival-integrity/github.svg)](https://agentmods.dev/skills/bradygaster/squad/archival-integrity)
Your own site
<a href="https://agentmods.dev/skills/bradygaster/squad/archival-integrity"><img src="https://agentmods.dev/badge/skills/bradygaster/squad/archival-integrity/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for archival-integrity

Your own site · 80×15
<a href="https://agentmods.dev/skills/bradygaster/squad/archival-integrity"><img src="https://agentmods.dev/badge/skills/bradygaster/squad/archival-integrity.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 591 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.00591
Opus 5.5 $0.00006 $0.00236
Sonnet 5.5 $0.00003 $0.00118
Haiku 4.5 $0.00002 $0.00059

Measured 1mo ago against content hash 9e4f9169f5a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

archival-integrity scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.copilot/skills/archival-integrity/SKILL.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

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.

Read the full file on GitHub · 58 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 58 lines · 16 tokens per session scan A 9e4f9169f5a2

Subscribe to this mod's changes

archival-integrity is a skill published in the GitHub repository bradygaster/squad (3,300 stars, last pushed today), licensed MIT. It adds 16 tokens to every session and 591 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-12.