Agent skill · Audited from source
Archiving Databases
skill · jeremylongshore/claude-code-plugins-plus-skillsMIT licenceAudited 8 Oct 2026 · source 4f83675ca38a
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 4f83675ca38a and found no filesystem, network or shell access and no hard-coded secrets. What it does: Process use when you need to archive historical database records to
Cite
Cite this page
ModelsAtlas. “Archiving Databases (jeremylongshore/claude-code-plugins-plus-skills)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/jeremylongshore/archiving-databases
Trust audit
Audit 0.4.1 · source read 8 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | PASS | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha 4f83675ca38a · 8 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherjeremylongshore GitHub userOwner of the repository this skill is read from
- Source folderjeremylongshore/claude-code-plugins-plus-skills/plugins/database/database-archival-system/skills/archiving-databasesThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdict4f83675ca38aA new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Process use when you need to archive historical database records to
--- name: archiving-databases description: 'Process use when you need to archive historical database records to reduce primary database size. This skill automates moving old data to archive tables or cold storage (S3, Azure Blob, GCS). Trigger with phrases like "archive old database records", "implement data retention policy", "move historical data to cold storage", or "reduce database size with archival". ' allowed-tools: Read, Write, Edit, Grep, Glob, Bash(psql:*), Bash(mysql:*), Bash(aws:s3:*), Bash(az:storage:*) version: 1.27.0 author: Jeremy Longshore <[email protected]> license: MIT tags: - database - azure - archiving-databases compatibility: Designed for Claude Code --- # Database Archival System ## Overview Implement automated data archival pipelines that move historical records from primary database tables to archive storage (archive tables, S3, Azure Blob, or GCS) based on age, status, or access frequency criteria. ## Prerequisites - Database credentials with SELECT, INSERT, and DELETE permissions on source and archive tables - Cloud storage credentials (AWS S3, Azure Blob, or GCS) if archiving to cold storage - `psql` or `mysql` CLI for executing archival queries - `aws s3`, `az storage`, or `gsutil` CLI for cloud storage uploads - Understanding of data retention requirements and compliance policies (GDPR, HIPAA, SOX) - Current table sizes: `SELECT pg_size_pretty(pg_total_relation_size('table_name'))` to identify archival candidates ## Instructions 1. Identify archival candidates by finding large tables with time-based data: - `SELECT relname, n_live_tup, pg_size_pretty(pg_total_relation_size(relid)) FROM pg_stat_user_tables ORDER BY pg_total_relation_size(relid) DESC LIMIT 10` - Focus on tables where historical data is rarely queried: logs, audit trails, events, old orders, expired sessions 2. Define archival criteria for each table: - **Age-based**: Records older than N days/months (`WHERE created_at < NOW() - INTERVAL '1 year'`) - **Status-based**: Records in terminal state (`WHERE status IN ('completed', 'cancelled', 'expired')`) - **Combined**: Old AND terminal (`WHERE created_at < NOW() - INTERVAL '6 months' AND status = 'completed'`) - Calculate the expected volume: `SELECT COUNT(*), pg_size_pretty(pg_column_size(t.*)) FROM table_name t WHERE <criteria>` 3. Handle referential integrity by archiving in dependency order: - Archive child records first (order_items before orders) - For tables with active foreign key references, verify no active records reference the candidates: `SELECT COUNT(*) FROM active_child WHERE parent_id IN (SELECT id FROM parent WHERE <archive_criteria>)` - Option: cascade archive by archiving parent and all descendants together 4. Create archive destination tables matching the source schema plus metadata columns: - `CREATE TABLE orders_archive (LIKE orders INCLUDING ALL)` - `ALTER TABLE orders_archive ADD COLUMN archived_at TIMESTAMPTZ DEFAULT NOW()` - `ALTER TABLE orders_archive ADD COLUMN archive_batch_id UUID` - Remove foreign key constraints on archive tables (archived data is self-contained) 5. Implement the archival operation as an atomic batch: - Generate a batch ID: `SELECT gen_random_uuid() AS batch_id` - Insert into archive: `INSERT INTO orders_archive SELECT *, NOW(), batch_id FROM orders WHERE <criteria>` - Verify row counts match: `SELECT COUNT(*) FROM orders_archive WHERE archive_batch_id = batch_id` - Delete from source only after verification: `DELETE FROM orders WHERE id IN (SELECT id FROM orders_archive WHERE archive_batch_id = batch_id)` - Wrap in a transaction for atomicity 6. For cloud storage archival, export data to files before upload: - PostgreSQL: `COPY (SELECT * FROM orders WHERE <criteria>) TO '/tmp/archive_orders_2023.csv' WITH CSV HEADER` - Compress: `gzip /tmp/archive_orders_2023.csv` - Upload: `aws s3 cp /tmp/archive_orders_2023.csv.gz s3://archive-bucket/orders/2023/ --sse aws:kms` - Store manifest: record file path, row count, checksum, and date range in an archive_manifest table 7. Process archival in batches to avoid long-running transactions and excessive lock time: - Archive 10,000-50,000 rows per batch - Add a short delay between batches (100-500ms) to allow other transactions to proceed - Log progress after each batch for monitoring and restart capability 8. Run `VACUUM ANALYZE` on source tables after archival to reclaim disk space and update statistics. For large archival operations (>30% of table), consider `VACUUM FULL` during a maintenance window (requires exclusive lock). 9. Implement data retrieval procedures for archived data: - For archive tables: direct SQL queries with `UNION ALL` between active and archive tables - For cloud storage: import script that restores specific date ranges from S3/GCS to temporary tables - Document retrieval procedures for support and compliance teams 10. Schedule recurring archival with a cron job or database scheduler. Run weekly or monthly. Include monitoring that alerts on: archival job failure, unexpected archive volume (too many or too few records), and source table size not decreasing after archival. ## Output - **Archive table DDL** with matching schema plus metadata columns - **Archival scripts** (SQL and shell) for batch extraction, verification, and deletion - **Cloud storage upload scripts** with compression and encryption - **Archive manifest table** tracking all archival batches with metadata - **Retrieval scripts** for restoring archived data when needed - **Cron job configuration** for scheduled recurring archival ## Error Handling | Error | Cause | Solution | |-------|-------|---------| | Foreign key violation during DELETE | Active child records still reference archived parent | Archive child records first; verify no active references exist before deleting parent records | | Disk space not reclaimed after archival | PostgreSQ
Excerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 4f83675
git clone https://github.com/jeremylongshore/claude-code-plugins-plus-skills git -C claude-code-plugins-plus-skills checkout 4f83675ca38a
The author documents no install command, so this uses the repository directly. Our verdict covers commit 4f83675ca38a only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| Claude Code | Mentioned in its text, not tested | Skills for Claude Code · About Claude Code |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
4f83675ca38a
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/jeremylongshore/archiving-databases/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Deploy and orchestrate Vertex AI ADK agents using A2A protocol. Manages
Add this badge to your README
[](https://modelsatlas.com/skills/jeremylongshore/archiving-databases/)
<a href="https://modelsatlas.com/skills/jeremylongshore/archiving-databases/"><img src="https://modelsatlas.com/skills/jeremylongshore/archiving-databases/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Archiving Databases
What does the Archiving Databases skill do?
Is Archiving Databases safe to install?
What can Archiving Databases access on my machine?
Which assistants does Archiving Databases work with?
How current is this page?
Sources
- github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/ — the audited source at commit 4f83675ca38a and every finding aboveObserved · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Archiving Databases skill do?
- Is Archiving Databases safe to install?
- What can Archiving Databases access on my machine?