Ultra Agent Stinct
by @grimmjoww
Autonomously handle coding tasks including writing, debugging, refactoring, testing, and git operations upon user request.
clawhub install ultra-agent-stinctπ About This Skill
name: ultra-agent-stinct description: "Internal debugging and coding skill. Activates automatically when YOU hit a code error, build failure, stack trace, or unexpected behavior during any task. This is your instinct for fixing things β not a user-triggered skill. If a command fails, a script throws an error, or something breaks while you're working, use this to debug and fix it yourself." version: 1.2.0 author: grimmjoww homepage: https://github.com/grimmjoww/ultra-agent-stinct metadata: {"openclaw": {"emoji": "\u26a1", "os": ["darwin", "linux", "win32"]}}
Ultra Agent Stinct
Your internal debugging instinct. When something breaks while you're working, this is how you fix it.
Always Follow These (Any Time You Touch Code)
These rules apply every time, even for quick fixes. No exceptions.
Safety
1. Read before edit. Neveredit without read first β exact text match required or it fails
2. write overwrites entirely. Use edit for changes to existing files
3. Never delete without asking. Prefer safe deletion over rm -rf
4. Never push without asking. git push only when the user explicitly says to
5. Never commit without asking. Stage and commit only on request
6. Backup awareness. Before large refactors, suggest a branch or stashGood Practices
7. Always verify your fix. After every change, re-run the failing command or tests. Never assume it worked 8. Tell the user what happened. After fixing, briefly explain what broke and what you changed 9. Read the error first. Don't guess at fixes β read the actual error message, stack trace, or test output before touching code 10. Minimal changes. Fix the bug, don't refactor the neighborhood. Keep diffs small and focusedWhen to Activate Full Workflow
If you hit an error during a task, try a quick fix first while following the rules above. But if you:
Then activate Ultra Agent Stinct β follow the full structured workflows below step by step.
Debug Workflow
When you encounter an error or something breaks:
1. Reproduce β Run the failing command:
exec command:"" workdir:""
2. Read the error β Parse the stack trace. Identify file + line number.
3. Read the code β Read the relevant file(s):
read path:""
4. Trace the cause β Follow the call chain. Read imports, dependencies, config. Check for:
5. Fix β Apply the minimal correct fix:
read path:""
edit path:"" old:"" new:""
6. Verify β Re-run the original failing command. Confirm the fix works.
7. Report β Tell the user what broke and what you fixed (brief). Then continue your original task.
Writing New Code
When you need to create or modify code as part of a task:
1. Understand the project β Check existing patterns:
exec command:"ls -la" workdir:""
Read package.json, pyproject.toml, Cargo.toml, or equivalent. Match existing style and conventions.2. Plan first β Before writing, outline what you'll create. Think through structure, dependencies, edge cases.
3. Write β Create the file:
write path:"" content:""
4. Verify β Run it, test it, make sure it actually works before moving on.
Running Tests
1. Find the test runner:
npm test / npx jest / npx vitestpytest / python -m unittestcargo testgo test ./...2. Run tests:
exec command:"" workdir:"" timeout:120
3. On failure: Read the failing test, read the source under test, apply Debug Workflow.
4. On success: Report summary and continue.
Git Integration
Only when the user asks to commit, stage, or check git status.
exec command:"git status" workdir:""
exec command:"git diff --stat" workdir:""
exec command:"git add " workdir:""
exec command:"git commit -m ''" workdir:""
For detailed git workflows, see references/git-workflow.md.
Spawning Coding Agents (Heavy Tasks)
For large tasks (multi-file refactors, entire features, long builds), spawn a background agent:
exec pty:true workdir:"" background:true command:"claude ''"
Monitor:
process action:list
process action:log sessionId:
process action:poll sessionId:
See references/escalation-guide.md for when to self-handle vs delegate.
Cross-Platform Quick Reference
| Task | macOS/Linux | Windows (Git Bash) |
|------|-------------|-------------------|
| Find files | find . -name "*.ts" -not -path "*/node_modules/*" | Same |
| Search code | grep -rn "pattern" --include="*.ts" . | Same |
| Process list | ps aux \| grep node | tasklist \| findstr node |
| Kill process | kill -9 | taskkill //f //pid |
| Python | python3 (or python) | python |
| Open file | open | start |