speq-git-discipline
Skill56 starsChanged 2 months agoMITView on GitHub
Read-only git guardrails and the Conventional Commits reference — no history writes, verify changes before completing. Triggered by planner-agent, implementer-agent, implementer-expert-agent, and recorder-agent. The headless orchestrators speq-plan-pr and speq-implement-pr are the sole exception. They write git history directly and use /speq-git-operations instead of this skill.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- speq-adr-rulesSkill
- speq-auditSkill
- speq-cliSkill
- speq-code-guardrailsSkill
- speq-code-reviewSkill
- speq-code-toolsSkill
- speq-design-philosophySkill
- speq-ext-researchSkill
- speq-git-operationsSkill
- speq-implement-prSkill
- speq-implementSkill
- speq-missionSkill
- speq-planningSkill
- speq-plan-prSkill
- speq-plan-reviewSkill
- speq-planSkill
- speq-recordSkill
- speq-spec-mergeSkill
- speq-writing-guardrailsSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 49
Never commit secrets (API keys, passwords, credentials, tokens).
- Distinctive: line 53
Follow the Conventional Commits specification:
- Very specific: line 74
Breaking changes: Add ! after type or BREAKING CHANGE: footer → MAJOR version
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Git Discipline
Git read-only guardrails. User controls all git writes.
Allowed Commands
git status git diff git log git show git branchForbidden Commands
add commit push pull fetch
merge rebase cherry-pick
checkout switch restore
reset revert stash tagNo exceptions.
Before Completing Work
Verify expected changes:
git status # Check files changed
git diff # Review actual changesTracked 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.mdandverification-report.md
- These commits put the evidence trail into history before
/speq-recordarchives 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/_decisiontracked,_recordedignored). 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
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

