AG

agent-branch-handoff

Guides the PR process for sub-agents, ensuring clear handover between developers and project leads.

Install

mkdir -p .claude/skills/agent-branch-handoff && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13806" && unzip -o skill.zip -d .claude/skills/agent-branch-handoff && rm skill.zip

Installs to .claude/skills/agent-branch-handoff

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

StudySolo 子 Agent 并行开发与交接技能。用于指导“仅提交 Agent 相关代码 + README 对接说明 + 审核 Merge 后由负责人补主后端与更新日志”的标准流程。
94 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Determine the branch status and create/switch to `feat/subagent-*`
  • Control commit scope to `agents/<agent-name>/` only
  • Enforce mandatory README documentation for main backend integration
  • Clarify PR responsibilities for developers and review leaders
  • Prevent committing to incorrect branches
  • Ensure `docs/Updates` is updated by the review leader

How it works

The skill first assesses the branch status, then enforces strict rules for commit scope, mandatory README documentation for main backend integration, and clear PR responsibilities before merging.

Inputs & outputs

You give it
User request for submitting agent code or managing an agent branch handoff
You get back
Guidance on branch status, commit scope, README requirements, and PR responsibilities

When to use agent-branch-handoff

  • Submitting agent code
  • Managing agent branch handoffs
  • Updating agent registration

About this skill

Agent Branch Handoff Skill

激活后第一句话(必须)

激活本技能后,第一句话必须包含:

使用 Agent 分支交接 SOP 处理本次提交

必读文档(按顺序)

  1. docs/项目规范与框架流程/功能流程/团队协作/Agent分支提交SOP.md
  2. docs/项目规范与框架流程/项目规范/10-Git与协作规范.md
  3. docs/项目规范与框架流程/项目规范/10-Git与协作规范.md
  4. docs/项目规范与框架流程/项目规范/02-模块边界规范.md
  5. docs/issues/TeamRefactor/contracts/agent-gateway-contract.md

核心执行规则

  1. 先判断分支状态:
    • 若目标分支不存在:从 main 创建 feat/subagent-*
    • 若分支已存在:先切换并同步,不重复创建
  2. 严控提交范围:
    • 默认只 git add agents/<agent-name>/
    • 不允许默认 git add .
  3. 强制 README 交接:
    • 必须写清主后端对接方式(含 agents.yaml 建议片段)
    • 明确本 PR 是否改主后端注册表
  4. PR 接力边界必须写清:
    • 开发者负责 Agent 代码 + README
    • 审核负责人负责 PR 分析、Merge 后补主后端、更新 docs/Updates

输出模板(建议)

当用户问“这次怎么提 Agent PR”时,输出应包含以下 4 段:

  1. 当前分支状态与创建/切换建议
  2. git add 精确范围
  3. README 必填字段清单
  4. Merge 后负责人收尾事项(主后端 + docs/Updates

严禁行为

  • 在错误分支直接提交
  • 未检查暂存区文件就 commit
  • README 无主后端对接信息
  • 将主后端接入责任写成“无人负责”
  • 漏掉 docs/Updates 更新

When not to use it

  • When the submission is not related to sub-agent code
  • When the workflow does not follow the "only commit agent-related code" standard
  • When the user does not want to follow the specified PR handoff process

Limitations

  • The skill is for StudySolo sub-agent parallel development and handoff.
  • It guides the standard process of "only committing agent-related code + README documentation + review and merge by the responsible person, who then supplements the main backend and update logs."
  • It requires clear README documentation for main backend integration.

How it compares

This skill enforces a specific, structured workflow for sub-agent branch handoffs, including strict commit boundaries and clear documentation requirements, which is more controlled than a general Git workflow.

Compared to similar skills

agent-branch-handoff side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
agent-branch-handoff (this skill)04moNo flagsIntermediate
resolve-conflicts818moReviewIntermediate
openspec-onboard106moReviewBeginner
codex-cli-bridge99moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry