feat: 添加插件市场文件 - README + marketplace.json + install.sh

- README.md: 完整的使用说明和功能特性
- marketplace.json: Claude Code 插件市场元数据
- scripts/install.sh: 自动安装脚本

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
AirLongDian
2026-06-10 17:32:46 +08:00
parent e0e1d31cb1
commit dafd62cc24
3 changed files with 265 additions and 0 deletions

87
README.md Normal file
View File

@@ -0,0 +1,87 @@
# AirPlan V2
Claude Code 统一开发调度插件,整合 8 个 V1 插件为 1 个,支持 12 种开发模式。
## 功能特性
- **Arc** - 架构规划器,产出执行计划和 DAG
- **Eng** - 调度引擎,波次派发、监控、合并
- **Do** - 任务执行器,单任务切片运行
- **Dbg** - 调试器7 步工作流强制追踪
- **Xdb** - GUI 验证器,截图取证
- **Sdb** - 静态分析器,多语言支持
- **Ndb** - 网络调试器,抓包分析
- **Ctx** - 上下文管理器Token 估算
- **Dep** - 部署器SSH 远程构建
- **Tst** - 测试运行器,统一多框架
- **Sec** - 安全扫描器,敏感数据检测
- **Rvr** - 需求审查器,交付物一致性
## L1 代码级保障
- 原子写入 + 文件锁
- 证据门控强制
- 三阶段架构门控
- 调试先读后写
- 边界测试强制
- 高风险审计
- UI Skill 路由
## 安装
```bash
# 克隆插件
cd ~/.claude/skills
git clone http://git.airlongdian.fun/admin/AirPlan-V2.git airplan-v2
# 或使用安装脚本
bash ~/.claude/skills/airplan-v2/scripts/install.sh
```
## 使用
```bash
# 架构规划
/arc
# 调度引擎
/eng
# 任务执行
/do
# 调试模式
/dbg
# GUI 验证
/xdb
# 静态分析
/sdb
# 网络调试
/ndb
# 上下文管理
/ctx
# 部署
/dep
# 测试
/tst
# 安全扫描
/sec
# 需求审查
/rvr
```
## 版本
v2.0.0 - 统一插件版本
## 许可证
MIT

78
install.sh Normal file
View File

@@ -0,0 +1,78 @@
#!/bin/bash
# AirPlan V2 安装脚本
# 自动安装依赖并配置 Claude Code 插件
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PLUGIN_NAME="airplan-v2"
SKILLS_DIR="$HOME/.claude/skills"
echo "=========================================="
echo "AirPlan V2 安装脚本"
echo "=========================================="
# 检查 Python 版本
echo "[1/6] 检查 Python 版本..."
python3 --version || { echo "错误: 需要 Python 3"; exit 1; }
# 检查必要工具
echo "[2/6] 检查必要工具..."
command -v git >/dev/null 2>&1 || { echo "错误: 需要 git"; exit 1; }
# 创建 skills 目录
echo "[3/6] 配置插件目录..."
mkdir -p "$SKILLS_DIR"
# 创建符号链接或克隆
if [ -L "$SKILLS_DIR/$PLUGIN_NAME" ]; then
echo "插件已存在: $SKILLS_DIR/$PLUGIN_NAME"
elif [ -d "$SKILLS_DIR/$PLUGIN_NAME" ]; then
echo "插件目录已存在,更新中..."
cd "$SKILLS_DIR/$PLUGIN_NAME"
git pull origin master
else
echo "从远程克隆插件..."
git clone http://git.airlongdian.fun/admin/AirPlan-V2.git "$SKILLS_DIR/$PLUGIN_NAME"
fi
# 验证安装
echo "[4/6] 验证安装..."
if [ ! -f "$SKILLS_DIR/$PLUGIN_NAME/.claude-plugin/plugin.json" ]; then
echo "错误: plugin.json 不存在"
exit 1
fi
if [ ! -f "$SKILLS_DIR/$PLUGIN_NAME/skills/airplan/SKILL.md" ]; then
echo "错误: SKILL.md 不存在"
exit 1
fi
# 检查依赖
echo "[5/6] 检查依赖..."
# 检查系统依赖(可选)
command -v xvfb-run >/dev/null 2>&1 && echo " - xvfb-run: ✓" || echo " - xvfb-run: ✗ (可选,用于无头 GUI 测试)"
command -v ffmpeg >/dev/null 2>&1 && echo " - ffmpeg: ✓" || echo " - ffmpeg: ✗ (可选,用于视频处理)"
command -v cmake >/dev/null 2>&1 && echo " - cmake: ✓" || echo " - cmake: ✗ (可选,用于 C++ 项目构建)"
echo "[6/6] 安装完成!"
echo ""
echo "=========================================="
echo "使用方法:"
echo " /arc - 架构规划"
echo " /eng - 调度引擎"
echo " /do - 任务执行"
echo " /dbg - 调试模式"
echo " /xdb - GUI 验证"
echo " /sdb - 静态分析"
echo " /ndb - 网络调试"
echo " /ctx - 上下文管理"
echo " /dep - 部署"
echo " /tst - 测试"
echo " /sec - 安全扫描"
echo " /rvr - 需求审查"
echo "=========================================="
# 提示重启 Claude Code
echo ""
echo "提示: 请重启 Claude Code 以加载新插件"

