crabbuild/crab/crab-storage-ops
Claude Code and agent skill by crabbuild/crab
- community
Checking that the SKILL.md file is still in the repository.
Inspect, compact, verify, repair, and optimize Crab storage, ref-journal and metadata indexes, artifact reachability, staging, caches, shards, packs, xorbs, and garbage collection.
Install
npx vskill@latest install crabbuild/crab/crab-storage-opsSKILL.md
Crab storage operations
Operate on durable storage only after identifying references, grace periods, metadata ownership, and the exact scope of the command. Read-only inventory and mutation must be visibly different.
Command scope
gcenumerates reachable refs, active ref-journal transactions, workflow
artifact versions, manifests, packs, xorbs, shards, indexes, and grace-period candidates; it deletes only the reviewed scope.
fsckverifies Git objects, pointers, file indexes, chunk coverage, shard
terms, packs, checksums, and metadata consistency. Repair is opt-in.
compactmerges small metadata shards while preserving every live row.repackconsolidates Git packs without changing reachable history.optimize plan/applycoordinates xorb, pack, shard, tier, cache, index, LFS,
workflow-cache, replica, or whole-repository actions. Plan is read-only; apply consumes the reviewed plan.
metadb diagnose/rebuild/compact/cache-*operates on metadata databases and
their local chunk-index cache.
staging stats/verify/clean,cache stats/verify/clean/prune,du, and
stat report or maintain local storage. Do not conflate staging with cache.
Safety invariants
- Never delete a referenced xorb, shard, pack, file index entry, or object in
the configured grace period.
- Never use bucket-wide deletion when a repository prefix is sufficient.
- Close every metadata database on success, error, and cancellation.
- Rebuild indexes from durable authoritative objects; do not make a cache the
source of truth.
- Compaction and repacking preserve content identity and ref reachability.
- A repair report must identify what was changed, what was skipped, and what
remains corrupt or unavailable.
- The ref-journal active marker is current ref authority until the generation
owner folds it into a manifest frontier. Maintenance must include committed journal reachability and must not treat a lagging derived catalog as proof that an object is dead.
Operating loop
- Capture the repository or prefix, backend, manifest plus ref-journal roots,
generation owner, storage classes, retention policy, locks, and current usage.
- Run a dry run or read-only diagnose and save the structured report.
- Review candidates against live references and recent activity.
- Apply one bounded operation, with cancellation and lock release intact.
- Re-run fsck or verification, compare object counts and byte totals, and
prove a fresh read or hydration for content affected by the operation.
Bucket-wide GC crosses repository ownership. Never select it as an automation fallback; require an explicit bucket target, authorization, retained inventory, and proof that every repository sharing the bucket is included safely.
Verification
Use a disposable prefix containing shared chunks, unreachable objects, small and large shards, multiple refs, and a recent object. Prove that compaction, repack, repair, cache eviction, and scoped GC preserve live content while only the intended candidates change. Include a failed write and interrupted run in tests for any new mutation path.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcrab/skills/crab-storage-ops/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/crabbuild/crab/crab-storage-ops)