Lightweight multi-agent relay coding skill for Claude Code(轻量级多 Agent 接力 AI Coding 框架)。旨在提供一个不同 LLM/Agent 在如何协作完成复杂企业级开发项目,如何进行断点交接。核心是一套极简的BA → Arch → Dev → TechLead 之间传递上下文和进度文档的框架。
SaferSkills independently audited agent-baton (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
本 skill 把"BA → Arch → Dev → TechLead"的人机混合团队工作流封装为可触发的协作框架。核心机制:4 个角色通过 Markdown 文档接力,状态沉淀在项目内 `config/` 和 `docs/` 目录,跨会话/跨 Agent/跨模型可断点续接。
在做任何动作之前,先判断当前到底属于哪种场景:
config/roles/ 和 config/TEAM_GUIDE.md。config/roles/。config/roles/ 和 config/TEAM_GUIDE.md,用户提到任一角色名。执行以下步骤:
${CLAUDE_PLUGIN_ROOT:-~/.claude/skills/agent-baton}/assets/templates/。要拷贝的内容:CLAUDE.md → 项目根config/TEAM_GUIDE.md、config/PROJECT_STATUS.md、config/TECH_STATUS.md → config/config/roles/{BA,ARCH,DEV,TECHLEAD}.md → config/roles/docs/{INIT_REQ,PRD,ARCH,TASKS}.md → docs/docs/prototypes/.gitkeep → docs/prototypes/docs/phase1/(仅二期接入模式需要)定位 skill 路径,再 cp 各文件。注意 find 必须用 -L 才能跟随软链:
# 优先用环境变量;否则按常见路径搜索;最后回退到 find -L
SKILL_DIR="${CLAUDE_PLUGIN_ROOT:-}"
[ -z "$SKILL_DIR" ] && [ -d ~/.claude/skills/agent-baton ] && SKILL_DIR=~/.claude/skills/agent-baton
[ -z "$SKILL_DIR" ] && SKILL_DIR=$(find -L ~/.claude/skills ~/.claude/plugins -maxdepth 4 -name "agent-baton" 2>/dev/null | head -1)
[ -z "$SKILL_DIR" ] && { echo "未找到 AgentBaton skill 安装目录"; exit 1; }
mkdir -p config/roles docs/prototypes
cp "$SKILL_DIR/assets/templates/CLAUDE.md" ./CLAUDE.md
cp "$SKILL_DIR/assets/templates/config/"{TEAM_GUIDE,PROJECT_STATUS,TECH_STATUS}.md config/
cp "$SKILL_DIR/assets/templates/config/roles/"{BA,ARCH,DEV,TECHLEAD}.md config/roles/
cp "$SKILL_DIR/assets/templates/docs/"{INIT_REQ,PRD,ARCH,TASKS}.md docs/
touch docs/prototypes/.gitkeepCLAUDE.md:填写技术栈、开发规范、Git 团队配置("项目阶段"字段保持默认"全新开发")git init && git add -A && git commit -m "init: AgentBaton 项目初始化"docs/INIT_REQ.md与场景 A 类似,但额外动作:
assets/templates/docs/phase1/{INIT_REQ,CODEBASE}.md 到 docs/phase1/: mkdir -p docs/phase1
cp "$SKILL_DIR/assets/templates/docs/phase1/"{INIT_REQ,CODEBASE}.md docs/phase1/CLAUDE.md 和 config/PROJECT_STATUS.md(注意 macOS 与 Linux 的 sed -i 语法不同,下面是 macOS 版): sed -i '' 's/- \*\*当前模式\*\*:全新开发/- **当前模式**:二期接入/' CLAUDE.md
sed -i '' 's|- \*\*基线文档\*\*:无|- **基线文档**:docs/phase1/|' CLAUDE.md
sed -i '' 's/\*\*项目模式\*\*:全新开发/**项目模式**:二期接入/' config/PROJECT_STATUS.mdLinux 上把 sed -i '' 替换为 sed -i。
CLAUDE.md 的"一期代码仓库"字段)docs/phase1/INIT_REQ.md 中的一期功能描述用户提到某个角色("BA 角色"/"Arch 角色"/"Dev 角色"/"TechLead 角色"/"TechLead Review")时:
config/roles/<ROLE>.md(项目根相对路径,因为模板已经拷贝过去了)config/TEAM_GUIDE.md、config/PROJECT_STATUS.md、CLAUDE.md 等config/TEAM_GUIDE.md 第 2.3 节)和"⏸️ 停下来"节点:每个角色在完成自己阶段的工作后必须停止,等待下一个角色或人工接手,不要跨角色自动推进特殊触发词识别:
| 用户表述 | 加载文件 |
|---|---|
| "BA 角色"/"业务分析"/"启动 BA" | config/roles/BA.md |
| "Arch 角色"/"架构师"/"启动 Arch" | config/roles/ARCH.md |
| "Dev 角色"/"开发者"/"启动 Dev"/"开始编码" | config/roles/DEV.md |
| "TechLead 角色"/"技术负责人"/"TechLead Review"/"代码审查"(在 AgentBaton 项目中) | config/roles/TECHLEAD.md |
push 由用户手动执行详细的协作流程、文档体系、阶段交接、二期接入逆向重建、迭代变更路径 A/B 等,在项目内的 config/TEAM_GUIDE.md 中。Skill 触发后第一件实事必须是读它(场景 A/B 拷贝完成后读项目内的,场景 C 直接读项目内的)。
各角色的详细指令(包含 Git 提交话术、交接 Checklist、停留点)在 config/roles/<ROLE>.md。
下列情形不要触发本 skill,让 Claude 按普通方式回应:
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.