100
marketplace.json Normal file
View File

@@ -0,0 +1,100 @@
{
"$schema": "https://anthropic.com/claude-code/marketplace.schema.json",
"id": "airplan-v2",
"name": "AirPlan V2",
"description": "统一制品驱动开发调度器。12个子模式arc(架构),eng(调度),do(执行),dbg(调试),xdb(GUI验证),sdb(静态分析),ndb(网络调试),ctx(上下文),dep(部署),tst(测试),sec(安全),rvr(需求审查)。L1代码级保障原子写入、文件锁、证据门控、三阶段架构、调试先读后写、边界测试强制、高风险审计、UI Skill路由。",
"category": "developer-tools",
"tags": [
"scheduler",
"orchestrator",
"debugger",
"devops",
"automation"
],
"author": {
"name": "AirPlan Team",
"email": "noreply@airlongdian.fun",
"url": "https://airlongdian.fun"
},
"homepage": "https://airlongdian.fun",
"repository": "http://git.airlongdian.fun/admin/AirPlan-V2",
"license": "MIT",
"keywords": [
"airplan",
"scheduler",
"orchestrator",
"debugger",
"v2",
"claude-code"
],
"platform": "linux",
"minClaudeVersion": "1.0",
"install": {
"type": "clone",
"source": "http://git.airlongdian.fun/admin/AirPlan-V2.git",
"target": "~/.claude/skills/airplan-v2"
},
"commands": [
{
"name": "arc",
"description": "架构规划器 - 产出执行计划和 DAG"
},
{
"name": "eng",
"description": "调度引擎 - 波次派发、监控、合并"
},
{
"name": "do",
"description": "任务执行器 - 单任务切片运行"
},
{
"name": "dbg",
"description": "调试器 - 7步工作流强制追踪"
},
{
"name": "xdb",
"description": "GUI验证器 - 截图取证"
},
{
"name": "sdb",
"description": "静态分析器 - 多语言支持"
},
{
"name": "ndb",
"description": "网络调试器 - 抓包分析"
},
{
"name": "ctx",
"description": "上下文管理器 - Token估算"
},
{
"name": "dep",
"description": "部署器 - SSH远程构建"
},
{
"name": "tst",
"description": "测试运行器 - 统一多框架"
},
{
"name": "sec",
"description": "安全扫描器 - 敏感数据检测"
},
{
"name": "rvr",
"description": "需求审查器 - 交付物一致性"
}
],
"features": [
"L1代码级保障",
"12种开发模式",
"制品驱动通信",
"原子写入",
"文件锁",
"证据门控",
"三阶段架构门控",
"调试先读后写",
"边界测试强制",
"高风险审计",
"UI Skill路由"
]
}