[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M753V7PXYSWEK79B9BTM8WVD":3,"skill-same:01M753V7PXYSWEK79B9BTM8WVD":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M753V7PXYSWEK79B9BTM8WVD","git-operations",null,"Use when deciding which git operation fits a situation and running it safely — undoing a commit, discarding or unstaging changes, parking work-in-progress, integrating upstream, or recovering from a mistake. A decision router (situation → operation → safe command + undo path) favouring modern porcelain (`switch`, `restore`) over legacy `checkout`. Cross-links to git-commit for committing. Not for tagging or publishing — that's release. Not for worktrees — that's git-worktree.","jabworks\u002Fagentic-toolkit","jabworks","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F159094119?v=4","01M753P4JBZBTT7WN1PJBPZJZP","JAB Works","01M753P4K5KDGEWGXWT811BZET",2,"MIT","https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fgit-operations\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: git-operations\ndescription: Use when deciding which git operation fits a situation and running it safely — undoing a commit, discarding or unstaging changes, parking work-in-progress, integrating upstream, or recovering from a mistake. A decision router (situation → operation → safe command + undo path) favouring modern porcelain (`switch`, `restore`) over legacy `checkout`. Cross-links to git-commit for committing. Not for tagging or publishing — that's release. Not for worktrees — that's git-worktree.\n---\n\n# git-operations\n\nA **decision router** for git: given a situation, pick the *right* operation, run it safely, and always know the undo path. Raw git offers many ways to do the same thing — several of them foot-guns. This skill encodes the judgment of which to reach for.\n\n## When to use\n\n- You know the *goal* (\"undo that\", \"throw away these edits\", \"get upstream changes\") but not the safest command.\n- Something went wrong and you need to recover.\n- You want the modern, canonical command instead of the legacy habit.\n\nStart every operation by looking before you leap:\n\n```bash\ngit status              # working tree + index state\ngit branch --show-current\ngit log --oneline -5    # recent history for context\n```\n\n## Modern porcelain — defaults\n\nPrefer the modern commands; reserve `checkout` for the rare case nothing else covers (and say so when you use it).\n\n| Goal | Use | Not |\n|---|---|---|\n| Switch branch | `git switch \u003Cbranch>` | `git checkout \u003Cbranch>` |\n| Create + switch | `git switch -c \u003Cnew>` | `git checkout -b \u003Cnew>` |\n| Discard a tracked file's changes | `git restore \u003Cpath>` | `git checkout -- \u003Cpath>` |\n| Unstage a file | `git restore --staged \u003Cpath>` | `git reset \u003Cpath>` |\n\n## Decision map\n\nFull routing table in `references\u002Fdecision-map.md`. The high-value forks:\n\n| Situation | Choose → (not →) | Undo path |\n|---|---|---|\n| **Undo a commit** | `reset --soft HEAD~1` (local, keep changes staged) · `revert \u003Csha>` (shared\u002Fpushed — safe, adds a commit) · reflog (recover a lost one) | `git reflog` → `reset --hard \u003Csha>` |\n| **Discard changes** | `restore \u003Cpath>` (tracked) · `restore --staged \u003Cpath>` (unstage) · `clean -nd` then `clean -fd` (untracked) | destructive — warn & dry-run first |\n| **Park work-in-progress** | `stash push -m \"\u003Cnote>\"` (quick, same branch) · `switch -c \u003Cnew>` (longer-lived) | `stash pop` \u002F `switch` back |\n| **Integrate upstream** | `merge` (preserve history, shared branches) · `pull --rebase` (linear, local-only work) | `reset --merge ORIG_HEAD` |\n| **Publish** | `push` — but check branch + never force to shared (see below) | — |\n| **Committing** | → use the **git-commit** skill | — |\n| **\"I broke something\"** | → `references\u002Frecovery.md` (reflog cookbook) | — |\n\n## Operation cards\n\nEach card: when to choose it, the safe sequence, and how to undo it.\n\n### Undo a commit\n\n- **Local, not pushed, keep the changes:** `git reset --soft HEAD~1` — moves HEAD back, leaves everything staged.\n- **Local, drop the changes too:** `git reset --hard HEAD~1` — **destructive**; confirm the working tree has nothing else you want first.\n- **Already pushed \u002F shared branch:** `git revert \u003Csha>` — records a new commit that inverts the change. Never rewrite shared history.\n- **Undo:** `git reflog` shows where HEAD was; `git reset --hard \u003Csha>` returns to it.\n\n### Discard \u002F unstage changes\n\n- **Tracked file, unstaged edits:** `git restore \u003Cpath>` — **destructive**, no undo. Confirm before running.\n- **Unstage (keep the edits):** `git restore --staged \u003Cpath>`.\n- **Untracked files:** dry-run first — `git clean -nd` — then `git clean -fd`. **Destructive.**\n- **Undo:** none for `restore`\u002F`clean` on uncommitted work — that's why the dry-run and confirmation are mandatory.\n\n### Park work-in-progress\n\n- **Quick context switch:** `git stash push -m \"wip: \u003Cnote>\"`; restore with `git stash pop`. Inspect with `git stash list` \u002F `git stash show -p`.\n- **Longer-lived divergence:** `git switch -c \u003Cnew>` and commit there.\n- **Undo:** `git stash pop` reapplies; a dropped stash is recoverable via `git fsck --no-reflog` (see recovery.md).\n\n### Integrate upstream\n\n- **Shared branch \u002F preserve history:** `git fetch` then `git merge origin\u002F\u003Cbranch>`.\n- **Local-only unpublished work \u002F want linear history:** `git pull --rebase`.\n- **On conflict:** resolve files → `git add \u003Cresolved>` → `git merge --continue` (or `git rebase --continue`). Abort with `git merge --abort` \u002F `git rebase --abort`.\n- **Undo a completed merge:** `git reset --merge ORIG_HEAD`.\n\n### Publish (push)\n\nBefore pushing:\n\n```bash\ngit branch --show-current       # right branch?\ngit status                      # ahead\u002Fbehind, clean?\ngit push                        # plain push to your branch\n```\n\n**Never** force-push to a shared branch (`main`, `master`, release branches). Forcing your *own* feature branch (e.g. after amending a commit you'd already pushed) is fine — see the next card.\n\n### Force-push safely (own feature branch only)\n\nWhen your local branch has diverged from its remote because you rewrote a\ncommit *you already pushed* (amend, or a rebase done elsewhere), update the\nremote with a **lease**, never a bare force:\n\n```bash\ngit branch --show-current       # confirm it's YOUR feature branch, not shared\ngit fetch                       # refresh remote-tracking refs\ngit status                      # review the divergence before overwriting\ngit push --force-with-lease     # aborts if someone else pushed since your last fetch\n```\n\n- **`--force-with-lease`, never `--force` \u002F `-f`.** The lease refuses to\n  overwrite work that arrived after your last fetch; bare force clobbers it\n  blindly.\n- **Never on a shared branch.** If teammates track this branch, coordinate or\n  don't force at all — rewriting published history they depend on is out of\n  scope here.\n- **Undo:** the pre-force remote tip is in your local `git reflog` (and\n  collaborators' reflogs); recover with `git reset --hard \u003Csha>` then a fresh\n  `git push --force-with-lease`.\n\n## Out of scope\n\nThis skill is **everyday + recovery only**.\n\n**Covered by a sibling skill:**\n\n- Worktrees — isolated workspaces, listing and switching trees, prune\u002Fremove, recovery → **`git-worktree`**\n- Committing → `git-commit`\n- Tagging and publishing a version → `release`\n\n**Still excluded — a future history-rewriting skill:**\n\n- interactive rebase, amend \u002F fixup \u002F autosquash\n- cherry-pick\n- bare `git push --force` \u002F `-f`, and forcing a **shared** branch (only the safe `--force-with-lease` on your own feature branch is covered)\n- submodules, bisect\n\nIf a task needs one of the excluded items, say so and stop — don't improvise.\n\n## ⚙ Adjust these (defaults)\n\nCommands above are generic. This toolkit's owner signs off commits with `-s` — drop it if you don't use signoff; nothing else changes.\n","# git-operations\n\nA **decision router** for git: given a situation, pick the *right* operation, run it safely, and always know the undo path. Raw git offers many ways to do the same thing — several of them foot-guns. This skill encodes the judgment of which to reach for.\n\n## When to use\n\n- You know the *goal* (\"undo that\", \"throw away these edits\", \"get upstream changes\") but not the safest command.\n- Something went wrong and you need to recover.\n- You want the modern, canonical command instead of the legacy habit.\n\nStart every operation by looking before you leap:\n\n```bash\ngit status              # working tree + index state\ngit branch --show-current\ngit log --oneline -5    # recent history for context\n```\n\n## Modern porcelain — defaults\n\nPrefer the modern commands; reserve `checkout` for the rare case nothing else covers (and say so when you use it).\n\n| Goal | Use | Not |\n|---|---|---|\n| Switch branch | `git switch \u003Cbranch>` | `git checkout \u003Cbranch>` |\n| Create + switch | `git switch -c \u003Cnew>` | `git checkout -b \u003Cnew>` |\n| Discard a tracked file's changes | `git restore \u003Cpath>` | `git checkout -- \u003Cpath>` |\n| Unstage a file | `git restore --staged \u003Cpath>` | `git reset \u003Cpath>` |\n\n## Decision map\n\nFull routing table in `references\u002Fdecision-map.md`. The high-value forks:\n\n| Situation | Choose → (not →) | Undo path |\n|---|---|---|\n| **Undo a commit** | `reset --soft HEAD~1` (local, keep changes staged) · `revert \u003Csha>` (shared\u002Fpushed — safe, adds a commit) · reflog (recover a lost one) | `git reflog` → `reset --hard \u003Csha>` |\n| **Discard changes** | `restore \u003Cpath>` (tracked) · `restore --staged \u003Cpath>` (unstage) · `clean -nd` then `clean -fd` (untracked) | destructive — warn & dry-run first |\n| **Park work-in-progress** | `stash push -m \"\u003Cnote>\"` (quick, same branch) · `switch -c \u003Cnew>` (longer-lived) | `stash pop` \u002F `switch` back |\n| **Integrate upstream** | `merge` (preserve history, shared branches) · `pull --rebase` (linear, local-only work) | `reset --merge ORIG_HEAD` |\n| **Publish** | `push` — but check branch + never force to shared (see below) | — |\n| **Committing** | → use the **git-commit** skill | — |\n| **\"I broke something\"** | → `references\u002Frecovery.md` (reflog cookbook) | — |\n\n## Operation cards\n\nEach card: when to choose it, the safe sequence, and how to undo it.\n\n### Undo a commit\n\n- **Local, not pushed, keep the changes:** `git reset --soft HEAD~1` — moves HEAD back, leaves everything staged.\n- **Local, drop the changes too:** `git reset --hard HEAD~1` — **destructive**; confirm the working tree has nothing else you want first.\n- **Already pushed \u002F shared branch:** `git revert \u003Csha>` — records a new commit that inverts the change. Never rewrite shared history.\n- **Undo:** `git reflog` shows where HEAD was; `git reset --hard \u003Csha>` returns to it.\n\n### Discard \u002F unstage changes\n\n- **Tracked file, unstaged edits:** `git restore \u003Cpath>` — **destructive**, no undo. Confirm before running.\n- **Unstage (keep the edits):** `git restore --staged \u003Cpath>`.\n- **Untracked files:** dry-run first — `git clean -nd` — then `git clean -fd`. **Destructive.**\n- **Undo:** none for `restore`\u002F`clean` on uncommitted work — that's why the dry-run and confirmation are mandatory.\n\n### Park work-in-progress\n\n- **Quick context switch:** `git stash push -m \"wip: \u003Cnote>\"`; restore with `git stash pop`. Inspect with `git stash list` \u002F `git stash show -p`.\n- **Longer-lived divergence:** `git switch -c \u003Cnew>` and commit there.\n- **Undo:** `git stash pop` reapplies; a dropped stash is recoverable via `git fsck --no-reflog` (see recovery.md).\n\n### Integrate upstream\n\n- **Shared branch \u002F preserve history:** `git fetch` then `git merge origin\u002F\u003Cbranch>`.\n- **Local-only unpublished work \u002F want linear history:** `git pull --rebase`.\n- **On conflict:** resolve files → `git add \u003Cresolved>` → `git merge --continue` (or `git rebase --continue`). Abort with `git merge --abort` \u002F `git rebase --abort`.\n- **Undo a completed merge:** `git reset --merge ORIG_HEAD`.\n\n### Publish (push)\n\nBefore pushing:\n\n```bash\ngit branch --show-current       # right branch?\ngit status                      # ahead\u002Fbehind, clean?\ngit push                        # plain push to your branch\n```\n\n**Never** force-push to a shared branch (`main`, `master`, release branches). Forcing your *own* feature branch (e.g. after amending a commit you'd already pushed) is fine — see the next card.\n\n### Force-push safely (own feature branch only)\n\nWhen your local branch has diverged from its remote because you rewrote a\ncommit *you already pushed* (amend, or a rebase done elsewhere), update the\nremote with a **lease**, never a bare force:\n\n```bash\ngit branch --show-current       # confirm it's YOUR feature branch, not shared\ngit fetch                       # refresh remote-tracking refs\ngit status                      # review the divergence before overwriting\ngit push --force-with-lease     # aborts if someone else pushed since your last fetch\n```\n\n- **`--force-with-lease`, never `--force` \u002F `-f`.** The lease refuses to\n  overwrite work that arrived after your last fetch; bare force clobbers it\n  blindly.\n- **Never on a shared branch.** If teammates track this branch, coordinate or\n  don't force at all — rewriting published history they depend on is out of\n  scope here.\n- **Undo:** the pre-force remote tip is in your local `git reflog` (and\n  collaborators' reflogs); recover with `git reset --hard \u003Csha>` then a fresh\n  `git push --force-with-lease`.\n\n## Out of scope\n\nThis skill is **everyday + recovery only**.\n\n**Covered by a sibling skill:**\n\n- Worktrees — isolated workspaces, listing and switching trees, prune\u002Fremove, recovery → **`git-worktree`**\n- Committing → `git-commit`\n- Tagging and publishing a version → `release`\n\n**Still excluded — a future history-rewriting skill:**\n\n- interactive rebase, amend \u002F fixup \u002F autosquash\n- cherry-pick\n- bare `git push --force` \u002F `-f`, and forcing a **shared** branch (only the safe `--force-with-lease` on your own feature branch is covered)\n- submodules, bisect\n\nIf a task needs one of the excluded items, say so and stop — don't improvise.\n\n## ⚙ Adjust these (defaults)\n\nCommands above are generic. This toolkit's owner signs off commits with `-s` — drop it if you don't use signoff; nothing else changes.\n",{"name":5,"description":7},"main","5277649b071c1c0cdf4f15eee861b1608fc1bbcb","skills\u002Fgit-operations",0,"https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit","https:\u002F\u002Fgithub.com\u002Fjabworks","2026-11-03 15:03:51",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add jabworks\u002Fagentic-toolkit --skill git-operations",{"tool":37,"command":38},"bunx","bunx skills add jabworks\u002Fagentic-toolkit --skill git-operations",{"tool":40,"command":41},"pnpm","pnpm dlx skills add jabworks\u002Fagentic-toolkit --skill git-operations","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fgit-operations\u002FSKILL.md",true,[45,51],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Fdecision-map.md","REFERENCE","参考文档",3697,"https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fgit-operations\u002Freferences\u002Fdecision-map.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Frecovery.md",2648,"https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fgit-operations\u002Freferences\u002Frecovery.md",[56,62,68,75,82,89],{"skillNo":57,"name":58,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7540BPNTFZH7V41P5E2S692","orphan","https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fcomposition\u002Fbad\u002Fskills\u002Forphan\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7540AG2KFTQ8DJMNV6806MV","no-blurb","https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fcomposition\u002Fbad\u002Fskills\u002Fno-blurb\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M75404N306PY1JFPQ0GGNTYB","workflow","Routes any dev task into the right execution tier (Small\u002FMedium\u002FLarge) and carries condux's operating rules — proportional effort, lazy skill loading, soft gates, implement-yourself-by-default.","https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fworkflow\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M753ZZ6TTA06GRJAG679BQ2H","usage-trace","Checks and manages durable, local usage capture — ingest, health status, and the opt-in limit snapshot — for Claude Code and Codex. Capture itself runs automatically at session start.","https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fusage-trace\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M753ZSKJSF8WFS7AXR2N65SE","toolkit-skill-standards","Use when writing or reviewing a SKILL.md for jabworks\u002Fagentic-toolkit — frontmatter budgets, the trigger contract (\"Use when…\" description or when_to_use field), progressive disclosure into references\u002F, and keeping a new description out of existing skills' trigger space. Triggers include \"review this skill description\", \"write the frontmatter\", \"does this collide with an existing skill\", \"where should this content live\". Not for scaffold\u002Fsync mechanics; use toolkit-foundry.","https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Ftoolkit-skill-standards\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M753ZKX3KTVYWX15A9A0WZN0","toolkit-research-frontier","Use when planning improvement work on jabworks\u002Fagentic-toolkit itself — open problems (trigger-collision automation, YAML-strict frontmatter checks, docs-catalog enforcement), existing assets, the next three concrete steps, and the four-front library-health campaign with commands and success criteria. Triggers include \"let's improve our toolkit\", \"let's improve this repo\", \"what should we improve next\", \"toolkit roadmap\", \"open problems\", \"run the health campaign\".","https:\u002F\u002Fgithub.com\u002Fjabworks\u002Fagentic-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Ftoolkit-research-frontier\u002FSKILL.md",[],[]]