AGENT SKILL

协作编辑冲突预警

cast-conflicts

在编辑或分派工作之前,先找出本仓库中正在改动同一批文件的活动会话,展示其改动内容并向它们发出警告。在开始处理涉及共享文件的任务前、在派生工作线程(worker)之前,或被问到还有谁在处理此项工作时使用。

License 许可
MIT
最近更新
2026-11-15
Stars
★ 49
Forks
6

01 前言 Front Matter

name
cast-conflicts
description
Before editing or fanning out work, find the live sessions on this repository that are changing the same files, show what they changed, and warn them. Use before starting a task that touches shared files, before spawning workers, or when asked who else is working on this.
argument-hint
[files or globs; defaults to the working tree and the bound task]

03 SKILL.md 正文

Merge conflicts in shared files are the failure no fleet tool detects before it happens. This finds them while both sides can still adjust.

My file set

The argument, if given. Otherwise the files in git status --porcelain plus any files named in cast task context --current. When the question is about work you are about to spawn, use the files each brief will touch.

Their file sets

cast sessions --state working --json
cast sessions --state needs-input --json
cast links                      # this session's id, to exclude it

Keep sessions whose project_path is this repository or a worktree of it (.codecast/worktrees/<name> and .claude/worktrees/<name> under the same root count). For each:

cast diff <id>                  # "Files Changed" with +/- per file
cast state show <id>            # what it says it is doing

Paths in cast diff are abbreviated from the left, so match on the path tail.

Report

No overlap is a one line answer. Otherwise a table: session (short id), what it is doing, the overlapping files, its line counts, and when it last moved. For each overlap read the relevant hunks with cast diff <id> --patch and say whether the two changes can coexist, will conflict textually, or conflict in meaning (same function, different intent).

Act

Tell the other session what you are about to change in the shared file with cast send <id>; one message, concrete, no status narration. Then choose: sequence the work, split the file ownership, or rebase onto their change when it lands. When spawning workers, write the file ownership into each brief so no two briefs claim one file.

04 同仓库更多 Skills

codecast-sh
codecast-sh/codecast

名称与目录名不一致示例

something-else-entirely

一个 frontmatter 中的 name 与其目录名不一致的技能。

软件开发工程师示例与演示技能
★ 49
codecast-sh
codecast-sh/codecast

未知字段示例技能

unknown-field

携带一个既不属于规范六项字段、也不在 Claude Code 字段列表中的字段。

软件开发工程师示例与演示技能
★ 49
codecast-sh
codecast-sh/codecast

Remotion 视频创作最佳实践

remotion-best-practices

Remotion 的最佳实践——用 React 创作视频。

多媒体工程师视频生成与制作
★ 49
codecast-sh
codecast-sh/codecast

超长描述示例技能

overlength

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

软件开发工程师示例与演示技能
★ 49
codecast-sh
codecast-sh/codecast

无 Frontmatter 技能

no-frontmatter

暂无简介

软件开发工程师示例与演示技能
★ 49
codecast-sh
codecast-sh/codecast

代码库审计与改进规划

improve

以高级顾问的身份审视任意代码库,产出按优先级排序、自成体系的实施计划,供其他模型/智能体执行。对源代码严格只读——绝不亲自实现、修复或重构任何内容。当用户要求审计代码库、发现改进机会(缺陷、安全性、性能、测试覆盖率、技术债务、迁移、开发者体验 DX)、建议新功能或项目下一步方向(路线图、产品方向),或生成交接计划供其他智能体实施时使用。

软件开发工程师设计评审与架构优化
★ 49