From GitHub Master
Expert Git & GitHub: workflows, history recovery, pull requests, branch protection, and Actions CI/CD. Trigger keywords: git, GitHub, merge conflict, rebase, cherry-pick, reflog, bisect, force push, pull request, branch protection, GitHub Actions, CI/CD, release, conventional commits. Use for Git troubleshooting, collaboration/automation setup, or recovering lost work.
How this skill is triggered — by the user, by Claude, or both
Slash command
/github-master:github-masterThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> Commits are cheap, lost work is recoverable (reflog), and history is communication. Rebase your own local work, never shared history; force-push only with `--force-with-lease`.
Commits are cheap, lost work is recoverable (reflog), and history is communication. Rebase your own local work, never shared history; force-push only with
--force-with-lease.
software-architect.bash-scripting-expert.add/commit/push/pull/branch/merge/rebase, plus stash, cherry-pick, bisect, worktree.git reflog finds detached/reset-away commits. Prefer git revert (safe, new commit) over reset --hard on anything shared.restore --staged; amend last (local) commit → commit --amend; move branch pointer → reset; recover → reflog + checkout -b.main history.git push --force-with-lease (refuses if someone else pushed) — never plain --force.main with required reviews + status checks; use CODEOWNERS and PR/issue templates.feat:, fix:, docs:) enable automated changelogs/SemVer. Small, focused PRs that explain why; link issues (Fixes #123). Know merge strategies: squash (clean linear history), merge commit (preserve context), rebase (linear, no merge commit)..github/workflows/*.yml: triggers (on), jobs, steps, runners. Cache dependencies (actions/cache or setup-* cache), use matrix builds, pin action versions, and scope permissions: to least privilege. Secrets via encrypted Secrets/Variables — never echo them.push --force on a shared branch → overwrites teammates' work; use --force-with-lease.reset --hard to "undo" pushed commits → use revert..gitignore/LFS; rotate if leaked.permissions → supply-chain and token risk.reset/rebase → check git reflog before despairing.Recover a commit removed by a bad reset
git reflog # find the lost SHA, e.g. a1b2c3d
git checkout -b recovered a1b2c3d
Safely update a feature branch after rebase
git rebase origin/main
git push --force-with-lease # refuses if remote moved underneath you
Minimal cached CI workflow (pinned, matrixed, least-priv)
name: CI
on: [pull_request]
permissions: { contents: read }
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix: { node: ["20", "22"] }
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: "${{ matrix.node }}", cache: npm }
- run: npm ci
- run: npm test
software-architect — turning design into branching/release strategy.bash-scripting-expert — robust scripts inside workflows.docker-expert / kubernetes-expert — building/deploying from CI.Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub miaoge-ge/coding-agent-skills --plugin github-master