Overview
The/update-nanoclaw skill helps you pull updates from the upstream NanoClaw repository into your customized fork without losing your modifications. It handles merge conflicts intelligently and validates the result.
When to Use
Your NanoClaw fork drifts from upstream as you customize it. Run this skill when:- A new NanoClaw version is released
- You want new upstream features
- Security updates are available
- Bug fixes are published
How It Works
1. Preflight Checks
- Verifies clean working tree (
git status --porcelain) - Adds
upstreamremote if missing (defaults tohttps://github.com/qwibitai/nanoclaw.git) - Detects upstream branch name (
mainormaster)
2. Backup
Creates timestamped backup before any changes:- Branch:
backup/pre-update-<hash>-<timestamp> - Tag:
pre-update-<hash>-<timestamp>
3. Preview
Shows upstream changes since your last sync:- Skills (
.claude/skills/) - Unlikely to conflict - Source (
src/) - May conflict if you modified same files - Build/config - Review needed
4. Update Paths
You choose:- merge (default)
- cherry-pick
- rebase
- abort
5. Conflict Resolution
- Dry-run shows which files would conflict
- Opens only conflicted files
- Resolves conflict markers
- Keeps your local customizations intact
6. Validation
Runs after merge:7. Breaking Changes Check
ReadsCHANGELOG.md for [BREAKING] entries. If found:
- Shows each breaking change
- Offers to run recommended migration skill
How to Apply
Review preview
Claude shows:
- Number of upstream commits
- Changed files grouped by category
- Potential conflicts
Token Usage
This skill is optimized for low token usage:
- Only opens files with actual conflicts
- Uses
git logandgit difffor summaries - Does not scan or refactor unrelated code
Rollback
If something goes wrong, reset to the backup:Common Scenarios
No conflicts - smooth update
No conflicts - smooth update
If upstream changes don’t overlap with your customizations:
- Merge completes automatically
- Build and tests pass
- You’re updated!
Minor conflicts in source files
Minor conflicts in source files
If you modified the same files as upstream:
- Dry-run shows conflicted files
- Claude opens each file
- Resolves
<<<<<<< HEADmarkers - Keeps your customizations
- Runs validation
Breaking changes require migration
Breaking changes require migration
If upstream introduces breaking changes:
- CHANGELOG.md shows
[BREAKING]entries - Claude explains each change
- Offers to run migration skills (e.g.,
/migrate-to-v2) - You apply migrations
- Re-validate
Best Practices
Update Regularly
Update monthly to avoid large drift from upstream
Test After Update
Send test messages to each channel to verify functionality
Read Changelog
Review CHANGELOG.md before merging to understand what’s changing
Keep Backups
Don’t delete backup tags until you’ve verified the update
Related Documentation
Customization
How to customize NanoClaw
Skills System
Understanding the skills architecture