gsd-task-manager: Skill for Claude Code

.agents/skills/branch-preflight/SKILL.md

branch-preflight is a skill for Claude Code from vscarpenter/gsd-task-manager. It costs 105 tokens per session (799 once invoked), scanned A, original, MIT.

A pre-work check for the Git working directory, the folder where a repository's files and pending changes are tracked.

In plain words
What is it for?
Use it before following an implementation plan, creating a feature branch, or investigating a verification failure in files you did not change.
Why use it?
It finds inherited problems before new work begins, such as unresolved merge-conflict markers, uncommitted changes, or saved Git stashes that could affect the task.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents; installed under .agents/ (shared by several agents); mentions Codex.

This is vscarpenter/gsd-task-manager's own configuration. It tells Claude Code how to work on gsd-task-manager 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 gsd-task-manager configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/branch-preflight.sh.

Reuse

Borrowing it

Nothing to install: this file belongs to vscarpenter/gsd-task-manager. 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/vscarpenter/gsd-task-manager/main/.agents/skills/branch-preflight/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/vscarpenter/gsd-task-manager

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 branch-preflight

README.md
[![agentmods](https://agentmods.dev/badge/skills/vscarpenter/gsd-task-manager/branch-preflight/github.svg)](https://agentmods.dev/skills/vscarpenter/gsd-task-manager/branch-preflight)
Your own site
<a href="https://agentmods.dev/skills/vscarpenter/gsd-task-manager/branch-preflight"><img src="https://agentmods.dev/badge/skills/vscarpenter/gsd-task-manager/branch-preflight/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 branch-preflight

Your own site · 80×15
<a href="https://agentmods.dev/skills/vscarpenter/gsd-task-manager/branch-preflight"><img src="https://agentmods.dev/badge/skills/vscarpenter/gsd-task-manager/branch-preflight.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 799 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.00105 $0.00799
Opus 5.5 $0.00042 $0.00320
Sonnet 5.5 $0.00021 $0.00160
Haiku 4.5 $0.00011 $0.00080

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

Security

Grade A, and why

branch-preflight 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.

.agents/skills/branch-preflight/SKILL.md · 65 lines

How it starts

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

branch-preflight — Catch inherited working-tree damage early

When to invoke

Trigger this skill BEFORE any of:

  • Starting plan execution (superpowers:executing-plans, superpowers:subagent-driven-development)
  • Creating a new feature branch off main (git switch -c feat/...)
  • Investigating a verification failure on files you do not recognize as yours

You should also volunteer to run it if the user mentions:

  • "let's start implementing"
  • "execute the plan"
  • "kick off the work"

Why it exists

Damage inherited from main (conflict markers committed to a tracked file, a forgotten autostash, stray uncommitted edits) surfaces later as an unrelated parse or test failure partway through a plan, forcing an out-of-plan fix. This script catches that class of damage in under a second, before any plan step depends on a clean tree.

What it checks

  1. Merge conflict markers in tracked files. Greps git ls-files for <<<<<<<, =======, or >>>>>>> line prefixes. Tracked-files-only avoids false positives on .Codex/ scratch notes.
  2. Stash entries. A non-empty git stash list is a yellow flag — most users don't realize an autostash is sitting there.
  3. Uncommitted changes. Surfaces both unstaged (git diff) and staged (git diff --cached) work.

How to use

Just run it:

bash scripts/branch-preflight.sh

Exit code:

  • 0 — clean, safe to proceed
  • 1 — at least one finding; review the output before starting

What to do with findings

Finding Suggested action
Merge conflict markers Resolve them in a separate fix(...) commit on the current branch BEFORE starting plan execution. Do not stack feature work on top of broken files.
Stash entries Run git stash list to inspect. If it's stale or unrelated, drop it (git stash drop). If it's intentional in-progress work, acknowledge and proceed.
Uncommitted changes Either commit them, stash them deliberately, or revert. Don't start a plan with mystery diff in the working tree.

Read the full file on GitHub · 65 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 Changed · -2 lines 433b67bbfb5c
  2. 2mo ago First seen · 67 lines · 105 tokens per session scan A 527eb5fca106

Subscribe to this mod's changes

branch-preflight is a skill published in the GitHub repository vscarpenter/gsd-task-manager (40 stars, last pushed yesterday), licensed MIT. It adds 105 tokens to every session and 799 once invoked, about $0.0004 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

report-issue

File a bug or feature request against this repository (cyanheads/git-mcp-server) using the gh CLI. Use for tool logic bugs, git provider misbehavior, transport issues, auth/config problems, or new feature proposals.

cyanheads/git-mcp-server · 51 tokens

polish-docs-meta

Finalize documentation and project metadata for a ship-ready release. Use after implementation is complete, tests pass, and devcheck is clean. Safe to run at any stage — each step checks current state and only acts on what still needs work.

cyanheads/git-mcp-server · 53 tokens

maintenance

Investigate, adopt, and verify dependency updates. Captures what changed, understands why, cross-references against the codebase, and runs final checks. Supports two entry modes: run the full flow end-to-end, or review updates you already applied.

cyanheads/git-mcp-server · 53 tokens

release-and-publish

Ship a release end-to-end across every registry this project targets (npm, MCP Registry). Runs the final verification gate, pushes commits and tags, then publishes to each applicable destination. Assumes git wrapup (version bumps, changelog, commit, annotated tag) is already complete — this skill is the post-wrapup…

cyanheads/git-mcp-server · 83 tokens

papi-build

Invoke when executing a build via buildexecute. Covers branching, gestalt pre-build check, and post-build audit.

getpapi/papi · 26 tokens

gitlab-review

Review a GitLab merge request, inspect changes and discussions, or prepare and post explicitly requested review feedback. Use for GitLab MRs and review follow-ups, not GitHub pull requests or automatic approval/merge.

structured-world/gitlab-mcp · 47 tokens