@rozek/nanoclaw 1.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.json +1 -0
- package/.claude/skills/add-compact/SKILL.md +135 -0
- package/.claude/skills/add-discord/SKILL.md +203 -0
- package/.claude/skills/add-gmail/SKILL.md +220 -0
- package/.claude/skills/add-image-vision/SKILL.md +94 -0
- package/.claude/skills/add-ollama-tool/SKILL.md +153 -0
- package/.claude/skills/add-parallel/SKILL.md +290 -0
- package/.claude/skills/add-pdf-reader/SKILL.md +104 -0
- package/.claude/skills/add-reactions/SKILL.md +117 -0
- package/.claude/skills/add-slack/SKILL.md +207 -0
- package/.claude/skills/add-telegram/SKILL.md +222 -0
- package/.claude/skills/add-telegram-swarm/SKILL.md +384 -0
- package/.claude/skills/add-voice-transcription/SKILL.md +148 -0
- package/.claude/skills/add-whatsapp/SKILL.md +372 -0
- package/.claude/skills/convert-to-apple-container/SKILL.md +175 -0
- package/.claude/skills/customize/SKILL.md +110 -0
- package/.claude/skills/debug/SKILL.md +349 -0
- package/.claude/skills/get-qodo-rules/SKILL.md +122 -0
- package/.claude/skills/get-qodo-rules/references/output-format.md +41 -0
- package/.claude/skills/get-qodo-rules/references/pagination.md +33 -0
- package/.claude/skills/get-qodo-rules/references/repository-scope.md +26 -0
- package/.claude/skills/qodo-pr-resolver/SKILL.md +326 -0
- package/.claude/skills/qodo-pr-resolver/resources/providers.md +329 -0
- package/.claude/skills/setup/SKILL.md +218 -0
- package/.claude/skills/update-nanoclaw/SKILL.md +235 -0
- package/.claude/skills/update-skills/SKILL.md +130 -0
- package/.claude/skills/use-local-whisper/SKILL.md +152 -0
- package/.claude/skills/x-integration/SKILL.md +417 -0
- package/.claude/skills/x-integration/agent.ts +243 -0
- package/.claude/skills/x-integration/host.ts +159 -0
- package/.claude/skills/x-integration/lib/browser.ts +148 -0
- package/.claude/skills/x-integration/lib/config.ts +62 -0
- package/.claude/skills/x-integration/scripts/like.ts +56 -0
- package/.claude/skills/x-integration/scripts/post.ts +66 -0
- package/.claude/skills/x-integration/scripts/quote.ts +80 -0
- package/.claude/skills/x-integration/scripts/reply.ts +74 -0
- package/.claude/skills/x-integration/scripts/retweet.ts +62 -0
- package/.claude/skills/x-integration/scripts/setup.ts +87 -0
- package/.env.example +1 -0
- package/.github/CODEOWNERS +10 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +14 -0
- package/.github/workflows/bump-version.yml +32 -0
- package/.github/workflows/ci.yml +25 -0
- package/.github/workflows/merge-forward-skills.yml +160 -0
- package/.github/workflows/update-tokens.yml +42 -0
- package/.husky/pre-commit +1 -0
- package/.mcp.json +3 -0
- package/.nvmrc +1 -0
- package/.prettierrc +3 -0
- package/CHANGELOG.md +8 -0
- package/CLAUDE.md +64 -0
- package/CONTRIBUTING.md +23 -0
- package/CONTRIBUTORS.md +15 -0
- package/LICENSE +21 -0
- package/NanoClaw_with_Web-Support.md +290 -0
- package/README.md +261 -0
- package/README_zh.md +200 -0
- package/assets/nanoclaw-favicon.png +0 -0
- package/assets/nanoclaw-icon.png +0 -0
- package/assets/nanoclaw-logo-dark.png +0 -0
- package/assets/nanoclaw-logo.png +0 -0
- package/assets/nanoclaw-profile.jpeg +0 -0
- package/assets/nanoclaw-sales.png +0 -0
- package/assets/social-preview.jpg +0 -0
- package/config-examples/mount-allowlist.json +25 -0
- package/container/Dockerfile +70 -0
- package/container/agent-runner/package-lock.json +1524 -0
- package/container/agent-runner/package.json +21 -0
- package/container/agent-runner/src/index.ts +558 -0
- package/container/agent-runner/src/ipc-mcp-stdio.ts +338 -0
- package/container/agent-runner/tsconfig.json +15 -0
- package/container/build.sh +23 -0
- package/container/skills/agent-browser/SKILL.md +159 -0
- package/container/skills/capabilities/SKILL.md +100 -0
- package/container/skills/status/SKILL.md +104 -0
- package/dist/channels/index.d.ts +2 -0
- package/dist/channels/index.d.ts.map +1 -0
- package/dist/channels/index.js +9 -0
- package/dist/channels/index.js.map +1 -0
- package/dist/channels/registry.d.ts +13 -0
- package/dist/channels/registry.d.ts.map +1 -0
- package/dist/channels/registry.js +11 -0
- package/dist/channels/registry.js.map +1 -0
- package/dist/channels/registry.test.d.ts +2 -0
- package/dist/channels/registry.test.d.ts.map +1 -0
- package/dist/channels/registry.test.js +32 -0
- package/dist/channels/registry.test.js.map +1 -0
- package/dist/channels/web.d.ts +2 -0
- package/dist/channels/web.d.ts.map +1 -0
- package/dist/channels/web.js +1738 -0
- package/dist/channels/web.js.map +1 -0
- package/dist/cli.d.ts +11 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +182 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.d.ts +19 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +36 -0
- package/dist/config.js.map +1 -0
- package/dist/container-runner.d.ts +44 -0
- package/dist/container-runner.d.ts.map +1 -0
- package/dist/container-runner.js +467 -0
- package/dist/container-runner.js.map +1 -0
- package/dist/container-runner.test.d.ts +2 -0
- package/dist/container-runner.test.d.ts.map +1 -0
- package/dist/container-runner.test.js +150 -0
- package/dist/container-runner.test.js.map +1 -0
- package/dist/container-runtime.d.ts +22 -0
- package/dist/container-runtime.d.ts.map +1 -0
- package/dist/container-runtime.js +96 -0
- package/dist/container-runtime.js.map +1 -0
- package/dist/container-runtime.test.d.ts +2 -0
- package/dist/container-runtime.test.d.ts.map +1 -0
- package/dist/container-runtime.test.js +93 -0
- package/dist/container-runtime.test.js.map +1 -0
- package/dist/credential-proxy.d.ts +21 -0
- package/dist/credential-proxy.d.ts.map +1 -0
- package/dist/credential-proxy.js +95 -0
- package/dist/credential-proxy.js.map +1 -0
- package/dist/credential-proxy.test.d.ts +2 -0
- package/dist/credential-proxy.test.d.ts.map +1 -0
- package/dist/credential-proxy.test.js +134 -0
- package/dist/credential-proxy.test.js.map +1 -0
- package/dist/db.d.ts +115 -0
- package/dist/db.d.ts.map +1 -0
- package/dist/db.js +549 -0
- package/dist/db.js.map +1 -0
- package/dist/db.test.d.ts +2 -0
- package/dist/db.test.d.ts.map +1 -0
- package/dist/db.test.js +360 -0
- package/dist/db.test.js.map +1 -0
- package/dist/env.d.ts +8 -0
- package/dist/env.d.ts.map +1 -0
- package/dist/env.js +42 -0
- package/dist/env.js.map +1 -0
- package/dist/formatting.test.d.ts +2 -0
- package/dist/formatting.test.d.ts.map +1 -0
- package/dist/formatting.test.js +183 -0
- package/dist/formatting.test.js.map +1 -0
- package/dist/group-folder.d.ts +5 -0
- package/dist/group-folder.d.ts.map +1 -0
- package/dist/group-folder.js +44 -0
- package/dist/group-folder.js.map +1 -0
- package/dist/group-folder.test.d.ts +2 -0
- package/dist/group-folder.test.d.ts.map +1 -0
- package/dist/group-folder.test.js +29 -0
- package/dist/group-folder.test.js.map +1 -0
- package/dist/group-queue.d.ts +34 -0
- package/dist/group-queue.d.ts.map +1 -0
- package/dist/group-queue.js +263 -0
- package/dist/group-queue.js.map +1 -0
- package/dist/group-queue.test.d.ts +2 -0
- package/dist/group-queue.test.d.ts.map +1 -0
- package/dist/group-queue.test.js +341 -0
- package/dist/group-queue.test.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +518 -0
- package/dist/index.js.map +1 -0
- package/dist/ipc-auth.test.d.ts +2 -0
- package/dist/ipc-auth.test.d.ts.map +1 -0
- package/dist/ipc-auth.test.js +434 -0
- package/dist/ipc-auth.test.js.map +1 -0
- package/dist/ipc.d.ts +32 -0
- package/dist/ipc.d.ts.map +1 -0
- package/dist/ipc.js +311 -0
- package/dist/ipc.js.map +1 -0
- package/dist/logger.d.ts +3 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +14 -0
- package/dist/logger.js.map +1 -0
- package/dist/mount-security.d.ts +34 -0
- package/dist/mount-security.d.ts.map +1 -0
- package/dist/mount-security.js +325 -0
- package/dist/mount-security.js.map +1 -0
- package/dist/remote-control.d.ts +32 -0
- package/dist/remote-control.d.ts.map +1 -0
- package/dist/remote-control.js +185 -0
- package/dist/remote-control.js.map +1 -0
- package/dist/remote-control.test.d.ts +2 -0
- package/dist/remote-control.test.d.ts.map +1 -0
- package/dist/remote-control.test.js +321 -0
- package/dist/remote-control.test.js.map +1 -0
- package/dist/router.d.ts +8 -0
- package/dist/router.d.ts.map +1 -0
- package/dist/router.js +37 -0
- package/dist/router.js.map +1 -0
- package/dist/routing.test.d.ts +2 -0
- package/dist/routing.test.d.ts.map +1 -0
- package/dist/routing.test.js +81 -0
- package/dist/routing.test.js.map +1 -0
- package/dist/sender-allowlist.d.ts +14 -0
- package/dist/sender-allowlist.d.ts.map +1 -0
- package/dist/sender-allowlist.js +79 -0
- package/dist/sender-allowlist.js.map +1 -0
- package/dist/sender-allowlist.test.d.ts +2 -0
- package/dist/sender-allowlist.test.d.ts.map +1 -0
- package/dist/sender-allowlist.test.js +186 -0
- package/dist/sender-allowlist.test.js.map +1 -0
- package/dist/session-commands.d.ts +47 -0
- package/dist/session-commands.d.ts.map +1 -0
- package/dist/session-commands.js +102 -0
- package/dist/session-commands.js.map +1 -0
- package/dist/session-commands.test.d.ts +2 -0
- package/dist/session-commands.test.d.ts.map +1 -0
- package/dist/session-commands.test.js +190 -0
- package/dist/session-commands.test.js.map +1 -0
- package/dist/task-scheduler.d.ts +22 -0
- package/dist/task-scheduler.d.ts.map +1 -0
- package/dist/task-scheduler.js +210 -0
- package/dist/task-scheduler.js.map +1 -0
- package/dist/task-scheduler.test.d.ts +2 -0
- package/dist/task-scheduler.test.d.ts.map +1 -0
- package/dist/task-scheduler.test.js +107 -0
- package/dist/task-scheduler.test.js.map +1 -0
- package/dist/timezone.d.ts +6 -0
- package/dist/timezone.d.ts.map +1 -0
- package/dist/timezone.js +17 -0
- package/dist/timezone.js.map +1 -0
- package/dist/timezone.test.d.ts +2 -0
- package/dist/timezone.test.d.ts.map +1 -0
- package/dist/timezone.test.js +23 -0
- package/dist/timezone.test.js.map +1 -0
- package/dist/types.d.ts +78 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/docs/APPLE-CONTAINER-NETWORKING.md +90 -0
- package/docs/DEBUG_CHECKLIST.md +143 -0
- package/docs/REQUIREMENTS.md +196 -0
- package/docs/SDK_DEEP_DIVE.md +643 -0
- package/docs/SECURITY.md +122 -0
- package/docs/SPEC.md +785 -0
- package/docs/docker-sandboxes.md +359 -0
- package/docs/nanoclaw-architecture-final.md +1063 -0
- package/docs/nanorepo-architecture.md +168 -0
- package/docs/skills-as-branches.md +662 -0
- package/groups/global/CLAUDE.md +58 -0
- package/groups/main/CLAUDE.md +246 -0
- package/launchd/com.nanoclaw.plist +32 -0
- package/package.json +45 -0
- package/repo-tokens/README.md +113 -0
- package/repo-tokens/action.yml +186 -0
- package/repo-tokens/badge.svg +23 -0
- package/repo-tokens/examples/green.svg +14 -0
- package/repo-tokens/examples/red.svg +14 -0
- package/repo-tokens/examples/yellow-green.svg +14 -0
- package/repo-tokens/examples/yellow.svg +14 -0
- package/scripts/run-migrations.ts +105 -0
- package/setup/container.ts +144 -0
- package/setup/environment.test.ts +121 -0
- package/setup/environment.ts +94 -0
- package/setup/groups.ts +229 -0
- package/setup/index.ts +58 -0
- package/setup/mounts.ts +115 -0
- package/setup/platform.test.ts +120 -0
- package/setup/platform.ts +132 -0
- package/setup/register.test.ts +257 -0
- package/setup/register.ts +177 -0
- package/setup/service.test.ts +187 -0
- package/setup/service.ts +362 -0
- package/setup/status.ts +16 -0
- package/setup/verify.ts +192 -0
- package/setup.sh +161 -0
- package/src/channels/index.ts +12 -0
- package/src/channels/registry.test.ts +42 -0
- package/src/channels/registry.ts +32 -0
- package/src/channels/web.ts +1856 -0
- package/src/cli.ts +209 -0
- package/src/config.ts +73 -0
- package/src/container-runner.test.ts +210 -0
- package/src/container-runner.ts +707 -0
- package/src/container-runtime.test.ts +149 -0
- package/src/container-runtime.ts +127 -0
- package/src/credential-proxy.test.ts +192 -0
- package/src/credential-proxy.ts +125 -0
- package/src/db.test.ts +484 -0
- package/src/db.ts +803 -0
- package/src/env.ts +42 -0
- package/src/formatting.test.ts +256 -0
- package/src/group-folder.test.ts +43 -0
- package/src/group-folder.ts +44 -0
- package/src/group-queue.test.ts +484 -0
- package/src/group-queue.ts +365 -0
- package/src/index.ts +731 -0
- package/src/ipc-auth.test.ts +679 -0
- package/src/ipc.ts +461 -0
- package/src/logger.ts +16 -0
- package/src/mount-security.ts +419 -0
- package/src/remote-control.test.ts +397 -0
- package/src/remote-control.ts +224 -0
- package/src/router.ts +52 -0
- package/src/routing.test.ts +170 -0
- package/src/sender-allowlist.test.ts +216 -0
- package/src/sender-allowlist.ts +128 -0
- package/src/session-commands.test.ts +247 -0
- package/src/session-commands.ts +163 -0
- package/src/task-scheduler.test.ts +129 -0
- package/src/task-scheduler.ts +295 -0
- package/src/timezone.test.ts +29 -0
- package/src/timezone.ts +16 -0
- package/src/types.ts +107 -0
- package/tsconfig.json +20 -0
- package/vitest.config.ts +7 -0
- package/vitest.skills.config.ts +7 -0
|
@@ -0,0 +1,662 @@
|
|
|
1
|
+
# Skills as Branches
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
NanoClaw skills are distributed as git branches on the upstream repository. Applying a skill is a `git merge`. Updating core is a `git merge`. Everything is standard git.
|
|
6
|
+
|
|
7
|
+
This replaces the previous `skills-engine/` system (three-way file merging, `.nanoclaw/` state, manifest files, replay, backup/restore) with plain git operations and Claude for conflict resolution.
|
|
8
|
+
|
|
9
|
+
## How It Works
|
|
10
|
+
|
|
11
|
+
### Repository structure
|
|
12
|
+
|
|
13
|
+
The upstream repo (`qwibitai/nanoclaw`) maintains:
|
|
14
|
+
|
|
15
|
+
- `main` — core NanoClaw (no skill code)
|
|
16
|
+
- `skill/discord` — main + Discord integration
|
|
17
|
+
- `skill/telegram` — main + Telegram integration
|
|
18
|
+
- `skill/slack` — main + Slack integration
|
|
19
|
+
- `skill/gmail` — main + Gmail integration
|
|
20
|
+
- etc.
|
|
21
|
+
|
|
22
|
+
Each skill branch contains all the code changes for that skill: new files, modified source files, updated `package.json` dependencies, `.env.example` additions — everything. No manifest, no structured operations, no separate `add/` and `modify/` directories.
|
|
23
|
+
|
|
24
|
+
### Skill discovery and installation
|
|
25
|
+
|
|
26
|
+
Skills are split into two categories:
|
|
27
|
+
|
|
28
|
+
**Operational skills** (on `main`, always available):
|
|
29
|
+
- `/setup`, `/debug`, `/update-nanoclaw`, `/customize`, `/update-skills`
|
|
30
|
+
- These are instruction-only SKILL.md files — no code changes, just workflows
|
|
31
|
+
- Live in `.claude/skills/` on `main`, immediately available to every user
|
|
32
|
+
|
|
33
|
+
**Feature skills** (in marketplace, installed on demand):
|
|
34
|
+
- `/add-discord`, `/add-telegram`, `/add-slack`, `/add-gmail`, etc.
|
|
35
|
+
- Each has a SKILL.md with setup instructions and a corresponding `skill/*` branch with code
|
|
36
|
+
- Live in the marketplace repo (`qwibitai/nanoclaw-skills`)
|
|
37
|
+
|
|
38
|
+
Users never interact with the marketplace directly. The operational skills `/setup` and `/customize` handle plugin installation transparently:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
# Claude runs this behind the scenes — users don't see it
|
|
42
|
+
claude plugin install nanoclaw-skills@nanoclaw-skills --scope project
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Skills are hot-loaded after `claude plugin install` — no restart needed. This means `/setup` can install the marketplace plugin, then immediately run any feature skill, all in one session.
|
|
46
|
+
|
|
47
|
+
### Selective skill installation
|
|
48
|
+
|
|
49
|
+
`/setup` asks users what channels they want, then only offers relevant skills:
|
|
50
|
+
|
|
51
|
+
1. "Which messaging channels do you want to use?" → Discord, Telegram, Slack, WhatsApp
|
|
52
|
+
2. User picks Telegram → Claude installs the plugin and runs `/add-telegram`
|
|
53
|
+
3. After Telegram is set up: "Want to add Agent Swarm support for Telegram?" → offers `/add-telegram-swarm`
|
|
54
|
+
4. "Want to enable community skills?" → installs community marketplace plugins
|
|
55
|
+
|
|
56
|
+
Dependent skills (e.g., `telegram-swarm` depends on `telegram`) are only offered after their parent is installed. `/customize` follows the same pattern for post-setup additions.
|
|
57
|
+
|
|
58
|
+
### Marketplace configuration
|
|
59
|
+
|
|
60
|
+
NanoClaw's `.claude/settings.json` registers the official marketplace:
|
|
61
|
+
|
|
62
|
+
```json
|
|
63
|
+
{
|
|
64
|
+
"extraKnownMarketplaces": {
|
|
65
|
+
"nanoclaw-skills": {
|
|
66
|
+
"source": {
|
|
67
|
+
"source": "github",
|
|
68
|
+
"repo": "qwibitai/nanoclaw-skills"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
The marketplace repo uses Claude Code's plugin structure:
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
qwibitai/nanoclaw-skills/
|
|
79
|
+
.claude-plugin/
|
|
80
|
+
marketplace.json # Plugin catalog
|
|
81
|
+
plugins/
|
|
82
|
+
nanoclaw-skills/ # Single plugin bundling all official skills
|
|
83
|
+
.claude-plugin/
|
|
84
|
+
plugin.json # Plugin manifest
|
|
85
|
+
skills/
|
|
86
|
+
add-discord/
|
|
87
|
+
SKILL.md # Setup instructions; step 1 is "merge the branch"
|
|
88
|
+
add-telegram/
|
|
89
|
+
SKILL.md
|
|
90
|
+
add-slack/
|
|
91
|
+
SKILL.md
|
|
92
|
+
...
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Multiple skills are bundled in one plugin — installing `nanoclaw-skills` makes all feature skills available at once. Individual skills don't need separate installation.
|
|
96
|
+
|
|
97
|
+
Each SKILL.md tells Claude to merge the corresponding skill branch as step 1, then walks through interactive setup (env vars, bot creation, etc.).
|
|
98
|
+
|
|
99
|
+
### Applying a skill
|
|
100
|
+
|
|
101
|
+
User runs `/add-discord` (discovered via marketplace). Claude follows the SKILL.md:
|
|
102
|
+
|
|
103
|
+
1. `git fetch upstream skill/discord`
|
|
104
|
+
2. `git merge upstream/skill/discord`
|
|
105
|
+
3. Interactive setup (create bot, get token, configure env vars, etc.)
|
|
106
|
+
|
|
107
|
+
Or manually:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
git fetch upstream skill/discord
|
|
111
|
+
git merge upstream/skill/discord
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Applying multiple skills
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
git merge upstream/skill/discord
|
|
118
|
+
git merge upstream/skill/telegram
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Git handles the composition. If both skills modify the same lines, it's a real conflict and Claude resolves it.
|
|
122
|
+
|
|
123
|
+
### Updating core
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
git fetch upstream main
|
|
127
|
+
git merge upstream/main
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Since skill branches are kept merged-forward with main (see CI section), the user's merged-in skill changes and upstream changes have proper common ancestors.
|
|
131
|
+
|
|
132
|
+
### Checking for skill updates
|
|
133
|
+
|
|
134
|
+
Users who previously merged a skill branch can check for updates. For each `upstream/skill/*` branch, check whether the branch has commits that aren't in the user's HEAD:
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
git fetch upstream
|
|
138
|
+
for branch in $(git branch -r | grep 'upstream/skill/'); do
|
|
139
|
+
# Check if user has merged this skill at some point
|
|
140
|
+
merge_base=$(git merge-base HEAD "$branch" 2>/dev/null) || continue
|
|
141
|
+
# Check if the skill branch has new commits beyond what the user has
|
|
142
|
+
if ! git merge-base --is-ancestor "$branch" HEAD 2>/dev/null; then
|
|
143
|
+
echo "$branch has updates available"
|
|
144
|
+
fi
|
|
145
|
+
done
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
This requires no state — it uses git history to determine which skills were previously merged and whether they have new commits.
|
|
149
|
+
|
|
150
|
+
This logic is available in two ways:
|
|
151
|
+
- Built into `/update-nanoclaw` — after merging main, optionally check for skill updates
|
|
152
|
+
- Standalone `/update-skills` — check and merge skill updates independently
|
|
153
|
+
|
|
154
|
+
### Conflict resolution
|
|
155
|
+
|
|
156
|
+
At any merge step, conflicts may arise. Claude resolves them — reading the conflicted files, understanding the intent of both sides, and producing the correct result. This is what makes the branch approach viable at scale: conflict resolution that previously required human judgment is now automated.
|
|
157
|
+
|
|
158
|
+
### Skill dependencies
|
|
159
|
+
|
|
160
|
+
Some skills depend on other skills. E.g., `skill/telegram-swarm` requires `skill/telegram`. Dependent skill branches are branched from their parent skill branch, not from `main`.
|
|
161
|
+
|
|
162
|
+
This means `skill/telegram-swarm` includes all of telegram's changes plus its own additions. When a user merges `skill/telegram-swarm`, they get both — no need to merge telegram separately.
|
|
163
|
+
|
|
164
|
+
Dependencies are implicit in git history — `git merge-base --is-ancestor` determines whether one skill branch is an ancestor of another. No separate dependency file is needed.
|
|
165
|
+
|
|
166
|
+
### Uninstalling a skill
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
# Find the merge commit
|
|
170
|
+
git log --merges --oneline | grep discord
|
|
171
|
+
|
|
172
|
+
# Revert it
|
|
173
|
+
git revert -m 1 <merge-commit>
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
This creates a new commit that undoes the skill's changes. Claude can handle the whole flow.
|
|
177
|
+
|
|
178
|
+
If the user has modified the skill's code since merging (custom changes on top), the revert might conflict — Claude resolves it.
|
|
179
|
+
|
|
180
|
+
If the user later wants to re-apply the skill, they need to revert the revert first (git treats reverted changes as "already applied and undone"). Claude handles this too.
|
|
181
|
+
|
|
182
|
+
## CI: Keeping Skill Branches Current
|
|
183
|
+
|
|
184
|
+
A GitHub Action runs on every push to `main`:
|
|
185
|
+
|
|
186
|
+
1. List all `skill/*` branches
|
|
187
|
+
2. For each skill branch, merge `main` into it (merge-forward, not rebase)
|
|
188
|
+
3. Run build and tests on the merged result
|
|
189
|
+
4. If tests pass, push the updated skill branch
|
|
190
|
+
5. If a skill fails (conflict, build error, test failure), open a GitHub issue for manual resolution
|
|
191
|
+
|
|
192
|
+
**Why merge-forward instead of rebase:**
|
|
193
|
+
- No force-push — preserves history for users who already merged the skill
|
|
194
|
+
- Users can re-merge a skill branch to pick up skill updates (bug fixes, improvements)
|
|
195
|
+
- Git has proper common ancestors throughout the merge graph
|
|
196
|
+
|
|
197
|
+
**Why this scales:** With a few hundred skills and a few commits to main per day, the CI cost is trivial. Haiku is fast and cheap. The approach that wouldn't have been feasible a year or two ago is now practical because Claude can resolve conflicts at scale.
|
|
198
|
+
|
|
199
|
+
## Installation Flow
|
|
200
|
+
|
|
201
|
+
### New users (recommended)
|
|
202
|
+
|
|
203
|
+
1. Fork `qwibitai/nanoclaw` on GitHub (click the Fork button)
|
|
204
|
+
2. Clone your fork:
|
|
205
|
+
```bash
|
|
206
|
+
git clone https://github.com/<you>/nanoclaw.git
|
|
207
|
+
cd nanoclaw
|
|
208
|
+
```
|
|
209
|
+
3. Run Claude Code:
|
|
210
|
+
```bash
|
|
211
|
+
claude
|
|
212
|
+
```
|
|
213
|
+
4. Run `/setup` — Claude handles dependencies, authentication, container setup, service configuration, and adds `upstream` remote if not present
|
|
214
|
+
|
|
215
|
+
Forking is recommended because it gives users a remote to push their customizations to. Clone-only works for trying things out but provides no remote backup.
|
|
216
|
+
|
|
217
|
+
### Existing users migrating from clone
|
|
218
|
+
|
|
219
|
+
Users who previously ran `git clone https://github.com/qwibitai/nanoclaw.git` and have local customizations:
|
|
220
|
+
|
|
221
|
+
1. Fork `qwibitai/nanoclaw` on GitHub
|
|
222
|
+
2. Reroute remotes:
|
|
223
|
+
```bash
|
|
224
|
+
git remote rename origin upstream
|
|
225
|
+
git remote add origin https://github.com/<you>/nanoclaw.git
|
|
226
|
+
git push --force origin main
|
|
227
|
+
```
|
|
228
|
+
The `--force` is needed because the fresh fork's main is at upstream's latest, but the user wants their (possibly behind) version. The fork was just created so there's nothing to lose.
|
|
229
|
+
3. From this point, `origin` = their fork, `upstream` = qwibitai/nanoclaw
|
|
230
|
+
|
|
231
|
+
### Existing users migrating from the old skills engine
|
|
232
|
+
|
|
233
|
+
Users who previously applied skills via the `skills-engine/` system have skill code in their tree but no merge commits linking to skill branches. Git doesn't know these changes came from a skill, so merging a skill branch on top would conflict or duplicate.
|
|
234
|
+
|
|
235
|
+
**For new skills going forward:** just merge skill branches as normal. No issue.
|
|
236
|
+
|
|
237
|
+
**For existing old-engine skills**, two migration paths:
|
|
238
|
+
|
|
239
|
+
**Option A: Per-skill reapply (keep your fork)**
|
|
240
|
+
1. For each old-engine skill: identify and revert the old changes, then merge the skill branch fresh
|
|
241
|
+
2. Claude assists with identifying what to revert and resolving any conflicts
|
|
242
|
+
3. Custom modifications (non-skill changes) are preserved
|
|
243
|
+
|
|
244
|
+
**Option B: Fresh start (cleanest)**
|
|
245
|
+
1. Create a new fork from upstream
|
|
246
|
+
2. Merge the skill branches you want
|
|
247
|
+
3. Manually re-apply your custom (non-skill) changes
|
|
248
|
+
4. Claude assists by diffing your old fork against the new one to identify custom changes
|
|
249
|
+
|
|
250
|
+
In both cases:
|
|
251
|
+
- Delete the `.nanoclaw/` directory (no longer needed)
|
|
252
|
+
- The `skills-engine/` code will be removed from upstream once all skills are migrated
|
|
253
|
+
- `/update-skills` only tracks skills applied via branch merge — old-engine skills won't appear in update checks
|
|
254
|
+
|
|
255
|
+
## User Workflows
|
|
256
|
+
|
|
257
|
+
### Custom changes
|
|
258
|
+
|
|
259
|
+
Users make custom changes directly on their main branch. This is the standard fork workflow — their `main` IS their customized version.
|
|
260
|
+
|
|
261
|
+
```bash
|
|
262
|
+
# Make changes
|
|
263
|
+
vim src/config.ts
|
|
264
|
+
git commit -am "change trigger word to @Bob"
|
|
265
|
+
git push origin main
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
Custom changes, skills, and core updates all coexist on their main branch. Git handles the three-way merging at each merge step because it can trace common ancestors through the merge history.
|
|
269
|
+
|
|
270
|
+
### Applying a skill
|
|
271
|
+
|
|
272
|
+
Run `/add-discord` in Claude Code (discovered via the marketplace plugin), or manually:
|
|
273
|
+
|
|
274
|
+
```bash
|
|
275
|
+
git fetch upstream skill/discord
|
|
276
|
+
git merge upstream/skill/discord
|
|
277
|
+
# Follow setup instructions for configuration
|
|
278
|
+
git push origin main
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
If the user is behind upstream's main when they merge a skill branch, the merge might bring in some core changes too (since skill branches are merged-forward with main). This is generally fine — they get a compatible version of everything.
|
|
282
|
+
|
|
283
|
+
### Updating core
|
|
284
|
+
|
|
285
|
+
```bash
|
|
286
|
+
git fetch upstream main
|
|
287
|
+
git merge upstream/main
|
|
288
|
+
git push origin main
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
This is the same as the existing `/update-nanoclaw` skill's merge path.
|
|
292
|
+
|
|
293
|
+
### Updating skills
|
|
294
|
+
|
|
295
|
+
Run `/update-skills` or let `/update-nanoclaw` check after a core update. For each previously-merged skill branch that has new commits, Claude offers to merge the updates.
|
|
296
|
+
|
|
297
|
+
### Contributing back to upstream
|
|
298
|
+
|
|
299
|
+
Users who want to submit a PR to upstream:
|
|
300
|
+
|
|
301
|
+
```bash
|
|
302
|
+
git fetch upstream main
|
|
303
|
+
git checkout -b my-fix upstream/main
|
|
304
|
+
# Make changes
|
|
305
|
+
git push origin my-fix
|
|
306
|
+
# Create PR from my-fix to qwibitai/nanoclaw:main
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
Standard fork contribution workflow. Their custom changes stay on their main and don't leak into the PR.
|
|
310
|
+
|
|
311
|
+
## Contributing a Skill
|
|
312
|
+
|
|
313
|
+
### Contributor flow
|
|
314
|
+
|
|
315
|
+
1. Fork `qwibitai/nanoclaw`
|
|
316
|
+
2. Branch from `main`
|
|
317
|
+
3. Make the code changes (new channel file, modified integration points, updated package.json, .env.example additions, etc.)
|
|
318
|
+
4. Open a PR to `main`
|
|
319
|
+
|
|
320
|
+
The contributor opens a normal PR — they don't need to know about skill branches or marketplace repos. They just make code changes and submit.
|
|
321
|
+
|
|
322
|
+
### Maintainer flow
|
|
323
|
+
|
|
324
|
+
When a skill PR is reviewed and approved:
|
|
325
|
+
|
|
326
|
+
1. Create a `skill/<name>` branch from the PR's commits:
|
|
327
|
+
```bash
|
|
328
|
+
git fetch origin pull/<PR_NUMBER>/head:skill/<name>
|
|
329
|
+
git push origin skill/<name>
|
|
330
|
+
```
|
|
331
|
+
2. Force-push to the contributor's PR branch, replacing it with a single commit that adds the contributor to `CONTRIBUTORS.md` (removing all code changes)
|
|
332
|
+
3. Merge the slimmed PR into `main` (just the contributor addition)
|
|
333
|
+
4. Add the skill's SKILL.md to the marketplace repo (`qwibitai/nanoclaw-skills`)
|
|
334
|
+
|
|
335
|
+
This way:
|
|
336
|
+
- The contributor gets merge credit (their PR is merged)
|
|
337
|
+
- They're added to CONTRIBUTORS.md automatically by the maintainer
|
|
338
|
+
- The skill branch is created from their work
|
|
339
|
+
- `main` stays clean (no skill code)
|
|
340
|
+
- The contributor only had to do one thing: open a PR with code changes
|
|
341
|
+
|
|
342
|
+
**Note:** GitHub PRs from forks have "Allow edits from maintainers" checked by default, so the maintainer can push to the contributor's PR branch.
|
|
343
|
+
|
|
344
|
+
### Skill SKILL.md
|
|
345
|
+
|
|
346
|
+
The contributor can optionally provide a SKILL.md (either in the PR or separately). This goes into the marketplace repo and contains:
|
|
347
|
+
|
|
348
|
+
1. Frontmatter (name, description, triggers)
|
|
349
|
+
2. Step 1: Merge the skill branch
|
|
350
|
+
3. Steps 2-N: Interactive setup (create bot, get token, configure env vars, verify)
|
|
351
|
+
|
|
352
|
+
If the contributor doesn't provide a SKILL.md, the maintainer writes one based on the PR.
|
|
353
|
+
|
|
354
|
+
## Community Marketplaces
|
|
355
|
+
|
|
356
|
+
Anyone can maintain their own fork with skill branches and their own marketplace repo. This enables a community-driven skill ecosystem without requiring write access to the upstream repo.
|
|
357
|
+
|
|
358
|
+
### How it works
|
|
359
|
+
|
|
360
|
+
A community contributor:
|
|
361
|
+
|
|
362
|
+
1. Maintains a fork of NanoClaw (e.g., `alice/nanoclaw`)
|
|
363
|
+
2. Creates `skill/*` branches on their fork with their custom skills
|
|
364
|
+
3. Creates a marketplace repo (e.g., `alice/nanoclaw-skills`) with a `.claude-plugin/marketplace.json` and plugin structure
|
|
365
|
+
|
|
366
|
+
### Adding a community marketplace
|
|
367
|
+
|
|
368
|
+
If the community contributor is trusted, they can open a PR to add their marketplace to NanoClaw's `.claude/settings.json`:
|
|
369
|
+
|
|
370
|
+
```json
|
|
371
|
+
{
|
|
372
|
+
"extraKnownMarketplaces": {
|
|
373
|
+
"nanoclaw-skills": {
|
|
374
|
+
"source": {
|
|
375
|
+
"source": "github",
|
|
376
|
+
"repo": "qwibitai/nanoclaw-skills"
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
"alice-nanoclaw-skills": {
|
|
380
|
+
"source": {
|
|
381
|
+
"source": "github",
|
|
382
|
+
"repo": "alice/nanoclaw-skills"
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
Once merged, all NanoClaw users automatically discover the community marketplace alongside the official one.
|
|
390
|
+
|
|
391
|
+
### Installing community skills
|
|
392
|
+
|
|
393
|
+
`/setup` and `/customize` ask users whether they want to enable community skills. If yes, Claude installs community marketplace plugins via `claude plugin install`:
|
|
394
|
+
|
|
395
|
+
```bash
|
|
396
|
+
claude plugin install alice-skills@alice-nanoclaw-skills --scope project
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
Community skills are hot-loaded and immediately available — no restart needed. Dependent skills are only offered after their prerequisites are met (e.g., community Telegram add-ons only after Telegram is installed).
|
|
400
|
+
|
|
401
|
+
Users can also browse and install community plugins manually via `/plugin`.
|
|
402
|
+
|
|
403
|
+
### Properties of this system
|
|
404
|
+
|
|
405
|
+
- **No gatekeeping required.** Anyone can create skills on their fork without permission. They only need approval to be listed in the auto-discovered marketplaces.
|
|
406
|
+
- **Multiple marketplaces coexist.** Users see skills from all trusted marketplaces in `/plugin`.
|
|
407
|
+
- **Community skills use the same merge pattern.** The SKILL.md just points to a different remote:
|
|
408
|
+
```bash
|
|
409
|
+
git remote add alice https://github.com/alice/nanoclaw.git
|
|
410
|
+
git fetch alice skill/my-cool-feature
|
|
411
|
+
git merge alice/skill/my-cool-feature
|
|
412
|
+
```
|
|
413
|
+
- **Users can also add marketplaces manually.** Even without being listed in settings.json, users can run `/plugin marketplace add alice/nanoclaw-skills` to discover skills from any source.
|
|
414
|
+
- **CI is per-fork.** Each community maintainer runs their own CI to keep their skill branches merged-forward. They can use the same GitHub Action as the upstream repo.
|
|
415
|
+
|
|
416
|
+
## Flavors
|
|
417
|
+
|
|
418
|
+
A flavor is a curated fork of NanoClaw — a combination of skills, custom changes, and configuration tailored for a specific use case (e.g., "NanoClaw for Sales," "NanoClaw Minimal," "NanoClaw for Developers").
|
|
419
|
+
|
|
420
|
+
### Creating a flavor
|
|
421
|
+
|
|
422
|
+
1. Fork `qwibitai/nanoclaw`
|
|
423
|
+
2. Merge in the skills you want
|
|
424
|
+
3. Make custom changes (trigger word, prompts, integrations, etc.)
|
|
425
|
+
4. Your fork's `main` IS the flavor
|
|
426
|
+
|
|
427
|
+
### Installing a flavor
|
|
428
|
+
|
|
429
|
+
During `/setup`, users are offered a choice of flavors before any configuration happens. The setup skill reads `flavors.yaml` from the repo (shipped with upstream, always up to date) and presents options:
|
|
430
|
+
|
|
431
|
+
AskUserQuestion: "Start with a flavor or default NanoClaw?"
|
|
432
|
+
- Default NanoClaw
|
|
433
|
+
- NanoClaw for Sales — Gmail + Slack + CRM (maintained by alice)
|
|
434
|
+
- NanoClaw Minimal — Telegram-only, lightweight (maintained by bob)
|
|
435
|
+
|
|
436
|
+
If a flavor is chosen:
|
|
437
|
+
|
|
438
|
+
```bash
|
|
439
|
+
git remote add <flavor-name> https://github.com/alice/nanoclaw.git
|
|
440
|
+
git fetch <flavor-name> main
|
|
441
|
+
git merge <flavor-name>/main
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
Then setup continues normally (dependencies, auth, container, service).
|
|
445
|
+
|
|
446
|
+
**This choice is only offered on a fresh fork** — when the user's main matches or is close to upstream's main with no local commits. If `/setup` detects significant local changes (re-running setup on an existing install), it skips the flavor selection and goes straight to configuration.
|
|
447
|
+
|
|
448
|
+
After installation, the user's fork has three remotes:
|
|
449
|
+
- `origin` — their fork (push customizations here)
|
|
450
|
+
- `upstream` — `qwibitai/nanoclaw` (core updates)
|
|
451
|
+
- `<flavor-name>` — the flavor fork (flavor updates)
|
|
452
|
+
|
|
453
|
+
### Updating a flavor
|
|
454
|
+
|
|
455
|
+
```bash
|
|
456
|
+
git fetch <flavor-name> main
|
|
457
|
+
git merge <flavor-name>/main
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
The flavor maintainer keeps their fork updated (merging upstream, updating skills). Users pull flavor updates the same way they pull core updates.
|
|
461
|
+
|
|
462
|
+
### Flavors registry
|
|
463
|
+
|
|
464
|
+
`flavors.yaml` lives in the upstream repo:
|
|
465
|
+
|
|
466
|
+
```yaml
|
|
467
|
+
flavors:
|
|
468
|
+
- name: NanoClaw for Sales
|
|
469
|
+
repo: alice/nanoclaw
|
|
470
|
+
description: Gmail + Slack + CRM integration, daily pipeline summaries
|
|
471
|
+
maintainer: alice
|
|
472
|
+
|
|
473
|
+
- name: NanoClaw Minimal
|
|
474
|
+
repo: bob/nanoclaw
|
|
475
|
+
description: Telegram-only, no container overhead
|
|
476
|
+
maintainer: bob
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
Anyone can PR to add their flavor. The file is available locally when `/setup` runs since it's part of the cloned repo.
|
|
480
|
+
|
|
481
|
+
### Discoverability
|
|
482
|
+
|
|
483
|
+
- **During setup** — flavor selection is offered as part of the initial setup flow
|
|
484
|
+
- **`/browse-flavors` skill** — reads `flavors.yaml` and presents options at any time
|
|
485
|
+
- **GitHub topics** — flavor forks can tag themselves with `nanoclaw-flavor` for searchability
|
|
486
|
+
- **Discord / website** — community-curated lists
|
|
487
|
+
|
|
488
|
+
## Migration
|
|
489
|
+
|
|
490
|
+
Migration from the old skills engine to branches is complete. All feature skills now live on `skill/*` branches, and the skills engine has been removed.
|
|
491
|
+
|
|
492
|
+
### Skill branches
|
|
493
|
+
|
|
494
|
+
| Branch | Base | Description |
|
|
495
|
+
|--------|------|-------------|
|
|
496
|
+
| `skill/whatsapp` | `main` | WhatsApp channel |
|
|
497
|
+
| `skill/telegram` | `main` | Telegram channel |
|
|
498
|
+
| `skill/slack` | `main` | Slack channel |
|
|
499
|
+
| `skill/discord` | `main` | Discord channel |
|
|
500
|
+
| `skill/gmail` | `main` | Gmail channel |
|
|
501
|
+
| `skill/voice-transcription` | `skill/whatsapp` | OpenAI Whisper voice transcription |
|
|
502
|
+
| `skill/image-vision` | `skill/whatsapp` | Image attachment processing |
|
|
503
|
+
| `skill/pdf-reader` | `skill/whatsapp` | PDF attachment reading |
|
|
504
|
+
| `skill/local-whisper` | `skill/voice-transcription` | Local whisper.cpp transcription |
|
|
505
|
+
| `skill/ollama-tool` | `main` | Ollama MCP server for local models |
|
|
506
|
+
| `skill/apple-container` | `main` | Apple Container runtime |
|
|
507
|
+
| `skill/reactions` | `main` | WhatsApp emoji reactions |
|
|
508
|
+
|
|
509
|
+
### What was removed
|
|
510
|
+
|
|
511
|
+
- `skills-engine/` directory (entire engine)
|
|
512
|
+
- `scripts/apply-skill.ts`, `scripts/uninstall-skill.ts`, `scripts/rebase.ts`
|
|
513
|
+
- `scripts/fix-skill-drift.ts`, `scripts/validate-all-skills.ts`
|
|
514
|
+
- `.github/workflows/skill-drift.yml`, `.github/workflows/skill-pr.yml`
|
|
515
|
+
- All `add/`, `modify/`, `tests/`, and `manifest.yaml` from skill directories
|
|
516
|
+
- `.nanoclaw/` state directory
|
|
517
|
+
|
|
518
|
+
Operational skills (`setup`, `debug`, `update-nanoclaw`, `customize`, `update-skills`) remain on main in `.claude/skills/`.
|
|
519
|
+
|
|
520
|
+
## What Changes
|
|
521
|
+
|
|
522
|
+
### README Quick Start
|
|
523
|
+
|
|
524
|
+
Before:
|
|
525
|
+
```bash
|
|
526
|
+
git clone https://github.com/qwibitai/NanoClaw.git
|
|
527
|
+
cd NanoClaw
|
|
528
|
+
claude
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
After:
|
|
532
|
+
```
|
|
533
|
+
1. Fork qwibitai/nanoclaw on GitHub
|
|
534
|
+
2. git clone https://github.com/<you>/nanoclaw.git
|
|
535
|
+
3. cd nanoclaw
|
|
536
|
+
4. claude
|
|
537
|
+
5. /setup
|
|
538
|
+
```
|
|
539
|
+
|
|
540
|
+
### Setup skill (`/setup`)
|
|
541
|
+
|
|
542
|
+
Updates to the setup flow:
|
|
543
|
+
|
|
544
|
+
- Check if `upstream` remote exists; if not, add it: `git remote add upstream https://github.com/qwibitai/nanoclaw.git`
|
|
545
|
+
- Check if `origin` points to the user's fork (not qwibitai). If it points to qwibitai, guide them through the fork migration.
|
|
546
|
+
- **Install marketplace plugin:** `claude plugin install nanoclaw-skills@nanoclaw-skills --scope project` — makes all feature skills available (hot-loaded, no restart)
|
|
547
|
+
- **Ask which channels to add:** present channel options (Discord, Telegram, Slack, WhatsApp, Gmail), run corresponding `/add-*` skills for selected channels
|
|
548
|
+
- **Offer dependent skills:** after a channel is set up, offer relevant add-ons (e.g., Agent Swarm after Telegram, voice transcription after WhatsApp)
|
|
549
|
+
- **Optionally enable community marketplaces:** ask if the user wants community skills, install those marketplace plugins too
|
|
550
|
+
|
|
551
|
+
### `.claude/settings.json`
|
|
552
|
+
|
|
553
|
+
Marketplace configuration so the official marketplace is auto-registered:
|
|
554
|
+
|
|
555
|
+
```json
|
|
556
|
+
{
|
|
557
|
+
"extraKnownMarketplaces": {
|
|
558
|
+
"nanoclaw-skills": {
|
|
559
|
+
"source": {
|
|
560
|
+
"source": "github",
|
|
561
|
+
"repo": "qwibitai/nanoclaw-skills"
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
```
|
|
567
|
+
|
|
568
|
+
### Skills directory on main
|
|
569
|
+
|
|
570
|
+
The `.claude/skills/` directory on `main` retains only operational skills (setup, debug, update-nanoclaw, customize, update-skills). Feature skills (add-discord, add-telegram, etc.) live in the marketplace repo, installed via `claude plugin install` during `/setup` or `/customize`.
|
|
571
|
+
|
|
572
|
+
### Skills engine removal
|
|
573
|
+
|
|
574
|
+
The following can be removed:
|
|
575
|
+
|
|
576
|
+
- `skills-engine/` — entire directory (apply, merge, replay, state, backup, etc.)
|
|
577
|
+
- `scripts/apply-skill.ts`
|
|
578
|
+
- `scripts/uninstall-skill.ts`
|
|
579
|
+
- `scripts/fix-skill-drift.ts`
|
|
580
|
+
- `scripts/validate-all-skills.ts`
|
|
581
|
+
- `.nanoclaw/` — state directory
|
|
582
|
+
- `add/` and `modify/` subdirectories from all skill directories
|
|
583
|
+
- Feature skill SKILL.md files from `.claude/skills/` on main (they now live in the marketplace)
|
|
584
|
+
|
|
585
|
+
Operational skills (`setup`, `debug`, `update-nanoclaw`, `customize`, `update-skills`) remain on main in `.claude/skills/`.
|
|
586
|
+
|
|
587
|
+
### New infrastructure
|
|
588
|
+
|
|
589
|
+
- **Marketplace repo** (`qwibitai/nanoclaw-skills`) — single Claude Code plugin bundling SKILL.md files for all feature skills
|
|
590
|
+
- **CI GitHub Action** — merge-forward `main` into all `skill/*` branches on every push to `main`, using Claude (Haiku) for conflict resolution
|
|
591
|
+
- **`/update-skills` skill** — checks for and applies skill branch updates using git history
|
|
592
|
+
- **`CONTRIBUTORS.md`** — tracks skill contributors
|
|
593
|
+
|
|
594
|
+
### Update skill (`/update-nanoclaw`)
|
|
595
|
+
|
|
596
|
+
The update skill gets simpler with the branch-based approach. The old skills engine required replaying all applied skills after merging core updates — that entire step disappears. Skill changes are already in the user's git history, so `git merge upstream/main` just works.
|
|
597
|
+
|
|
598
|
+
**What stays the same:**
|
|
599
|
+
- Preflight (clean working tree, upstream remote)
|
|
600
|
+
- Backup branch + tag
|
|
601
|
+
- Preview (git log, git diff, file buckets)
|
|
602
|
+
- Merge/cherry-pick/rebase options
|
|
603
|
+
- Conflict preview (dry-run merge)
|
|
604
|
+
- Conflict resolution
|
|
605
|
+
- Build + test validation
|
|
606
|
+
- Rollback instructions
|
|
607
|
+
|
|
608
|
+
**What's removed:**
|
|
609
|
+
- Skill replay step (was needed by the old skills engine to re-apply skills after core update)
|
|
610
|
+
- Re-running structured operations (npm deps, env vars — these are part of git history now)
|
|
611
|
+
|
|
612
|
+
**What's added:**
|
|
613
|
+
- Optional step at the end: "Check for skill updates?" which runs the `/update-skills` logic
|
|
614
|
+
- This checks whether any previously-merged skill branches have new commits (bug fixes, improvements to the skill itself — not just merge-forwards from main)
|
|
615
|
+
|
|
616
|
+
**Why users don't need to re-merge skills after a core update:**
|
|
617
|
+
When the user merged a skill branch, those changes became part of their git history. When they later merge `upstream/main`, git performs a normal three-way merge — the skill changes in their tree are untouched, and only core changes are brought in. The merge-forward CI ensures skill branches stay compatible with latest main, but that's for new users applying the skill fresh. Existing users who already merged the skill don't need to do anything.
|
|
618
|
+
|
|
619
|
+
Users only need to re-merge a skill branch if the skill itself was updated (not just merged-forward with main). The `/update-skills` check detects this.
|
|
620
|
+
|
|
621
|
+
## Discord Announcement
|
|
622
|
+
|
|
623
|
+
### For existing users
|
|
624
|
+
|
|
625
|
+
> **Skills are now git branches**
|
|
626
|
+
>
|
|
627
|
+
> We've simplified how skills work in NanoClaw. Instead of a custom skills engine, skills are now git branches that you merge in.
|
|
628
|
+
>
|
|
629
|
+
> **What this means for you:**
|
|
630
|
+
> - Applying a skill: `git fetch upstream skill/discord && git merge upstream/skill/discord`
|
|
631
|
+
> - Updating core: `git fetch upstream main && git merge upstream/main`
|
|
632
|
+
> - Checking for skill updates: `/update-skills`
|
|
633
|
+
> - No more `.nanoclaw/` state directory or skills engine
|
|
634
|
+
>
|
|
635
|
+
> **We now recommend forking instead of cloning.** This gives you a remote to push your customizations to.
|
|
636
|
+
>
|
|
637
|
+
> **If you currently have a clone with local changes**, migrate to a fork:
|
|
638
|
+
> 1. Fork `qwibitai/nanoclaw` on GitHub
|
|
639
|
+
> 2. Run:
|
|
640
|
+
> ```
|
|
641
|
+
> git remote rename origin upstream
|
|
642
|
+
> git remote add origin https://github.com/<you>/nanoclaw.git
|
|
643
|
+
> git push --force origin main
|
|
644
|
+
> ```
|
|
645
|
+
> This works even if you're way behind — just push your current state.
|
|
646
|
+
>
|
|
647
|
+
> **If you previously applied skills via the old system**, your code changes are already in your working tree — nothing to redo. You can delete the `.nanoclaw/` directory. Future skills and updates use the branch-based approach.
|
|
648
|
+
>
|
|
649
|
+
> **Discovering skills:** Skills are now available through Claude Code's plugin marketplace. Run `/plugin` in Claude Code to browse and install available skills.
|
|
650
|
+
|
|
651
|
+
### For skill contributors
|
|
652
|
+
|
|
653
|
+
> **Contributing skills**
|
|
654
|
+
>
|
|
655
|
+
> To contribute a skill:
|
|
656
|
+
> 1. Fork `qwibitai/nanoclaw`
|
|
657
|
+
> 2. Branch from `main` and make your code changes
|
|
658
|
+
> 3. Open a regular PR
|
|
659
|
+
>
|
|
660
|
+
> That's it. We'll create a `skill/<name>` branch from your PR, add you to CONTRIBUTORS.md, and add the SKILL.md to the marketplace. CI automatically keeps skill branches merged-forward with `main` using Claude to resolve any conflicts.
|
|
661
|
+
>
|
|
662
|
+
> **Want to run your own skill marketplace?** Maintain skill branches on your fork and create a marketplace repo. Open a PR to add it to NanoClaw's auto-discovered marketplaces — or users can add it manually via `/plugin marketplace add`.
|