Update iso-bot skill with Claude Code workflow

This commit is contained in:
Hoid 2026-02-14 11:00:43 +00:00
parent 5d5bdffea6
commit a6afccf123
3 changed files with 46 additions and 4 deletions

View file

@ -59,9 +59,32 @@ All game logic is behind interfaces in `pkg/plugin/plugin.go`:
- Feature branches → main
- Always commit and push after changes
## Sub-Agent Settings
When spawning sub-agents for this project, use generous timeouts. Estimate per task — no fixed limits. Use `runTimeoutSeconds` proportional to complexity (e.g., 300 for docs, 3600+ for large multi-file implementations). Don't let timeouts cut work short.
- Model: `anthropic/claude-sonnet-4-20250514` (good balance of speed and quality for code)
## Development Workflow — Claude Code
**For all coding tasks, use Claude Code CLI instead of sub-agents.** Claude Code can iterate (edit → build → see errors → fix), unlike one-shot sub-agents.
**Wrapper script:** `/home/openclaw/.openclaw/workspace/bin/claude-code`
- Auto-injects Anthropic API key from OpenClaw's auth config
- Adds Go to PATH
**How to run a coding task:**
```bash
cd /home/openclaw/.openclaw/workspace/projects/iso-bot
/home/openclaw/.openclaw/workspace/bin/claude-code -p "your task description here" --allowedTools "Edit,Write,Bash" --max-turns 50
```
**Use `exec` with `pty=true`** for interactive Claude Code sessions.
**Project has `CLAUDE.md`** at repo root with full project context.
**When to use what:**
- **Claude Code** → all coding tasks (features, fixes, refactors)
- **Sub-agents (`sessions_spawn`)** → research, analysis, non-coding tasks
- **Direct edits** → small single-file changes
## Sub-Agent Settings (for non-coding tasks)
When spawning sub-agents for research/analysis, use generous timeouts. Estimate per task.
- Model: `anthropic/claude-sonnet-4-20250514`
## Git Workflow
```bash