一键导入
update-skills
Check for and apply updates to installed skill branches from upstream.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Check for and apply updates to installed skill branches from upstream.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Show what this NinjaClaw instance can do — installed skills, available tools, and system info. Read-only. Use when the user asks what the bot can do, what's installed, or runs /capabilities.
Quick read-only health check — session context, workspace mounts, tool availability, and task snapshot. Use when the user asks for system status or runs /status.
Add /compact command for manual context compaction. Solves context rot in long sessions by forwarding the SDK's built-in /compact slash command. Main-group or trusted sender only.
Add Discord bot channel integration to NinjaClaw.
Add Emacs as a channel. Opens an interactive chat buffer and org-mode integration so you can talk to NinjaClaw from within Emacs (Doom, Spacemacs, or vanilla). Uses a local HTTP bridge — no bot token or external service needed.
Add Gmail integration to NinjaClaw. Can be configured as a tool (agent reads/sends emails when triggered from WhatsApp) or as a full channel (emails can trigger the agent, schedule tasks, and receive replies). Guides through GCP OAuth setup and implements the integration.
| name | update-skills |
| description | Check for and apply updates to installed skill branches from upstream. |
Skills are distributed as git branches (skill/*). When you install a skill, you merge its branch into your repo. This skill checks upstream for newer commits on those skill branches and helps you update.
Run /update-skills in GitHub Copilot.
Preflight: checks for clean working tree and upstream remote.
Detection: fetches upstream, lists all upstream/skill/* branches, determines which ones you've previously merged (via merge-base), and checks if any have new commits.
Selection: presents a list of skills with available updates. You pick which to update.
Update: merges each selected skill branch, resolves conflicts if any, then validates with build + test.
Help users update their installed skill branches from upstream without losing local customizations.
git commands, only open files with actual conflicts.Run:
git status --porcelainIf output is non-empty:
Check remotes:
git remote -vIf upstream is missing:
https://github.com/OfirGavish/NinjaClaw-Nano.git).git remote add upstream <url>Fetch:
git fetch upstream --pruneList all upstream skill branches:
git branch -r --list 'upstream/skill/*'For each upstream/skill/<name>:
git merge-base --is-ancestor upstream/skill/<name>~1 HEAD — if this succeeds (exit 0) for any ancestor commit of the skill branch, the user has merged it at some point. A simpler check: git log --oneline --merges --grep="skill/<name>" HEAD to see if there's a merge commit referencing this branch.MERGE_BASE=$(git merge-base HEAD upstream/skill/<name>) — if the merge base is NOT the initial commit and the merge base includes commits unique to the skill branch, it has been merged.git merge-base HEAD upstream/skill/<name> with git merge-base HEAD upstream/main. If the skill merge-base is strictly ahead of (or different from) the main merge-base, the user has merged this skill.git log --oneline HEAD..upstream/skill/<name>Build three lists:
If no skills have updates available:
If updates are available:
skill/<name>: 3 new commits
skill/<other>: 1 new commit
multiSelect: true to let the user pick which skills to update.
For each selected skill (process one at a time):
git merge upstream/skill/<name> --no-editgit status to identify conflicted files.git add <file>git commit --no-editIf a merge fails badly (e.g., cannot resolve conflicts):
git merge --abortAfter all selected skills are merged:
npm run buildnpm test (do not fail the flow if tests are not configured)If build fails:
Show:
git rev-parse --short HEADIf the service is running, remind the user to restart it to pick up changes.