By hangox
Portainer CE container management plugin for Claude Code. Manage Docker containers, stacks, images, networks, and volumes through Portainer REST API.
npx claudepluginhub hangox/claude-portainer-plugin --plugin portainerClaude Code 插件,通过 Portainer REST API 管理 Docker 容器和服务。
在 Claude Code 中运行:
/plugin install portainer@hangox
或通过 CLI:
claude plugin install portainer@hangox
适用于 Cursor、Windsurf 等多种 AI 编程工具:
# 安装到当前项目(推荐)
npx skills-installer install @hangox/claude-portainer-plugin/portainer -p --client claude-code
# 全局安装(所有项目可用)
npx skills-installer install @hangox/claude-portainer-plugin/portainer --client claude-code
git clone https://github.com/hangox/claude-portainer-plugin.git ~/.claude/plugins/claude-portainer-plugin
重启 Claude Code 后插件自动生效。
插件按以下优先级自动获取 Portainer 连接信息:
export PORTAINER_URL="https://portainer.example.com"
export PORTAINER_API_KEY="ptr_your_api_key_here"
export PORTAINER_ENDPOINT_ID="1" # 可选,默认 1
在项目的 CLAUDE.md 中添加 Portainer 配置段落:
## Portainer 信息
- 管理地址: https://portainer.example.com
- Portainer ID: 2
首次使用时,插件会自动询问 Portainer URL 和认证信息。
"列出所有 stack"
"部署这个 docker-compose.yml 到 Portainer"
"重启 nginx 容器"
"查看 redis 的日志"
"触发 webhook 重新部署 my-stack"
"清理未使用的镜像"
"查看 Docker 磁盘使用情况"
ptr_ 开头的 API Key项目包含自动化测试,使用 Docker 启动独立的 Portainer 测试环境:
cd tests
npm install
npx tsx run-tests.ts # 一键运行(自动 setup + test + teardown)
测试覆盖:28 个用例(14 P0 + 10 P1 + 3 错误处理 + 1 清理),0 失败。
| Portainer 版本 | 状态 |
|---|---|
| CE 2.33.7 | 已验证 |
| CE 2.24.1 | 已验证(自动化测试) |
| CE 2.19+ | 最低支持 |
MIT
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Creative skill for generating algorithmic and generative art. Produces visual designs using mathematical patterns, fractals, and procedural generation.
Frontend design skill for UI/UX implementation
Humanise text and remove AI writing patterns. Detects and fixes 24 AI tell-tales including inflated language, promotional tone, AI vocabulary, filler phrases, sycophantic tone, and formulaic structure.
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). Proactively activates in projects with cacheComponents: true, providing patterns for 'use cache' directive, cacheLife(), cacheTag(), cache invalidation, and parameter permutation rendering.