git-workflow

git-workflow is a skill for Claude Code, Codex from fabioc-aloha/Alex_Skill_Mall. It costs 16 tokens per session (1,107 once invoked), scanned A, original, MIT.

A guide to using Git, the version-control system that records code changes and supports collaboration. It covers consistent workflows, recovery steps, and safer ways to undo or temporarily set aside work.

In plain words
What is it for?
Use it when managing local changes, switching tasks, reversing edits, stashing work, or resetting a branch.
Why use it?
It reduces confusion and accidental data loss when changing branches, restoring files, undoing commits, or recovering from mistakes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is git worktree add ../project-feature feature-branch.

Good fit Use it when managing local changes, switching tasks, reversing edits, stashing work, or resetting a branch.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/fabioc-aloha/Alex_Skill_Mall
agentmods
npx agentmods add skills/fabioc-aloha/alex_skill_mall/git-workflow

Made for: Claude Code, Codex.

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/fabioc-aloha/alex_skill_mall/git-workflow/github.svg)](https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/git-workflow)
Your own site
<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/git-workflow"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/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/fabioc-aloha/alex_skill_mall/git-workflow"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/git-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,107 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.
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.00016 $0.01107
Opus 5 $0.00008 $0.00553
Sonnet 5 $0.00003 $0.00221
Haiku 4.5 $0.00002 $0.00111

Measured 8d ago against content hash d3fd6dd700d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 8d 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.

plugins/devops-process/git-workflow/skills/git-workflow/SKILL.md · 169 lines

How it starts

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

Git Workflow Skill

Consistent git practices, recovery patterns, and safe operations.

⚠️ Staleness Warning

Git core is stable, but GitHub features (Actions, CLI, Copilot integration) evolve.

Refresh triggers:

  • GitHub CLI major updates
  • GitHub Actions runner changes
  • New git features (e.g., git switch, git restore)
  • GitHub Copilot CLI integration

Last validated: February 2026 (Git 2.45+, GitHub CLI 2.x)

Check current state: Git Release Notes, GitHub CLI


Decision Table

Scenario Command Notes
Undo last commit, keep changes git reset --soft HEAD~1 Safe, preserves work
Restore single file git checkout HEAD -- path/to/file Discards file changes
Restore entire folder git checkout HEAD -- .github/ Discards folder changes
Before risky operation git add -A; git commit -m "checkpoint" Always checkpoint first
Discard all uncommitted git reset --hard HEAD Destructive, no recovery
Reset to remote state git reset --hard origin/main Destructive, syncs to remote
Save work temporarily git stashgit stash pop For quick context switch
Isolated experimental work git worktree add ../feature branch Agent-friendly isolation

Commit Message Convention

type(scope): brief description

- Detail 1
- Detail 2

Types: feat, fix, refactor, docs, chore, test, style

Examples:

feat(skills): add git-workflow skill
fix(sync): resolve race condition in background sync
refactor(skills): migrate domain-knowledge to skills architecture
docs(readme): update installation instructions
chore(deps): bump typescript to 5.3

Before Risky Operations

# ALWAYS commit before risky operations
git add -A; git commit -m "checkpoint: before [risky thing]"

# For extra safety, tag it
git tag "safe-point-$(date +%Y-%m-%d-%H%M)"

Read the full file on GitHub · 169 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. 8d ago First seen · 169 lines · 16 tokens per session scan A d3fd6dd700d1

Subscribe to this mod's changes

git-workflow is a skill published in the GitHub repository fabioc-aloha/Alex_Skill_Mall (4 stars, last pushed today), licensed MIT. It adds 16 tokens to every session and 1,107 once invoked, about $0.0001 per session on Opus 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-09-03.