claude

archive-first

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.

0 on GitHubby Che Chengv2.2.0MITupdated 7 days agoproductivity
/

Plugin archive-first from marketplace psychquant-claude-plugins in PsychQuant/psychquant-claude-plugins. Commands read from the repo's manifest — 6 days ago.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Slash commands (3)

  • /archive-first:archive-files

    Copy a directory to archived/ with timestamp as a regression baseline

  • /archive-first:archived-lock

    Enable archive protection (PreToolUse hooks block destructive commands on archived/)

  • /archive-first:archived-unlock

    Disable archive protection (allow operations on archived/ temporarily)

Hooks (3)

  • PreToolUse

    [ -f ~/.cache/archive-first/disabled ] && exit 0; COMMAND=$(jq -r '.tool_input.command // empty'); if echo "$COMMAND" | tr ';' '\n' | sed 's/&&/\n/g' | sed 's/||/\n/g' | grep -wE '(rm|rmdir|unlink)' |

  • PreToolUse

    [ -f ~/.cache/archive-first/disabled ] && exit 0; FILE_PATH=$(jq -r '.tool_input.file_path // empty'); if echo "$FILE_PATH" | grep -qE '/archived?/'; then jq -n '{hookSpecificOutput:{hookEventName:"Pr

  • PreToolUse

    [ -f ~/.cache/archive-first/disabled ] && exit 0; FILE_PATH=$(jq -r '.tool_input.file_path // empty'); if echo "$FILE_PATH" | grep -qE '/archived?/'; then jq -n '{hookSpecificOutput:{hookEventName:"Pr

View source on GitHub

More from PsychQuant/psychquant-claude-plugins

All 26 plugins →

讓 AI 完全清楚 LaTeX 修正的結果 — 改一行 source 立刻知道 PDF 第幾頁變了、變成什麼樣、有沒有副作用、有沒有新 bug、PDF review 紅圈對到哪個 source。通用 LaTeX 工具,任何專案可用。20 tools + 6 skills。v0.7.0 新增 typesetting-rules:跨專案、跨媒材(LaTeX/Word)的中文排版規則。

6 skills · 1 MCP server

0

Things 3 任務管理 MCP Server - 47 個工具支援完整 GTD 工作流程

5 commands · 1 MCP server · hooks

0

Zotero reference manager + academic search + knowledge graph MCP Server

1 skill · 4 commands · 1 MCP server · hooks

0

[DEPRECATED 2026-07-29 — superseded by livedocs (livedocs-marketplace); use livedocs:look-up instead] Auto-triggered Skills for querying Claude Code, OpenAI, Codex CLI, Gemini API, and Gemini CLI official documentation.

6 skills

0

Apple Notes MCP server — 18 tools. SQLite 快讀(<10ms)+ AppleScript 寫入(CloudKit-safe),FDA fallback。Folders/notes CRUD、search、batch、undo/redo,雙軌 body(plaintext 或 HTML)。

1 skill · 3 commands · 1 MCP server · hooks

0

Apple platform development toolkit — build, deploy, debug, device management for Xcode projects; Apple Developer Portal automation via Safari (Sign In / OAuth setup, and agreement acceptance to unblock notarization when the Program License Agreement updates)

5 skills

0

Similar plugins

caveman

claude

Talk like caveman. Cut filler. Keep technical details explicit.

22 skills · 1 command · 3 agents · hooks

JuliusBrussee/caveman 119,462

claude-mem

claudecodex

Persistent memory for Claude Code: the next session starts where the last one left off.

29 skills · 1 MCP server · hooks

thedotmack/claude-mem 116,618

Taste Skill

claudecodex

tasteskill 2.5.1: professional company websites at the figma.com and x.ai level, with one section per screen, real photographs, real product UI, effects kept for tech and gaming pages, and a real-browser checker and finish gate.

1 skill

Leonxlnx/taste-skill 114,391

career-ops

claudecodex

Open-source AI job search that runs locally in your AI coding CLI: scan job portals, evaluate listings into a structured A-H report with a 1-5 score, tailor your CV, track applications

5 skills · hooks

career-ops-hq/career-ops 82,253

mem0

claudecodex

Cross-session memory and token savings for coding agents.

6 skills · 1 agent · 1 MCP server · hooks

mem0ai/mem0 68,893

pake

claudecodex

Package any website or local web build into a lightweight desktop app with Pake CLI.

1 skill

tw93/Pake 63,463

Maintain archive-first?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex plugins26 plugins