# Archive Src

> Use when the user wants a minimal source-only archive for upload or checkpoint. Creates a tar.gz with just src/ and tests/ directories.

- Skill: `tomevault-io/archive-src-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/archive-src-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/archive-src-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/archive-src-2

---


# Archive Source + Tests

Package only `src/` and `tests/` into a compact `.tar.gz` archive.

## What's Included

- `src/**` - All source code
- `tests/**` - All test files (integration, property, smoke, simulation, diagnostic, corpus)
- `Cargo.toml` - Project manifest (needed for context)

## What's Excluded

Everything else: benches, fuzz, docs, config files, lock file, CI, `.codex/`, `.claude/`, `.github/`, binaries.

## Workflow

Run from the project root:

```bash
TIMESTAMP=$(date +%Y%m%d-%H%M%S)
ARCHIVE="scanner-rs-src-${TIMESTAMP}.tar.gz"
git ls-files -z -- 'src/' 'tests/' 'Cargo.toml' \
  | grep -zZv -e '\.pack$' -e '\.bin$' \
  | tar czf "${ARCHIVE}" --null -T -
echo "Created ${ARCHIVE} ($(du -h "${ARCHIVE}" | cut -f1))"
```

Report the archive name and size to the user when done.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/ahrav) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-14 -->

