[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69A5M2EQN3WHWSMVJY9F572":3,"skill-same:01M69A5M2EQN3WHWSMVJY9F572":93},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":17,"ownerHtmlUrl":43,"ownerBlogUrl":44,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M69A5M2EQN3WHWSMVJY9F572","migrate-nanoclaw","NanoClaw 定制项迁移升级","Extracts user customizations from a fork, generates a replayable migration guide, and upgrades to upstream by reapplying customizations on a clean base. Replaces merge-based upgrades with intent-based migration.","从 fork（分支）中提取用户的自定义内容，生成可重放的迁移指南，并在干净的基础版本上重新应用这些自定义内容以升级到上游版本。用基于意图的迁移取代基于合并的升级。","microsoft\u002Famplifier-app-nanoclaw","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69A31J3GTKVZDZZVPRQWWR5",5,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-app-nanoclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmigrate-nanoclaw\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理","SCENARIO","使用场景",[31,32],"migrate nanoclaw","merge","2026-11-10 10:12:30",false,"---\nname: migrate-nanoclaw\ndescription: Extracts user customizations from a fork, generates a replayable migration guide, and upgrades to upstream by reapplying customizations on a clean base. Replaces merge-based upgrades with intent-based migration.\n---\n\n# Context\n\nNanoClaw users fork the repo and customize it — changing config values, editing source files, modifying personas, adding skills. When upstream ships updates or refactors, `git merge` produces painful conflicts because the same core files were changed on both sides.\n\nThis skill extracts the user's customizations into a migration guide — capturing both the intent (what they want) and the implementation details (how they did it, with code snippets, API calls, and specific configurations). On upgrade, it checks out clean upstream in a worktree, then reapplies customizations using the guide. No merge conflicts because there's nothing to merge.\n\nThe migration guide is markdown, not structured data. It needs to capture the full range of what a user might customize, with enough implementation detail that a fresh Claude session can reapply it without having seen the original code. Standard changes (config values, simple logic) can be described briefly. Non-standard changes (specific APIs, custom integrations, unusual patterns) need code snippets and precise instructions.\n\nTwo phases: **Extract** (build the migration guide) and **Upgrade** (use it). If a guide already exists, offer to skip to Upgrade.\n\n# Principles\n\n- Never proceed with a dirty working tree.\n- Always create a rollback point (backup branch + tag) before touching anything.\n- The migration guide is the source of truth, not diffs.\n- Use a worktree to validate before affecting the live install.\n- Data directories (`groups\u002F`, `store\u002F`, `data\u002F`, `.env`) are never touched — only code.\n- Be helpful: offer to do things (stash, commit, stop services) rather than telling the user to do them.\n- **Use sub-agents for exploration.** Spawn haiku sub-agents to explore the codebase, trace skill merges, diff files, and identify customizations. This keeps the main context focused on the user conversation and decision-making.\n- **Always use absolute paths in worktrees.** The Bash tool resets the working directory between calls. Never use relative `cd .upgrade-worktree` — always use the full absolute path: `cd \u002Fabsolute\u002Fpath\u002F.upgrade-worktree && \u003Ccommand>`. Store the worktree absolute path in a variable at creation time and reference it throughout.\n- **Balance exploration and asking.** Don't bombard the user with questions when you can figure things out from the code. Don't burn endless tokens exploring when the user could clarify in one sentence. Use sub-agents to explore first, then ask the user targeted questions about things that are ambiguous or where intent isn't clear from the code alone.\n- **Scale effort to complexity.** Not every migration needs the full process. Assess the scope early and take the lightest path that fits.\n\n---\n\n# Phase 1: Extract\n\n## 1.0 Preflight\n\nRun `git status --porcelain`. If non-empty, offer to stash or commit for them (AskUserQuestion: \"Stash changes\" \u002F \"Commit changes\" \u002F \"I'll handle it\"). If they want to commit, stage and commit with a descriptive message. If they want to stash, run `git stash push -m \"pre-migration stash\"`.\n\nCheck remotes with `git remote -v`. If `upstream` is missing, ask for the URL (default: `https:\u002F\u002Fgithub.com\u002Fnanocoai\u002Fnanoclaw.git`), add it, then `git fetch upstream --prune`.\n\nDetect upstream branch: check `git branch -r | grep upstream\u002F` for `main` or `master`. Store as UPSTREAM_BRANCH.\n\n## 1.1 Assess scope and determine path\n\nQuickly assess the scale of divergence, check for an existing guide, and determine the right approach — all before asking the user anything.\n\n```bash\nBASE=$(git merge-base HEAD upstream\u002F$UPSTREAM_BRANCH)\n# Divergence stats\ngit rev-list --count $BASE..upstream\u002F$UPSTREAM_BRANCH  # upstream commits\ngit rev-list --count $BASE..HEAD                       # user commits\ngit diff --name-only $BASE..HEAD | wc -l               # user changed files\ngit diff --stat $BASE..HEAD | tail -1                   # insertions\u002Fdeletions\ngit diff --name-only $BASE..upstream\u002F$UPSTREAM_BRANCH | wc -l  # upstream changed files\n```\n\nCheck for existing guide: `.nanoclaw-migrations\u002Fguide.md` or `.nanoclaw-migrations\u002Findex.md`.\n\n**Determine the tier based on the total diff from base:**\n\n### Tier 1: Lightweight — suggest `\u002Fupdate-nanoclaw` instead\n\nConditions (any of):\n- Very few upstream changes (\u003C ~5 commits) AND few user changes (\u003C ~3 changed files)\n- User recently updated\u002Fmigrated (merge-base is close to upstream HEAD)\n\nTell the user the scope is small and suggest `\u002Fupdate-nanoclaw` might be simpler. Let them choose.\n\n### Tier 2: Standard\n\nConditions:\n- Moderate total diff (3-15 changed files, no large number of new files)\n- Manageable scope that fits in a single guide file\n\n### Tier 3: Complex\n\nConditions (any of):\n- Many new files added (indicates many skills applied) — discount files that come purely from skill merges when assessing complexity; a fork with 3 skills and no other changes is simpler than it looks by file count alone\n- Deep source changes to core files (`src\u002Findex.ts`, `src\u002Fcontainer-runner.ts`, etc.) beyond what skills introduced\n- Lots of insertions\u002Fdeletions in user-authored code (not skill-merged code)\n- Many skills applied (3+) AND the user confirms or sub-agents find customizations on top of them\n\nUse the full process: multiple sub-agents in parallel, directory-based guide, migration plan.\n\n**Now combine the scope assessment with initial user input in one interaction.** Present the scope summary (how many commits, files, which tier) and ask (AskUserQuestion):\n\nFor Tier 1:\n- **Use \u002Fupdate-nanoclaw** — simpler merge-based approach\n- **Proceed with full migration** — continue\n\nFor Tier 2\u002F3 (with or without existing guide):\n- If guide exists and is current: **Skip to upgrade** \u002F **Update guide** (add new changes) \u002F **Re-extract from scratch**\n- If guide exists but is stale: **Update guide** (recommended) \u002F **Re-extract from scratch** \u002F **Skip to upgrade anyway**\n- If no guide: **Yes, let me describe my customizations first** \u002F **Just figure it out** \u002F **A bit of both**\n\nThis single interaction replaces what were previously separate steps for scope assessment, user input, and existing guide check.\n\n## 1.2 Update existing guide (if applicable)\n\nIf the user chose to update an existing guide rather than re-extract:\n\n1. Read the existing guide\n2. Find commits made since the guide was generated (compare guide's recorded base hash against current HEAD)\n3. Spawn a haiku sub-agent to analyze only the new changes:\n   > Diff HEAD against `\u003Cguide-recorded-hash>`. For each changed file, summarize what changed and why.\n4. Present the new changes to the user for confirmation\n5. Append new customizations to the existing guide, update the header hashes\n6. Skip to Phase 2\n\n## 1.3 Explore the codebase\n\nSpawn a haiku sub-agent (Agent tool, model: haiku) for initial exploration:\n\n> Explore this NanoClaw fork to identify all changes from the upstream base. Run these commands and report back:\n>\n> 1. `git diff --name-only $BASE..HEAD` — all changed files\n> 2. `git log --oneline $BASE..HEAD` — all commits (look for skill branch merges like `Merge branch 'skill\u002F*'`)\n> 3. `git branch -r --list 'upstream\u002Fskill\u002F*'` — available upstream skill branches\n> 4. `ls .claude\u002Fskills\u002F` — installed skills\n> 5. For each skill merge found, record the merge commit hash\n>\n> Report: (a) list of applied skills with their merge commit hashes, (b) list of all changed files, (c) any custom skill directories that don't match upstream branches.\n\nFrom the sub-agent results, identify:\n- **Which files came purely from skill merges** — these will be reapplied by re-merging skill branches in Phase 2\n- **Everything else** — all remaining changes are customizations to analyze (whether they're on skill-touched files or not)\n\nDon't try to distinguish \"user modified a skill file\" from \"user made their own change\" at this stage. The sub-agents in 1.4 will look at all non-skill changes together and surface what matters.\n\n## 1.4 Analyze customizations\n\nFor each applied skill, ask the user in a single batched question (AskUserQuestion, multiSelect):\n\n> \"I found these applied skills. Select any you customized further after applying:\"\n\nOptions: one per skill, plus \"None — all used as-is\".\n\nThen spawn sub-agents to analyze all non-skill changes. For Tier 2, one or two agents. For Tier 3, run in parallel by area:\n\n- **Config + build files** — one sub-agent\n- **Source files** (`src\u002F*.ts`) — one sub-agent\n- **Skills the user flagged as modified** (or all of them for Tier 3) — one sub-agent per skill, comparing the user's current files against the skill merge commit version:\n  ```\n  git diff \u003Cmerge-commit-hash>..HEAD -- \u003Cfiles-touched-by-skill>\n  ```\n- **Container files** — one sub-agent (if changes exist)\n\nEach sub-agent task:\n\n> Read these diffs and the current file contents. For each change:\n> 1. `git diff $BASE..HEAD -- \u003Cfile>` (or `git diff \u003Cskill-merge-hash>..HEAD -- \u003Cfile>` for skill-modified files)\n> 2. Read the full current file for context\n> 3. Summarize: what changed, what the likely intent is\n> 4. Assess detail level: could a fresh Claude session reproduce this from intent alone, or does it need specific code snippets, API details, import paths?\n> 5. For non-standard changes, extract the key code, imports, API calls, and configurations verbatim.\n\n**Inter-skill conflicts:** If multiple skills are applied, spawn an additional sub-agent to check for interactions between them. Look for:\n- Duplicate declarations (same variable\u002Fconstant defined by two skill branches)\n- Conflicting approaches (one skill throws on missing env var, another provides a fallback)\n- Shared files modified by multiple skills\n\nDocument any findings in the \"Skill Interactions\" section of the migration guide so they can be resolved after skill branches are re-merged during upgrade.\n\n## 1.5 Confirm with user\n\nAfter sub-agents report back, compile the findings and present to the user.\n\nFor customizations where the intent is clear (config values, simple modifications): present as a batch for confirmation. Use AskUserQuestion with multiSelect to let the user flag any entries that need correction.\n\nFor customizations where the intent is ambiguous: ask specific questions. Don't ask \"what did you do?\" — instead ask \"I see you added X in this file. Was this for Y or something else?\"\n\nThe user can select \"Other\" on any question to provide their own description.\n\n## 1.6 Migration plan (Tier 3 only)\n\nFor complex migrations, before writing the guide, create a migration plan:\n\n- **Order of operations**: which customizations depend on others, which skills must be applied first\n- **Staging**: whether the migration should happen in stages (e.g. apply skills first, validate, then apply source customizations)\n- **Risk areas**: customizations that touch files heavily changed by upstream — these may need manual review\n- **Interactions**: customizations that interact with each other (e.g. a source change that depends on a skill, or two customizations that touch the same file)\n\nPresent the plan to the user for review before proceeding to the guide.\n\n## 1.7 Write the migration guide\n\n**Storage:** `.nanoclaw-migrations\u002Fguide.md` for Tier 2. `.nanoclaw-migrations\u002F` directory with `index.md` and section files for Tier 3.\n\n**Verification:** After writing the guide, read it back and verify:\n- Every referenced file path exists in the current codebase\n- Code snippets match what's actually in the files\n- No customizations from the analysis were accidentally omitted\n\nThe guide is structured markdown that a fresh Claude session can follow to reproduce this user's exact setup on a clean upstream checkout.\n\nStructure:\n\n```markdown\n# NanoClaw Migration Guide\n\nGenerated: \u003Ctimestamp>\nBase: \u003CBASE hash>\nHEAD at generation: \u003CHEAD hash>\nUpstream: \u003Cupstream HEAD hash>\n\n## Migration Plan\n\n(Tier 3 only — big-picture overview of order, staging, risks)\n\n## Applied Skills\n\nList each skill with its branch name. These are reapplied by merging the upstream skill branch.\n\n- `add-telegram` — branch `skill\u002Ftelegram`\n- `add-voice-transcription` — branch `skill\u002Fvoice-transcription`\n\nCustom skills (user-created, not from upstream): `.claude\u002Fskills\u002Fmy-custom-skill\u002F` — copy as-is from main tree.\n\n## Skill Interactions\n\n(Document known conflicts or interactions between applied skills.\nWhen two or more skills modify the same file or depend on shared\nconfig, describe the conflict and how to resolve it after merging.\nExample: skill A and skill B both add a PROXY_BIND_HOST declaration —\nafter merging both, deduplicate. Or: skill A throws if ENV_VAR is\nmissing, but skill B provides a fallback — use the fallback version.)\n\n## Modifications to Applied Skills\n\n### \u003CSkill name>: \u003Cwhat was modified>\n\n**Intent:** ...\n\n**Files:** ...\n\n**How to apply:** (after the skill branch has been merged)\n\n...\n\n## Customizations\n\n### \u003CDescriptive title for customization>\n\n**Intent:** What the user wants and why.\n\n**Files:** Which files to modify.\n\n**How to apply:**\n\n\u003CFor standard changes, a brief description is enough.>\n\n\u003CFor non-standard changes, include code snippets, API details,\nspecific values, import paths — everything needed to reproduce\nwithout seeing the original diff.>\n\n### \u003CNext customization...>\n```\n\n**Judging detail level:** For each customization, assess whether a fresh Claude session could reproduce it from intent alone:\n- **Standard changes** (config values, simple logic, well-known patterns): describe the intent and the target. Example: \"Change `POLL_INTERVAL` in `src\u002Fconfig.ts` from 2000 to 1000.\"\n- **Non-standard changes** (specific API usage, custom integrations, unusual patterns, library-specific configurations): include the actual code snippets, import paths, API endpoints, configuration objects — everything needed to reproduce it without guessing.\n\nExample entries at different detail levels:\n\n**Standard (brief):**\n```markdown\n### Custom trigger word\n\n**Intent:** Use `@Bob` instead of the default `@Andy`.\n\n**Files:** `src\u002Fconfig.ts`\n\n**How to apply:** Change the default value of `ASSISTANT_NAME` from `'Andy'` to `'Bob'`.\n```\n\n**Non-standard (detailed):**\n```markdown\n### Spanish translation for outbound messages\n\n**Intent:** All outbound messages are translated to Spanish before sending. Uses the DeepL API via the `deepl-node` package.\n\n**Files:** `src\u002Frouter.ts`, `package.json`\n\n**How to apply:**\n\n1. Add dependency: `npm install deepl-node`\n\n2. In `src\u002Frouter.ts`, add import at top:\n   ```typescript\n   import * as deepl from 'deepl-node';\n   const translator = new deepl.Translator(process.env.DEEPL_API_KEY!);\n   ```\n\n3. In the `formatOutbound` function, before the return statement, add:\n   ```typescript\n   const result = await translator.translateText(text, null, 'es');\n   text = result.text;\n   ```\n   Note: the function needs to be made async if it isn't already.\n```\n\nAfter writing, offer to commit for the user:\n```bash\ngit add .nanoclaw-migrations\u002F\ngit commit -m \"chore: save migration guide\"\n```\n\nAsk (AskUserQuestion): \"Migration guide saved. Want to upgrade now or later?\"\n- **Upgrade now** — continue to Phase 2\n- **Later** — stop here\n\n---\n\n# Phase 2: Upgrade\n\n## 2.0 Preflight\n\nSame checks as 1.0 — clean tree (offer to stash\u002Fcommit if dirty), upstream configured, fetch latest.\n\nRead the migration guide. If missing, tell the user you need to extract customizations first and ask if they want to do that now.\n\n**New-changes guard:** Compare the guide's \"HEAD at generation\" hash against current HEAD. If there are commits since the guide was generated, warn the user:\n\n> \"You've made changes since the migration guide was generated. These changes won't be included in the upgrade.\"\n\nAskUserQuestion:\n- **Update the guide first** — go to step 1.2 to incorporate new changes\n- **Proceed anyway** — user accepts that recent changes will be lost\n- **Abort** — stop\n\n## 2.1 Safety net\n\n```bash\nHASH=$(git rev-parse --short HEAD)\nTIMESTAMP=$(date +%Y%m%d-%H%M%S)\ngit branch backup\u002Fpre-migrate-$HASH-$TIMESTAMP\ngit tag pre-migrate-$HASH-$TIMESTAMP\n```\n\nSave the tag name for rollback instructions at the end.\n\n## 2.2 Preview upstream changes\n\n```bash\nBASE=$(git merge-base HEAD upstream\u002F$UPSTREAM_BRANCH)\ngit log --oneline $BASE..upstream\u002F$UPSTREAM_BRANCH\ngit diff $BASE..upstream\u002F$UPSTREAM_BRANCH -- CHANGELOG.md\n```\n\nIf there are `[BREAKING]` entries, show them and explain how they interact with the user's customizations from the migration guide.\n\nAsk (AskUserQuestion) to proceed or abort.\n\n## 2.3 Create upgrade worktree\n\n```bash\nPROJECT_ROOT=$(pwd)\ngit worktree add .upgrade-worktree upstream\u002F$UPSTREAM_BRANCH --detach\nWORKTREE=\"$PROJECT_ROOT\u002F.upgrade-worktree\"\n```\n\nStore `$PROJECT_ROOT` and `$WORKTREE` as absolute paths. Use `$WORKTREE` in all subsequent commands — never `cd .upgrade-worktree` with a relative path.\n\n## 2.4 Reapply skills in worktree\n\nFor each skill listed in the migration guide's \"Applied Skills\" section:\n\n1. Check if branch exists: `git branch -r --list \"upstream\u002F$branch\"`\n2. If yes, merge it in the worktree:\n   ```bash\n   cd \"$WORKTREE\" && git merge upstream\u002Fskill\u002F\u003Cname> --no-edit\n   ```\n3. If missing, warn the user (skill may have been removed or renamed upstream).\n4. If any skill merge conflicts, stop and tell the user — the skill needs updating for the new upstream.\n\nCopy any custom skills mentioned in the guide from the main tree into the worktree.\n\n## 2.5 Reapply customizations in worktree\n\nWork in `.upgrade-worktree\u002F`. Follow each customization section in the migration guide, including \"Modifications to Applied Skills.\"\n\nFor Tier 3 migrations with a migration plan, follow the plan's ordering and staging. If the plan calls for staged validation (e.g. validate after skills, then validate after source changes), do so.\n\nFor each customization:\n1. Read the \"How to apply\" instructions from the guide\n2. Read the target file(s) in the worktree to understand the current upstream version\n3. Apply the changes as described — use the code snippets and specific instructions from the guide\n4. If the target file has changed significantly from what the guide expects (function removed, file restructured, API changed), flag it and ask the user what to do\n5. Verify the file has no syntax errors or broken imports after each change\n\nFor behavior customizations (CLAUDE.md files): copy from the main tree. These are user content, not code.\n\n## 2.6 Validate in worktree\n\n```bash\ncd \"$WORKTREE\" && pnpm install && pnpm run build && pnpm test\n```\n\nIf build fails, show the error. Fix only issues caused by the migration. If unclear, ask the user.\n\n## 2.7 Live test (optional)\n\nAsk (AskUserQuestion):\n- **Test live** — stop service, run from worktree against real data, send a test message\n- **Skip** — trust the build, proceed to swap\n\nIf testing live:\n\n1. Stop the service (do this directly):\n   ```bash\n   launchctl unload ~\u002FLibrary\u002FLaunchAgents\u002Fcom.nanoclaw.plist 2>\u002Fdev\u002Fnull || true\n   ```\n\n2. Symlink data into the worktree:\n   ```bash\n   ln -s \"$PROJECT_ROOT\u002Fstore\" \"$WORKTREE\u002Fstore\"\n   ln -s \"$PROJECT_ROOT\u002Fdata\" \"$WORKTREE\u002Fdata\"\n   ln -s \"$PROJECT_ROOT\u002Fgroups\" \"$WORKTREE\u002Fgroups\"\n   ln -s \"$PROJECT_ROOT\u002F.env\" \"$WORKTREE\u002F.env\"\n   ```\n\n3. Start from worktree: `cd \"$WORKTREE\" && pnpm run dev`\n\n4. Ask the user to send a test message from their phone. Wait for them to confirm it works.\n\n5. After confirmation, stop the dev server.\n\n6. Clean up symlinks:\n   ```bash\n   rm \"$WORKTREE\u002Fstore\" \"$WORKTREE\u002Fdata\" \"$WORKTREE\u002Fgroups\" \"$WORKTREE\u002F.env\"\n   ```\n\n## 2.8 Swap into main tree\n\nThe swap must be done carefully — the worktree has the upgraded code, but main needs to point to it cleanly. Use absolute paths throughout.\n\n```bash\n# 1. Capture the worktree HEAD before removing it\nWORKTREE_PATH=$(cd \"$PROJECT_ROOT\u002F.upgrade-worktree\" && pwd)\nUPGRADE_COMMIT=$(git -C \"$WORKTREE_PATH\" rev-parse HEAD)\n\n# 2. Copy the migration guide out of the worktree before removing it\ncp -r \"$WORKTREE_PATH\u002F.nanoclaw-migrations\" \u002Ftmp\u002Fnanoclaw-migrations-backup 2>\u002Fdev\u002Fnull || true\n\n# 3. Remove the worktree\ngit worktree remove \"$WORKTREE_PATH\" --force\n\n# 4. Point the current branch at the upgraded commit\ngit reset --hard $UPGRADE_COMMIT\n\n# 5. Restore the migration guide and update its hashes\ncp -r \u002Ftmp\u002Fnanoclaw-migrations-backup\u002F* .nanoclaw-migrations\u002F 2>\u002Fdev\u002Fnull || true\nrm -rf \u002Ftmp\u002Fnanoclaw-migrations-backup\n```\n\nUpdate the guide's header hashes to reflect the new state. Offer to commit:\n```bash\ngit add .nanoclaw-migrations\u002F\ngit commit -m \"chore: upgrade to upstream $(git rev-parse --short upstream\u002F$UPSTREAM_BRANCH)\"\n```\n\nDo NOT use `git checkout -B` to create an intermediate branch — this caused issues in practice. The `git reset --hard` to the upgrade commit is the cleanest path since the backup tag already preserves the pre-upgrade state.\n\n## 2.9 Post-upgrade\n\nRun `npm install && pnpm run build` in the main tree to confirm.\n\nRestart the service:\n```bash\nlaunchctl load ~\u002FLibrary\u002FLaunchAgents\u002Fcom.nanoclaw.plist\n```\n\nShow summary:\n- Previous version (backup tag)\n- New HEAD\n- Customizations reapplied (list from guide)\n- Skills reapplied\n- Rollback: `git reset --hard \u003Cbackup-tag>`\n- Any customizations that needed manual adjustment\n\nOffer to pop the stash if one was created in preflight: `git stash pop`\n\n## Diagnostics\n\n1. Use the Read tool to read `.claude\u002Fskills\u002Fmigrate-nanoclaw\u002Fdiagnostics.md`.\n2. Follow every step in that file before finishing.\n","# Context\n\nNanoClaw users fork the repo and customize it — changing config values, editing source files, modifying personas, adding skills. When upstream ships updates or refactors, `git merge` produces painful conflicts because the same core files were changed on both sides.\n\nThis skill extracts the user's customizations into a migration guide — capturing both the intent (what they want) and the implementation details (how they did it, with code snippets, API calls, and specific configurations). On upgrade, it checks out clean upstream in a worktree, then reapplies customizations using the guide. No merge conflicts because there's nothing to merge.\n\nThe migration guide is markdown, not structured data. It needs to capture the full range of what a user might customize, with enough implementation detail that a fresh Claude session can reapply it without having seen the original code. Standard changes (config values, simple logic) can be described briefly. Non-standard changes (specific APIs, custom integrations, unusual patterns) need code snippets and precise instructions.\n\nTwo phases: **Extract** (build the migration guide) and **Upgrade** (use it). If a guide already exists, offer to skip to Upgrade.\n\n# Principles\n\n- Never proceed with a dirty working tree.\n- Always create a rollback point (backup branch + tag) before touching anything.\n- The migration guide is the source of truth, not diffs.\n- Use a worktree to validate before affecting the live install.\n- Data directories (`groups\u002F`, `store\u002F`, `data\u002F`, `.env`) are never touched — only code.\n- Be helpful: offer to do things (stash, commit, stop services) rather than telling the user to do them.\n- **Use sub-agents for exploration.** Spawn haiku sub-agents to explore the codebase, trace skill merges, diff files, and identify customizations. This keeps the main context focused on the user conversation and decision-making.\n- **Always use absolute paths in worktrees.** The Bash tool resets the working directory between calls. Never use relative `cd .upgrade-worktree` — always use the full absolute path: `cd \u002Fabsolute\u002Fpath\u002F.upgrade-worktree && \u003Ccommand>`. Store the worktree absolute path in a variable at creation time and reference it throughout.\n- **Balance exploration and asking.** Don't bombard the user with questions when you can figure things out from the code. Don't burn endless tokens exploring when the user could clarify in one sentence. Use sub-agents to explore first, then ask the user targeted questions about things that are ambiguous or where intent isn't clear from the code alone.\n- **Scale effort to complexity.** Not every migration needs the full process. Assess the scope early and take the lightest path that fits.\n\n---\n\n# Phase 1: Extract\n\n## 1.0 Preflight\n\nRun `git status --porcelain`. If non-empty, offer to stash or commit for them (AskUserQuestion: \"Stash changes\" \u002F \"Commit changes\" \u002F \"I'll handle it\"). If they want to commit, stage and commit with a descriptive message. If they want to stash, run `git stash push -m \"pre-migration stash\"`.\n\nCheck remotes with `git remote -v`. If `upstream` is missing, ask for the URL (default: `https:\u002F\u002Fgithub.com\u002Fnanocoai\u002Fnanoclaw.git`), add it, then `git fetch upstream --prune`.\n\nDetect upstream branch: check `git branch -r | grep upstream\u002F` for `main` or `master`. Store as UPSTREAM_BRANCH.\n\n## 1.1 Assess scope and determine path\n\nQuickly assess the scale of divergence, check for an existing guide, and determine the right approach — all before asking the user anything.\n\n```bash\nBASE=$(git merge-base HEAD upstream\u002F$UPSTREAM_BRANCH)\n# Divergence stats\ngit rev-list --count $BASE..upstream\u002F$UPSTREAM_BRANCH  # upstream commits\ngit rev-list --count $BASE..HEAD                       # user commits\ngit diff --name-only $BASE..HEAD | wc -l               # user changed files\ngit diff --stat $BASE..HEAD | tail -1                   # insertions\u002Fdeletions\ngit diff --name-only $BASE..upstream\u002F$UPSTREAM_BRANCH | wc -l  # upstream changed files\n```\n\nCheck for existing guide: `.nanoclaw-migrations\u002Fguide.md` or `.nanoclaw-migrations\u002Findex.md`.\n\n**Determine the tier based on the total diff from base:**\n\n### Tier 1: Lightweight — suggest `\u002Fupdate-nanoclaw` instead\n\nConditions (any of):\n- Very few upstream changes (\u003C ~5 commits) AND few user changes (\u003C ~3 changed files)\n- User recently updated\u002Fmigrated (merge-base is close to upstream HEAD)\n\nTell the user the scope is small and suggest `\u002Fupdate-nanoclaw` might be simpler. Let them choose.\n\n### Tier 2: Standard\n\nConditions:\n- Moderate total diff (3-15 changed files, no large number of new files)\n- Manageable scope that fits in a single guide file\n\n### Tier 3: Complex\n\nConditions (any of):\n- Many new files added (indicates many skills applied) — discount files that come purely from skill merges when assessing complexity; a fork with 3 skills and no other changes is simpler than it looks by file count alone\n- Deep source changes to core files (`src\u002Findex.ts`, `src\u002Fcontainer-runner.ts`, etc.) beyond what skills introduced\n- Lots of insertions\u002Fdeletions in user-authored code (not skill-merged code)\n- Many skills applied (3+) AND the user confirms or sub-agents find customizations on top of them\n\nUse the full process: multiple sub-agents in parallel, directory-based guide, migration plan.\n\n**Now combine the scope assessment with initial user input in one interaction.** Present the scope summary (how many commits, files, which tier) and ask (AskUserQuestion):\n\nFor Tier 1:\n- **Use \u002Fupdate-nanoclaw** — simpler merge-based approach\n- **Proceed with full migration** — continue\n\nFor Tier 2\u002F3 (with or without existing guide):\n- If guide exists and is current: **Skip to upgrade** \u002F **Update guide** (add new changes) \u002F **Re-extract from scratch**\n- If guide exists but is stale: **Update guide** (recommended) \u002F **Re-extract from scratch** \u002F **Skip to upgrade anyway**\n- If no guide: **Yes, let me describe my customizations first** \u002F **Just figure it out** \u002F **A bit of both**\n\nThis single interaction replaces what were previously separate steps for scope assessment, user input, and existing guide check.\n\n## 1.2 Update existing guide (if applicable)\n\nIf the user chose to update an existing guide rather than re-extract:\n\n1. Read the existing guide\n2. Find commits made since the guide was generated (compare guide's recorded base hash against current HEAD)\n3. Spawn a haiku sub-agent to analyze only the new changes:\n   > Diff HEAD against `\u003Cguide-recorded-hash>`. For each changed file, summarize what changed and why.\n4. Present the new changes to the user for confirmation\n5. Append new customizations to the existing guide, update the header hashes\n6. Skip to Phase 2\n\n## 1.3 Explore the codebase\n\nSpawn a haiku sub-agent (Agent tool, model: haiku) for initial exploration:\n\n> Explore this NanoClaw fork to identify all changes from the upstream base. Run these commands and report back:\n>\n> 1. `git diff --name-only $BASE..HEAD` — all changed files\n> 2. `git log --oneline $BASE..HEAD` — all commits (look for skill branch merges like `Merge branch 'skill\u002F*'`)\n> 3. `git branch -r --list 'upstream\u002Fskill\u002F*'` — available upstream skill branches\n> 4. `ls .claude\u002Fskills\u002F` — installed skills\n> 5. For each skill merge found, record the merge commit hash\n>\n> Report: (a) list of applied skills with their merge commit hashes, (b) list of all changed files, (c) any custom skill directories that don't match upstream branches.\n\nFrom the sub-agent results, identify:\n- **Which files came purely from skill merges** — these will be reapplied by re-merging skill branches in Phase 2\n- **Everything else** — all remaining changes are customizations to analyze (whether they're on skill-touched files or not)\n\nDon't try to distinguish \"user modified a skill file\" from \"user made their own change\" at this stage. The sub-agents in 1.4 will look at all non-skill changes together and surface what matters.\n\n## 1.4 Analyze customizations\n\nFor each applied skill, ask the user in a single batched question (AskUserQuestion, multiSelect):\n\n> \"I found these applied skills. Select any you customized further after applying:\"\n\nOptions: one per skill, plus \"None — all used as-is\".\n\nThen spawn sub-agents to analyze all non-skill changes. For Tier 2, one or two agents. For Tier 3, run in parallel by area:\n\n- **Config + build files** — one sub-agent\n- **Source files** (`src\u002F*.ts`) — one sub-agent\n- **Skills the user flagged as modified** (or all of them for Tier 3) — one sub-agent per skill, comparing the user's current files against the skill merge commit version:\n  ```\n  git diff \u003Cmerge-commit-hash>..HEAD -- \u003Cfiles-touched-by-skill>\n  ```\n- **Container files** — one sub-agent (if changes exist)\n\nEach sub-agent task:\n\n> Read these diffs and the current file contents. For each change:\n> 1. `git diff $BASE..HEAD -- \u003Cfile>` (or `git diff \u003Cskill-merge-hash>..HEAD -- \u003Cfile>` for skill-modified files)\n> 2. Read the full current file for context\n> 3. Summarize: what changed, what the likely intent is\n> 4. Assess detail level: could a fresh Claude session reproduce this from intent alone, or does it need specific code snippets, API details, import paths?\n> 5. For non-standard changes, extract the key code, imports, API calls, and configurations verbatim.\n\n**Inter-skill conflicts:** If multiple skills are applied, spawn an additional sub-agent to check for interactions between them. Look for:\n- Duplicate declarations (same variable\u002Fconstant defined by two skill branches)\n- Conflicting approaches (one skill throws on missing env var, another provides a fallback)\n- Shared files modified by multiple skills\n\nDocument any findings in the \"Skill Interactions\" section of the migration guide so they can be resolved after skill branches are re-merged during upgrade.\n\n## 1.5 Confirm with user\n\nAfter sub-agents report back, compile the findings and present to the user.\n\nFor customizations where the intent is clear (config values, simple modifications): present as a batch for confirmation. Use AskUserQuestion with multiSelect to let the user flag any entries that need correction.\n\nFor customizations where the intent is ambiguous: ask specific questions. Don't ask \"what did you do?\" — instead ask \"I see you added X in this file. Was this for Y or something else?\"\n\nThe user can select \"Other\" on any question to provide their own description.\n\n## 1.6 Migration plan (Tier 3 only)\n\nFor complex migrations, before writing the guide, create a migration plan:\n\n- **Order of operations**: which customizations depend on others, which skills must be applied first\n- **Staging**: whether the migration should happen in stages (e.g. apply skills first, validate, then apply source customizations)\n- **Risk areas**: customizations that touch files heavily changed by upstream — these may need manual review\n- **Interactions**: customizations that interact with each other (e.g. a source change that depends on a skill, or two customizations that touch the same file)\n\nPresent the plan to the user for review before proceeding to the guide.\n\n## 1.7 Write the migration guide\n\n**Storage:** `.nanoclaw-migrations\u002Fguide.md` for Tier 2. `.nanoclaw-migrations\u002F` directory with `index.md` and section files for Tier 3.\n\n**Verification:** After writing the guide, read it back and verify:\n- Every referenced file path exists in the current codebase\n- Code snippets match what's actually in the files\n- No customizations from the analysis were accidentally omitted\n\nThe guide is structured markdown that a fresh Claude session can follow to reproduce this user's exact setup on a clean upstream checkout.\n\nStructure:\n\n```markdown\n# NanoClaw Migration Guide\n\nGenerated: \u003Ctimestamp>\nBase: \u003CBASE hash>\nHEAD at generation: \u003CHEAD hash>\nUpstream: \u003Cupstream HEAD hash>\n\n## Migration Plan\n\n(Tier 3 only — big-picture overview of order, staging, risks)\n\n## Applied Skills\n\nList each skill with its branch name. These are reapplied by merging the upstream skill branch.\n\n- `add-telegram` — branch `skill\u002Ftelegram`\n- `add-voice-transcription` — branch `skill\u002Fvoice-transcription`\n\nCustom skills (user-created, not from upstream): `.claude\u002Fskills\u002Fmy-custom-skill\u002F` — copy as-is from main tree.\n\n## Skill Interactions\n\n(Document known conflicts or interactions between applied skills.\nWhen two or more skills modify the same file or depend on shared\nconfig, describe the conflict and how to resolve it after merging.\nExample: skill A and skill B both add a PROXY_BIND_HOST declaration —\nafter merging both, deduplicate. Or: skill A throws if ENV_VAR is\nmissing, but skill B provides a fallback — use the fallback version.)\n\n## Modifications to Applied Skills\n\n### \u003CSkill name>: \u003Cwhat was modified>\n\n**Intent:** ...\n\n**Files:** ...\n\n**How to apply:** (after the skill branch has been merged)\n\n...\n\n## Customizations\n\n### \u003CDescriptive title for customization>\n\n**Intent:** What the user wants and why.\n\n**Files:** Which files to modify.\n\n**How to apply:**\n\n\u003CFor standard changes, a brief description is enough.>\n\n\u003CFor non-standard changes, include code snippets, API details,\nspecific values, import paths — everything needed to reproduce\nwithout seeing the original diff.>\n\n### \u003CNext customization...>\n```\n\n**Judging detail level:** For each customization, assess whether a fresh Claude session could reproduce it from intent alone:\n- **Standard changes** (config values, simple logic, well-known patterns): describe the intent and the target. Example: \"Change `POLL_INTERVAL` in `src\u002Fconfig.ts` from 2000 to 1000.\"\n- **Non-standard changes** (specific API usage, custom integrations, unusual patterns, library-specific configurations): include the actual code snippets, import paths, API endpoints, configuration objects — everything needed to reproduce it without guessing.\n\nExample entries at different detail levels:\n\n**Standard (brief):**\n```markdown\n### Custom trigger word\n\n**Intent:** Use `@Bob` instead of the default `@Andy`.\n\n**Files:** `src\u002Fconfig.ts`\n\n**How to apply:** Change the default value of `ASSISTANT_NAME` from `'Andy'` to `'Bob'`.\n```\n\n**Non-standard (detailed):**\n```markdown\n### Spanish translation for outbound messages\n\n**Intent:** All outbound messages are translated to Spanish before sending. Uses the DeepL API via the `deepl-node` package.\n\n**Files:** `src\u002Frouter.ts`, `package.json`\n\n**How to apply:**\n\n1. Add dependency: `npm install deepl-node`\n\n2. In `src\u002Frouter.ts`, add import at top:\n   ```typescript\n   import * as deepl from 'deepl-node';\n   const translator = new deepl.Translator(process.env.DEEPL_API_KEY!);\n   ```\n\n3. In the `formatOutbound` function, before the return statement, add:\n   ```typescript\n   const result = await translator.translateText(text, null, 'es');\n   text = result.text;\n   ```\n   Note: the function needs to be made async if it isn't already.\n```\n\nAfter writing, offer to commit for the user:\n```bash\ngit add .nanoclaw-migrations\u002F\ngit commit -m \"chore: save migration guide\"\n```\n\nAsk (AskUserQuestion): \"Migration guide saved. Want to upgrade now or later?\"\n- **Upgrade now** — continue to Phase 2\n- **Later** — stop here\n\n---\n\n# Phase 2: Upgrade\n\n## 2.0 Preflight\n\nSame checks as 1.0 — clean tree (offer to stash\u002Fcommit if dirty), upstream configured, fetch latest.\n\nRead the migration guide. If missing, tell the user you need to extract customizations first and ask if they want to do that now.\n\n**New-changes guard:** Compare the guide's \"HEAD at generation\" hash against current HEAD. If there are commits since the guide was generated, warn the user:\n\n> \"You've made changes since the migration guide was generated. These changes won't be included in the upgrade.\"\n\nAskUserQuestion:\n- **Update the guide first** — go to step 1.2 to incorporate new changes\n- **Proceed anyway** — user accepts that recent changes will be lost\n- **Abort** — stop\n\n## 2.1 Safety net\n\n```bash\nHASH=$(git rev-parse --short HEAD)\nTIMESTAMP=$(date +%Y%m%d-%H%M%S)\ngit branch backup\u002Fpre-migrate-$HASH-$TIMESTAMP\ngit tag pre-migrate-$HASH-$TIMESTAMP\n```\n\nSave the tag name for rollback instructions at the end.\n\n## 2.2 Preview upstream changes\n\n```bash\nBASE=$(git merge-base HEAD upstream\u002F$UPSTREAM_BRANCH)\ngit log --oneline $BASE..upstream\u002F$UPSTREAM_BRANCH\ngit diff $BASE..upstream\u002F$UPSTREAM_BRANCH -- CHANGELOG.md\n```\n\nIf there are `[BREAKING]` entries, show them and explain how they interact with the user's customizations from the migration guide.\n\nAsk (AskUserQuestion) to proceed or abort.\n\n## 2.3 Create upgrade worktree\n\n```bash\nPROJECT_ROOT=$(pwd)\ngit worktree add .upgrade-worktree upstream\u002F$UPSTREAM_BRANCH --detach\nWORKTREE=\"$PROJECT_ROOT\u002F.upgrade-worktree\"\n```\n\nStore `$PROJECT_ROOT` and `$WORKTREE` as absolute paths. Use `$WORKTREE` in all subsequent commands — never `cd .upgrade-worktree` with a relative path.\n\n## 2.4 Reapply skills in worktree\n\nFor each skill listed in the migration guide's \"Applied Skills\" section:\n\n1. Check if branch exists: `git branch -r --list \"upstream\u002F$branch\"`\n2. If yes, merge it in the worktree:\n   ```bash\n   cd \"$WORKTREE\" && git merge upstream\u002Fskill\u002F\u003Cname> --no-edit\n   ```\n3. If missing, warn the user (skill may have been removed or renamed upstream).\n4. If any skill merge conflicts, stop and tell the user — the skill needs updating for the new upstream.\n\nCopy any custom skills mentioned in the guide from the main tree into the worktree.\n\n## 2.5 Reapply customizations in worktree\n\nWork in `.upgrade-worktree\u002F`. Follow each customization section in the migration guide, including \"Modifications to Applied Skills.\"\n\nFor Tier 3 migrations with a migration plan, follow the plan's ordering and staging. If the plan calls for staged validation (e.g. validate after skills, then validate after source changes), do so.\n\nFor each customization:\n1. Read the \"How to apply\" instructions from the guide\n2. Read the target file(s) in the worktree to understand the current upstream version\n3. Apply the changes as described — use the code snippets and specific instructions from the guide\n4. If the target file has changed significantly from what the guide expects (function removed, file restructured, API changed), flag it and ask the user what to do\n5. Verify the file has no syntax errors or broken imports after each change\n\nFor behavior customizations (CLAUDE.md files): copy from the main tree. These are user content, not code.\n\n## 2.6 Validate in worktree\n\n```bash\ncd \"$WORKTREE\" && pnpm install && pnpm run build && pnpm test\n```\n\nIf build fails, show the error. Fix only issues caused by the migration. If unclear, ask the user.\n\n## 2.7 Live test (optional)\n\nAsk (AskUserQuestion):\n- **Test live** — stop service, run from worktree against real data, send a test message\n- **Skip** — trust the build, proceed to swap\n\nIf testing live:\n\n1. Stop the service (do this directly):\n   ```bash\n   launchctl unload ~\u002FLibrary\u002FLaunchAgents\u002Fcom.nanoclaw.plist 2>\u002Fdev\u002Fnull || true\n   ```\n\n2. Symlink data into the worktree:\n   ```bash\n   ln -s \"$PROJECT_ROOT\u002Fstore\" \"$WORKTREE\u002Fstore\"\n   ln -s \"$PROJECT_ROOT\u002Fdata\" \"$WORKTREE\u002Fdata\"\n   ln -s \"$PROJECT_ROOT\u002Fgroups\" \"$WORKTREE\u002Fgroups\"\n   ln -s \"$PROJECT_ROOT\u002F.env\" \"$WORKTREE\u002F.env\"\n   ```\n\n3. Start from worktree: `cd \"$WORKTREE\" && pnpm run dev`\n\n4. Ask the user to send a test message from their phone. Wait for them to confirm it works.\n\n5. After confirmation, stop the dev server.\n\n6. Clean up symlinks:\n   ```bash\n   rm \"$WORKTREE\u002Fstore\" \"$WORKTREE\u002Fdata\" \"$WORKTREE\u002Fgroups\" \"$WORKTREE\u002F.env\"\n   ```\n\n## 2.8 Swap into main tree\n\nThe swap must be done carefully — the worktree has the upgraded code, but main needs to point to it cleanly. Use absolute paths throughout.\n\n```bash\n# 1. Capture the worktree HEAD before removing it\nWORKTREE_PATH=$(cd \"$PROJECT_ROOT\u002F.upgrade-worktree\" && pwd)\nUPGRADE_COMMIT=$(git -C \"$WORKTREE_PATH\" rev-parse HEAD)\n\n# 2. Copy the migration guide out of the worktree before removing it\ncp -r \"$WORKTREE_PATH\u002F.nanoclaw-migrations\" \u002Ftmp\u002Fnanoclaw-migrations-backup 2>\u002Fdev\u002Fnull || true\n\n# 3. Remove the worktree\ngit worktree remove \"$WORKTREE_PATH\" --force\n\n# 4. Point the current branch at the upgraded commit\ngit reset --hard $UPGRADE_COMMIT\n\n# 5. Restore the migration guide and update its hashes\ncp -r \u002Ftmp\u002Fnanoclaw-migrations-backup\u002F* .nanoclaw-migrations\u002F 2>\u002Fdev\u002Fnull || true\nrm -rf \u002Ftmp\u002Fnanoclaw-migrations-backup\n```\n\nUpdate the guide's header hashes to reflect the new state. Offer to commit:\n```bash\ngit add .nanoclaw-migrations\u002F\ngit commit -m \"chore: upgrade to upstream $(git rev-parse --short upstream\u002F$UPSTREAM_BRANCH)\"\n```\n\nDo NOT use `git checkout -B` to create an intermediate branch — this caused issues in practice. The `git reset --hard` to the upgrade commit is the cleanest path since the backup tag already preserves the pre-upgrade state.\n\n## 2.9 Post-upgrade\n\nRun `npm install && pnpm run build` in the main tree to confirm.\n\nRestart the service:\n```bash\nlaunchctl load ~\u002FLibrary\u002FLaunchAgents\u002Fcom.nanoclaw.plist\n```\n\nShow summary:\n- Previous version (backup tag)\n- New HEAD\n- Customizations reapplied (list from guide)\n- Skills reapplied\n- Rollback: `git reset --hard \u003Cbackup-tag>`\n- Any customizations that needed manual adjustment\n\nOffer to pop the stash if one was created in preflight: `git stash pop`\n\n## Diagnostics\n\n1. Use the Read tool to read `.claude\u002Fskills\u002Fmigrate-nanoclaw\u002Fdiagnostics.md`.\n2. Follow every step in that file before finishing.\n",{"name":5,"description":7},"main","85a2d934766d21e4696ac1b00157179f28bca9e3",".claude\u002Fskills\u002Fmigrate-nanoclaw",2,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-app-nanoclaw","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-10-30 04:24:16",{"source":9,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add microsoft\u002Famplifier-app-nanoclaw --skill migrate-nanoclaw",{"tool":53,"command":54},"bunx","bunx skills add microsoft\u002Famplifier-app-nanoclaw --skill migrate-nanoclaw",{"tool":56,"command":57},"pnpm","pnpm dlx skills add microsoft\u002Famplifier-app-nanoclaw --skill migrate-nanoclaw","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-app-nanoclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmigrate-nanoclaw\u002FSKILL.md",true,[61,67,71,75,79,83,87],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"diagnostics.md","REFERENCE","参考文档",1447,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-app-nanoclaw\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmigrate-nanoclaw\u002Fdiagnostics.md",{"path":68,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fadk-and-api-hub-discovery.md",6799,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fapi-gateway-mcp-server\u002Freferences\u002Fadk-and-api-hub-discovery.md",{"path":72,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fattribution.md",1906,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fapi-gateway-mcp-server\u002Freferences\u002Fattribution.md",{"path":76,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fmcp-limitations-and-troubleshooting.md",10984,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fapi-gateway-mcp-server\u002Freferences\u002Fmcp-limitations-and-troubleshooting.md",{"path":80,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fopenapi-agent-tool-optimizer.md",5595,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fapi-gateway-mcp-server\u002Freferences\u002Fopenapi-agent-tool-optimizer.md",{"path":84,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fopenapi-v2-to-v3-mcp-migration.md",17615,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fapi-gateway-mcp-server\u002Freferences\u002Fopenapi-v2-to-v3-mcp-migration.md",{"path":88,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":91,"sourceHtmlUrl":92},"scripts\u002Fvalidate_mcp_openapi.py","SCRIPT","脚本",22552,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fapi-gateway-mcp-server\u002Fscripts\u002Fvalidate_mcp_openapi.py",[94,111,124,141,154,172],{"skillNo":95,"name":96,"nameZh":97,"description":98,"descriptionZh":99,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":100,"categories":101,"keywords":108,"publishedAt":33},"01M69A6E27JZN10H82TZ2GMC3A","whatsapp-formatting","WhatsApp 消息格式化","Format messages for WhatsApp, including mentions that render as real WhatsApp tags. Use when responding in a WhatsApp conversation (platform_id \u002F chatJid ends with @s.whatsapp.net or @g.us).","为 WhatsApp 格式化消息，包括可渲染为真实 WhatsApp 标签的提及（mention）。在 WhatsApp 对话中回复时使用（platform_id \u002F chatJid 以 @s.whatsapp.net 或 @g.us 结尾）。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-app-nanoclaw\u002Fblob\u002Fmain\u002Fcontainer\u002Fskills\u002Fwhatsapp-formatting\u002FSKILL.md",[102,105],{"categoryNo":103,"categoryName":104,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BREN0B06CC08183RHQ4ETG","即时通讯与消息处理",{"categoryNo":106,"categoryName":107,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BS5011KJDVSRXG1DC4P666","普通用户",[109,110],"whatsapp","whatsapp formatting",{"skillNo":112,"name":113,"nameZh":114,"description":115,"descriptionZh":116,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":117,"categories":118,"keywords":123,"publishedAt":33},"01M69A6CGJ968RNVGYTRSWZKWB","welcome","新频道欢迎引导","Introduce yourself to a newly connected channel. Triggered automatically when a channel is first wired. Send a friendly greeting and brief overview of what you can do.","向新连接的频道介绍自己。当频道首次接入时自动触发。发送友好的问候和简要的功能概述。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-app-nanoclaw\u002Fblob\u002Fmain\u002Fcontainer\u002Fskills\u002Fwelcome\u002FSKILL.md",[119,122],{"categoryNo":120,"categoryName":121,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TPX3VFVPP2WMQ6F0159","内部沟通专员",{"categoryNo":103,"categoryName":104,"taxonomyType":28,"taxonomyTypeDesc":29},[113],{"skillNo":125,"name":126,"nameZh":127,"description":128,"descriptionZh":129,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":130,"categories":131,"keywords":136,"publishedAt":33},"01M69A6ADX690STSN63WKRD37K","vercel-cli","Vercel 应用部署","Deploy apps to Vercel. Use when asked to deploy, ship, or publish a web application, or manage Vercel projects, domains, and environment variables.","将应用部署到 Vercel。当用户要求部署、发布 Web 应用，或管理 Vercel 项目、域名和环境变量时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-app-nanoclaw\u002Fblob\u002Fmain\u002Fcontainer\u002Fskills\u002Fvercel-cli\u002FSKILL.md",[132,133],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":134,"categoryName":135,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理",[137,138,139,140],"cli","vercel cli","web","deploy",{"skillNo":142,"name":143,"nameZh":144,"description":145,"descriptionZh":146,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":147,"categories":148,"keywords":151,"publishedAt":33},"01M69A68WJ94V4MXGXGK9T0QG7","slack-formatting","Slack 消息格式化","Format messages for Slack using mrkdwn syntax. Use when responding to Slack channels (folder starts with \"slack_\" or JID contains slack identifiers).","使用 mrkdwn 语法为 Slack 格式化消息。当回复 Slack 频道时使用（文件夹以“slack_”开头，或 JID 包含 slack 标识符）。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-app-nanoclaw\u002Fblob\u002Fmain\u002Fcontainer\u002Fskills\u002Fslack-formatting\u002FSKILL.md",[149,150],{"categoryNo":120,"categoryName":121,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":103,"categoryName":104,"taxonomyType":28,"taxonomyTypeDesc":29},[152,153],"slack","slack formatting",{"skillNo":155,"name":156,"nameZh":157,"description":158,"descriptionZh":159,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":160,"categories":161,"keywords":168,"publishedAt":33},"01M69A673Z17TDXK3DBC5YJFM7","self-customize","智能体自我定制","Customize your own agent — add capabilities, install packages, add MCP servers, edit code or CLAUDE.md. Use when the user asks you to add a feature, install a tool, or modify how you work. For non-trivial code changes, delegate to a builder agent via create_agent.","定制你自己的智能体——添加能力、安装包、添加 MCP 服务器、编辑代码或 CLAUDE.md。当用户要求你添加功能、安装工具或修改工作方式时使用。对于非平凡的代码改动，请通过 create_agent 委派给构建智能体处理。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-app-nanoclaw\u002Fblob\u002Fmain\u002Fcontainer\u002Fskills\u002Fself-customize\u002FSKILL.md",[162,165],{"categoryNo":163,"categoryName":164,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",{"categoryNo":166,"categoryName":167,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发",[169,170,171],"customize","self customize","MCP",{"skillNo":173,"name":174,"nameZh":175,"description":176,"descriptionZh":177,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":178,"categories":179,"keywords":186,"publishedAt":33},"01M69A657JFNEG45Z1Y05BVK5R","onecli-gateway","OneCLI 网关凭证代理","OneCLI Gateway: transparent HTTPS proxy that injects stored credentials into outbound calls. You MUST use this skill when the user asks you to read emails, check calendar, access GitHub repos, create issues, check Stripe payments, or interact with ANY external service or API. Do NOT use browser extensions or OAuth CLI tools. Make HTTP requests directly; the gateway injects credentials automatically.","OneCLI 网关：一种透明的 HTTPS 代理，可将存储的凭证注入到对外调用中。当用户要求读取电子邮件、查看日历、访问 GitHub 仓库、创建 issue、检查 Stripe 付款，或与任何外部服务或 API 交互时，你必须使用本技能。不要使用浏览器扩展或 OAuth CLI 工具。直接发起 HTTP 请求；网关会自动注入凭证。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Famplifier-app-nanoclaw\u002Fblob\u002Fmain\u002Fcontainer\u002Fskills\u002Fonecli-gateway\u002FSKILL.md",[180,183],{"categoryNo":181,"categoryName":182,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师",{"categoryNo":184,"categoryName":185,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BS1P5QP54ZNEBFHBTV293T","API 网关配置与管理",[187,137,188,189],"onecli gateway","github","repos"]