返回 Skill 列表
extension
分类: 开发与工程无需 API Key

minion-swarm

当需要在多个文件上进行相同的机械更改(添加标题、注释等)时主动使用。将并行的繁琐工作委托给本地LLM——节省云令牌。并行运行以提高速度。用于代替重复的手动编辑。每个文件必须少于500行。

person作者: jakexiaohubgithub

Minion Swarm

Parallel patches on multiple files.

When to Invoke

  • Same change needed on many files
  • Adding headers/comments across codebase
  • Batch mechanical operations

Command

source .venv/bin/activate && python scripts/minions.py --json swarm "<task>" <files...>

Examples

# Add header to multiple files
python scripts/minions.py --json swarm "Add # Minions header" src/a.py src/b.py src/c.py

# With more workers
python scripts/minions.py --json swarm "Add docstring" *.py --workers 5

Output

{
  "completed": [{"target": "src/a.py", "result": "success"}],
  "failed": [],
  "stats": {"completed": 3, "failed": 0, "total": 3}
}

Limits

  • Each file <500 lines
  • Mechanical changes only
  • Default 3 parallel workers