chenmijiang/cmj_skills/task-concurrency-patterns
Claude Code and agent skill by chenmijiang/cmj_skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
任务并发与依赖管理模式 — 多 Agent/多步骤任务的并发安全、读写分离、依赖编排。适用于:(1) 多 Worker 并行任务 (2) 复杂项目拆分执行 (3) 需要 blocks/blockedBy 依赖关系的工作流。
Install
npx vskill@latest install chenmijiang/cmj_skills/task-concurrency-patternsSKILL.md
The same SKILL.md was published earlier as chenmijiang/cmj_skills/task-concurrency-patterns.
Task Concurrency Patterns
并发安全规则
读写分离
并发安全声明
每个任务/工具需声明并发安全性:
concurrencySafe: true→ 可以并行执行(如搜索、读取)concurrencySafe: false→ 必须串行(如文件写入、数据库迁移)
任务状态机
每个任务包含:
subject— 简短标题description— 需要做什么activeForm— 进行时文案(如 "Running tests")blocks— 此任务阻塞的任务 ID 列表blockedBy— 阻塞此任务的任务 ID 列表
依赖编排
串行依赖
扇出(并行研究)
扇入(并行实现 + 统一验证)
失败处理
- Worker 失败 → Continue 同一个 Worker(已有错误上下文)
- 纠正失败 → 换方案,仍然 Continue
- 三次失败 → 报告用户,提供已尝试的方案列表
实际应用模式
模式 1: 研究→综合→实现→验证
最常见。研究阶段并行,综合你来做,实现串行,验证独立。
模式 2: 快速修复
跳过研究,直接实现+验证。适用于已知问题。
模式 3: 大规模重构
多轮迭代:规划→分批实现→每批验证→下一批。 每批内部可并行(不同文件),批间串行。
停止正在跑的任务
发现方向错误时,立即停止 Worker:
不要让错误方向的 Worker 跑完再修正 — 浪费资源。
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/task-concurrency-patterns/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/chenmijiang/cmj_skills/task-concurrency-patterns)