Agent skill

Git Preflight

by SpecterOps in SpecterOps/skills

Pre-commit and pre-edit git checklist — staged diff code-review, macOS case renames, remote branch sync verification.

Apache-2.0Auto-check passedDevelopment

Install Git Preflight

skills CLI
$ npx skills add SpecterOps/skills --skill git-preflight -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install SpecterOps/skills git-preflight --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/SpecterOps/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/workflows-development/skills/git-preflight .claude/skills/git-preflight && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
git-preflight
GitHub stars
702
Token cost
~578 tokens
SKILL.md length
189 words
Files
4 (incl. assets)
Skills in repo
38
Repo updated
First seen
Licence
Apache-2.0

At a glance

Pre-commit and pre-edit git checklist — staged diff code-review, macOS case renames, remote branch sync verification.

  • Works in 3 steps: Review staged diff → Check for case-rename traps (macOS) → Verify branch
  • Tasks that involve Git workflow
  • SKILL.md covers branch — Before Editing a…, commit — Before Committing and Output
  • Calls git

What it does

Git Preflight is an agent skill from SpecterOps/skills. Pre-commit and pre-edit git checklist — staged diff code-review, macOS case renames, remote branch sync verification. Run before committing or starting work on a feature branch.

Its SKILL.md is about 580 tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including assets (for example `agents/openai.yaml`).

It sits in Development, covering Git workflow. It works with Git and macOS. The repository describes itself as: A marketplace for LLM skills. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Git workflow

Example prompts

  • “/git-preflight”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Review staged diff
  2. Check for case-rename traps (macOS)
  3. Verify branch

What it can do on your machine

Read from SKILL.md and the folder at commit e655f93. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Git Preflight loads about 578 tokens when it runs. Until then it costs about 48 tokens; SKILL.md has 189 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~48
When it runs · the whole SKILL.md, loaded when a task matches
~578

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from SpecterOps/skills at commit e655f93, republished under its Apache-2.0 licence (© SpecterOps). 189 words, ~578 tokens.

Download SKILL.mdSave it as .claude/skills/git-preflight/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
git-preflight
description
Pre-commit and pre-edit git checklist — staged diff code-review, macOS case renames, remote branch sync verification. Run before committing or starting work on a feature branch.
metadata.author
GhostWorks

Git Preflight Checklist

Run before committing (commit) or before editing a feature branch (branch). Default (all) runs both.

branch — Before Editing a Feature Branch

Verify the local branch is in sync with remote before making any changes:

bash
git fetch origin
git log --oneline HEAD..origin/$(git branch --show-current)

If output is non-empty, the remote is ahead — pull before editing:

bash
git pull --ff-only

If the branch has diverged, report to user and stop. Do not start editing on a stale branch.

commit — Before Committing

1. Review staged diff
bash
git diff --staged

Check for:

  • Unintended lines — edits from before the current session that got staged with git add
  • Debug output — leftover print/log statements
  • Secrets — any tokens, passwords, or API keys accidentally staged

If unintended changes are staged, unstage the file and re-add only the intended hunks:

bash
git restore --staged <file>
git add -p <file>
2. Check for case-rename traps (macOS)

If any staged files look like case-only renames (e.g., foo.md → FOO.md), verify git actually tracked it:

bash
git status

On macOS (case-insensitive FS), git mv foo.md FOO.md is a no-op. The correct approach:

bash
git mv foo.md tmp.md && git mv tmp.md FOO.md
3. Verify branch
bash
git branch --show-current

Confirm you're on the intended feature branch, not main or master. If on main/master, create a feature branch before committing unless this is intentional.

Output

Report pass/fail for each check:

Git Preflight — commit
✓ Staged diff reviewed — N files, no unintended changes
✓ No case-rename issues detected
✓ On branch feat/my-feature (not main)
Ready to commit.

Or with issues:

Git Preflight — commit
✗ Staged diff contains lines from before current session in src/main.py
  → Run: git restore --staged src/main.py && git add -p src/main.py
✓ No case-rename issues detected
✓ On branch feat/my-feature
Fix staged diff before committing.

© SpecterOps, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (assets) in plugins/workflows-development/skills/git-preflight of SpecterOps/skills.

  • SKILL.md
  • agents/openai.yaml
  • assets/icon.png
  • assets/icon.svg

Open the folder on GitHubat commit e655f93

Compare with similar skills

Git Preflight next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Git Preflight compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Git Preflight this skillSpecterOps/skills702—~578Automated safety check: PassApache-2.0
Antigravity CLI StatuslineAndyAWD/antigravity-cli-statusline100—~2.2kAutomated safety check: PassMIT
SetupProrise-cool/Claude-Code-Multi-Agent305—~3kAutomated safety check: NotesNone
Git ConfigProrise-cool/Claude-Code-Multi-Agent305—~4.4kAutomated safety check: NotesNone
Gui ToolsProrise-cool/Claude-Code-Multi-Agent305—~2.4kAutomated safety check: NotesNone
Line EndingsProrise-cool/Claude-Code-Multi-Agent305—~3.1kAutomated safety check: NotesNone

