archive

A reference guide for creating, listing, extracting, and compressing archives such as tar.gz and zip files.

In plain words
What is it for?
Use it to package folders, unpack downloaded archives, inspect their contents, or compress and decompress individual files.
Why use it?
It provides the commands and flags needed to handle compressed files without having to remember their syntax.

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/bug-ops/zeph/archive
Any agent
npx skills add bug-ops/zeph --skill archive
Clone the repo
git clone --depth 1 https://github.com/bug-ops/zeph

Made for: Claude Code, Codex.

Per session 3 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,836 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00003 $0.02836
Opus 5 $0.00002 $0.01418
Sonnet 5 $0.00001 $0.00567
Haiku 4.5 $0.00000 $0.00284

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

Security

Grade C, and why

archive scanned grade C with 1 finding 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 2d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

mkdir tmp && unzip archive.zip -d tmp/ && tar czf archive.tar.gz -C tmp . && rm -rf tmp
.zeph/skills/archive/SKILL.md · 447 lines

How it starts

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

Archive and Compression Operations

Quick Reference

Action Command
Create tar.gz tar czf archive.tar.gz dir/
Extract tar.gz tar xzf archive.tar.gz
List tar.gz tar tzf archive.tar.gz
Create zip zip -r archive.zip dir/
Extract zip unzip archive.zip
List zip unzip -l archive.zip
Compress file (gzip) gzip file
Decompress gzip gunzip file.gz

tar — Tape Archive

Core Flags

Flag Purpose
c Create archive
x Extract archive
t List contents
f Archive filename (must be last before filename)
v Verbose (show files being processed)
z Compress/decompress with gzip (.tar.gz, .tgz)
j Compress/decompress with bzip2 (.tar.bz2)
J Compress/decompress with xz (.tar.xz)
--zstd Compress/decompress with zstd (.tar.zst)
r Append files to archive (uncompressed tar only)
u Update: append files newer than in archive

Create Archives

# Create tar.gz (most common)
tar czf archive.tar.gz dir/
tar czf archive.tar.gz file1.txt file2.txt dir/

# Create tar.bz2 (better compression, slower)
tar cjf archive.tar.bz2 dir/

# Create tar.xz (best compression, slowest)
tar cJf archive.tar.xz dir/

# Create tar.zst (fast compression, good ratio)
tar --zstd -cf archive.tar.zst dir/

# Create uncompressed tar
tar cf archive.tar dir/

# Create with verbose output
tar czvf archive.tar.gz dir/

# Exclude files/directories
tar czf archive.tar.gz --exclude='*.log' --exclude='node_modules' dir/
tar czf archive.tar.gz --exclude-vcs dir/  # exclude .git, .svn, etc.

# Exclude from file
tar czf archive.tar.gz -X exclude-list.txt dir/

# Only include specific file types
tar czf code.tar.gz dir/ --include='*.rs' --include='*.toml'

# Preserve permissions and ownership
tar czf archive.tar.gz --preserve-permissions dir/

# With timestamp in filename
tar czf "backup-$(date +%Y%m%d-%H%M%S).tar.gz" dir/

# Follow symlinks
tar czfh archive.tar.gz dir/

# Absolute paths (remove leading /)
tar czf archive.tar.gz -C / home/user/data

Read the full file on GitHub · 447 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. 2d ago First seen · 447 lines · 0 tokens per session scan C 99b1468a02f0

Subscribe to this mod's changes

archive is a skill published in the GitHub repository bug-ops/zeph (57 stars, last pushed 8d ago), licensed MIT. It adds 3 tokens to every session and 2,836 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.