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 (842 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.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.svg" alt="Measured on agentmods" 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 842 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.00105 $0.00842
Opus 5 $0.00053 $0.00421
Sonnet 5 $0.00021 $0.00168
Haiku 4.5 $0.00011 $0.00084

Measured 7d ago against content hash 527eb5fca106, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 7d 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 · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 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

A real session lost ~10 minutes when tests/ui/edit-drawer.test.tsx turned out to have unresolved merge conflict markers committed to main six commits before the session started (commit 62f3ab4). The file failed to parse, blocking root bun run test and any PR CI. The damage was discovered mid-Task-2 of an implementation plan, requiring an out-of-plan fix and explicit scope-expansion approval from the user.

This script catches that class of damage in under a second, before it becomes a Task-6 surprise.

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 · 67 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. 7d 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 (25 stars, last pushed 2d ago), licensed MIT. It adds 105 tokens to every session and 842 once invoked, about $0.0005 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-08-30.

Related

Other skills, from other repositories

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

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

memory-commit

Use when the user explicitly says "remember this", "save this", "ghi nho", "luu lai", "save for next time", or otherwise asks to persist the immediately preceding context. Captures with the appropriate contexttype (decision, preference, fact, skill, task, conversation) so future sessions can retrieve it accurately.

n24q02m/mnemo-mcp · 72 tokens

feedback-nudge

Use when the user wants to report a bug, request a feature, or send feedback to the Zooza engineering team. Also offer proactively after a successful commit operation (max once per week).

zooza-dev/zooza-mcp-server · 38 tokens

publish-release

Releases a new McpOrchestrator version end to end — version bump PR, tag, and the automated deploy to GitHub Releases, NuGet, and the MCP Registry. Use when asked to release, publish, deploy, ship, or bump the version of McpOrchestrator.

Byggarepop/dotnet-mcp-orchestrator · 63 tokens

release-notes

Writes user-facing release notes from a git commit range. Use when asked to draft release notes, a changelog entry, or "what's new" text for a release.

Byggarepop/dotnet-mcp-orchestrator · 39 tokens