Agent skill
openclaw-runtime-git
Manage the openclaw-runtime git repository and its 13 agent workspace submodules. Use when adding a new agent workspace, cloning the runtime repo, updating submodule references, committing changes to the parent repo, or troubleshooting submodule state. Triggers on tasks involving workspace repos, submodule operations, agent onboarding git setup, or any git operations in ~/.openclaw/.
Install this agent skill to your Project
npx add-skill https://github.com/delorenj/skills/tree/main/openclaw-runtime-git
SKILL.md
openclaw-runtime-git
Git workflow patterns for the openclaw-runtime parent repo and its agent workspace submodules.
Repo Structure
~/.openclaw/ is the parent repo (openclaw-runtime). Each workspace*/ directory is a git submodule pointing at its own GitHub repo under delorenj/agent-oc-*.
Submodule Map
| Directory | GitHub Repo |
|---|---|
workspace/ |
delorenj/agent-oc-cack |
workspace-cack-app/ |
delorenj/agent-oc-lala |
workspace-dumpling/ |
delorenj/agent-oc-dumpling |
workspace-eng/ |
delorenj/agent-oc-eng |
workspace-grolf/ |
delorenj/agent-oc-grolf |
workspace-infra/ |
delorenj/agent-oc-infra |
workspace-lenoon/ |
delorenj/agent-oc-lenoon |
workspace-overworld/ |
delorenj/agent-oc-pepe |
workspace-rar/ |
delorenj/agent-oc-rar |
workspace-rererere/ |
delorenj/agent-oc-rererere |
workspace-svgme/ |
delorenj/agent-oc-momo |
workspace-tonny/ |
delorenj/agent-oc-tonny |
workspace-wean/ |
delorenj/agent-oc-tongy |
Hook Protection
A git hook guards workspace paths from accidental staging via git add. When adding or committing submodule references in the parent repo, use command git to bypass:
command git add workspace-<name>
command git commit -m "message"
This is safe and expected for submodule pointer commits. The hook exists to prevent accidentally staging workspace contents as tracked files in the parent repo.
Common Workflows
Clone the Runtime Repo (Fresh Machine)
git clone --recurse-submodules git@github.com:delorenj/<runtime-repo>.git ~/.openclaw
Or if already cloned without submodules:
cd ~/.openclaw
git submodule update --init --recursive
Add a New Agent Workspace as a Submodule
- Create the GitHub repo:
gh repo create delorenj/agent-oc-<name> --private
- Initialize the workspace if it doesn't have a git repo yet:
cd ~/.openclaw/workspace-<name>
git init && git add -A && git commit -m "initial commit"
- Add the remote and push:
gh repo create delorenj/agent-oc-<name> --private --source=~/.openclaw/workspace-<name> --push
Or if the repo already exists:
git remote add origin git@github.com:delorenj/agent-oc-<name>.git
git push -u origin main
- Register as submodule in the parent repo:
cd ~/.openclaw
git submodule add git@github.com:delorenj/agent-oc-<name>.git workspace-<name>/
If the directory already exists with a .git, git will say "Adding existing repo" which is correct.
- Commit in the parent:
command git add .gitmodules workspace-<name>
command git commit -m "feat: add workspace-<name> as submodule"
Update a Submodule Reference (After Pushing Changes in a Workspace)
When you commit and push inside a workspace, the parent repo sees a dirty submodule pointer. To record the new commit:
cd ~/.openclaw
command git add workspace-<name>
command git commit -m "chore: update workspace-<name> submodule ref"
Update All Submodules to Latest Remote
cd ~/.openclaw
git submodule update --remote --merge
Then commit any updated pointers:
command git add workspace*
command git commit -m "chore: update all workspace submodule refs"
Check Submodule Status
git submodule status
# Or more detail:
git submodule foreach --quiet 'echo "$sm_path: $(git log --oneline -1)"'
Remove a Submodule
git submodule deinit -f workspace-<name>
rm -rf .git/modules/workspace-<name>
git rm -f workspace-<name>
git commit -m "chore: remove workspace-<name> submodule"
Naming Convention
- Workspace directory:
workspace-<suffix>/(suffix matches agent id or is descriptive) - GitHub repo:
delorenj/agent-oc-<persona-name>(lowercase persona name) - The main workspace (
workspace/) is an exception with no suffix
Gotchas
- Never
git add -Aorgit add .in the parent repo without checking what you're staging. The hook guards against this, but be aware. - Submodules track a specific commit, not a branch. After pushing changes inside a workspace, you must also update and commit the submodule pointer in the parent.
- Detached HEAD in submodules is normal after
git submodule update. To work in a submodule,cdinto it andgit switch mainfirst. .gitmodulesis the source of truth for submodule URL mappings. If a remote URL changes, update it here and rungit submodule sync.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
openclaw-upgrade
Upgrade OpenClaw installations to the latest version. Handles global npm installs, local development setups, release channels (stable/beta/dev), configuration preservation, and platform-specific requirements. Use when updating OpenClaw, switching release channels, or troubleshooting update issues.
vercel-composition-patterns
React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.
security-monitor
Real-time security monitoring for Clawdbot. Detects intrusions, unusual API calls, credential usage patterns, and alerts on breaches.
event-driven-architecture
Kafka, RabbitMQ, SQS/SNS, event sourcing, CQRS, saga patterns, dead letter queues, and idempotency. Use when designing asynchronous systems, implementing message-driven workflows, or building event streaming pipelines.
shadcn-ui
Expert guidance for integrating and building applications with shadcn/ui components, including component discovery, installation, customization, and best practices.
just-fucking-cancel
Find and cancel unwanted subscriptions by analyzing bank transactions. Detects recurring charges, calculates annual waste, and helps you cancel with direct URLs and browser automation. Use when: 'cancel subscriptions', 'audit subscriptions', 'find recurring charges', 'what am I paying for', 'save money', 'subscription cleanup', 'stop wasting money'. Supports CSV import (Apple Card, Chase, Amex, Citi, Bank of America, Capital One, Mint, Copilot) OR Plaid API for automatic transaction pull. Outputs interactive HTML audit with one-click cancel workflow. Pairs with Plaid integration for real-time transaction access without CSV exports.
Didn't find tool you were looking for?