agtrace: Skill for Claude Code

.claude/skills/git-workflow/SKILL.md

git-workflow is a skill for Claude Code from lanegrid/agtrace. It costs 31 tokens per session (2,001 once invoked), scanned A, original, Apache-2.0.

A set of rules and commands for managing Git branches, commits, and pull requests. Git is a tool for tracking code changes, while a pull request is a proposed change submitted for review.

In plain words
What is it for?
Use it to create and clean up branches, pause work in a temporary commit, undo the latest commit, synchronise stacked pull requests, and monitor a pull request through merge.
Why use it?
It gives a consistent way to work safely with multiple worktrees and avoids branch or stash operations that can cause conflicts in this setup.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

This is lanegrid/agtrace's own configuration. It tells Claude Code how to work on agtrace itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agtrace configures →

Reuse

Borrowing it

Nothing to install: this file belongs to lanegrid/agtrace. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/lanegrid/agtrace/main/.claude/skills/git-workflow/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/lanegrid/agtrace

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/lanegrid/agtrace/git-workflow/github.svg)](https://agentmods.dev/skills/lanegrid/agtrace/git-workflow)
Your own site
<a href="https://agentmods.dev/skills/lanegrid/agtrace/git-workflow"><img src="https://agentmods.dev/badge/skills/lanegrid/agtrace/git-workflow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-workflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/lanegrid/agtrace/git-workflow"><img src="https://agentmods.dev/badge/skills/lanegrid/agtrace/git-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,001 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.02001
Opus 5.5 $0.00012 $0.00800
Sonnet 5.5 $0.00006 $0.00400
Haiku 4.5 $0.00003 $0.00200

Measured 1mo ago against content hash baa766c74840, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-workflow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/git-workflow/SKILL.md · 230 lines

How it starts

The opening of the file, as written. The whole thing — 230 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Git Workflow and Conventions

Worktree-aware Git workflow using mise run git:* tasks.

Quick Reference

# Basic operations
mise run git:status            # Show current state + next action
mise run git:home              # Switch to home branch + sync with origin/main
mise run git:new <branch>      # Create new branch from origin/main
mise run git:cleanup [branch]  # Delete merged branch + return to home

# PR lifecycle (CI wait -> browser open -> merge watch -> cleanup)
mise run git:open-pr <pr#>     # All-in-one: CI -> open -> watch -> cleanup

# Pause / discard / undo
mise run git:pause [message]   # WIP commit + return to home (for switching tasks)
mise run git:abandon           # Discard all changes + return to home
mise run git:undo              # Soft reset HEAD~1 (undo last commit)

# Stacked PRs
mise run git:sync              # Sync current branch after base PR merge

Note: These tasks use the gw Rust CLI (crates.io). Install with cargo install git-workflow.

Pitfalls

  • Do not run git checkout main — use mise run git:home instead (worktree conflict)
  • Do not use git stash — use mise run git:pause instead (creates WIP commit for safer worktree switching)
  • Do not manually rebase stacked PRs — use mise run git:sync instead (updates GitHub PR base + rebases)

Standard Workflow: Code -> PR

Every code change should become a PR. Follow this flow:

1. Branch   -> mise run git:new -- feature/your-feature
2. Code     -> make changes
3. Commit   -> git add -A && git commit -m "feat: ..."
4. Push     -> git push -u origin feature/your-feature
5. PR       -> gh pr create -a "@me" -t "feat: ..."
6. Open     -> mise run git:open-pr <pr#>  (CI wait -> browser -> merge watch -> cleanup)
               ⚠ Run ONCE after final push. If CI fails, stop watcher -> fix -> push -> relaunch.
7. Cleanup  -> (auto: merge detected -> git:cleanup runs)

git:open-pr — PR Lifecycle Management (Claude Code Background Task)

Read the full file on GitHub · 230 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 230 lines · 31 tokens per session scan A baa766c74840

Subscribe to this mod's changes

git-workflow is a skill published in the GitHub repository lanegrid/agtrace (62 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 31 tokens to every session and 2,001 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

autofix-pr

Watch a pull request and fix it from a worktree of its own - CI failures, review feedback from trusted authors and merge conflicts are fixed, pushed to the PR branch and answered on the PR under the user's git and gh identity. Usage - /autofix-pr [ | ] [--once] [--every ] [--no-reply] [--yes] [instructions]…

QwenLM/qwen-code · 123 tokens

ax-extract-workflow

Reconstruct workflow behind a past coding-agent artifact using local ax sessions/commits/skills/tool traces. Use when asked how X was built.

sickn33/agentic-awesome-skills · 35 tokens

cw-land

Use when turning verified Codewhale work into commits, branches, or a merge: choosing direct-main vs. worktree vs. integration branch, preserving contributor credit, and honoring the gate artifact before merging.

Hmbown/Codewhale · 44 tokens

contributing

How to contribute to evlog, covering commit and PR conventions, changesets, the Definition of Done, testing rules, and the authored skills that walk through building a new adapter, enricher, framework integration, or map rule. Load this for any question about contributing, opening a PR, or adding something to the…

HugoRCD/evlog · 68 tokens

commit-staged

This skill should be used when user asks to "commit these changes", "write commit message", "stage and commit", "create a commit", "commit staged files", or explicitly invokes "commit-staged".

fcakyon/claude-codex-settings · 46 tokens

cuga-contributor-workflows

Run CUGA contributor workflows: Conventional Commits, create pull requests against origin with gh and PR templates, ruff check/format via uv, and the required design-impact, area, and readability labels before every push and pull request. Use when the user says commit, create a commit, push, create PR, pull request…

cuga-project/cuga-agent · 92 tokens