broadcast
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "broadcast":https://skillpi.com/zh/skills/deepskill-efa3103f2c0f9ad6bf042dcbeeb3e2224648fdbd0633da9cccc19b6aac836e13。安装前核对上游来源和版本:https://skillhub.cn/skills/user_f12a44b7/clawhong-group-broadcast。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
群发通知工具:向全员或指定工人批量发送消息,支持群聊广播、定向 inbox 和全员群发三种模式。适用于全员公告、催办和总裁令等广播场景。
介绍来源: third_party · user_f12a44b7 · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: broadcast
description: "Apply the same change across multiple repos simultaneously using parallel agent teams. Creates worktrees, applies changes, runs tests, commits, and creates PRs. For cross-repo consistency updates, dependency bumps, config changes, and refactors."
version: "1.0.0"
category: meta
platforms:
- CLAUDE_CODEYou are an autonomous cross-repo broadcast agent. Do NOT ask the user questions. Apply the requested change to every target repository in parallel, verify with tests, and deliver PRs.
============================================================ TARGET: $ARGUMENTS
Arguments format: <change description> [--repos <path1> <path2> ...] [--branch <name>] [--dry-run]
- Change description (required): Natural language description of what to change across all repos.
- --repos (optional): Explicit list of repo paths. If omitted, auto-discover (see Phase 0).
- --branch (optional): Branch name to use. Default:
broadcast/<slugified-change-description>. - --dry-run (optional): If present, show what would change without committing or pushing.
============================================================ PHASE 0: REPOSITORY DISCOVERY
If --repos was provided, use those paths directly. Validate each is a git repo.
If no repos specified, auto-discover by scanning these locations (skip any that don't exist):
- Current working directory (if it's a git repo)
- Sibling directories of current working directory
$HOME/personal/*$HOME/work/*$HOME/projects/*
For each candidate directory:
- Check if it contains a
.gitdirectory (is a git repo) - Check if it has a remote (not a bare/orphan repo)
- Exclude: bare repos, archived repos, repos with no commits
Build a repo inventory:
| Repo | Path | Default Branch | Language/Stack | Last Commit |
|---|
Present the discovered repos to the user before proceeding. If zero repos found, report the error and stop.
============================================================ PHASE 1: BRANCH SETUP (parallel across repos)
For each repo, using the Agent tool to run in parallel:
-
Ensure the repo is on its default branch and up to date:
cd <repo_path> git fetch origin git checkout <default_branch> git pull origin <default_branch> -
Create a worktree for the broadcast branch:
git worktree add ../<repo_name>--<branch_name> -b <branch_name> -
Change into the worktree directory for all subsequent work.
If worktree creation fails (branch already exists), attempt cleanup:
- Remove the existing worktree:
git worktree remove ../<repo_name>--<branch_name> - Delete the branch:
git branch -D <branch_name> - Retry once.
============================================================ PHASE 2: APPLY CHANGES (parallel across repos)
For each repo, using the Agent tool to run in parallel:
- Analyze the repo structure (language, framework, config format, conventions).
- Apply the requested change, adapting to each repo's specific stack and conventions.
- Respect existing code style (indentation, naming conventions, patterns).
- If the change involves config files, detect the config format (YAML, JSON, TOML, etc.).
- If the change involves dependencies, use the repo's package manager (npm, pip, pub, cargo, etc.).
- If the change doesn't apply to a repo (e.g., bumping a dep that doesn't exist there), skip it gracefully.
Record what was changed in each repo for the final report.
============================================================ PHASE 3: VALIDATE (parallel across repos)
For each repo where changes were made:
-
Detect the test framework and run tests:
- Node/npm:
npm testornpx jestornpx vitest - Dart/Flutter:
flutter testordart test - Python:
pytestorpython -m unittest - Rust:
cargo test - Go:
go test ./... - If no test runner detected, run linter/type-check as fallback.
- Node/npm:
-
Detect the build system and run a build:
npm run build,flutter build,cargo build,go build ./..., etc.- Skip if no build step exists.
-
Run linter if configured.
If tests/build FAIL:
- Read the error output.
- Attempt ONE self-healing fix (e.g., update an import, fix a type error).
- Re-run tests.
- If still failing: revert all changes in this repo, remove the worktree, and mark it as SKIPPED in the report. Do NOT create a PR for repos with failing tests.
============================================================ PHASE 4: COMMIT & PUSH (parallel across repos)
For each repo that passed validation:
-
Stage changed files (be specific, not
git add -A):git add <specific_files> -
Commit with a descriptive message:
git commit -m "<concise description of the broadcast change>" -
Push the branch:
git push -u origin <branch_name>
If --dry-run was specified, skip this phase entirely and show what would be committed.
============================================================ PHASE 5: CREATE PRs (parallel across repos)
For each repo that was pushed:
-
Create a PR using
gh pr create:gh pr create \ --title "<short title for the broadcast change>" \ --body "## Summary Broadcast change applied across multiple repositories. **Change:** <description> **Repos in this broadcast:** <list of all repos in this broadcast run> ## What changed <specific changes for this repo> ## Test plan - [ ] Tests pass (verified by broadcast agent) - [ ] Build succeeds (verified by broadcast agent) - [ ] Manual review of changes" -
Record the PR URL.
============================================================ PHASE 6: CLEANUP
For each repo, remove the worktree:
cd <repo_path>
git worktree remove ../<repo_name>--<branch_name>
Do NOT delete the remote branch (the PR needs it).
============================================================ OUTPUT
Broadcast Report
Change Applied
<description of the change>
Results
| Repo | Status | Branch | PR | Tests | Build | Notes |
|---|---|---|---|---|---|---|
| <name> | SUCCESS / SKIPPED / FAILED | <branch> | <PR URL> | PASS/FAIL | PASS/FAIL/N/A | <notes> |
Summary
- Repos discovered: N
- Changes applied: N
- PRs created: N
- Skipped (not applicable): N
- Failed (tests/build): N
Failed/Skipped Details
For each failed or skipped repo:
- Repo: <name>
- Reason: <why it was skipped or failed>
- Error: <relevant error output, if any>
Next Steps
- Review and merge the PRs listed above.
- For skipped repos, apply the change manually if needed.
============================================================ SELF-HEALING VALIDATION (max 2 iterations)
After producing output, validate data quality and completeness:
- Verify all output sections have substantive content (not just headers).
- Verify every repo result has a clear status.
- Verify PR URLs are valid (not placeholder text).
- If any repo was marked SUCCESS but no PR URL exists, investigate.
IF VALIDATION FAILS:
- Identify which repos have incomplete results
- Re-attempt the failed step for those repos
- Repeat up to 2 iterations
IF STILL INCOMPLETE after 2 iterations:
- Flag specific failures in the output
- Note what manual steps are needed
============================================================ SELF-EVOLUTION TELEMETRY
After producing output, record execution metadata for the /evolve pipeline.
Check if a project memory directory exists:
- Look for the project path in
~/.claude/projects/ - If found, append to
skill-telemetry.mdin that memory directory
Entry format:
### /broadcast — {YYYY-MM-DD}
- Outcome: {SUCCESS | PARTIAL | FAILED}
- Self-healed: {yes — what was healed | no}
- Repos targeted: {N}
- Repos succeeded: {N}
- Repos skipped: {N}
- Repos failed: {N}
- Bottleneck: {phase that struggled or "none"}
- Suggestion: {one-line improvement idea for /evolve, or "none"}
Only log if the memory directory exists. Skip silently if not found. Keep entries concise — /evolve will parse these for skill improvement signals.
============================================================ DO NOT
- Do NOT hardcode repository paths, project names, or usernames.
- Do NOT commit secrets, credentials, or environment files.
- Do NOT force-push or rewrite history on any branch.
- Do NOT merge PRs — only create them for human review.
- Do NOT continue with a repo if tests fail after one self-healing attempt. Skip it.
- Do NOT use
git add -Aorgit add .— stage specific files only. - Do NOT create PRs for repos where no changes were needed.
- Do NOT delete remote branches — PRs depend on them.
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决多仓库架构下的高频刚需痛点(依赖升级、配置同步、一致性维护)
- 提供完整端到端自动化流程,显著提升开发效率
亮点
- description 精准描述核心功能和使用场景
- 边界清晰,不易与其他 Skill 混淆
亮点
- Phase 划分清晰,每阶段有明确目标和出口条件
- frontmatter 完整,文档结构规范
亮点
- 覆盖主要异常场景并提供自修复机制
- 具备完善的错误处理和回滚策略
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 97 行 -
账号、密钥或授权
使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。
主文档提及 · 第 264 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。