update-nanoclaw

Synchronize a NanoClaw fork with upstream changes while preserving local modifications.

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/erguotou520/myclaw --skill update-nanoclaw-erguotou520
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-nanoclaw
Source: https://github.com/erguotou520/myclaw/tree/main/.claude/skills/update-nanoclaw
Command: npx skills add https://github.com/erguotou520/myclaw --skill update-nanoclaw-erguotou520

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Keeps a customized NanoClaw install aligned with upstream while protecting local changes, so updates can be applied safely instead of rebuilt by hand.

Core Features & Use Cases

  • Safety-first preflight: verifies a clean working tree, discovers the upstream remote and branch, and creates a backup branch and tag before any update.
  • Flexible update paths: supports full merge, selective cherry-pick, or rebase workflows so you can choose the right strategy for your fork.
  • Conflict-aware maintenance: previews likely conflicts, opens only affected files for resolution, validates with build and tests, and checks for breaking-change follow-up skills.
  • Rollback-ready process: preserves a restore point and prints explicit reset instructions if you need to undo the update.

Quick Start

Use the update-nanoclaw skill in Claude Code to preview upstream NanoClaw changes and safely merge the ones you want into your fork.

Frequently Asked Questions about update-nanoclaw

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update a forked git repository without losing local modifications?

To update a forked git repository without losing local modifications, run preflight checks for a clean working tree, create a backup branch, then selectively merge or cherry-pick upstream commits. This ensures local customizations are preserved during the sync.

What is the best way to cherry-pick upstream commits into a customized fork?

The best way to cherry-pick upstream commits into a customized fork is to first preview diffs and dry-run conflict detection, then selectively apply only the desired commits. This targets specific changes while avoiding a full merge that could overwrite local work.

How does a dry-run conflict preview work when syncing upstream branches?

A dry-run conflict preview works by detecting likely merge conflicts before any changes are applied when syncing upstream branches. It analyzes the targeted commits against your local diff, allowing you to proactively identify and resolve collisions in affected files.

Can I roll back a git merge if an upstream update breaks my build?

Yes, you can roll back a git merge if an upstream update breaks your build by using a pre-created backup branch and tag. The workflow preserves a restore point and prints explicit reset instructions to undo the update and restore the previous state.

Does syncing an upstream fork require a clean working tree?

Yes, syncing an upstream fork requires a clean working tree as part of its safety-first preflight checks. Verifying a clean state before discovering the upstream remote and branch prevents accidental data loss during the merge or cherry-pick process.

Why do I need to validate with build and tests after resolving merge conflicts?

You need to validate with build and tests after resolving merge conflicts to ensure the integrated upstream changes do not break existing functionality. This validation step checks for breaking changes and confirms the fork remains stable before finalizing the update.