skills/claude-code/SKILL.md
Route real repo work to Claude Code instead of editing by hand. Triggers on "claude code" or "cc", and on any request to edit, fix, refactor, or open a PR in a repo outside ~/.openclaw/workspace. Claude Code picks up the repo's CLAUDE.md / AGENTS.md, applies its standards, and knows the /ai-coding-config:multi-review and /ai-coding-config:address-pr-comments workflows we want bug bots checking against.
npx skillsauth add technickai/openclaw-config claude-codeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The phrase "claude code" (or a clear synonym) is the primary signal. When the operator says it, this skill applies — full stop.
Secondary trigger: any request to edit, fix, refactor, or open a PR in a repo with
reviewers or that goes through PRs — meaning any repo that is not
~/.openclaw/workspace (and excluding other non-PR paths listed below). Even if the
operator doesn't say "claude code" by name, treat PR-bound repo work as a Claude Code
job.
~/.openclaw/workspace — this is home, edit directly with the normal
tools~/clawd — a live-mounted system tree; agent writes there can corrupt a running
instance. Edit it directly with normal tools.CLAUDE.md / AGENTS.md and applies the project's standards/ai-coding-config:multi-review and
/ai-coding-config:address-pr-comments workflowsWhen the operator asks for a Claude Code job, "done" = the PR is ready to merge. Not "PR opened." Not "first round of bots ran." Ready to merge means:
Keep iterating — push fixes, re-run /ai-coding-config:address-pr-comments, wait for
checks again — until that bar is hit. Then report done. Don't stop at "PR opened" or
"checks running" and call it done.
When the operator asks for something that will land in a repo with reviewers or bug bots, do this sequence without being told:
~/src/<repo> checkout. Never edit a live
mounted copy. Clone into a uniquely-named sibling: ~/src/<repo>-<short-purpose>. If
the clone fails, check repo access first with gh repo view <repo> before
proceeding.feat/<short-purpose> by default; follow the repo's
naming convention from AGENTS.md / CLAUDE.md if it specifies one./ai-coding-config:multi-review via Claude Code — phrase it mid-sentence, never
as the first token (e.g.
"do a /ai-coding-config:multi-review on the staged changes").gh pr create only if Claude Code's run ended before reaching the push
step. Ensure gh is available in PATH.gh pr checks --watch until all checks complete. If
review comments appear, proceed to the next step./ai-coding-config:address-pr-comments via Claude Code — same mid-sentence
phrasing rule.git -C ~/.openclaw-config pull).For trivial edits (one file, one change, no PR) skip the ceremony — just make the edit. If you're unsure whether something qualifies as trivial, it doesn't.
When creating a new repo from scratch, set up pre-commit hooks before the first real commit. Otherwise the first PR eats a round of formatter/linter failures from the bug bots that should have been caught locally.
.pre-commit-config.yaml matching the repo's stack (Prettier for JS/TS/MD,
Black + Ruff for Python, etc. — follow whatever CLAUDE.md / AGENTS.md specifies
if present).pip install pre-commit (or brew install pre-commit) if not already installed.pre-commit install inside the repo to wire up the git hook.pre-commit run --all-files once to normalize the initial commit.Don't skip step 4 — it surfaces every formatting issue up front instead of letting them land in the first PR.
Always clone fresh for a new piece of work. This avoids stepping on uncommitted changes
in an existing checkout and gives each piece of work a clear identity. If your cwd is
already inside a repo checkout, do not edit there — create the sibling clone and cd
into it before invoking Claude Code.
Rule: slash commands go mid-sentence. Always.
If the prompt starts with /ai-coding-config:multi-review or
/ai-coding-config:address-pr-comments, Claude Code returns Unknown command. Two
compounding reasons:
ai-coding-config marketplace plugin. Their literal invocation form is
/ai-coding-config:multi-review. Bare /multi-review isn't recognized at the
top-level prompt dispatcher.Examples that work:
Claude Code reads CLAUDE_CODE_OAUTH_TOKEN from the environment. If invoked from a
non-login shell the token isn't exported and it responds with
Not logged in · Please run /login. Always source ~/.zshrc before invoking.
This is the one literal piece of command worth pinning down, because the sourcing and permission-mode flags are non-obvious and easy to forget:
zsh -c 'source ~/.zshrc && cd <repo-path> && claude --print --permission-mode bypassPermissions "<conversational prompt>"'
zsh -c 'source ~/.zshrc && ...' — ensures the OAuth token is exportedcd <repo-path> — so Claude Code picks up the repo's CLAUDE.md and any project
commands--print — non-interactive single-shot output--permission-mode bypassPermissions — the skill doesn't want interactive prompts/ai-coding-config:multi-review and /ai-coding-config:address-pr-comments can run
5-15 minutes. Launch in the background and poll for completion — do not tight-loop, do
not kill the job prematurely.
edit / write tools when the work is
non-trivial. Use Claude Code./ai-coding-config:multi-review when the work is going to merge.gh pr checks --watch, then run
/ai-coding-config:address-pr-comments before declaring done.coding-agent — covers spawning Codex, Claude Code, or Pi for larger greenfield
builds in temp directories. This skill is the narrower "you're already aiming at a
real repo with reviewers, route the work through Claude Code" case. When in doubt on a
new greenfield build, read coding-agent. When in doubt on modifying an existing
repo, read this skill.github — still the right tool for gh pr view, bug bot checks, and PR
management. Claude Code pairs with gh, it doesn't replace it.development
A pause before an artifact goes into the world. Reviews external comms, money, calendar, public posts, or send-as-operator actions through a small panel of independent lenses (empathy first) and returns a verdict of pass / edit / hold / block.
testing
Drive a task all the way to a verified done state — write DoD first, verify each item with evidence, stop only at named stop conditions.
tools
Design, build, and maintain autonomous OpenClaw workflows (stewards). Use when creating new workflow agents, improving existing ones, evaluating automation opportunities, or debugging workflow reliability. Triggers on "build a workflow", "create a steward", "automate this process", "workflow audit", "what should I automate", "create a cron job", "schedule a recurring task", "build a scheduled job".
development
Make outbound phone calls via Vapi voice AI. Use when the agent needs to call someone on the phone for any reason (reminders, notifications, requests to businesses, or any task that benefits from a real voice conversation). Requires VAPI_API_KEY, a provisioned phone number, and an assistant configured in Vapi.