update-nanoclaw
Skill91 starsChanged 7 months agoMITView on GitHub
Efficiently bring upstream NanoClaw updates into a customized install, with preview, selective cherry-pick, and low token usage.
- Deletes or force-pushes
4 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- prathish-ks/isthmustheir own version, first seen Oct 6, 2026
- nanocoai/nanoclawtheir own version, first seen Oct 4, 2026
- TomGranot/groupguardtheir own version, first seen Sep 3, 2026
- microsoft/amplifier-app-nanoclawedited, first seen Jun 12, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- microsoft/amplifier-app-nanoclaw★ 453% same
Wrote their own version · 3
- nanocoai/nanoclaw★ 31ksame name
- TomGranot/groupguard★ 4same name
- prathish-ks/isthmus★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository55 other files it gives its agents.
- ab-test-setupSkill
- ad-creativeSkill
- add-discordSkill
- add-gmail-agentSkill
- add-heartbeatSkill
- add-morning-briefingSkill
- add-slackSkill
- add-telegramSkill
- add-telegram-swarmSkill
- add-update-checkSkill
- add-voice-replySkill
- add-voice-transcriptionSkill
- ai-seoSkill
- analytics-trackingSkill
- churn-preventionSkill
- cold-emailSkill
- competitor-alternativesSkill
- content-strategySkill
- copy-editingSkill
- copywritingSkill
- customizeSkill
- debugSkill
- designSkill
- domain-checkSkill
- email-sequenceSkill
- form-croSkill
- free-tool-strategySkill
- get-qodo-rulesSkill
- launch-strategySkill
- marketing-ideasSkill
- marketing-psychologySkill
- migrate-memorySkill
- onboarding-croSkill
- page-croSkill
- paid-adsSkill
- paywall-upgrade-croSkill
- popup-croSkill
- pr-babysitterSkill
- pricing-strategySkill
- product-marketing-contextSkill
- programmatic-seoSkill
- qodo-pr-resolverSkill
- referral-programSkill
- revopsSkill
- run-ralphSkill
- sales-enablementSkill
- schema-markupSkill
- seo-auditSkill
- setup-ghostclawSkill
- setup-shared-folderSkill
- setupSkill
- signup-flow-croSkill
- site-architectureSkill
- social-contentSkill
- update-ghostclawSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
31 rules. 0 are common, 24 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
24
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Run /update-nanoclaw in Claude Code.
- Distinctive: line 29
Conflict preview: before merging, runs a dry-run (git merge --no-commit --no-ff) to show which files would conflict.
- Distinctive: line 46
Only opens files with actual conflicts.
- Distinctive: line 54
Never proceed with a dirty working tree.
- Distinctive: line 55
Always create a rollback point (backup branch + tag) before touching anything.
- Distinctive: line 56
Prefer git-native operations (fetch, merge, cherry-pick).
- Distinctive: line 57
Default to MERGE (one-pass conflict resolution).
- Distinctive: line 58
Keep token usage low: rely on git status, git log, git diff, and open only conflicted files.
- Distinctive: line 63
If output is non-empty:
- Very specific: line 68
If upstream is missing:
- Very specific: line 69
Ask the user for the upstream repo URL (default: https://github.com/qwibitai/nanoclaw.git).
- Very specific: line 75
If upstream/main exists, use main.
- Very specific: line 76
If only upstream/master exists, use master.
- Distinctive: line 88
Create backup branch and tag (using timestamp to avoid collisions on retry):
- Distinctive: line 119
If Abort: stop here.
- Distinctive: line 122
If Full update or Rebase:
- Distinctive: line 127
If conflicts were listed: show them and ask user if they want to proceed.
- Distinctive: line 128
If no conflicts: tell user it is clean and proceed.
- Distinctive: line 135
Run git status and identify conflicted files.
- Distinctive: line 141
Do not refactor surrounding code.
- Distinctive: line 144
If merge did not auto-commit: git commit --no-edit
- Distinctive: line 147
If user chose Selective:
- Distinctive: line 150
Ask user which commit hashes they want.
- Distinctive: line 153
If conflicts during cherry-pick:
- Distinctive: line 157
If user wants to stop:
- Distinctive: line 168
If it gets messy (more than 3 rounds of conflicts):
- Distinctive: line 179
Only fix issues clearly caused by the merge (missing imports, type mismatches from merged code).
- Distinctive: line 180
Do not refactor unrelated code.
- Distinctive: line 181
If unclear, ask the user before making changes.
- Very specific: line 195
If using launchd: launchctl unload ~/Library/LaunchAgents/com.ghostclaw.plist && launchctl load ~/Library/LaunchAgents/com.ghostclaw.plist
- Very specific: line 196
If running manually: restart npm run dev
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
About
Your NanoClaw fork drifts from upstream as you customize it. This skill pulls upstream changes into your install without losing your modifications.
Run /update-nanoclaw in Claude Code.
How it works
Preflight: checks for clean working tree (git status --porcelain). If upstream remote is missing, asks you for the URL (defaults to https://github.com/qwibitai/nanoclaw.git) and adds it. Detects the upstream branch name (main or master).
Backup: creates a timestamped backup branch and tag (backup/pre-update-<hash>-<timestamp>, pre-update-<hash>-<timestamp>) before touching anything. Safe to run multiple times.
Preview: runs git log and git diff against the merge base to show upstream changes since your last sync. Groups changed files into categories:
- Skills (
.claude/skills/): unlikely to conflict unless you edited an upstream skill - Source (
src/): may conflict if you modified the same files - Build/config (
package.json,tsconfig*.json,container/): review needed
Update paths (you pick one):
merge(default):git merge upstream/<branch>. Resolves all conflicts in one pass.cherry-pick:git cherry-pick <hashes>. Pull in only the commits you want.rebase:git rebase upstream/<branch>. Linear history, but conflicts resolve per-commit.abort: just view the changelog, change nothing.
Conflict preview: before merging, runs a dry-run (git merge --no-commit --no-ff) to show which files would conflict. You can still abort at this point.
Conflict resolution: opens only conflicted files, resolves the conflict markers, keeps your local customizations intact.
Validation: runs npm run build and npm test.
Rollback
The backup tag is printed at the end of each run:
git reset --hard pre-update-<hash>-<timestamp>Backup branch backup/pre-update-<hash>-<timestamp> also exists.
Token usage
Only opens files with actual conflicts. Uses git log, git diff, and git status for everything else. Does not scan or refactor unrelated code.
Goal
Help a user with a customized NanoClaw install safely incorporate upstream changes without a fresh reinstall and without blowing tokens.
Operating principles
- Never proceed with a dirty working tree.
- Always create a rollback point (backup branch + tag) before touching anything.
- Prefer git-native operations (fetch, merge, cherry-pick). Do not manually rewrite files except conflict markers.
- Default to MERGE (one-pass conflict resolution). Offer REBASE as an explicit option.
- Keep token usage low: rely on
git status,git log,git diff, and open only conflicted files.
Step 0: Preflight (stop early if unsafe)
Run:
git status --porcelainIf output is non-empty:- Tell the user to commit or stash first, then stop.
Confirm remotes:
git remote -vIfupstreamis missing:- Ask the user for the upstream repo URL (default:
https://github.com/qwibitai/nanoclaw.git). - Add it:
git remote add upstream <user-provided-url> - Then:
git fetch upstream --prune
Determine the upstream branch name:
git branch -r | grep upstream/- If
upstream/mainexists, usemain. - If only
upstream/masterexists, usemaster. - Otherwise, ask the user which branch to use.
- Store this as UPSTREAM_BRANCH for all subsequent commands. Every command below that references
upstream/mainshould useupstream/$UPSTREAM_BRANCHinstead.
Fetch:
git fetch upstream --prune
Step 1: Create a safety net
Capture current state:
HASH=$(git rev-parse --short HEAD)TIMESTAMP=$(date +%Y%m%d-%H%M%S)
Create backup branch and tag (using timestamp to avoid collisions on retry):
git branch backup/pre-update-$HASH-$TIMESTAMPgit tag pre-update-$HASH-$TIMESTAMP
Save the tag name for later reference in the summary and rollback instructions.
Step 2: Preview what upstream changed (no edits yet)
Compute common base:
BASE=$(git merge-base HEAD upstream/$UPSTREAM_BRANCH)
Show upstream commits since BASE:
git log --oneline $BASE..upstream/$UPSTREAM_BRANCH
Show local commits since BASE (custom drift):
git log --oneline $BASE..HEAD
Show file-level impact from upstream:
git diff --name-only $BASE..upstream/$UPSTREAM_BRANCH
Bucket the upstream changed files:
- Skills (
.claude/skills/): unlikely to conflict unless the user edited an upstream skill - Source (
src/): may conflict if user modified the same files - Build/config (
package.json,package-lock.json,tsconfig*.json,container/,launchd/): review needed - Other: docs, tests, misc
Present these buckets to the user and ask them to choose one path using AskUserQuestion:
- A) Full update: merge all upstream changes
- B) Selective update: cherry-pick specific upstream commits
- C) Abort: they only wanted the preview
- D) Rebase mode: advanced, linear history (warn: resolves conflicts per-commit)
If Abort: stop here.
Step 3: Conflict preview (before committing anything)
If Full update or Rebase:
- Dry-run merge to preview conflicts. Run these as a single chained command so the abort always executes:
git merge --no-commit --no-ff upstream/$UPSTREAM_BRANCH; git diff --name-only --diff-filter=U; git merge --abort - If conflicts were listed: show them and ask user if they want to proceed.
- If no conflicts: tell user it is clean and proceed.
Step 4A: Full update (MERGE, default)
Run:
git merge upstream/$UPSTREAM_BRANCH --no-edit
If conflicts occur:
- Run
git statusand identify conflicted files. - For each conflicted file:
- Open the file.
- Resolve only conflict markers.
- Preserve intentional local customizations.
- Incorporate upstream fixes/improvements.
- Do not refactor surrounding code.
git add <file>
- When all resolved:
- If merge did not auto-commit:
git commit --no-edit
- If merge did not auto-commit:
Step 4B: Selective update (CHERRY-PICK)
If user chose Selective:
- Recompute BASE if needed:
BASE=$(git merge-base HEAD upstream/$UPSTREAM_BRANCH) - Show commit list again:
git log --oneline $BASE..upstream/$UPSTREAM_BRANCH - Ask user which commit hashes they want.
- Apply:
git cherry-pick <hash1> <hash2> ...
If conflicts during cherry-pick:
- Resolve only conflict markers, then:
git add <file>git cherry-pick --continueIf user wants to stop:git cherry-pick --abort
Step 4C: Rebase (only if user explicitly chose option D)
Run:
git rebase upstream/$UPSTREAM_BRANCH
If conflicts:
- Resolve conflict markers only, then:
git add <file>git rebase --continueIf it gets messy (more than 3 rounds of conflicts):git rebase --abort- Recommend merge instead.
Step 5: Validation
Run:
npm run buildnpm test(do not fail the flow if tests are not configured)
If build fails:
- Show the error.
- Only fix issues clearly caused by the merge (missing imports, type mismatches from merged code).
- Do not refactor unrelated code.
- If unclear, ask the user before making changes.
Step 6: Summary + rollback instructions
Show:
- Backup tag: the tag name created in Step 1
- New HEAD:
git rev-parse --short HEAD - Upstream HEAD:
git rev-parse --short upstream/$UPSTREAM_BRANCH - Conflicts resolved (list files, if any)
- Remaining local diff vs upstream:
git diff --name-only upstream/$UPSTREAM_BRANCH..HEAD
Tell the user:
- To rollback:
git reset --hard <backup-tag-from-step-1> - Backup branch also exists:
backup/pre-update-<HASH>-<TIMESTAMP> - Restart the service to apply changes:
- If using launchd:
launchctl unload ~/Library/LaunchAgents/com.ghostclaw.plist && launchctl load ~/Library/LaunchAgents/com.ghostclaw.plist - If running manually: restart
npm run dev
- If using launchd:
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

