Fable Foreman
olsenbrands/fable-foreman
Turns the lead model into a foreman that plans, routes and verifies while cheaper Claude, Codex or Grok workers do the typing, using a per-machine routing card.
Orchestrates TRAE IDE for automated software development with multi-agent collaboration.
$ npx skills add LeoYeAI/openclaw-master-skills --skill trae-orchestrator -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills trae-orchestrator --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/trae-orchestrator .claude/skills/trae-orchestrator && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "trae-orchestrator" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/trae-orchestrator into .claude/skills/trae-orchestrator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trae-orchestrator", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/trae-orchestratorType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add LeoYeAI/openclaw-master-skills --skill trae-orchestrator -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills trae-orchestrator --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/trae-orchestrator .agents/skills/trae-orchestrator && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "trae-orchestrator" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/trae-orchestrator into .agents/skills/trae-orchestrator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trae-orchestrator", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill trae-orchestrator -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills trae-orchestrator --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/trae-orchestrator .cursor/skills/trae-orchestrator && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "trae-orchestrator" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/trae-orchestrator into .cursor/skills/trae-orchestrator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trae-orchestrator", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/LeoYeAI/openclaw-master-skills.git --path skills/trae-orchestrator--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add LeoYeAI/openclaw-master-skills --skill trae-orchestrator -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills trae-orchestrator --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/trae-orchestrator .gemini/skills/trae-orchestrator && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "trae-orchestrator" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/trae-orchestrator into .gemini/skills/trae-orchestrator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trae-orchestrator", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install LeoYeAI/openclaw-master-skills trae-orchestratorInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add LeoYeAI/openclaw-master-skills --skill trae-orchestrator -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/trae-orchestrator .github/skills/trae-orchestrator && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "trae-orchestrator" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/trae-orchestrator into .github/skills/trae-orchestrator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trae-orchestrator", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill trae-orchestrator -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills trae-orchestrator --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/trae-orchestrator .opencode/skills/trae-orchestrator && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "trae-orchestrator" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/trae-orchestrator into .opencode/skills/trae-orchestrator/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trae-orchestrator", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
trae-orchestratorOrchestrates TRAE IDE for automated software development with multi-agent collaboration.
Trae Orchestrator is an agent skill from LeoYeAI/openclaw-master-skills. Orchestrates TRAE IDE for automated software development with multi-agent collaboration. Invoke when user wants to develop software using TRAE or needs automated project management.
Its SKILL.md is about 6.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files (for example `INNOVATIONS.md`, `_meta.json` and `automation_helper.py`).
It sits in Agent Workflows, covering Project management, Multi-agent orchestration and LLM cost and token optimization. The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit e5199b5. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships script files (Python), which the agent can run.
Shell commands in SKILL.md call:
pythonpipFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Trae Orchestrator loads about 6.3k tokens when it runs. Until then it costs about 50 tokens; SKILL.md has 890 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 890 words, ~6,305 tokens.
.claude/skills/trae-orchestrator/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.Automated software development controller that orchestrates TRAE IDE for fully autonomous project delivery.
from automation_helper import quick_start
# 一键启动项目
quick_start(
project_dir='D:\\MyProject',
requirements={
'name': '我的项目',
'description': '项目描述...',
'features': ['功能1', '功能2'],
'tech_stack': 'Node.js + React'
}
)This will:
A practical Python module (automation_helper.py) is provided for easy automation:
from automation_helper import TRAEController
# Initialize (auto-detects TRAE path)
controller = TRAEController()
# Or specify path
controller = TRAEController('E:\\software\\Trae CN\\Trae CN.exe')
# First-time setup
controller.setup('E:\\software\\Trae CN\\Trae CN.exe')
# Launch TRAE with project
controller.launch('D:\\MyProject')
# Send prompt (requires pyautogui)
controller.send_prompt("Create a web app...", delay=5)from automation_helper import ProjectManager
# Create project structure
ProjectManager.create_project(
project_dir='D:\\MyProject',
requirements={
'name': '星空篝火游戏',
'description': '多人联机游戏',
'features': ['3D场景', '多人联机', '聊天系统'],
'tech_stack': 'Three.js + Node.js'
}
)
# Create prompt for TRAE
ProjectManager.create_prompt('D:\\MyProject')from automation_helper import ProgressMonitor
# Monitor project progress
monitor = ProgressMonitor('D:\\MyProject')
# Check signals
if monitor.check_signal('project_done'):
print("Project complete!")
# Get status summary
status = monitor.get_status()
print(status)
# Wait for completion
monitor.wait_for_completion(timeout=3600) # 1 hour timeoutfrom automation_helper import pause_project, resume_project, stop_project
pause_project('D:\\MyProject') # Pause
resume_project('D:\\MyProject') # Resume
stop_project('D:\\MyProject') # Stop| openclaw Does | TRAE Does (Free) |
|---|---|
| Orchestrate workflow | All code generation |
| Read only: task_plan.md, progress.md | Read/write all source files |
| Send prompts | Execute prompts |
| Detect completion | Self-check quality |
| Intervene on loops | Auto-fix bugs (3 attempts) |
DO NOT poll every 30 seconds. Use these efficient methods:
TRAE creates a signal file when done - openclaw only checks if file exists:
# In prompt, instruct TRAE:
"When phase complete, create file: .trae-docs/.signal_{PHASE}_DONE"
# openclaw checks:
if os.path.exists('.trae-docs/.signal_planning_done'):
# Phase complete, read progress.md once
# Delete signal file after readingToken cost: 0 (file existence check is free)
Only read when timestamp changes:
last_mtime = 0
def check_progress():
global last_mtime
current_mtime = os.path.getmtime('.trae-docs/progress.md')
if current_mtime > last_mtime:
last_mtime = current_mtime
return read_file('.trae-docs/progress.md')
return None # No change, don't readToken cost: 0 until file actually changes
Use filesystem events instead of polling:
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
class ProgressHandler(FileSystemEventHandler):
def on_modified(self, event):
if 'progress.md' in event.src_path:
# File changed, now read it
content = read_file(event.src_path)
process_status(content)
observer = Observer()
observer.schedule(ProgressHandler(), path='.trae-docs/')
observer.start()Token cost: 0 until file changes, then only 1 read
┌─────────────────────────────────────────────────────────┐
│ TRAE completes task │
│ ↓ │
│ TRAE creates .signal_done (empty file) │
│ ↓ │
│ openclaw detects signal file exists (0 tokens) │
│ ↓ │
│ openclaw reads progress.md once │
│ ↓ │
│ openclaw deletes signal file │
│ ↓ │
│ openclaw sends next prompt │
└─────────────────────────────────────────────────────────┘Ask user: "Please provide the TRAE installation directory path"
Example: "C:\Users\XXX\AppData\Local\Programs\Trae CN"Trae CN.execonfig.json:{
"trae_install_path": "USER_PROVIDED_PATH",
"trae_executable": "Trae CN.exe",
"window_identifier": "Trae CN",
"max_instances": 3,
"version": "1.0.0"
}{project_dir}/
├── .trae-docs/
│ ├── requirements.md # User requirements
│ ├── architecture.md # System design
│ ├── task_plan.md # Development plan
│ ├── progress.md # Current status (openclaw reads this)
│ └── review_log.md # Review history
└── src/ # Generated code (TRAE manages)Send single comprehensive prompt:
Develop [SOFTWARE_TYPE] with these requirements:
[REQUIREMENTS]
Tech stack: [TECHNOLOGIES]
INSTRUCTIONS:
1. Create .trae-docs/architecture.md with system design
2. Create .trae-docs/task_plan.md with task breakdown
3. Create .trae-docs/progress.md with initial status
4. Each task must be completable within 200k tokens
5. Include acceptance criteria for each task
6. Mark task dependencies clearly
COMPLETION SIGNAL:
When done, create empty file: .trae-docs/.signal_planning_done
Also update progress.md with:
STATUS: PLANNING_COMPLETE
TASKS_TOTAL: N
ESTIMATED_TOKENS: N
Use SOLO mode. Work autonomously.Detection: Check if .signal_planning_done exists (0 tokens), then read progress.md once.
Send tasks in batches (not one by one):
BATCH IMPLEMENTATION - Tasks [START_ID] to [END_ID]
Read .trae-docs/task_plan.md for task details.
For each task:
1. Implement following architecture.md
2. Write unit tests
3. Update progress.md with completion status
4. Mark task as [x] in task_plan.md
COMPLETION SIGNAL:
After ALL tasks in batch:
1. Create empty file: .trae-docs/.signal_batch_[N]_done
2. Update progress.md with:
STATUS: BATCH_[N]_COMPLETE
COMPLETED_TASKS: [IDs]
REMAINING_TASKS: [IDs]
Work autonomously in SOLO mode.Detection: Check if .signal_batch_N_done exists (0 tokens), then read progress.md once.
Let TRAE review itself:
SELF-REVIEW PHASE
Review all implemented code:
1. Check against requirements.md
2. Run all tests
3. Check code quality
4. Document issues in review_log.md
If issues found:
- Fix them automatically
- Re-run tests
- Update review_log.md
COMPLETION SIGNAL:
When done, create empty file: .trae-docs/.signal_review_done
Also update progress.md with:
STATUS: REVIEW_COMPLETE
ISSUES_FOUND: N
ISSUES_FIXED: N
If blocked, create: .trae-docs/.signal_blocked
And update progress.md with:
STATUS: BLOCKED
BLOCKER: [description]Detection: Check if .signal_review_done or .signal_blocked exists (0 tokens), then read progress.md once.
| Signal File | Action |
|---|---|
.signal_blocked | Read blocker description, provide guidance |
.signal_need_clarification | Ask user for input |
.signal_error_loop | Read error log, send new approach |
.signal_context_full | Start new conversation with checkpoint |
.signal_batch_N_done exists (normal progress)Only if no signal file and no file changes for 10+ minutes:
# Last resort check
if no_signal_files() and file_age('progress.md') > 600:
# Check TRAE window state
screenshot = capture_trae_window()
if "产物汇总" in screenshot:
# TRAE finished but forgot signal
create_signal_file('.signal_done')
elif is_idle(screenshot):
# TRAE is stuck
create_signal_file('.signal_blocked')ALTERNATIVE APPROACH for [BUG_ID]
Previous attempts failed. Try:
1. [DIFFERENT_APPROACH]
2. Consider: [ALTERNATIVE_SOLUTION]
3. If still fails after 3 more attempts:
- Create .signal_blocked
- Update progress.md with BLOCKER description
Start fresh. Do not reference previous attempts.
COMPLETION SIGNAL:
- Success: Create .signal_fixed_[BUG_ID]
- Failed: Create .signal_blockedInclude in initial prompt:
CONTEXT MANAGEMENT:
- Monitor token usage
- When approaching 200k tokens:
1. Create checkpoint summary in progress.md
2. Create .signal_context_full
3. List remaining tasks
4. Note partial implementationsWhen openclaw detects .signal_context_full:
Start new TRAE conversation with:
"Continue from checkpoint. Read progress.md for context.
Remaining tasks: [LIST]
Resume from: [LAST_COMPLETED_TASK]"| Project Size | Strategy |
|---|---|
| Small (<10 tasks) | Single TRAE instance |
| Medium (10-30 tasks) | 2 instances: Planner+Coder, Reviewer |
| Large (>30 tasks) | 3 instances: Planner, Coder, Reviewer |
For large projects, run Coder and Reviewer in parallel:
Window 1 (Coder): Implement tasks 1-5
Window 2 (Reviewer): Review completed tasksTRAE updates progress.md - openclaw only reads this file:
# Project Progress
## Status: [PLANNING|IMPLEMENTING|REVIEWING|COMPLETE|BLOCKED]
## Current Phase: [Phase Name]
## Completed Tasks: [ID1, ID2, ...]
## Remaining Tasks: [ID1, ID2, ...]
## Issues:
- [Issue 1]
- [Issue 2]
## Blockers:
- [Blocker description] (if STATUS: BLOCKED)
## Last Updated: [TIMESTAMP]Include in implementation prompts:
SELF-CHECK before marking task complete:
- [ ] Code compiles without errors
- [ ] All tests pass
- [ ] No linting errors
- [ ] Documentation updated
- [ ] progress.md updatedPLAN: [REQUIREMENTS]
STACK: [TECH]
OUTPUT: .trae-docs/{architecture.md, task_plan.md, progress.md}
SIGNAL: Create .trae-docs/.signal_planning_done when doneIMPLEMENT: Tasks [IDS]
PLAN: .trae-docs/task_plan.md
ARCH: .trae-docs/architecture.md
UPDATE: .trae-docs/progress.md
SIGNAL: Create .trae-docs/.signal_batch_[N]_done when doneREVIEW: All code
CHECK: .trae-docs/requirements.md
LOG: .trae-docs/review_log.md
STATUS: .trae-docs/progress.md
SIGNAL: Create .trae-docs/.signal_review_done when doneFIX: [BUG_ID]
LOG: .trae-docs/review_log.md
ATTEMPTS: [N]
NEW_APPROACH: [APPROACH]
SIGNAL: Create .trae-docs/.signal_fixed_[BUG_ID] when done
OR: Create .trae-docs/.signal_blocked if still failingOnly needed for:
import os
import subprocess
import pyperclip
import pyautogui
# Launch TRAE
def launch_trae(config):
subprocess.Popen(f"{config['trae_install_path']}\\Trae CN.exe")
# Send prompt
def send_prompt(prompt_text):
pyperclip.copy(prompt_text)
pyautogui.hotkey('ctrl', 'v')
pyautogui.press('enter')
# Signal file detection (0 tokens!)
def check_signal(signal_type):
signal_path = f".trae-docs/.signal_{signal_type}"
return os.path.exists(signal_path)
# Clean up signal after handling
def clear_signal(signal_type):
signal_path = f".trae-docs/.signal_{signal_type}"
if os.path.exists(signal_path):
os.remove(signal_path)
# Main orchestration loop
def orchestrate():
while True:
if check_signal('planning_done'):
progress = read_file('.trae-docs/progress.md')
# Process and send next prompt
clear_signal('planning_done')
send_prompt(implementation_prompt)
elif check_signal('blocked'):
blocker = read_file('.trae-docs/progress.md')
# Analyze and provide guidance
clear_signal('blocked')
send_prompt(guidance_prompt)
elif check_signal('project_done'):
# Project complete!
break
# Sleep to avoid CPU usage (no token cost)
time.sleep(1)Log in execution_log.json:
{
"executions": [{
"timestamp": "ISO_DATE",
"project": "NAME",
"tasks": N,
"interventions": N,
"token_saved_estimate": N
}]
}| openclaw Action | Trigger |
|---|---|
| Check signal file | Continuous (0 tokens) |
| Read progress.md | Only when signal file exists |
| Read task_plan.md | Once per phase |
| Send prompt | Once per phase/batch |
| Intervene | Only on BLOCKED/loop |
| TRAE Action | Trigger |
|---|---|
| Generate code | Continuous |
| Create signal file | When phase done |
| Update progress.md | After each task |
| Self-check quality | After each task |
| Handle errors | Automatic (3 attempts) |
| Phase | Signal File |
|---|---|
| Planning | .signal_planning_done |
| Batch N | .signal_batch_N_done |
| Review | .signal_review_done |
| Complete | .signal_project_done |
| Blocked | .signal_blocked |
| User Action | Signal File | Effect |
|---|---|---|
| Pause | .signal_pause | Stop orchestration, keep TRAE running |
| Resume | .signal_resume | Continue from where paused |
| Stop | .signal_stop | Terminate project, archive progress |
| Skip Task | .signal_skip_[TASK_ID] | Skip specific task, continue next |
| Force Complete | .signal_force_done | Mark current phase as done |
Method 1: Command Line (Windows PowerShell)
# 暂停项目
New-Item -Path ".trae-docs\.signal_pause" -ItemType file
# 恢复项目
New-Item -Path ".trae-docs\.signal_resume" -ItemType file
# 停止项目
New-Item -Path ".trae-docs\.signal_stop" -ItemType file
# 跳过任务
New-Item -Path ".trae-docs\.signal_skip_task_3" -ItemType file
# 强制完成
New-Item -Path ".trae-docs\.signal_force_done" -ItemType fileMethod 2: Control Script (Recommended)
Run the control script for easy interaction:
# In project directory
python .trae/skills/trae-orchestrator/control.pyThis launches an interactive menu:
TRAE Orchestrator Control Panel
================================
Current Status: RUNNING
Phase: Implementation
Progress: 5/15 tasks
[1] Pause Project
[2] Resume Project
[3] Stop Project
[4] Skip Task
[5] Force Complete
[6] View Status
[7] Exit
Enter choice:Method 3: Direct Python Call
from automation_helper import pause_project, resume_project, stop_project
pause_project("./my-project") # 暂停
resume_project("./my-project") # 恢复
stop_project("./my-project") # 停止Method 4: File Manager
.trae-docs/ folder.signal_pause (remove .txt extension)def orchestrate(project_dir=".", handlers=None):
while True:
# 1. Check control signals FIRST
if check_signal('stop', project_dir):
archive_progress(project_dir)
return False, "Project stopped by user"
if check_signal('pause', project_dir):
# Wait for resume signal
while not check_signal('resume', project_dir):
if check_signal('stop', project_dir):
return False, "Project stopped during pause"
time.sleep(5)
clear_signal('resume', project_dir)
clear_signal('pause', project_dir)
# 2. Check skip signals
for skip_signal in get_skip_signals(project_dir):
task_id = skip_signal.replace('skip_', '')
mark_task_skipped(task_id, project_dir)
clear_signal(skip_signal, project_dir)
# 3. Check force complete
if check_signal('force_done', project_dir):
clear_signal('force_done', project_dir)
# Move to next phase
send_next_prompt()
# 4. Normal signal processing
signals = get_all_signals(project_dir)
# ... rest of orchestrationWhen .signal_pause is detected:
┌─────────────────────────────────────────────────────────┐
│ openclaw detects .signal_pause │
│ ↓ │
│ Stop sending new prompts │
│ ↓ │
│ Keep TRAE running (finish current task) │
│ ↓ │
│ Wait for .signal_resume or .signal_stop │
│ ↓ │
│ Resume: Continue from last checkpoint │
│ Stop: Archive and terminate │
└─────────────────────────────────────────────────────────┘When .signal_stop is detected:
┌─────────────────────────────────────────────────────────┐
│ openclaw detects .signal_stop │
│ ↓ │
│ Create final progress snapshot │
│ ↓ │
│ Archive .trae-docs/ to .trae-archive/[timestamp]/ │
│ ↓ │
│ Clear all signal files │
│ ↓ │
│ Return control to user │
└─────────────────────────────────────────────────────────┘openclaw maintains .trae-docs/orchestrator_status.md:
# Orchestrator Status
## State: [RUNNING|PAUSED|STOPPED|WAITING]
## Last Action: [timestamp] - [action description]
## Next Action: [what will happen next]
## User Controls Available:
- Pause: Create .signal_pause
- Resume: Create .signal_resume (when paused)
- Stop: Create .signal_stop
## Current Progress:
- Phase: [phase name]
- Completed: N tasks
- Remaining: M tasks# Check status
cat .trae-docs\orchestrator_status.md
# Or use control panel (recommended)
python .trae\skills\trae-orchestrator\control.py
# Quick commands
New-Item -Path ".trae-docs\.signal_pause" -ItemType file # Pause
New-Item -Path ".trae-docs\.signal_resume" -ItemType file # Resume
New-Item -Path ".trae-docs\.signal_stop" -ItemType file # Stop
New-Item -Path ".trae-docs\.signal_skip_task_3" -ItemType file # Skip task 3
New-Item -Path ".trae-docs\.signal_force_done" -ItemType file # Force completeHere's a complete example of using the automation helper:
#!/usr/bin/env python3
"""
完整示例:使用 TRAE 自动化开发一个项目
"""
from automation_helper import (
TRAEController,
ProjectManager,
ProgressMonitor,
quick_start,
pause_project,
stop_project
)
# ========== 方法 1: 一键快速启动 ==========
def method1_quick_start():
"""最简单的方式"""
quick_start(
project_dir='D:\\MyGame',
requirements={
'name': '星空篝火游戏',
'description': '一个多人联机的3D篝火游戏',
'features': [
'3D星空场景',
'多人联机',
'聊天系统',
'篝火效果'
],
'tech_stack': 'Three.js + Node.js + Socket.io'
},
trae_path='E:\\software\\Trae CN\\Trae CN.exe' # 可选,自动查找
)
# ========== 方法 2: 分步控制 ==========
def method2_step_by_step():
"""更精细的控制"""
# 1. 创建项目
ProjectManager.create_project(
project_dir='D:\\MyGame',
requirements="""
# 星空篝火游戏
## 描述
创建一个多人联机的3D篝火游戏
## 功能
- 3D星空场景
- 多人联机
- 聊天系统
"""
)
# 2. 创建自定义提示
custom_prompt = """
请开发一个星空篝火游戏。
要求:
1. 使用 Three.js 创建3D场景
2. 使用 Socket.io 实现多人联机
3. 包含星空、篝火、玩家角色
4. 实现移动、聊天、互动功能
完成后创建 .trae-docs/.signal_project_done
"""
ProjectManager.create_prompt('D:\\MyGame', custom_prompt)
# 3. 启动 TRAE
controller = TRAEController('E:\\software\\Trae CN\\Trae CN.exe')
controller.launch('D:\\MyGame')
# 4. 发送提示
controller.send_prompt(custom_prompt, delay=5)
# ========== 方法 3: 监控进度 ==========
def method3_monitor():
"""监控开发进度"""
monitor = ProgressMonitor('D:\\MyGame')
# 检查当前状态
status = monitor.get_status()
print(f"当前状态: {status}")
# 等待完成(带超时)
completed = monitor.wait_for_completion(timeout=3600)
if completed:
print("✅ 项目开发完成!")
else:
print("⚠️ 项目未完成或被阻塞")
# ========== 运行 ==========
if __name__ == '__main__':
# 选择方法
method1_quick_start() # 最简单
# method2_step_by_step() # 更灵活
# method3_monitor() # 仅监控Method 1: Pre-create Requirements (Recommended)
Create requirements.md BEFORE starting TRAE:
from automation_helper import ProjectManager
ProjectManager.create_project(
project_dir='D:\\MyProject',
requirements={
'name': 'My App',
'description': 'An awesome application',
'features': ['Feature 1', 'Feature 2'],
'tech_stack': 'React + Node.js'
}
)This creates:
.trae-docs/requirements.md - TRAE reads this.trae-docs/prompt_to_trape.md - Instructions for TRAEThen TRAE will:
requirements.mdarchitecture.mdtask_plan.mdMethod 2: Include File List in Prompt
Create the following files:
1. src/index.js - Entry point
2. src/components/App.js - Main component
3. src/styles.css - Styles
4. package.json - Dependencies
Use this structure:my-app/ ├── src/ │ ├── index.js │ ├── components/ │ │ └── App.js │ └── styles.css └── package.json
Method 3: Phase-Based Creation
PHASE 1 - Setup:
- Create package.json
- Create folder structure
PHASE 2 - Core:
- Create src/index.js
- Create src/app.js
PHASE 3 - UI:
- Create src/components/
- Create src/styles/pip install pyautogui pyperclipWithout these, you need to manually paste the prompt into TRAE.
from automation_helper import TRAEController
controller = TRAEController()
controller.setup('E:\\software\\Trae CN\\Trae CN.exe') # 手动设置路径Run Python as Administrator or check TRAE path permissions.
Install pyautogui:
pip install pyautogui pyperclipOr manually copy from .trae-docs/prompt_to_trape.md and paste into TRAE.
Core Principle: Event-driven orchestration. TRAE signals completion, openclaw responds. User controls via signal files. Zero polling, zero wasted tokens.
New in this version: Practical Python automation module (automation_helper.py) for one-line project launch and easy control.
© LeoYeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files in skills/trae-orchestrator of LeoYeAI/openclaw-master-skills.
Open the folder on GitHubat commit e5199b5
Trae Orchestrator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Trae Orchestrator this skillLeoYeAI/openclaw-master-skills | 2.2k | — | ~6.3k | Automated safety check: Pass | MIT | |
| Fable Foremanolsenbrands/fable-foreman | 142 | — | ~5.2k | Automated safety check: Pass | MIT | |
| Team Taskswin4r/team-tasks | 446 | — | ~2.9k | Automated safety check: Pass | None | |
| Codex Issue Coordinatorowainlewis/blueprint | 412 | — | ~2.6k | Automated safety check: Pass | MIT | |
| Long Horizon Promptingguanyang/open-agent-hub | 977 | 1 repos | ~6.4k | Automated safety check: Pass | MIT | |
| AI Team Orchestrationgithub/awesome-copilot | 40k | — | ~992 | Automated safety check: Pass | MIT |
olsenbrands/fable-foreman
Turns the lead model into a foreman that plans, routes and verifies while cheaper Claude, Codex or Grok workers do the typing, using a per-machine routing card.
win4r/team-tasks
Coordinate multi-agent development pipelines using shared JSON task files.
owainlewis/blueprint
Lets one Codex thread run a batch of GitHub issues through separate worker threads, each with its own worktree, branch, tested pull request and gated merge.
guanyang/open-agent-hub
This skill should be used when writing, enhancing, or evaluating the launch prompt for a long-running autonomous agent or a parallel multi-agent orchestration attacking a hard problem: pseudo-formal…
github/awesome-copilot
Bootstrap and run a lightweight multi-agent development team.
dotnet/maui
Mines local Copilot CLI session logs for dotnet/maui to rank costly or failing runs, tag recurring failure modes, propose repo edits and emit guard evals.
LeoYeAI/openclaw-master-skills
Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.
LeoYeAI/openclaw-master-skills
Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.
LeoYeAI/openclaw-master-skills
Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.
LeoYeAI/openclaw-master-skills
Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.
LeoYeAI/openclaw-master-skills
Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.
LeoYeAI/openclaw-master-skills
Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.
Orchestrates TRAE IDE for automated software development with multi-agent collaboration. Trae Orchestrator is an agent skill from LeoYeAI/openclaw-master-skills. Orchestrates TRAE IDE for automated software development with multi-agent collaboration.
Trae Orchestrator fits situations like: wants to develop software using TRAE; needs automated project management.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill trae-orchestrator -a claude-code`. Or copy the skill folder (skills/trae-orchestrator in LeoYeAI/openclaw-master-skills) into .claude/skills/trae-orchestrator in your project. Claude Code loads it when a task matches its description.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill trae-orchestrator -a codex`. Or copy the skill folder (skills/trae-orchestrator in LeoYeAI/openclaw-master-skills) into .agents/skills/trae-orchestrator in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoYeAI/openclaw-master-skills --skill trae-orchestrator -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/trae-orchestrator, .gemini/skills/trae-orchestrator, .github/skills/trae-orchestrator and .opencode/skills/trae-orchestrator in your project.
Going by SKILL.md and its folder, Trae Orchestrator needs Python for the scripts in its folder and the command-line tools its instructions call (python and pip). Our summary lists: Python 3; Node.js.
SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Trae Orchestrator is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 6.3k tokens (SKILL.md is roughly 25k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Trae Orchestrator: Fable Foreman (olsenbrands/fable-foreman, 142 stars), Team Tasks (win4r/team-tasks, 446 stars), Codex Issue Coordinator (owainlewis/blueprint, 412 stars) and Long Horizon Prompting (guanyang/open-agent-hub, 977 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,160 GitHub stars. The repository holds 1,235 skills in this directory. The repository was last updated on July 20, 2026.
Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.