git-town

git-town is a skill for Claude Code, Codex from FortiumPartners/ensemble. It costs 127 tokens per session (5,075 once invoked), scanned A, original, MIT.

A Git workflow helper for managing feature branches, syncing with the main branch, creating pull requests, and handling merges and conflicts. It also supports stacked branches, where related branches build on one another.

In plain words
What is it for?
It helps create and sync branches, resolve Git conflicts, open pull requests, and clean up merged branches.
Why use it?
It reduces the manual steps and errors involved in moving a feature from branch creation to merge.

Skill for Claude CodeCodex

Part of the ensemble-git plugin — 3 skills, 3 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/fortiumpartners/ensemble/git-town
Any agent
npx skills add FortiumPartners/ensemble --skill git-town
Clone the repo
git clone --depth 1 https://github.com/FortiumPartners/ensemble

Made for: Claude Code, Codex.

Or install ensemble-git, the plugin that ships this one along with the rest of its 3 skills, 3 agents.

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-town

README.md
[![agentmods](https://agentmods.dev/badge/skills/fortiumpartners/ensemble/git-town.svg)](https://agentmods.dev/skills/fortiumpartners/ensemble/git-town)
Your own site
<a href="https://agentmods.dev/skills/fortiumpartners/ensemble/git-town"><img src="https://agentmods.dev/badge/skills/fortiumpartners/ensemble/git-town.svg" alt="Measured on agentmods" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,075 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00127 $0.05075
Opus 5 $0.00063 $0.02537
Sonnet 5 $0.00025 $0.01015
Haiku 4.5 $0.00013 $0.00507

Measured yesterday against content hash 2f7234046b5b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

git-town scanned grade A with 1 finding 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 yesterday.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/test-validate.sh, scripts/validate-git-town.sh, tests/comprehensive-test.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -L https://github.com/git-town/git-town/releases/download/v14.0.0/git-town_linux_amd64 -o /usr/local/bin/git-town
packages/git/skills/git-town/SKILL.md · 654 lines

How it starts

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

Git-Town Workflow Skill

Skill Type: Technical Workflow Estimated Learning Time: 30 minutes Proficiency Levels: Beginner, Intermediate, Advanced


Mission

Provide comprehensive git-town workflow integration for Claude Code agents, enabling autonomous branch management, PR creation, and error recovery without interactive prompts. This skill empowers agents to execute complex git workflows with zero user intervention by leveraging git-town's CLI flags for non-interactive operation. Target audience includes orchestrator agents (tech-lead-orchestrator, git-workflow) and developer agents (frontend-developer, backend-developer) performing feature development, bug fixes, and release workflows. Key capabilities include validation-first execution with structured exit codes, standardized error handling patterns for merge conflicts and remote failures, stacked branch workflows for complex features, offline development mode support, and GitHub CLI integration for automated PR creation. Agents using this skill can autonomously manage the complete feature lifecycle from branch creation through PR merge without requiring user intervention for routine git operations.


Skill Loading Mechanism

Discovery Paths

Git-town skill files are located using XDG Base Directory Specification with the following search priority:

  1. Primary: $XDG_CONFIG_HOME/ensemble/skills/git-town/ (user-specific configuration)
  2. Fallback: ~/.config/ensemble/skills/git-town/ (default XDG location)
  3. Legacy: ~/.ensemble/skills/git-town/ (backward compatibility)
  4. Plugin: <plugin-root>/packages/git/skills/git-town/ (bundled with ensemble-git plugin)

Agents should check paths in order and use the first match. Plugin-bundled files serve as the fallback when user configuration is absent.

Loading Performance

Git-town skill loading is optimized for agent efficiency with the following performance characteristics:

  • Target: <100ms for full skill load (SKILL.md + REFERENCE.md + ERROR_HANDLING.md combined)
  • Caching: Skill content is cached in agent context memory after first load, with cache invalidation triggered by file modification timestamps (mtime comparison)
  • Lazy loading: Templates and migration guides are loaded on-demand only when agents query specific sections, reducing initial memory footprint
  • Indexing: Section headers are indexed during initial load using hash maps for O(1) lookup of subsections, enabling fast targeted queries

Read the full file on GitHub · 654 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. yesterday First seen · 654 lines · 127 tokens per session scan A 2f7234046b5b

Subscribe to this mod's changes

git-town is a skill published in the GitHub repository FortiumPartners/ensemble (11 stars, last pushed 1mo ago), licensed MIT. It adds 127 tokens to every session and 5,075 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

saas-payments

Implement production-ready payment processing with Stripe including one-time payments, recurring subscriptions, customer portal, metered billing, and webhook handling. This skill covers the complete billing lifecycle from checkout through subscription management.

TheWayWithin/agent-11 · 4 tokens

saas-auth

Implement production-ready authentication for SaaS applications including email/password, OAuth social login, session management, and security best practices. This skill covers the complete auth lifecycle from signup through password recovery.

TheWayWithin/agent-11 · 3 tokens

saas-analytics

Implement product analytics for understanding user behavior, tracking key metrics, and making data-driven decisions. Covers event tracking, user identification, cohort analysis, and integration with analytics platforms like PostHog, Mixpanel, or custom solutions.

TheWayWithin/agent-11 · 4 tokens

saas-onboarding

Implement effective user onboarding flows that drive activation and reduce churn. Covers setup wizards, progress checklists, contextual tooltips, and tracking of key activation milestones. Focus on getting users to their "aha moment" quickly.

TheWayWithin/agent-11 · 4 tokens

saas-billing

Implement subscription lifecycle management, plan enforcement, usage tracking, and billing operations. Covers trial periods, plan changes, quota enforcement, and subscription status synchronization with payment providers.

TheWayWithin/agent-11 · 4 tokens

saas-email

Implement reliable transactional email delivery for SaaS applications including templating, queuing, delivery tracking, and provider abstraction. Covers common email types: welcome, verification, password reset, notifications, and invoices.

TheWayWithin/agent-11 · 3 tokens