Skip to content
Agentmart
Submit a tool

uclaw-github-ops

Direct GitHub operations (commit / push / PR / merge) on the user's Mac — bypasses Cowork sandbox lock-tracking limitations.

Skill by novolei

IndexedApache-2.0★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/novolei-uclaw-github-ops

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Direct GitHub operations (commit / push / PR / merge) on the user's Mac — bypasses Cowork sandbox lock-tracking limitations. Use when the user wants Claude to fully execute a git+GitHub workflow end-to-end instead of producing scripts for the user to run. Triggers on phrases like "你帮我做", "帮我合并", "帮我开 PR", "帮我推送", "你来操作 github".

Use cases: productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/uclaw-github-ops

What's inside

Skill name
uclaw-github-ops
Description
Direct GitHub operations (commit / push / PR / merge) on the user's Mac — bypasses Cowork sandbox lock-tracking limitations. Use when the user wants Claude to fully execute a git+GitHub workflow end-to-end instead of producing scripts for the user to run. Triggers on phrases like "你帮我做", "帮我合并", "帮我开 PR", "帮我推送", "你来操作 github".
License
Apache-2.0
Instructions
275 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Agent Skills spec issues

  • body: contains an absolute path from the author's machine

Files (1)

  • SKILL.md

SKILL.md (first lines)

# uClaw GitHub Operations (Mac-direct)

This skill is the canonical operations playbook for Claude when the user
wants GitHub work executed AT THEIR Mac (not via Cowork sandbox shell).
Distilled from the 2026-05-21 Bundle 25/26/27 PR #394 session, where
multiple sandbox approaches hit walls before the Mac-direct route worked.

## When to use

- User says "你帮我做", "你来操作", "帮我 commit/push/merge/开 PR".
- Multi-step git workflow that mixes commit, push, branch ops, and the
  GitHub REST API.
- Any time the Cowork bash sandbox `mcp__workspace__bash` is hitting
  HEAD.lock / index.lock / "Operation not permitted" errors on `.git/`.

## The hierarchy of execution surfaces

Pick the **highest** surface that satisfies the task. Lower surfaces
have more limitations but cover edge cases.

| Surface | Tool | Strengths | Limits |
|---|---|---|---|
| 1. **Mac shell direct** | `mcp__Macos__Shell` | Real bash on Mac, full git perms, `gh` CLI access, cargo/npm/etc. | Doesn't see Cowork-only state like `/sessions/.../mnt/` paths. |
| 2. **Cowork bash** | `mcp__workspace__bash` | Reads worktree via mount, fast for grep/read | `.git/` writes often fail with `Operation not permitted`; HEAD.lock races with external lock-cleaner daemon. |
| 3. **Computer-use Terminal** | `mcp__computer-use__*` | Visual, last resort | Terminal granted at tier "click" only — Claude can SEE Terminal but cannot type into it. Don't go here. |

**Default to Surface 1 (`mcp__Macos__Shell`) for any git operation that mutates state.**
Use Surface 2 only for read-only inspection (grep, cat, ls) or when
Surface 1 isn't accessible.

## The end-to-end recipe (commit → push → PR → merge)

### Setup (run once per session if unsure)

```bash
# Surface 1
gh auth status              # confirm "Logged in to github.com"
gh repo set-default <owner>/<repo>   # only if gh complains about default
```

If gh isn't logged in, tell the user to run `gh auth login` once
(GitHub.com → HTTPS → web browser); after that all gh commands work.

### Commit one branch's worth of changes

```bash
cd ~/Documents/uclaw-cowork          # or wherever the branch lives
export GIT_PAGER=cat                 # MANDATORY — kills less paginator

# create branch if not on one
git checkout -b prep/<topic>

# stage + commit
git add <specific files>             # NEVER `git add .` — be explicit
git diff --cached --stat              # sanity check what's staged
git commit -F /Users/ryanliu/Documents/uclaw/target/_<bundle>_msg.txt
git show -s --format='%h %s' HEAD    # confirm subject + sha
```

Project convention: **one logical change per commit**, no `git add .`,
no squashing across logical boundaries. See `BEHAVIOR.md` §10.

### Push

```bash
git push -u origin <branch>          # -u sets upstream first time
```

### Open PR

```bash
gh pr create \
  --base main \
  --head <branch> \
  --title "<Title>" \
  --body "$(cat <<'EOF'
<PR body markdown — heredoc with 'EOF' quoted to disable interpolation>
EOF
)"
# OR --body-file /path/to/body.md
```

### Check PR state before merge

```bash
gh pr view <num> --repo <owner>/<repo> \
  --json state,mergeable,reviewDecision,statusCheckRollup,headRefName \
  --jq '. | "state=\(.state) mergeable=\(.mergeable) reviewDecision=\(.reviewDecision // "—") checks=\([.statusCheckRollup[]? | .conclusion] | join(",") )"'
```

Look for `state=OPEN mergeable=MERGEABLE checks=...` — empty checks array
means no CI configured (acceptable for this repo's current setup; would
be a blocker on most teams).

### Merge

```bash
# Match project convention — see existing main history.
# uClaw uses merge commits (NOT squash) per #393, #389, #388 pattern.
gh pr merge <num> --repo <owner>/<repo> --merge --delete-branch
```

`--delete-branch` cleans the head branch on origin AND locally.

### Verify merge succeeded

```bash
gh pr view <num> --repo <owner>/<repo> --json state,mergedAt,mergeCommit --jq '.'
# expect: {"state":"MERGED","mergedAt":"...","mergeCommit":{"oid":"<sha>"}}
```

### Sync local main after merge

```bash
cd ~/Documents/uclaw-cowork
git fetch origin --prune              # picks up deleted refs
git checkout main                     # if your worktree was on the prep branch
git pull --ff-only
git branch -D prep/<topic> 2>/dev/null || true

From novolei/uclaw-new, Apache-2.0.

More from novolei/uclaw-new

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
May 21, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from novolei

Cite this page

uclaw-github-ops skill. Agent Mart. https://agentmart.dev/skills/novolei-uclaw-github-ops (last updated 2026-10-24)