/all-my-ai-needs:git-opsfrom all-my-ai-needs
Creates, renames, commits, pushes, merges, promotes, and cleans up Git branches following a feature branch naming convention. Includes safety pre-checks and submodule handling.
Ships in all-my-ai-needs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill for Git operation tasks. Keep project-specific runtime, build, API, environment, and release-policy details in the repo's AGENTS.md; keep reusable Git behavior here.
Do not expand scope silently. If Sam only asks to inspect, report findings. If Sam asks to commit/push/merge, carry that operation through verification unless blocked.
Before any Git write operation:
git status --short --branch
Rules:
git reset --hard, git checkout -- <file>, git clean -fd, git push --delete, or force-push without explicit written confirmation.git clean -fdn before any real clean operation and report what would be removed.rg, git diff, git status, git branch -vv, git log, and git show-ref for inspection before acting.stale local remote-tracking refs or 本地 origin/* 缓存; git fetch --prune origin does not delete remote branches.When Sam says "功能分支" or asks to create a feature branch, use:
feature/<YYYYMMDD>/<需求编码>_<功能简介>
Example:
feature/20260521/MR2026052182911_xiaomei
Rules:
feature.YYYYMMDD.MMDD only, normalize it to YYYYMMDD using the clearly applicable year from the task context. If the year is ambiguous, ask.<需求编码>_<功能简介>.功能简介 short and branch-safe. Prefer lowercase ASCII slugs such as hyde, xiaomei, rrl_auth.Given:
需求编码: MR2026051590006
date: 0528
功能简介: hyde
Create:
feature/20260528/MR2026051590006_hyde
Before creating a branch:
git status --short --branch.Preferred feature-from-master flow:
git fetch origin master
git switch --no-track -c feature/YYYYMMDD/MRxxxx_short_desc origin/master
git status --short --branch
Use --no-track so a new feature branch does not accidentally track origin/master.
If Sam explicitly says to use local master, create from local master:
git switch --no-track -c feature/YYYYMMDD/MRxxxx_short_desc master
Before git add / git commit, inspect .idea/workspace.xml if it exists:
rg -n "ChangeListManager|DontCommit|DoNotCommit" .idea/workspace.xml
Rules:
DontCommit / DoNotCommit changelists must not be committed.git worktree for release promotion.When Sam says "提交推送吧" after implementation, treat commit and push as part of the task.
Before commit:
git status --short --branch
git diff --check
Rules:
git commit messages to Chinese. Code identifiers, module names, commands, paths, and proper nouns may stay in English.git status --short --branch and, when useful, git branch -vv --list <branch>.When Sam explicitly asks to merge/push into release/sit, release/uat, or a dated release branch, perform the full requested merge and push path unless blocked.
Default flow:
git fetch origin <target-branch>
git switch <target-branch>
git merge --ff-only <feature-branch>
git push origin <target-branch>
If --ff-only fails:
git merge --no-ff -m "<中文合并信息>" <feature-branch> only when that matches the requested promotion.For multi-branch promotion:
git worktree when the main workspace has unrelated local changes.For branch rename requests, change the visible branch identifier exactly. Do not add code edits or content merges.
Reliable flow:
git branch -m <old> <new>
git branch --unset-upstream <new>
git push -u origin <new>
git branch -vv --list <new>
git ls-remote --heads origin <new> <old>
Rules:
git branch -m, always check for stale upstream metadata.Do not judge sync from commit message shape alone. Compare content and ancestry:
git rev-list --left-right --count <left>...<right>
git rev-parse <ref>^{tree}
git diff --name-status <left>..<right>
git log --oneline --ancestry-path <left>..<right>
Notes:
release/sit may carry extra merge history while still being content-identical to release/uat or a feature branch.git diff --name-status is the most direct content-sync check.When a repo contains submodules or gitlinks:
160000 entry is a parent-repo pointer, not normal file content.Always report the final Git state:
git status --short --branch is cleanDontCommit / DoNotCommitWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub codingsamss/all-my-ai-needs --plugin all-my-ai-needs23 skills in this plugin
/aihot查询 AIHOT(aihot.news)的中文 AI 资讯。用户问今天或最近 AI 圈发生了什么、AI 新闻和 AI 日报、大模型与 AI 产品发布、OpenAI/Anthropic/Google 等公司或某个 AI 话题的最新消息、当前最热的 AI 事件及来龙去脉、AI 模型排行、Codex 额度重置,或其它 AI 行业动态时使用。必须实时查询 AIHOT,不凭训练记忆回答新闻;匿名只读,无需 API Key。/apifox-cli通过 Apifox CLI 管理 Apifox 项目资源。触发场景:运行接口自动化测试/测试套件,查询/创建/更新/删除接口、环境、Schema、Mock、分支等项目资源,导入导出 API 文档,查看测试报告,管理 Runner、定时任务、通知等 CI/CD 配置。CLI 输出为结构化 JSON,常含 agentHints.nextSteps;所有命令支持 --help。/apifox-test-caseApifox 接口测试用例:test-case 与 test-data 的查询、创建、更新、删除、分类和运行;处理测试步骤、断言、提取变量、前后置处理器、数据集,以及“CLI 创建后前端测试步骤无法展示”等问题。/bilibiliRead Bilibili (B站) content. Actions: search videos, view hot/rank feeds, read video details, prepare audio, and read subtitles through OpenCLI. Keywords: bilibili, b站, 哔哩哔哩, BV, 视频, 字幕, 热门, 排行./bird-bookmark-foldersOrganize X/Twitter bookmark folders (collections) via GraphQL with Chrome cookie auth. Actions: list folders, list folder contents, add/remove/move a bookmark between folders, create a folder. Keywords: twitter, x, bookmark folder, collection, 收藏夹, 书签分类, 整理收藏夹, 移动书签./bird-twitterRead X/Twitter content via Bird CLI. Actions: read tweets, search, view all bookmarks or bookmark folders, trending, news, timeline, mentions, lists. Keywords: twitter, x, tweet, trending, bookmarks, bookmark folder, 收藏夹, timeline. 整理收藏夹(移动/新建/增删)用 bird-bookmark-folders。Other plugins' skills for the same job