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 hyhmrrightv1.0.0MIT
Automatically manage Claude Code plugins - auto-install missing plugins and auto-update every 24 hours
Run automatically on Claude Code events. Claude doesn't decide.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
English | 简体中文
自动管理 Claude Code 插件的安装和更新,支持跨机器同步配置。
git pull 拉取最新快照和配置installed_plugins.json 被重建导致 Hook 丢失~/.claude/settings.local.json,不依赖 installed_plugins.json,从根本上解决 Hook 丢失问题global-rules/CLAUDE.md 到 ~/.claude/CLAUDE.mdglobal-skills/ 目录到 ~/.claude/skills/最简单的方式:在新机器上启动 Claude Code 后,直接告诉 Claude:
"用
[email protected]:hyhmrright/claude-plugins-snapshot.git设置我的插件"
Claude 会自动执行:
~/.claude/plugins/auto-manager完全自动化,无需手动操作! 🎉
# 1. 克隆仓库到 Claude 插件目录
cd ~/.claude/plugins/
git clone [email protected]:hyhmrright/claude-plugins-snapshot.git auto-manager
# 2. 运行安装脚本(推荐使用 Python 版本)
cd auto-manager
python3 install.py
# 或使用 Bash 脚本(仅 Unix 系统)
# ./install.sh
# 3. 重启 Claude Code
# 插件会自动安装快照中的所有插件
# 1. 克隆仓库到 Claude 插件目录
# 注意:Windows 上 Claude 配置目录可能在 %APPDATA%\Claude
cd %USERPROFILE%\.claude\plugins
git clone [email protected]:hyhmrright/claude-plugins-snapshot.git auto-manager
# 2. 运行 Python 安装脚本
cd auto-manager
python install.py
# 3. 重启 Claude Code
# 插件会自动安装快照中的所有插件
就这么简单!🎉
当前机器已完成设置,快照已同步到 GitHub。
每次用户登录时(macOS LaunchAgent / Linux systemd):
auto-manager.pyauto-manager.py 下次运行时自动重建(自愈)每次启动 Claude 时:
~/.claude.json.backup.<timestamp> 临时备份文件installed_plugins.json 中注册(防止插件级 Hook 丢失)~/.claude/settings.local.json 中注册,并自动修正 matcher/async/timeout 字段git pull 拉取最新快照和配置(在加载配置前执行,确保使用远程最新版本)known_marketplaces.json(支持跨机器新增 marketplace)global-rules/CLAUDE.md 到 ~/.claude/CLAUDE.mdglobal-skills/ 目录到 ~/.claude/skills/interval_hours: 0):每次启动都更新 Marketplaces 和所有插件,确保始终最新interval_hours: 24):每 24 小时更新一次 Marketplaces 和插件known_marketplaces.json 读取),再逐个更新插件只在以下情况推送到 GitHub:
这样可以避免每天产生大量无意义的 Git commit。
如果在当前会话中安装/卸载了插件,有两种方式同步:
cd ~/.claude/plugins/auto-manager && python3 scripts/sync-snapshot.py
auto-manager/
├── .claude-plugin/
│ └── plugin.json # 插件元数据
├── hooks/
│ └── hooks.json # SessionStart Hook 配置(插件级,备选)
├── scripts/
│ ├── session-start.sh # Hook 入口(async:true 由 Claude Code 负责后台化)
│ ├── session-start.py # Hook 入口备选(Windows)
│ ├── startup-service.py # OS 启动服务管理(macOS LaunchAgent / Linux systemd / cron)
│ ├── auto-manager.py # 主逻辑(安装 + 更新)
│ ├── create-snapshot.py # 生成插件快照
│ ├── git-sync.py # Git 同步脚本
│ ├── sync-snapshot.sh # 手动同步快照到 Git
│ └── sync-snapshot.py # 手动同步快照(跨平台)
├── global-rules/ # 全局规则(Git 追踪,同步到 ~/.claude/CLAUDE.md)
│ └── CLAUDE.md
├── global-skills/ # 全局 Skills(Git 追踪,同步到 ~/.claude/skills/)
│ └── sync-snapshot/
│ └── SKILL.md
├── tests/ # 测试用例(pytest)
│ ├── test_auto_manager.py
│ └── test_startup_service.py
├── snapshots/
│ ├── current.json # 当前快照(唯一快照文件)
│ ├── .last-update # 上次更新时间戳(本地)
│ └── .last-install-state.json # 安装状态(本地)
├── logs/ # 运行日志(本地)
│ └── auto-manager.log
├── config.json # 配置文件
├── install.py # 新机器安装脚本(推荐,跨平台)
├── install.sh # 新机器安装脚本(仅 Unix)
├── .gitignore # Git 忽略文件
└── README.md # 本文档
SessionStart Hook 会在每次启动 Claude Code 时自动检测插件变化并同步:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (hyhmrright/claude-plugins-snapshot) — no native marketplace selected
npx claudepluginhub p/hyhmrright-auto-managerPlugins from other owners that cover similar ground