Similar skills

  • Antigravity CLI Statusline

    AndyAWD/antigravity-cli-statusline

    本技能用於設定 Antigravity 命令列介面(CLI)(agy)的狀態列(Statusline / Footer)顯示指標、顯示順序與多語系介面(繁體中文 zh-tw / English us / 日本語 jp),並自動部署跨平台 Node.js 掛鉤(Hook)腳本(statusline-quota.mjs、fetch-local-quota.mjs)至…

    100 GitHub stars~2.2k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Setup

    Prorise-cool/Claude-Code-Multi-Agent

    Complete guide to installing Git and performing basic configuration across all platforms (Windows, macOS, Linux, WSL).

    305 GitHub stars~3k tokensUpdated 22 days ago
    DevelopmentAuto-check: notes
  • Git Config

    Prorise-cool/Claude-Code-Multi-Agent

    Comprehensive Git configuration guide covering global settings, aliases, performance tuning, credential management, maintenance, .gitattributes, clone shortcuts, and troubleshooting.

    305 GitHub stars~4.4k tokensUpdated 22 days ago
    DevelopmentAuto-check: notes
  • Gui Tools

    Prorise-cool/Claude-Code-Multi-Agent

    Provides guidance for installing, configuring, and choosing Git graphical interface clients (GitKraken, Sourcetree, GitHub Desktop) across platforms.

    305 GitHub stars~2.4k tokensUpdated 22 days ago
    DevelopmentAuto-check: notes
  • Line Endings

    Prorise-cool/Claude-Code-Multi-Agent

    Comprehensive guide to Git line ending configuration for cross-platform development teams.

    305 GitHub stars~3.1k tokensUpdated 22 days ago
    DevelopmentAuto-check: notes
  • Subtree Publish

    cat-xierluo/legal-skills

    将 monorepo 中的子目录通过 git subtree 推送到独立 GitHub 仓库。支持注册清单、变更自动检测、增量推送。本技能应在用户提交涉及已注册子项目的变更后,或手动请求推送到独立仓库时使用。不要用于初次创建 monorepo 或管理 git submodule。

    713 GitHub stars~1.8k tokensUpdated today
    DevelopmentAuto-check: notes

More from SpecterOps/skills

All 38 skills in this repo
  • Codex Activity Report

    SpecterOps/skills

    Generate a normalized UTC timeline and evidence-based narrative from Codex activity artifacts.

    702 GitHub stars~805 tokensUpdated 14 days ago
    Auto-check passed
  • Com Proxy Triage

    SpecterOps/skills

    A skill your agent uses when the user wants to triage Windows COM proxy/hijack candidates by capturing HKCU\Software\Classes\CLSID\{...}\InProcServer32 NAME NOT FOUND lookups for a process, mapping…

    702 GitHub stars~1.5k tokensUpdated 14 days ago
    Auto-check passed
  • Cwe Code Review

    SpecterOps/skills

    Perform CWE-grounded security code reviews and precise weakness mapping using a locally derived MITRE CWE corpus, relationship graphs, mapping notes, detection methods, mitigations, and schema…

    702 GitHub stars~2.4k tokensUpdated 14 days ago
    Auto-check passed
  • Ghostwriter Oplog

    SpecterOps/skills

    A skill your agent uses for Ghostwriter operation log entries from Codex, including config guidance, quick notes, evidence-backed entries, and guided oplog capture through the Ghostwriter MCP tools.

    702 GitHub stars~665 tokensUpdated 14 days ago
    Auto-check passed
  • Nmap Parse

    SpecterOps/skills

    Parse nmap scan output and generate actionable recon notes. An agent skill from SpecterOps/skills.

    702 GitHub stars~738 tokensUpdated 14 days ago
    Auto-check passed
  • Osint Recon

    SpecterOps/skills

    Perform OSINT and external reconnaissance for approved targets.

    702 GitHub stars~813 tokensUpdated 14 days ago
    Auto-check passed

Works with

Categories

Questions about Git Preflight

What does Git Preflight do?

Pre-commit and pre-edit git checklist — staged diff code-review, macOS case renames, remote branch sync verification. Git Preflight is an agent skill from SpecterOps/skills. Pre-commit and pre-edit git checklist — staged diff code-review, macOS case renames, remote branch sync verification.

When should I use Git Preflight?

Git Preflight fits situations like: tasks that involve Git workflow.

How do I install Git Preflight in Claude Code?

Run `npx skills add SpecterOps/skills --skill git-preflight -a claude-code`. Or copy the skill folder (plugins/workflows-development/skills/git-preflight in SpecterOps/skills) into .claude/skills/git-preflight in your project. Claude Code loads it when a task matches its description.

How do I install Git Preflight in Codex?

Run `npx skills add SpecterOps/skills --skill git-preflight -a codex`. Or copy the skill folder (plugins/workflows-development/skills/git-preflight in SpecterOps/skills) into .agents/skills/git-preflight in your project. Codex loads it when a task matches its description.

Can I use Git Preflight in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add SpecterOps/skills --skill git-preflight -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/git-preflight, .gemini/skills/git-preflight, .github/skills/git-preflight and .opencode/skills/git-preflight in your project.

What does Git Preflight need to run?

Going by SKILL.md and its folder, Git Preflight needs the command-line tools its instructions call (git).

Does Git Preflight access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Git Preflight safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Git Preflight use?

Git Preflight is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Git Preflight use?

About 578 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Git Preflight?

Skills that share tags, products or a category with Git Preflight: Antigravity CLI Statusline (AndyAWD/antigravity-cli-statusline, 100 stars), Setup (Prorise-cool/Claude-Code-Multi-Agent, 305 stars), Git Config (Prorise-cool/Claude-Code-Multi-Agent, 305 stars) and Gui Tools (Prorise-cool/Claude-Code-Multi-Agent, 305 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Git Preflight?

SpecterOps (a GitHub organization) maintains it in SpecterOps/skills, which has 702 GitHub stars. The repository holds 38 skills in this directory. The repository was last updated on September 23, 2026.

Source: SpecterOps/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.