mirror of
https://github.com/tradecatlabs/vibe-coding-cn.git
synced 2026-08-06 15:47:46 +00:00
56 lines
2.2 KiB
Markdown
56 lines
2.2 KiB
Markdown
# auto-tmux Script Cheatsheet
|
|
|
|
本文件按场景组织脚本入口,适合已经知道目标、只需要快速选命令的人。
|
|
|
|
## 观察与取证
|
|
|
|
```bash
|
|
skills/auto-tmux/scripts/auto-tmux.sh topology --session ai-hub
|
|
skills/auto-tmux/scripts/auto-tmux.sh inspect -t ai-hub:1.0 -n 80
|
|
skills/auto-tmux/scripts/auto-tmux.sh snapshot --session ai-hub --dir /tmp/auto-tmux-snapshot
|
|
skills/auto-tmux/scripts/remote-readonly.sh --host user@example.com --session ai-hub --out /tmp/auto-tmux-remote
|
|
```
|
|
|
|
## 控制与救援
|
|
|
|
```bash
|
|
skills/auto-tmux/scripts/safety-check.sh --text "make test"
|
|
skills/auto-tmux/scripts/auto-tmux.sh send -t ai-hub:1.0 --text "make test" --enter
|
|
skills/auto-tmux/scripts/auto-tmux.sh rescue -t ai-hub:1.0 --pattern "(y/n)" --reply y --dry-run
|
|
skills/auto-tmux/scripts/swarm-dispatch.sh --role worker --target ai-hub:1.0 --task "run tests" --send --dry-run
|
|
```
|
|
|
|
## 状态与协作
|
|
|
|
```bash
|
|
skills/auto-tmux/scripts/swarm-state.sh init --dir /tmp/ai_swarm
|
|
skills/auto-tmux/scripts/swarm-state.sh task-ready --dir /tmp/ai_swarm
|
|
skills/auto-tmux/scripts/swarm-assign.sh --swarm-dir /tmp/ai_swarm --session ai-hub --out /tmp/ai-swarm-assign.md
|
|
skills/auto-tmux/scripts/swarm-health.sh --session ai-hub --swarm-dir /tmp/ai_swarm --out /tmp/auto-tmux-health
|
|
```
|
|
|
|
## 报告与交付
|
|
|
|
```bash
|
|
skills/auto-tmux/scripts/swarm-board.sh --dir /tmp/ai_swarm --out /tmp/ai-swarm-board.md
|
|
skills/auto-tmux/scripts/swarm-results.sh --dir /tmp/ai_swarm --out /tmp/ai-swarm-results.md --jsonl /tmp/ai-swarm-results.jsonl
|
|
skills/auto-tmux/scripts/swarm-report-pack.sh --dir /tmp/ai_swarm --session ai-hub --out /tmp/ai-swarm-report-pack --tar
|
|
skills/auto-tmux/scripts/verify-report-pack.sh --pack /tmp/ai-swarm-report-pack
|
|
```
|
|
|
|
## 审计与事故
|
|
|
|
```bash
|
|
skills/auto-tmux/scripts/check-jsonl.sh /tmp/ai-swarm-results.jsonl --require-key type --require-key id --require-key status
|
|
skills/auto-tmux/scripts/review-checklist.sh --pack /tmp/ai-swarm-report-pack --strict
|
|
skills/auto-tmux/scripts/incident-report.sh --type mis-send --out /tmp/auto-tmux-incident.md
|
|
```
|
|
|
|
## 技能门禁
|
|
|
|
```bash
|
|
skills/auto-tmux/scripts/validate-auto-tmux.sh
|
|
skills/auto-skill/scripts/validate-skill.sh skills/auto-tmux --strict
|
|
make test
|
|
```
|