[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FH9M07HXR8P69RF9M6HMJE":3,"skill-same:01M6FH9M07HXR8P69RF9M6HMJE":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":53,"install":54,"resources":67},"01M6FH9M07HXR8P69RF9M6HMJE","glm-coding-agent",null,"Run Claude Code CLI with GLM 4.7 (via Z.AI) with automatic git safety net - checkpoint, experiment branch, review workflow. Cheap 200k context.","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcgnl\u002Fglm-coding-agent\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"coding","glm coding agent","glm","coding agent","workflow","run","code","git","Safety","checkpoint","review","branch","context","experiment","via","claude code cli","with","cli","2026-11-10 10:12:30",false,"---\nname: glm-coding-agent\ndescription: Run Claude Code CLI with GLM 4.7 (via Z.AI) with automatic git safety net - checkpoint, experiment branch, review workflow. Cheap 200k context.\nmetadata: {\"openclaw\":{\"emoji\":\"?\",\"requires\":{\"bins\":[\"claude\"]}}}\n---\n\n# GLM Coding Agent\n\nUse **Claude Code CLI** with **GLM 4.7** via Z.AI's Anthropic-compatible API, wrapped in **automatic git protection**:\n- ✅ Git checkpoint before every run\n- ✅ Experiment branch isolation  \n- ✅ Interactive review workflow\n- ✅ One-click rollback\n- ? Cheap, 200k context\n\n## Quick Start\n\n### From Command Line\n\n#### macOS\u002FLinux\n```bash\ncd ~\u002Fmy-project\n~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh \"Add error handling to the API\"\n```\n\n#### Windows\n```powershell\ncd C:\\Users\\you\\my-project\n& \"$env:USERPROFILE\\clawd\\scripts\\safe-glm.ps1\" \"Add error handling to the API\"\n```\n\n### From OpenClaw (all platforms)\n\n```bash\n# macOS\u002FLinux\nbash pty:true workdir:~\u002Fproject command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Add error handling'\"\n\n# Windows\npwsh pty:true workdir:C:\\project command:\"$env:USERPROFILE\\clawd\\scripts\\safe-glm.ps1 'Add error handling'\"\n\n# After completion → interactive review:\n#   1️⃣ ACCEPT - Merge to main\n#   2️⃣ REVIEW - Selective staging\n#   3️⃣ REJECT - Discard all\n#   4️⃣ KEEP   - Manual fixes\n\n# Background mode\nbash pty:true workdir:~\u002Fproject background:true command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Refactor auth module'\"\n\n# Monitor\nprocess action:log sessionId:XXX\n```\n\n## Setup (one-time)\n\n### Platform-specific setup\n\n**macOS\u002FLinux:** Use bash scripts (`.sh`)  \n**Windows:** Use PowerShell scripts (`.ps1`)\n\n---\n\n### 1. Create glmcode wrapper script (internal)\n\n**Note:** This script is called internally by safe-glm. You don't need to use it directly.\n\n#### macOS\u002FLinux (Bash)\n\n```bash\ncat > ~\u002Fclawd\u002Fscripts\u002Fglmcode.sh \u003C\u003C 'EOF'\n#!\u002Fbin\u002Fbash\n# GLM Code - Claude Code with GLM 4.7 via Z.AI\n# Reads API key from OpenClaw config automatically\n\n# Read Z.AI API key from OpenClaw config\nCONFIG_FILE=\"${HOME}\u002F.openclaw\u002Fopenclaw.json\"\nif [ -f \"$CONFIG_FILE\" ]; then\n  API_KEY=$(jq -r '.models.providers.zai.apiKey \u002F\u002F empty' \"$CONFIG_FILE\" 2>\u002Fdev\u002Fnull)\n  if [ -n \"$API_KEY\" ]; then\n    export ANTHROPIC_AUTH_TOKEN=\"$API_KEY\"\n  else\n    echo \"Error: Z.AI API key not found in OpenClaw config\" >&2\n    exit 1\n  fi\nelse\n  echo \"Error: OpenClaw config not found at $CONFIG_FILE\" >&2\n  exit 1\nfi\n\nexport ANTHROPIC_BASE_URL=\"https:\u002F\u002Fapi.z.ai\u002Fapi\u002Fanthropic\"\nexport API_TIMEOUT_MS=3000000\n\n# Use GLM-specific settings if they exist, otherwise default\nSETTINGS_FILE=\"${HOME}\u002F.claude\u002Fsettings-glm.json\"\nif [ -f \"$SETTINGS_FILE\" ]; then\n  exec claude --settings \"$SETTINGS_FILE\" \"$@\"\nelse\n  exec claude \"$@\"\nfi\nEOF\n\nchmod +x ~\u002Fclawd\u002Fscripts\u002Fglmcode.sh\n```\n\n#### Windows (PowerShell)\n\nThe PowerShell scripts are already created at:\n- `%USERPROFILE%\\clawd\\scripts\\glmcode.ps1`\n- `%USERPROFILE%\\clawd\\scripts\\safe-glm.ps1`\n\nNo additional setup needed! Just make sure OpenClaw config exists at:\n```\n%USERPROFILE%\\.openclaw\\openclaw.json\n```\n\n### 2. Create GLM settings file\n\n#### macOS\u002FLinux\n\n```bash\nmkdir -p ~\u002F.claude\ncat > ~\u002F.claude\u002Fsettings-glm.json \u003C\u003C 'EOF'\n{\n  \"model\": \"glm-4.7\",\n  \"max_tokens\": 8192\n}\nEOF\n```\n\n#### Windows\n\n```powershell\n# Create settings directory\nNew-Item -ItemType Directory -Force -Path \"$env:USERPROFILE\\.claude\"\n\n# Create settings file\n@\"\n{\n  \"model\": \"glm-4.7\",\n  \"max_tokens\": 8192\n}\n\"@ | Out-File -FilePath \"$env:USERPROFILE\\.claude\\settings-glm.json\" -Encoding utf8\n```\n\n### 3. Load convenience aliases (recommended)\n\n#### macOS\u002FLinux\n\n```bash\n# Add to ~\u002F.zshrc or ~\u002F.bashrc\nsource ~\u002Fclawd\u002Fscripts\u002Fglm-alias.sh\n\n# Provides: glm, glm-review, glm-diff, glm-log, glm-undo, glm-branches, glm-clean\n```\n\n#### Windows\n\n```powershell\n# Add to PowerShell profile\nnotepad $PROFILE\n\n# Add this function:\nfunction glm { & \"$env:USERPROFILE\\clawd\\scripts\\safe-glm.ps1\" @args }\n\n# Reload profile\n. $PROFILE\n```\n\n**Note:** Windows doesn't have all the bash aliases (glm-review, glm-diff, etc.). Use git commands directly:\n```powershell\ngit status              # = glm-review\ngit diff HEAD~1         # = glm-diff\ngit log --oneline -10   # = glm-log\ngit reset --hard HEAD~1 # = glm-undo\n```\n\n---\n\n## ?️ Safe GLM Wrapper (Recommended!)\n\nThe **safe-glm wrapper** (`~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh`) provides automatic git-based safety:\n\n### What It Does\n\n1. ✅ **Git checkpoint** - Creates backup commit before GLM runs\n2. ✅ **Experiment branch** - Isolates changes from main\n3. ✅ **Stash uncommitted** - Preserves your WIP\n4. ✅ **Change review** - Shows diff + file stats after completion\n5. ✅ **Interactive menu** - Choose: Accept \u002F Review \u002F Reject \u002F Keep\n\n### How It Works\n\n```bash\n# Run in any git repo\ncd ~\u002Fprojects\u002Fmyapp\n~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh \"Fix auth bug\"\n\n# After GLM finishes:\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n? Changed files (3):\n auth.js      | 12 ++++++++++--\n utils.js     |  5 +++++\n tests\u002Fauth.js| 24 ++++++++++++++++++++++++\n\nChoose [1\u002F2\u002F3\u002F4]:\n  1️⃣  ACCEPT - Merge to main\n  2️⃣  REVIEW - Selective staging (git add -p)\n  3️⃣  REJECT - Discard all changes\n  4️⃣  KEEP   - Stay on branch for manual fixes\n```\n\n### From OpenClaw\n\n```bash\n# Safe mode (recommended!)\nbash pty:true workdir:~\u002Fproject command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Add error handling'\"\n\n# With background (interactive menu after completion)\nbash pty:true workdir:~\u002Fproject background:true command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Refactor auth module'\"\n```\n\n### Convenience Aliases\n\nAdd to `~\u002F.zshrc`:\n\n```bash\nsource ~\u002Fclawd\u002Fscripts\u002Fglm-alias.sh\n```\n\nNow you have:\n\n```bash\nglm \"task\"          # Run safe session\nglm-review          # Show repo status\nglm-diff            # Diff since last checkpoint\nglm-log             # GLM commit history\nglm-undo            # Rollback last commit\nglm-branches        # List experiment branches\nglm-clean           # Delete old branches\n```\n\n### Safety Features\n\n| Feature | Protection |\n|---------|-----------|\n| Git checkpoint | Rollback possible with `glm-undo` |\n| Experiment branch | Main branch stays intact until merge |\n| Stash uncommitted | No data loss |\n| Review enforcement | Must explicitly accept\u002Freject |\n| Diff preview | See all changes before merging |\n| Selective staging | Cherry-pick good parts only |\n\n**When to use:**\n- ✅ Any coding task (default choice!)\n- ✅ Refactors that touch many files\n- ✅ Uncertain about GLM's output\n- ✅ Learning\u002Ftesting GLM capabilities\n\n**Documentation:** `\u002FUsers\u002Fsander\u002Fclawd\u002Fdocs\u002FSAFE-GLM-GUIDE.md`\n\n**Requirements:**\n- ✅ Git repository (run `git init` if needed)\n- ✅ No uncommitted changes (will auto-stash with confirmation)\n\n---\n\n## Safety & Sandboxing\n\nClaude Code has **built-in OS-level sandboxing** to protect against destructive commands!\n\n### Native Sandbox Protection\n\n**What it blocks:**\n- ✅ Cannot modify files outside project directory\n- ✅ Cannot access ~\u002F.ssh\u002F, sensitive configs\n- ✅ Cannot delete system files\n- ✅ Network access restricted to allowed domains\n- ✅ Protects against prompt injection attacks\n\n**How it works:**\n- **macOS:** Uses Seatbelt (built-in)\n- **Linux\u002FWSL2:** Uses bubblewrap + socat\n\n**Enable sandbox:**\n```bash\n# One-time setup (inside Claude Code session)\n\u002Fsandbox\n# Choose \"Auto-allow mode\" for automation\n```\n\n**Configure in ~\u002F.claude\u002Fsettings.json:**\n```json\n{\n  \"sandbox\": {\n    \"mode\": \"auto-allow\",\n    \"filesystem\": {\n      \"allow\": [\"\u002FUsers\u002Fsander\u002FProjects\"],\n      \"deny\": [\"~\u002F.ssh\", \"~\u002F.aws\"]\n    },\n    \"network\": {\n      \"allowedDomains\": [\"github.com\", \"npmjs.org\"]\n    }\n  }\n}\n```\n\n### How safe-glm Uses These Features\n\n**safe-glm.sh uses `--dangerously-skip-permissions` internally**, but the git safety net provides protection:\n\n1. **Git checkpoint** - Every change can be rolled back\n2. **Experiment branch** - Main stays untouched until you approve\n3. **Interactive review** - See all changes before merging\n4. **Sandbox (optional)** - Extra OS-level protection\n\n**Combined safety:**\n- Git protects your code history\n- Sandbox protects your filesystem\n- Review menu protects your judgment\n\n## Usage from OpenClaw\n\n```bash\n# One-shot task\nbash pty:true workdir:~\u002Fproject command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Fix the typo in README.md'\"\n\n# Background mode (interactive menu after completion)\nbash pty:true workdir:~\u002Fproject background:true command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Refactor auth module'\"\n\n# Monitor background tasks\nprocess action:log sessionId:XXX\nprocess action:poll sessionId:XXX\n```\n\n### Auto-Notify on Completion\n\nFor long background tasks, add a wake trigger:\n\n```bash\nbash pty:true workdir:~\u002Fproject background:true command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Build a REST API for todos.\n\nWhen completely finished, run:\nopenclaw gateway wake --text \\\"Done: Built todos REST API\\\" --mode now'\"\n```\n\n## Why GLM 4.7?\n\n| Feature | Value |\n|---------|-------|\n| **Cost** | Cheap! (via Z.AI) |\n| **Context** | 200k tokens |\n| **Speed** | Fast responses |\n| **Quality** | Decent for coding tasks |\n| **API** | Anthropic-compatible via Z.AI |\n\n**Trade-off:** Not as smart as Claude Opus, but good enough for:\n- Refactoring\n- Bug fixes\n- Documentation\n- Simple feature additions\n- Code reviews\n\nFor complex architecture decisions, use Claude Opus instead.\n\n## Examples\n\n### Fix a Bug\n\n```bash\nbash pty:true workdir:~\u002Fmyapp command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Fix the 500 error in \u002Fapi\u002Fusers endpoint'\"\n```\n\n### Add Tests\n\n```bash\nbash pty:true workdir:~\u002Fmyapp command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Add unit tests for the User model'\"\n```\n\n### Refactor (Background)\n\n```bash\nbash pty:true workdir:~\u002Fmyapp background:true command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Refactor auth.js to use async\u002Fawait instead of callbacks'\"\n\n# Monitor progress\nprocess action:log sessionId:XXX\n```\n\n### Review Code\n\n```bash\nbash pty:true workdir:~\u002Fmyapp command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Review the auth module and suggest improvements'\"\n\n# If GLM doesn't change files → no git checkpoint needed\n# If GLM suggests code changes → safe review workflow\n```\n\n## Tips\n\n1. **Git first** - Always work in a git repo (`git init` if needed)\n2. **Commit before GLM** - Clean state = easier review (safe-glm will auto-stash if needed)\n3. **Use pty:true** - Claude Code is an interactive terminal app\n4. **Set workdir** - Agent stays focused on the project\n5. **Be specific** - GLM works best with clear, concrete tasks\n6. **Background for >2min tasks** - Don't block OpenClaw waiting\n7. **Monitor with process:log** - Check progress without killing\n8. **Keep it simple** - For complex tasks, consider Claude Opus\n9. **Load aliases** - `source ~\u002Fclawd\u002Fscripts\u002Fglm-alias.sh` for convenience commands\n10. **Review selectively** - Option 2 (git add -p) lets you cherry-pick good parts\n\n## Troubleshooting\n\n**\"claude: command not found\"**\n→ Install Claude Code: `npm install -g @anthropic-ai\u002Fclaude-code`\n\n**Sandbox not available (Linux\u002FWSL2)**\n→ Install dependencies:\n```bash\n# Ubuntu\u002FDebian\nsudo apt-get install bubblewrap socat\n\n# Fedora\nsudo dnf install bubblewrap socat\n```\n\n**Timeout errors**\n→ API_TIMEOUT_MS is already set to 50 minutes in the wrapper\n\n**Model not found**\n→ Check if Z.AI endpoint is up: `curl https:\u002F\u002Fapi.z.ai\u002Fapi\u002Fanthropic\u002Fv1\u002Fmodels`\n\n**GLM gives weird responses**\n→ Try being more specific in your prompt, or switch to Claude Opus for that task\n\n**Sandbox blocks legitimate operations**\n→ Update allowed paths\u002Fdomains in `~\u002F.claude\u002Fsettings.json`:\n```json\n{\n  \"sandbox\": {\n    \"filesystem\": {\n      \"allow\": [\"\u002Fpath\u002Fto\u002Fyour\u002Fproject\"]\n    },\n    \"network\": {\n      \"allowedDomains\": [\"yourapi.com\"]\n    }\n  }\n}\n```\n\n## Cost Comparison\n\n| Model | Input | Output | 200k context |\n|-------|-------|--------|--------------|\n| **GLM 4.7** | Cheap | Cheap | Cheap |\n| Claude Opus | $15\u002F1M | $75\u002F1M | ~$3 |\n| Claude Sonnet | $3\u002F1M | $15\u002F1M | ~$0.60 |\n| GPT-4 | $30\u002F1M | $60\u002F1M | ~$6 |\n\nFor coding tasks that don't need top-tier reasoning: GLM is much cheaper! ?\n\n## Parallel Issue Fixing with git worktrees\n\nFix multiple issues in parallel with cheap GLM agents! Perfect for batch work.\n\n### Setup\n\n```bash\n# 1. Create worktrees for each issue\ngit worktree add -b fix\u002Fissue-42 \u002Ftmp\u002Fissue-42 main\ngit worktree add -b fix\u002Fissue-55 \u002Ftmp\u002Fissue-55 main\ngit worktree add -b fix\u002Fissue-67 \u002Ftmp\u002Fissue-67 main\n\n# 2. Launch safe-glm in each (background + PTY!)\nbash pty:true workdir:\u002Ftmp\u002Fissue-42 background:true command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Fix issue #42: Button color bug'\"\n\nbash pty:true workdir:\u002Ftmp\u002Fissue-55 background:true command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Fix issue #55: API timeout'\"\n\nbash pty:true workdir:\u002Ftmp\u002Fissue-67 background:true command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Fix issue #67: Typo in docs'\"\n\n# 3. Monitor all at once\nprocess action:list\n\n# 4. Check individual logs\nprocess action:log sessionId:XXX\n\n# 5. After fixes complete, review each worktree\ncd \u002Ftmp\u002Fissue-42\ngit log -1 --stat  # Review the commit\ngit push -u origin fix\u002Fissue-42\ngh pr create --title \"fix: button color (#42)\" --body \"Fixes #42\"\n\ncd \u002Ftmp\u002Fissue-55\ngit log -1 --stat\ngit push -u origin fix\u002Fissue-55\ngh pr create --title \"fix: increase API timeout (#55)\" --body \"Fixes #55\"\n\n# 6. Cleanup worktrees\ngit worktree remove \u002Ftmp\u002Fissue-42\ngit worktree remove \u002Ftmp\u002Fissue-55\ngit worktree remove \u002Ftmp\u002Fissue-67\n```\n\n### Why This Works\n\n**Isolation:** Each worktree is a separate checkout, so agents don't conflict.\n\n**Cost:** With GLM = cheap, you can run 10+ agents in parallel at low cost!\n\n**Speed:** All issues get fixed simultaneously instead of sequentially.\n\n**Safety:** Worktrees keep your main repo clean. Mistakes stay in `\u002Ftmp\u002F`.\n\n### Tips\n\n1. **Pick simple issues** - GLM works best on focused tasks (typos, small bugs, docs)\n2. **Clear commits** - Tell GLM exactly what commit message to use\n3. **Monitor with process:list** - Keep track of which agents finished\n4. **Cleanup is important** - Always `git worktree remove` when done\n5. **Use labels** - Add `openclaw gateway wake` to each prompt for auto-notify\n\n### Example: Fix 5 Issues at Once\n\n```bash\n# Issues: 42, 55, 67, 71, 89\nfor i in 42 55 67 71 89; do\n  git worktree add -b fix\u002Fissue-$i \u002Ftmp\u002Fissue-$i main\n  bash pty:true workdir:\u002Ftmp\u002Fissue-$i background:true command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Fix issue #$i from GitHub. When done, run: openclaw gateway wake --text \\\"Fixed issue #$i\\\" --mode now'\"\ndone\n\n# Monitor\nprocess action:list\n\n# After all finish, bulk create PRs\nfor i in 42 55 67 71 89; do\n  cd \u002Ftmp\u002Fissue-$i\n  git push -u origin fix\u002Fissue-$i\n  gh pr create --title \"fix: issue #$i\" --body \"Fixes #$i\" --assignee @me\ndone\n\n# Cleanup\nfor i in 42 55 67 71 89; do\n  git worktree remove \u002Ftmp\u002Fissue-$i\ndone\n```\n\n**Result:** 5 issues fixed in parallel, 5 PRs created, all at low cost. That's the GLM advantage! ?\n\n## Integration with sessions_spawn\n\nYou can also spawn GLM coding tasks as sub-agents:\n\n```javascript\nsessions_spawn({\n  task: \"Build a todo API in ~\u002Fprojects\u002Ftodos using Express.js\",\n  model: \"zai\u002Fglm-4.7\",\n  label: \"glm-todo-api\"\n})\n```\n\nThis runs GLM in an isolated session and pings you when done. Even cleaner than bash+background!\n\n---\n\n## See Also\n\n- **Safe GLM Guide:** `\u002FUsers\u002Fsander\u002Fclawd\u002Fdocs\u002FSAFE-GLM-GUIDE.md` - Complete wrapper documentation (macOS\u002FLinux)\n- **Windows Guide:** `\u002FUsers\u002Fsander\u002Fclawd\u002Fdocs\u002FSAFE-GLM-WINDOWS.md` - Windows PowerShell setup\n- **Scripts (macOS\u002FLinux):**\n  - `~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh` - Main safety wrapper (bash)\n  - `~\u002Fclawd\u002Fscripts\u002Fglm-alias.sh` - Convenience aliases (bash)\n  - `~\u002Fclawd\u002Fscripts\u002Fglmcode.sh` - Internal Z.AI wrapper (bash)\n- **Scripts (Windows):**\n  - `%USERPROFILE%\\clawd\\scripts\\safe-glm.ps1` - Main safety wrapper (PowerShell)\n  - `%USERPROFILE%\\clawd\\scripts\\glmcode.ps1` - Internal Z.AI wrapper (PowerShell)\n- **Skill:** `glm-coding-agent` (this file)\n\n---\n\nLast updated: 2026-02-02 (Added safe-glm wrapper)\n","# GLM Coding Agent\n\nUse **Claude Code CLI** with **GLM 4.7** via Z.AI's Anthropic-compatible API, wrapped in **automatic git protection**:\n- ✅ Git checkpoint before every run\n- ✅ Experiment branch isolation  \n- ✅ Interactive review workflow\n- ✅ One-click rollback\n- ? Cheap, 200k context\n\n## Quick Start\n\n### From Command Line\n\n#### macOS\u002FLinux\n```bash\ncd ~\u002Fmy-project\n~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh \"Add error handling to the API\"\n```\n\n#### Windows\n```powershell\ncd C:\\Users\\you\\my-project\n& \"$env:USERPROFILE\\clawd\\scripts\\safe-glm.ps1\" \"Add error handling to the API\"\n```\n\n### From OpenClaw (all platforms)\n\n```bash\n# macOS\u002FLinux\nbash pty:true workdir:~\u002Fproject command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Add error handling'\"\n\n# Windows\npwsh pty:true workdir:C:\\project command:\"$env:USERPROFILE\\clawd\\scripts\\safe-glm.ps1 'Add error handling'\"\n\n# After completion → interactive review:\n#   1️⃣ ACCEPT - Merge to main\n#   2️⃣ REVIEW - Selective staging\n#   3️⃣ REJECT - Discard all\n#   4️⃣ KEEP   - Manual fixes\n\n# Background mode\nbash pty:true workdir:~\u002Fproject background:true command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Refactor auth module'\"\n\n# Monitor\nprocess action:log sessionId:XXX\n```\n\n## Setup (one-time)\n\n### Platform-specific setup\n\n**macOS\u002FLinux:** Use bash scripts (`.sh`)  \n**Windows:** Use PowerShell scripts (`.ps1`)\n\n---\n\n### 1. Create glmcode wrapper script (internal)\n\n**Note:** This script is called internally by safe-glm. You don't need to use it directly.\n\n#### macOS\u002FLinux (Bash)\n\n```bash\ncat > ~\u002Fclawd\u002Fscripts\u002Fglmcode.sh \u003C\u003C 'EOF'\n#!\u002Fbin\u002Fbash\n# GLM Code - Claude Code with GLM 4.7 via Z.AI\n# Reads API key from OpenClaw config automatically\n\n# Read Z.AI API key from OpenClaw config\nCONFIG_FILE=\"${HOME}\u002F.openclaw\u002Fopenclaw.json\"\nif [ -f \"$CONFIG_FILE\" ]; then\n  API_KEY=$(jq -r '.models.providers.zai.apiKey \u002F\u002F empty' \"$CONFIG_FILE\" 2>\u002Fdev\u002Fnull)\n  if [ -n \"$API_KEY\" ]; then\n    export ANTHROPIC_AUTH_TOKEN=\"$API_KEY\"\n  else\n    echo \"Error: Z.AI API key not found in OpenClaw config\" >&2\n    exit 1\n  fi\nelse\n  echo \"Error: OpenClaw config not found at $CONFIG_FILE\" >&2\n  exit 1\nfi\n\nexport ANTHROPIC_BASE_URL=\"https:\u002F\u002Fapi.z.ai\u002Fapi\u002Fanthropic\"\nexport API_TIMEOUT_MS=3000000\n\n# Use GLM-specific settings if they exist, otherwise default\nSETTINGS_FILE=\"${HOME}\u002F.claude\u002Fsettings-glm.json\"\nif [ -f \"$SETTINGS_FILE\" ]; then\n  exec claude --settings \"$SETTINGS_FILE\" \"$@\"\nelse\n  exec claude \"$@\"\nfi\nEOF\n\nchmod +x ~\u002Fclawd\u002Fscripts\u002Fglmcode.sh\n```\n\n#### Windows (PowerShell)\n\nThe PowerShell scripts are already created at:\n- `%USERPROFILE%\\clawd\\scripts\\glmcode.ps1`\n- `%USERPROFILE%\\clawd\\scripts\\safe-glm.ps1`\n\nNo additional setup needed! Just make sure OpenClaw config exists at:\n```\n%USERPROFILE%\\.openclaw\\openclaw.json\n```\n\n### 2. Create GLM settings file\n\n#### macOS\u002FLinux\n\n```bash\nmkdir -p ~\u002F.claude\ncat > ~\u002F.claude\u002Fsettings-glm.json \u003C\u003C 'EOF'\n{\n  \"model\": \"glm-4.7\",\n  \"max_tokens\": 8192\n}\nEOF\n```\n\n#### Windows\n\n```powershell\n# Create settings directory\nNew-Item -ItemType Directory -Force -Path \"$env:USERPROFILE\\.claude\"\n\n# Create settings file\n@\"\n{\n  \"model\": \"glm-4.7\",\n  \"max_tokens\": 8192\n}\n\"@ | Out-File -FilePath \"$env:USERPROFILE\\.claude\\settings-glm.json\" -Encoding utf8\n```\n\n### 3. Load convenience aliases (recommended)\n\n#### macOS\u002FLinux\n\n```bash\n# Add to ~\u002F.zshrc or ~\u002F.bashrc\nsource ~\u002Fclawd\u002Fscripts\u002Fglm-alias.sh\n\n# Provides: glm, glm-review, glm-diff, glm-log, glm-undo, glm-branches, glm-clean\n```\n\n#### Windows\n\n```powershell\n# Add to PowerShell profile\nnotepad $PROFILE\n\n# Add this function:\nfunction glm { & \"$env:USERPROFILE\\clawd\\scripts\\safe-glm.ps1\" @args }\n\n# Reload profile\n. $PROFILE\n```\n\n**Note:** Windows doesn't have all the bash aliases (glm-review, glm-diff, etc.). Use git commands directly:\n```powershell\ngit status              # = glm-review\ngit diff HEAD~1         # = glm-diff\ngit log --oneline -10   # = glm-log\ngit reset --hard HEAD~1 # = glm-undo\n```\n\n---\n\n## ?️ Safe GLM Wrapper (Recommended!)\n\nThe **safe-glm wrapper** (`~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh`) provides automatic git-based safety:\n\n### What It Does\n\n1. ✅ **Git checkpoint** - Creates backup commit before GLM runs\n2. ✅ **Experiment branch** - Isolates changes from main\n3. ✅ **Stash uncommitted** - Preserves your WIP\n4. ✅ **Change review** - Shows diff + file stats after completion\n5. ✅ **Interactive menu** - Choose: Accept \u002F Review \u002F Reject \u002F Keep\n\n### How It Works\n\n```bash\n# Run in any git repo\ncd ~\u002Fprojects\u002Fmyapp\n~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh \"Fix auth bug\"\n\n# After GLM finishes:\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n? Changed files (3):\n auth.js      | 12 ++++++++++--\n utils.js     |  5 +++++\n tests\u002Fauth.js| 24 ++++++++++++++++++++++++\n\nChoose [1\u002F2\u002F3\u002F4]:\n  1️⃣  ACCEPT - Merge to main\n  2️⃣  REVIEW - Selective staging (git add -p)\n  3️⃣  REJECT - Discard all changes\n  4️⃣  KEEP   - Stay on branch for manual fixes\n```\n\n### From OpenClaw\n\n```bash\n# Safe mode (recommended!)\nbash pty:true workdir:~\u002Fproject command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Add error handling'\"\n\n# With background (interactive menu after completion)\nbash pty:true workdir:~\u002Fproject background:true command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Refactor auth module'\"\n```\n\n### Convenience Aliases\n\nAdd to `~\u002F.zshrc`:\n\n```bash\nsource ~\u002Fclawd\u002Fscripts\u002Fglm-alias.sh\n```\n\nNow you have:\n\n```bash\nglm \"task\"          # Run safe session\nglm-review          # Show repo status\nglm-diff            # Diff since last checkpoint\nglm-log             # GLM commit history\nglm-undo            # Rollback last commit\nglm-branches        # List experiment branches\nglm-clean           # Delete old branches\n```\n\n### Safety Features\n\n| Feature | Protection |\n|---------|-----------|\n| Git checkpoint | Rollback possible with `glm-undo` |\n| Experiment branch | Main branch stays intact until merge |\n| Stash uncommitted | No data loss |\n| Review enforcement | Must explicitly accept\u002Freject |\n| Diff preview | See all changes before merging |\n| Selective staging | Cherry-pick good parts only |\n\n**When to use:**\n- ✅ Any coding task (default choice!)\n- ✅ Refactors that touch many files\n- ✅ Uncertain about GLM's output\n- ✅ Learning\u002Ftesting GLM capabilities\n\n**Documentation:** `\u002FUsers\u002Fsander\u002Fclawd\u002Fdocs\u002FSAFE-GLM-GUIDE.md`\n\n**Requirements:**\n- ✅ Git repository (run `git init` if needed)\n- ✅ No uncommitted changes (will auto-stash with confirmation)\n\n---\n\n## Safety & Sandboxing\n\nClaude Code has **built-in OS-level sandboxing** to protect against destructive commands!\n\n### Native Sandbox Protection\n\n**What it blocks:**\n- ✅ Cannot modify files outside project directory\n- ✅ Cannot access ~\u002F.ssh\u002F, sensitive configs\n- ✅ Cannot delete system files\n- ✅ Network access restricted to allowed domains\n- ✅ Protects against prompt injection attacks\n\n**How it works:**\n- **macOS:** Uses Seatbelt (built-in)\n- **Linux\u002FWSL2:** Uses bubblewrap + socat\n\n**Enable sandbox:**\n```bash\n# One-time setup (inside Claude Code session)\n\u002Fsandbox\n# Choose \"Auto-allow mode\" for automation\n```\n\n**Configure in ~\u002F.claude\u002Fsettings.json:**\n```json\n{\n  \"sandbox\": {\n    \"mode\": \"auto-allow\",\n    \"filesystem\": {\n      \"allow\": [\"\u002FUsers\u002Fsander\u002FProjects\"],\n      \"deny\": [\"~\u002F.ssh\", \"~\u002F.aws\"]\n    },\n    \"network\": {\n      \"allowedDomains\": [\"github.com\", \"npmjs.org\"]\n    }\n  }\n}\n```\n\n### How safe-glm Uses These Features\n\n**safe-glm.sh uses `--dangerously-skip-permissions` internally**, but the git safety net provides protection:\n\n1. **Git checkpoint** - Every change can be rolled back\n2. **Experiment branch** - Main stays untouched until you approve\n3. **Interactive review** - See all changes before merging\n4. **Sandbox (optional)** - Extra OS-level protection\n\n**Combined safety:**\n- Git protects your code history\n- Sandbox protects your filesystem\n- Review menu protects your judgment\n\n## Usage from OpenClaw\n\n```bash\n# One-shot task\nbash pty:true workdir:~\u002Fproject command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Fix the typo in README.md'\"\n\n# Background mode (interactive menu after completion)\nbash pty:true workdir:~\u002Fproject background:true command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Refactor auth module'\"\n\n# Monitor background tasks\nprocess action:log sessionId:XXX\nprocess action:poll sessionId:XXX\n```\n\n### Auto-Notify on Completion\n\nFor long background tasks, add a wake trigger:\n\n```bash\nbash pty:true workdir:~\u002Fproject background:true command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Build a REST API for todos.\n\nWhen completely finished, run:\nopenclaw gateway wake --text \\\"Done: Built todos REST API\\\" --mode now'\"\n```\n\n## Why GLM 4.7?\n\n| Feature | Value |\n|---------|-------|\n| **Cost** | Cheap! (via Z.AI) |\n| **Context** | 200k tokens |\n| **Speed** | Fast responses |\n| **Quality** | Decent for coding tasks |\n| **API** | Anthropic-compatible via Z.AI |\n\n**Trade-off:** Not as smart as Claude Opus, but good enough for:\n- Refactoring\n- Bug fixes\n- Documentation\n- Simple feature additions\n- Code reviews\n\nFor complex architecture decisions, use Claude Opus instead.\n\n## Examples\n\n### Fix a Bug\n\n```bash\nbash pty:true workdir:~\u002Fmyapp command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Fix the 500 error in \u002Fapi\u002Fusers endpoint'\"\n```\n\n### Add Tests\n\n```bash\nbash pty:true workdir:~\u002Fmyapp command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Add unit tests for the User model'\"\n```\n\n### Refactor (Background)\n\n```bash\nbash pty:true workdir:~\u002Fmyapp background:true command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Refactor auth.js to use async\u002Fawait instead of callbacks'\"\n\n# Monitor progress\nprocess action:log sessionId:XXX\n```\n\n### Review Code\n\n```bash\nbash pty:true workdir:~\u002Fmyapp command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Review the auth module and suggest improvements'\"\n\n# If GLM doesn't change files → no git checkpoint needed\n# If GLM suggests code changes → safe review workflow\n```\n\n## Tips\n\n1. **Git first** - Always work in a git repo (`git init` if needed)\n2. **Commit before GLM** - Clean state = easier review (safe-glm will auto-stash if needed)\n3. **Use pty:true** - Claude Code is an interactive terminal app\n4. **Set workdir** - Agent stays focused on the project\n5. **Be specific** - GLM works best with clear, concrete tasks\n6. **Background for >2min tasks** - Don't block OpenClaw waiting\n7. **Monitor with process:log** - Check progress without killing\n8. **Keep it simple** - For complex tasks, consider Claude Opus\n9. **Load aliases** - `source ~\u002Fclawd\u002Fscripts\u002Fglm-alias.sh` for convenience commands\n10. **Review selectively** - Option 2 (git add -p) lets you cherry-pick good parts\n\n## Troubleshooting\n\n**\"claude: command not found\"**\n→ Install Claude Code: `npm install -g @anthropic-ai\u002Fclaude-code`\n\n**Sandbox not available (Linux\u002FWSL2)**\n→ Install dependencies:\n```bash\n# Ubuntu\u002FDebian\nsudo apt-get install bubblewrap socat\n\n# Fedora\nsudo dnf install bubblewrap socat\n```\n\n**Timeout errors**\n→ API_TIMEOUT_MS is already set to 50 minutes in the wrapper\n\n**Model not found**\n→ Check if Z.AI endpoint is up: `curl https:\u002F\u002Fapi.z.ai\u002Fapi\u002Fanthropic\u002Fv1\u002Fmodels`\n\n**GLM gives weird responses**\n→ Try being more specific in your prompt, or switch to Claude Opus for that task\n\n**Sandbox blocks legitimate operations**\n→ Update allowed paths\u002Fdomains in `~\u002F.claude\u002Fsettings.json`:\n```json\n{\n  \"sandbox\": {\n    \"filesystem\": {\n      \"allow\": [\"\u002Fpath\u002Fto\u002Fyour\u002Fproject\"]\n    },\n    \"network\": {\n      \"allowedDomains\": [\"yourapi.com\"]\n    }\n  }\n}\n```\n\n## Cost Comparison\n\n| Model | Input | Output | 200k context |\n|-------|-------|--------|--------------|\n| **GLM 4.7** | Cheap | Cheap | Cheap |\n| Claude Opus | $15\u002F1M | $75\u002F1M | ~$3 |\n| Claude Sonnet | $3\u002F1M | $15\u002F1M | ~$0.60 |\n| GPT-4 | $30\u002F1M | $60\u002F1M | ~$6 |\n\nFor coding tasks that don't need top-tier reasoning: GLM is much cheaper! ?\n\n## Parallel Issue Fixing with git worktrees\n\nFix multiple issues in parallel with cheap GLM agents! Perfect for batch work.\n\n### Setup\n\n```bash\n# 1. Create worktrees for each issue\ngit worktree add -b fix\u002Fissue-42 \u002Ftmp\u002Fissue-42 main\ngit worktree add -b fix\u002Fissue-55 \u002Ftmp\u002Fissue-55 main\ngit worktree add -b fix\u002Fissue-67 \u002Ftmp\u002Fissue-67 main\n\n# 2. Launch safe-glm in each (background + PTY!)\nbash pty:true workdir:\u002Ftmp\u002Fissue-42 background:true command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Fix issue #42: Button color bug'\"\n\nbash pty:true workdir:\u002Ftmp\u002Fissue-55 background:true command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Fix issue #55: API timeout'\"\n\nbash pty:true workdir:\u002Ftmp\u002Fissue-67 background:true command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Fix issue #67: Typo in docs'\"\n\n# 3. Monitor all at once\nprocess action:list\n\n# 4. Check individual logs\nprocess action:log sessionId:XXX\n\n# 5. After fixes complete, review each worktree\ncd \u002Ftmp\u002Fissue-42\ngit log -1 --stat  # Review the commit\ngit push -u origin fix\u002Fissue-42\ngh pr create --title \"fix: button color (#42)\" --body \"Fixes #42\"\n\ncd \u002Ftmp\u002Fissue-55\ngit log -1 --stat\ngit push -u origin fix\u002Fissue-55\ngh pr create --title \"fix: increase API timeout (#55)\" --body \"Fixes #55\"\n\n# 6. Cleanup worktrees\ngit worktree remove \u002Ftmp\u002Fissue-42\ngit worktree remove \u002Ftmp\u002Fissue-55\ngit worktree remove \u002Ftmp\u002Fissue-67\n```\n\n### Why This Works\n\n**Isolation:** Each worktree is a separate checkout, so agents don't conflict.\n\n**Cost:** With GLM = cheap, you can run 10+ agents in parallel at low cost!\n\n**Speed:** All issues get fixed simultaneously instead of sequentially.\n\n**Safety:** Worktrees keep your main repo clean. Mistakes stay in `\u002Ftmp\u002F`.\n\n### Tips\n\n1. **Pick simple issues** - GLM works best on focused tasks (typos, small bugs, docs)\n2. **Clear commits** - Tell GLM exactly what commit message to use\n3. **Monitor with process:list** - Keep track of which agents finished\n4. **Cleanup is important** - Always `git worktree remove` when done\n5. **Use labels** - Add `openclaw gateway wake` to each prompt for auto-notify\n\n### Example: Fix 5 Issues at Once\n\n```bash\n# Issues: 42, 55, 67, 71, 89\nfor i in 42 55 67 71 89; do\n  git worktree add -b fix\u002Fissue-$i \u002Ftmp\u002Fissue-$i main\n  bash pty:true workdir:\u002Ftmp\u002Fissue-$i background:true command:\"~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh 'Fix issue #$i from GitHub. When done, run: openclaw gateway wake --text \\\"Fixed issue #$i\\\" --mode now'\"\ndone\n\n# Monitor\nprocess action:list\n\n# After all finish, bulk create PRs\nfor i in 42 55 67 71 89; do\n  cd \u002Ftmp\u002Fissue-$i\n  git push -u origin fix\u002Fissue-$i\n  gh pr create --title \"fix: issue #$i\" --body \"Fixes #$i\" --assignee @me\ndone\n\n# Cleanup\nfor i in 42 55 67 71 89; do\n  git worktree remove \u002Ftmp\u002Fissue-$i\ndone\n```\n\n**Result:** 5 issues fixed in parallel, 5 PRs created, all at low cost. That's the GLM advantage! ?\n\n## Integration with sessions_spawn\n\nYou can also spawn GLM coding tasks as sub-agents:\n\n```javascript\nsessions_spawn({\n  task: \"Build a todo API in ~\u002Fprojects\u002Ftodos using Express.js\",\n  model: \"zai\u002Fglm-4.7\",\n  label: \"glm-todo-api\"\n})\n```\n\nThis runs GLM in an isolated session and pings you when done. Even cleaner than bash+background!\n\n---\n\n## See Also\n\n- **Safe GLM Guide:** `\u002FUsers\u002Fsander\u002Fclawd\u002Fdocs\u002FSAFE-GLM-GUIDE.md` - Complete wrapper documentation (macOS\u002FLinux)\n- **Windows Guide:** `\u002FUsers\u002Fsander\u002Fclawd\u002Fdocs\u002FSAFE-GLM-WINDOWS.md` - Windows PowerShell setup\n- **Scripts (macOS\u002FLinux):**\n  - `~\u002Fclawd\u002Fscripts\u002Fsafe-glm.sh` - Main safety wrapper (bash)\n  - `~\u002Fclawd\u002Fscripts\u002Fglm-alias.sh` - Convenience aliases (bash)\n  - `~\u002Fclawd\u002Fscripts\u002Fglmcode.sh` - Internal Z.AI wrapper (bash)\n- **Scripts (Windows):**\n  - `%USERPROFILE%\\clawd\\scripts\\safe-glm.ps1` - Main safety wrapper (PowerShell)\n  - `%USERPROFILE%\\clawd\\scripts\\glmcode.ps1` - Internal Z.AI wrapper (PowerShell)\n- **Skill:** `glm-coding-agent` (this file)\n\n---\n\nLast updated: 2026-02-02 (Added safe-glm wrapper)\n",{"name":5,"metadata":41,"description":7},{"openclaw":42},{"emoji":43,"requires":44},"?",{"bins":45},[46],"claude","main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fcgnl\u002Fglm-coding-agent",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add kbarbel640-del\u002Fskills --skill glm-coding-agent",{"tool":60,"command":61},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill glm-coding-agent",{"tool":63,"command":64},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill glm-coding-agent","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcgnl\u002Fglm-coding-agent\u002FSKILL.md",true,[68,74],{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"_meta.json","REFERENCE","参考文档",282,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcgnl\u002Fglm-coding-agent\u002F_meta.json",{"path":75,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":76,"sourceHtmlUrl":77},"README.md",994,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcgnl\u002Fglm-coding-agent\u002FREADME.md",[79,104,128,145,150,169],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":36},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[86,87,88,34,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],"crowd prompting","prompting","api","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","https","content","ai agents",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":36},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[111,88,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,92,127],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking","use",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":36},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[],[135,136,137,138,139,140,141,34,142,125,127,143,88,144,32],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http",{"skillNo":146,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":36},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[138,137,136,135,32,140,141,34,139,125,127,142,143,88,144],{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":36},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[25,157,158,159,160,161,162,163,164,165,166,167,168],"summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":36},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[],[176,177,178,179,34,180,181,47,182,143,183,184,185,186,187,101,188,189,190],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance","github"]