RZfive

Fangyang Le — Git skill for Claude Code

Git community

herdr skill: fan one task out to N parallel coding agents — Claude Code, OpenCode, Codex, Gemini & 20+.

How to install Fangyang Le

This entry records only its repository, not the path inside it, so there is no exact command to give. Open RZfive/fangyang-le and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Fangyang Le does

herdr skill: fan one task out to N parallel coding agents — Claude Code, OpenCode, Codex, Gemini & 20+. Same-kind spawn, workspace-locked, keep-fold-for-review. Agents never commit.

Alternatives in Git

  • Star Us On GitHub — It helps us keep building 7k ★
  • 40+ Claude Code Tips — Tips for getting the most out of Claude Code, including a custom status line script, cutting the system prompt 5.8k ★
  • Prepare Commit — Comment out inappropriate logging before commit 1.6k ★

README

放羊了

Herdr 多 agent 并行工作流 skill。主控留在自己的 tab,worker 放到新的“羊圈”tab,按 2 行网格运行。

安装

不依赖固定路径。任选一种:

# 1) 已经克隆/下载到本地
./install.sh

# 2) 从 GitHub 直接安装
./bootstrap.sh https://github.com/RZfive/fangyang-le.git [git-ref]

安装位置默认是:

~/.agents/skills/fangyang-le

可通过 `AGENTS_SKILLS_DIR` 覆盖父目录。

安装脚本会把 skill 链接到:

  • ~/.claude/skills/放羊了
  • ~/.codex/skills/放羊了
  • ~/.config/opencode/skills/放羊了

重启或重新加载 agent 后生效。

让 agent 从 GitHub 自动安装

给 agent 的口令可以是:

请从 https://github.com/RZfive/fangyang-le.git 克隆「放羊了」skill 到临时目录,
执行其中的 install.sh,安装完成后删除临时目录。
不要写死任何本地固定路径。

或者让 agent 直接运行:

git clone --depth 1 https://github.com/RZfive/fangyang-le.git /tmp/fangyang-le
/tmp/fangyang-le/install.sh
rm -rf /tmp/fangyang-le

`install.sh` 会先复制到 `~/.agents/skills/fangyang-le`,再建立链接,因此临时目录删掉也不影响使用。

发布到 GitHub

cd 
git init
git add .
git commit -m "Add 放羊了 herdr multi-agent skill"
git branch -M main
git remote add origin https://github.com/RZfive/fangyang-le.git
git push -u origin main

快速使用

SKILL_DIR="${AGENTS_SKILLS_DIR:-$HOME/.agents/skills}/fangyang-le"

"$SKILL_DIR/scripts/fanout.sh" \
  --count 4 \
  --work "P2 补齐" \
  --tasks lsp,ui,bench,docs

默认行为(可省略的都省了):

  • 不跨 workspace:羊圈 tab/pane 建在主控自己的 $HERDR_WORKSPACE_ID 里;在 herdr pane 外执行时自动 bootstrap(装 herdr、起 headless server、新建专属牧场 workspace),--no-bootstrap 可关闭并恢复直接报错。只有用户明确要求跨界时才传 --workspace(此时会打 WARNING)。
  • 子 agent 与主控同类:--kind 默认 auto——claude 起 claude、opencode 起 opencode、codex 起 codex。同类额度满或用户点名时才显式 --kind 。
  • manifest 记录 workspace:.fangyang/herdr--agents.tsv(落在当前仓库内,主控读写无需授权;fanout.sh 自动建目录并幂等追加 .gitignore)每行 4 列 name/pane/tab/workspace,收割时会校验。
  • 西部主控名:--owner 缺省时从西部牛仔名池随机分配(夜枭、响尾蛇、孤星客……),自动避开本 workspace 已占用的名字;主控 tab 已有西部名则沿用。主控 tab 同步改名 · ,原名记进 manifest #controller_tab_* 元数据行,harvest.sh --close-tab 关圈时自动恢复。不在 herdr pane 里或改名失败时只降级提示,不影响放羊。
  • 外部放羊:herdr pane 外跑 `f