
Plugin Env
- Updated April 29, 2026
- work4lazy/work4lazy-ccpm
plugin-env is a Claude Code skill in the AI & Agent Building category. 插件环境管理器 - 为不同项目一键切换插件组合
Key points
- plugin-env
- AI & Agent Building
- AI-coding skill
Plugin Env by the numbers
- Data as of Jul 7, 2026 (Skillselion catalog sync)
/plugin marketplace add work4lazy/work4lazy-ccpm/plugin install plugin-env@work4lazy-ccpmAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Last updated | April 29, 2026 |
|---|---|
| Repository | work4lazy/work4lazy-ccpm ↗ |
What it does
插件环境管理器 - 为不同项目一键切换插件组合
README.md
Plugin Env - 插件环境管理器
通过「环境(Profile)」概念,把插件组合打包成可一键应用的配置模板,实现真正的「一次配置,处处复用」。
功能特性
- 📦 环境管理:将插件组合保存为命名环境
- 🔄 一键切换:快速切换不同开发场景的插件配置
- 📝 透明存储:所有配置为可读 JSON,可手动编辑
- 🚫 零依赖:仅使用 Python 标准库
命令参考
| 命令 | 功能 |
|---|---|
penv |
显示当前环境状态 |
penv list |
列出所有可用环境 |
penv use <名称> |
应用指定环境(完全覆盖) |
penv reset |
重置当前项目配置 |
内置环境
| 环境名称 | 描述 |
|---|---|
coding |
通用代码开发场景 |
plugin-dev |
插件开发场景 |
工作原理
- SessionStart Hook:会话启动时自动检测并显示当前环境状态
- UserPromptSubmit Hook:拦截
penv开头的命令并执行 - Profile 配置:存储在
profiles/目录的 JSON 文件 - 状态持久化:项目
.claude/.penv-state.json记录应用状态
目录结构
plugin-env/
├── .claude-plugin/
│ └── plugin.json # 插件元数据
├── hooks/
│ ├── hooks.json # Hook 配置
│ └── session-start.sh # SessionStart 入口脚本
├── scripts/ # 核心 Python 模块
│ ├── main.py
│ ├── state_manager.py
│ ├── profile_manager.py
│ ├── settings_writer.py
│ ├── interactive_menu.py
│ └── user_prompt_handler.py
└── profiles/ # 环境配置
├── coding.json
└── plugin-dev.json
添加自定义环境
在 profiles/ 目录创建 JSON 文件:
{
"name": "my-env",
"description": "我的自定义环境",
"enabledPlugins": {
"plugin-name@source": true
}
}
注意事项
- 切换环境后需要运行
/reload才能生效 - 应用环境采用 Replace 模式,会完全覆盖
enabledPlugins配置
Related skills
AI & Agent Buildingagents