archive

A read-only query tool for Switchboard's archive, which stores older plans removed from the active Kanban board. It can use the default SQLite archive or an optionally configured legacy DuckDB archive.

In plain words
What is it for?
It is for searching plans that have aged out of the active board and inspecting their past records.
Why use it?
It lets you find historical plans without risking changes to archived data. It also clarifies which archive file and database program to use.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/tentacleopera/switchboard/archive
Any agent
npx skills add TentacleOpera/switchboard --skill archive
Clone the repo
git clone --depth 1 https://github.com/TentacleOpera/switchboard

Made for: Claude Code, Codex.

Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,818 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00040 $0.01818
Opus 5 $0.00020 $0.00909
Sonnet 5 $0.00008 $0.00364
Haiku 4.5 $0.00004 $0.00182

Measured 3d ago against content hash 52166701a5ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

archive 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 3d 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.

.agents/protocols/archive/SKILL.md · 172 lines

How it starts

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

Archive Operations

Purpose

Query historical Switchboard plans that are no longer on the hot kanban board.

Which archive am I looking at?

There are two stores, and they are not interchangeable. Pick by the path you were given, not by habit.

Store Path CLI When it exists
Cold store (default, what the board uses) <workspaceRoot>/.switchboard/kanban-archive.db sqlite3 Whenever plans have aged out of the hot board
Legacy DuckDB archive (opt-in) value of the switchboard.archive.dbPath setting duckdb Only if the user configured that setting

Default to the cold store. The Project panel's ARCHIVES tab reads it, and the QUERY ARCHIVES button hands you its absolute path. The DuckDB archive only exists for users who explicitly set switchboard.archive.dbPath; if that setting is empty, there is no DuckDB file and duckdb commands will fail (or, worse, silently create an empty database).

Guardrails

  • Read-only. Always. Never INSERT, UPDATE, DELETE, DROP, ATTACH, or COPY against either archive. Archiving and restoration are the extension's job.
  • Never invent the path. Use the path you were given. sqlite3 silently creates an empty database when handed a path that does not exist, so a typo or a wrong working directory leaves a stray 0-byte file behind and returns zero rows that look like a legitimate empty result.
  • Guard before querying:
ARCHIVE_DB="<path you were given>"
[ -f "$ARCHIVE_DB" ] || { echo "No archive at $ARCHIVE_DB — nothing has been archived yet."; exit 1; }

Cold store: status is 'completed', not 'archived'

This is the single most common way to get a wrong answer here. Archived rows carry status = 'completed'; the V10 migration rewrites any historical status = 'archived' row to 'completed'. A query filtering on 'archived' returns zero rows on a fully-populated archive — an empty result with no error.

-- CORRECT
SELECT topic, kanban_column, updated_at FROM plans WHERE status = 'completed';

-- WRONG — always returns nothing
SELECT topic FROM plans WHERE status = 'archived';

Read the full file on GitHub · 172 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. 3d ago First seen · 172 lines · 40 tokens per session scan A 52166701a5ed

Subscribe to this mod's changes

archive is a skill published in the GitHub repository TentacleOpera/switchboard (213 stars, last pushed 3d ago), licensed MIT. It adds 40 tokens to every session and 1,818 once invoked, about $0.0002 per session on Opus 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-08-30.

Related

Other skills, from other repositories

prisma-upgrade-v7

Complete migration guide from Prisma ORM v6 to v7 covering all breaking changes. Use when upgrading Prisma versions, encountering v7 errors, or migrating existing projects. Triggers on "upgrade to prisma 7", "prisma 7 migration", "prisma-client generator", "driver adapter required".

nitrocloudofficial/nitrostack · 67 tokens

ddia-systems

Design data systems by understanding storage engines, replication, partitioning, transactions, and consistency models. Use when the user mentions "database choice", "which database should I use", "SQL or NoSQL", "replication lag", "partitioning strategy", "consistency vs availability", "stream processing", "ACID…

wondelai/skills · 138 tokens

sqlitecpp-update-sqlite

How to update the bundled SQLite3 amalgamation (sqlite3/sqlite3.c and sqlite3.h), the Meson wrap, README.md, and CHANGELOG.md. Use when upgrading SQLite, refreshing the vendored amalgamation, or bumping the sqlite3 wrap.

SRombauts/SQLiteCpp · 61 tokens

dsql

Build with Aurora DSQL — manage schemas, execute queries, handle migrations, diagnose query plans, diagnose cluster performance, load data, and develop applications with a serverless, distributed SQL database. Covers IAM auth, multi-tenant patterns, MySQL-to-DSQL and PostgreSQL-to-DSQL schema conversion, FK…

awslabs/agent-plugins · 227 tokens

mongodb-natural-language-querying

Generate read-only MongoDB queries (find) or aggregation pipelines using natural language, with collection schema context and sample documents. Use this skill whenever the user asks to write, create, or generate MongoDB queries, wants to filter/query/aggregate data in MongoDB, asks "how do I query...", needs help with…

mongodb/agent-skills · 162 tokens

sql-translate

Translate SQL queries between database dialects (Snowflake, BigQuery, PostgreSQL, MySQL, etc.).

AltimateAI/altimate-code · 26 tokens