Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By PsychQuantv2.2.0MITIn 1 marketplace
v2.2.0: PreToolUse hooks now protect both archive/ and archived/ directory conventions. Regex anchored on trailing slash to avoid false positives on git archive / tar archive.tar. Toggle protection with archived-lock/archived-unlock.
You run one by typing its /name in Claude Code.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Protect your files from AI-assisted deletion with the Archive-First strategy.
This plugin adds three layers of protection for files in archive/ or archived/ directories:
| Layer | Mechanism | How |
|---|---|---|
| PreToolUse hook | Blocks destructive commands | Denies any rm, rmdir, or unlink targeting archive/ or archived/ paths (regex archived?/ — trailing slash required to avoid false positives on git archive or tar archive.tar) |
| PostToolUse hook | Auto-locks archived files | Applies macOS chflags uchg (immutable flag) after every Bash command |
| Slash commands | Manual archive/unlock | /archive-first:archive and /archive-first:unlock |
Both
archive/(preferred for new directories — matchesgit archive, macOS Archive Utility, Gmail) andarchived/(legacy, still common) receive identical protection. See the Archive-First Defense blog post Naming Note section for the design history.
/archive-first:archive [path]Copy a directory to archived/ with a timestamp and lock it with the immutable flag.
/archive-first:archive ./src
# Creates: ./archived/src-20260310-143022 (locked)
/archive-first:unlock [path]Remove the immutable flag from archived files for cleanup.
/archive-first:unlock ./archived/src-20260310-143022
Before AI restructures your files:
/archive-first:archive ./my-project
During AI work: The hooks automatically:
rm/rmdir command targeting archived/ paths (PreToolUse)archived/ directories (PostToolUse)If something goes wrong:
/archive-first:unlock ./archived/my-project-20260310-143022
cp -r ./archived/my-project-20260310-143022 ./my-project
chflags uchg (user immutable flag)chflags -R uchg with chattr -R +i (requires root)Read the full rationale: Your AI Coding Agent Will Delete Your Files: The Archive-First Defense
npx claudepluginhub psychquant/psychquant-claude-plugins --plugin archive-firstBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground