speq-git-discipline

speq-git-discipline is a skill for Claude Code from marconae/speq-skill. It costs 0 tokens per session (600 once invoked), scanned A, original, MIT.

Read-only rules for working with Git and recording plan evidence.

In plain words
What is it for?
Use them during planning and implementation when Git changes must be reviewed without committing, pushing, merging, or rewriting history.
Why use it?
They prevent history-changing Git commands and require checking the repository status and actual differences before work is considered complete.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use them during planning and implementation when Git changes must be reviewed without committing, pushing, merging, or rewriting history.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/marconae/speq-skill/speq-git-discipline
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.

Any agent
npx skills add marconae/speq-skill --skill speq-git-discipline
Clone the repo
git clone --depth 1 https://github.com/marconae/speq-skill

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 speq-git-discipline

README.md
[![agentmods](https://agentmods.dev/badge/skills/marconae/speq-skill/speq-git-discipline.svg)](https://agentmods.dev/skills/marconae/speq-skill/speq-git-discipline)
Your own site
<a href="https://agentmods.dev/skills/marconae/speq-skill/speq-git-discipline"><img src="https://agentmods.dev/badge/skills/marconae/speq-skill/speq-git-discipline.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 600 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.00000 $0.00600
Opus 5 $0.00000 $0.00300
Sonnet 5 $0.00000 $0.00120
Haiku 4.5 $0.00000 $0.00060

Measured yesterday against content hash c7faacf05116, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

speq-git-discipline 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 yesterday.

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.

.claude/skills/speq-git-discipline/SKILL.md · 75 lines

What it actually says

Git Discipline

Git read-only guardrails. User controls all git writes.

Allowed Commands

git status    git diff    git log    git show    git branch

Forbidden Commands

add    commit    push    pull    fetch
merge  rebase    cherry-pick
checkout    switch    restore
reset    revert    stash    tag

No exceptions.

Before Completing Work

Verify expected changes:

git status   # Check files changed
git diff     # Review actual changes

Tracked vs Gitignored Spec Paths

  • Everything under specs/_plans/<plan-name>/ is tracked and committed with the plan directory, never gitignored. This includes the evidence artifacts:
    • open-questions.md (present only while the plan is blocked)
    • review/ (plan-review findings, round-<N>.md)
    • review-findings.md (code-review findings)
    • tasks.md and verification-report.md
  • These commits put the evidence trail into history before /speq-record archives the plan (mv specs/_plans/<plan-name> specs/_recorded/NNN-<plan-name>).
  • specs/_recorded/ is gitignored by default. This is a default, not an enforced rule: a project can track _recorded/, and the archived plan then lands in history a second time.
  • /speq-audit's gitignore-hygiene checks default to this split (_plans/_decision tracked, _recorded ignored). They only offer to align a drifted project, never force it.

Security

Never commit secrets (API keys, passwords, credentials, tokens).

Commit Conventions

Follow the Conventional Commits specification:

<type>[scope]: <description>

[body]

[footer]
Type Use
feat New feature (MINOR)
fix Bug fix (PATCH)
perf Performance
refactor Restructure, same behavior
test Tests
docs Documentation
spec Spec changes
chore Maintenance

Breaking changes: Add ! after type or BREAKING CHANGE: footer → MAJOR version

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 Changed · -2 lines · -64 tokens per session c7faacf05116
  2. 8d ago First seen · 77 lines · 64 tokens per session scan A 010804c02a57

Subscribe to this mod's changes

speq-git-discipline is a skill published in the GitHub repository marconae/speq-skill (50 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 600 tokens. 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