AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Ls Git Workflows

skill-cruxexperts-localsetup-ls-git-workflows · by CruxExperts

Advanced git operations beyond add/commit/push. Use when rebasing, bisecting bugs, using worktrees for parallel development, recovering with reflog, managing subtrees/submodules, resolving merge conflicts, cherry-picking across branches, or working with monorepos.

— No reviews yet
0 installs
2 views
0.0% view→install

Install

$ agentstack add skill-cruxexperts-localsetup-ls-git-workflows

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • ✓ Prompt-injection patterns
  • ✓ Secret / credential exfiltration
  • ✓ Dangerous shell & filesystem operations
  • ✓ Untrusted network calls
  • ✓ Known-malicious package signatures

What it can access

  • ✓ Network access No
  • ✓ Filesystem access No
  • ✓ Shell / process execution No
  • ✓ Environment & secrets No
  • ✓ Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-cruxexperts-localsetup-ls-git-workflows)

Reliability & compatibility

✓ Security review passed
0 installs to date
— no reviews yet
● yesterday

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Ls Git Workflows? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Git Workflows

Use this skill for advanced Git operations that can rewrite history, move work between branches, recover lost commits, or manage large and multi-repository codebases. Keep this file as the activation and safety workflow; open the references only for the procedure you need.

When to Use

  • Cleaning up commit history before merging.
  • Finding which commit introduced a bug.
  • Working on multiple branches at the same time.
  • Recovering lost commits, dropped stashes, or mistaken resets.
  • Cherry-picking commits across branches or forks.
  • Managing subtrees, submodules, or sparse checkouts.
  • Resolving complex merge or rebase conflicts.
  • Inspecting history with blame, pickaxe, or file-following log commands.

Safety Workflow

  1. Inspect the repository before changing it:
git status --short --branch
git remote -v
git branch --show-current
  1. Identify whether the target branch is shared. Do not rebase, amend, reset, or

force-push shared history unless the user explicitly asks for that operation.

  1. Preserve unrelated work. If the worktree is dirty, only stage or modify files

that belong to the task.

  1. Before every git reset --hard, require a clean worktree. Preserve desired

staged, unstaged, and relevant untracked work first with an approved WIP commit, patch, stash (use -u when needed), or separate worktree. A backup branch or tag preserves only commits; it does not preserve uncommitted work.

git status --short
git stash push -u -m "WIP before recovery"
git branch backup/before-recovery
  1. Prefer non-interactive commands when automating. Use interactive rebase only

when the user can review the intended commit list or the change is clearly local and scoped.

  1. After each operation, re-check status and confirm the branch, staged files,

and diff match the requested outcome.

Rule ownership

This skill owns advanced Git operations and traceability behavior. GIT_TRACEABILITY.md is the public reference; use this skill for branch, history, worktree, release-tag, and checkpoint decisions.

  • Preserve unrelated dirty-tree work.
  • Record commit hashes or branch names when a decision depends on a past state.
  • Use ls-unfuck-my-git-state for broken worktree/index/ref symptoms instead of improvising repair steps here.

Workflow Router

Open the matching reference and follow only that recipe:

  • [Rebase and bisect](references/rebase-and-bisect.md) - interactive rebase,

autosquash, abort/continue flows, manual bisect, automated bisect, and skipped build failures.

  • [Worktrees, recovery, and history](references/worktrees-recovery-and-history.md)
  • worktree setup, reflog recovery, cherry-pick, stash patterns, blame, and log

archaeology.

  • [Repository structure and conflicts](references/repo-structure-and-conflicts.md)
  • subtree, submodule, sparse checkout, merge conflict resolution, rebase

conflicts, and rerere.

  • [Tags, releases, and tips](references/tags-releases-and-tips.md) - tag

commands, release tag handling, and compact advanced Git tips.

Quick Triage

Use these read-only commands before selecting a recipe:

git log --oneline --decorate --graph -20
git diff --stat
git diff --cached --stat
git reflog --date=relative -20

For branch divergence:

git fetch --all --prune
git status --short --branch
git log --oneline --left-right --cherry-pick HEAD...@{upstream}

If an operation is already in progress, inspect Git's state before continuing:

git status
git rebase --show-current-patch
git diff --cc

Completion Checks

  • git status --short --branch shows the expected branch and worktree state.
  • git diff --stat and git diff --cached --stat match the task scope.
  • Any rewritten or moved commits were verified with git log --oneline --graph.
  • Recovery work leaves a named branch or clear reflog handle for rollback when

the operation could discard reachable work.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.