AI Plugins for Claude Code - 智能代码提交、代码审查和专家级代码审查顾问
npx claudepluginhub chenquan/ai-pluginsClaude Code 插件集合 - 增强开发工作流,包含智能代码提交、代码审查、专家级代码审查顾问等功能
一套功能丰富的 Claude Code 插件集合,旨在提升开发效率和代码质量。
在 Claude Code 中执行:
安装插件 common
或者使用命令行:
# 如果 Claude Code 支持 CLI 安装
claude plugin install common
# 克隆仓库
git clone https://github.com/chenquan/ai-plugins.git ~/claude-marketplace
cd ~/claude-marketplace
# Claude Code 会自动识别 .claude-plugin/marketplace.json
# 并加载 plugins/common/ 中定义的插件
安装完成后,重启 Claude Code 并验证:
# 查看所有可用命令
/help
# 测试代码提交命令
/commit
# 测试代码审查命令
/cr
# 调用代码审查专家代理
请使用 code-review-expert 代理帮我审查代码
本插件包含以下核心组件:
位于 plugins/common/commands/ 目录,提供便捷的快捷指令:
/commit - 智能提交 git 更改并推送到远程仓库
/cr - 智能代码审查工具
/commit # 提交当前更改
/cr # 审查未提交的更改
/cr src/main.go # 审查指定文件
/cr --pr 123 # 审查 Pull Request
位于 plugins/common/agents/ 目录,提供专门化的 AI 助手:
code-review-expert - 专家级代码审查顾问
/cr 命令提供更全面的专家级指导# 快速审查
"请使用 code-review-expert 代理审查当前的代码更改"
# 深度审查
"请使用 code-review-expert 代理对 src/auth/ 进行深度审查"
# 培训导向审查
"请使用 code-review-expert 代理进行教学式的代码审查,我们有很多新人"
# 全面健康检查
"请使用 code-review-expert 代理对我们项目进行全面的质量健康检查"
位于 plugins/common/skills/ 目录,提供渐进式加载的专业知识包:
位于 plugins/common/.claude-plugin/mcp.json,通过标准协议连接外部工具:
位于 plugins/common/.claude-plugin/hooks.json,在工作流特定节点自动触发:
ai-plugins/
├── .claude-plugin/
│ └── marketplace.json # 市场配置
├── plugins/ # 所有插件
│ └── common/ # 主插件目录
│ ├── .claude-plugin/
│ │ ├── plugin.json # 插件元数据
│ │ ├── hooks.json # 钩子配置
│ │ └── mcp.json # MCP 服务器配置
│ ├── README.md # 插件说明
│ ├── CLAUDE.md # Claude Code 指令
│ ├── commands/ # 斜杠命令
│ │ ├── commit.md
│ │ └── cr.md
│ ├── agents/ # 子代理
│ │ ├── code-review-expert.md
│ │ └── code-review-knowledge-base.md
│ ├── skills/ # Skills
│ │ └── example-skill/
│ │ └── SKILL.md
│ ├── docs/ # 文档
│ │ ├── CODE_REVIEW_AGENT_GUIDE.md
│ │ ├── CR_COMMAND_USAGE.md
│ │ └── IMPLEMENTATION_SUMMARY.md
│ ├── templates/ # 模板
│ │ ├── improvement-report.md
│ │ ├── review-tracker.md
│ │ └── training-plan.md
│ ├── images/ # 图片资源
│ └── hooks/ # 钩子脚本
├── PLUGIN_SCHEMA.md # 插件架构文档
├── QUICK_START.md # 快速开始指南
├── README.md # 市场说明
├── CONTRIBUTING.md # 贡献指南
└── SECURITY.md # 安全政策
在 plugins/common/commands/ 目录下创建 .md 文件:
---
description: 命令描述
---
你的命令内容...
在 plugins/common/agents/ 目录下创建 .md 文件:
---
description: 代理描述
model: sonnet
---
代理的指令和配置...
在 plugins/common/skills/ 目录下创建文件夹,并在其中创建 SKILL.md:
---
description: Skill 描述
---
Skill 的详细内容...
编辑 plugins/common/.claude-plugin/mcp.json:
{
"mcpServers": {
"server-name": {
"command": "node",
"args": ["path-to-server.js"]
}
}
}
编辑 plugins/common/.claude-plugin/hooks.json:
{
"beforeEdit": [
{
"description": "编辑前执行",
"command": "echo 'Editing file'"
}
]
}
MIT License
欢迎提交 Issue 和 Pull Request!
Built with ❤️ by chenquan
Claude Code marketplace entries for the plugin-safe Antigravity Awesome Skills library and its compatible editorial bundles.
Production-ready workflow orchestration with 84 marketplace plugins, 192 local specialized agents, and 156 local skills - optimized for granular installation and minimal token usage
Directory of popular Claude Code extensions including development tools, productivity plugins, and MCP integrations