speq-patch
Skill56 starsChanged 14 days agoMITView on GitHub
Applies a bug fix, small feature, or tweak in the working tree in one run: implements and tests it, has a fresh-context sub-agent review the diff once, and edits only the specs, ADRs, architecture, and docs it needs. Runs no git writes. Arg: change intent text.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- exasol-labs/speq-skillword for word, first seen Nov 15, 2026
Other versions1 project uses a version of this.
Word for word · 1
- exasol-labs/speq-skill★ 56100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- speq-auditSkill
- speq-cliSkill
- speq-code-guardrailsSkill
- speq-code-reviewSkill
- speq-design-philosophySkill
- speq-formatsSkill
- speq-git-operationsSkill
- speq-implement-prSkill
- speq-implementSkill
- speq-missionSkill
- speq-patch-prSkill
- speq-plan-prSkill
- speq-plan-reviewSkill
- speq-planSkill
- speq-recordSkill
- speq-writing-guardrailsSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 2 are distinctive, and 7 are 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.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Never touch specs/_recorded/ or specs/mission.md.
- Distinctive: line 28
Ask about the size limit at most once per run.
- Very specific: line 38
Run speq plan list and the absence check per /speq-cli for the behavior the change touches.
- Distinctive: line 39
Do not interview. Ask only when the intent has more than one reading or leaves the expected behavior open.
- Very specific: line 48
Write the code and tests, TDD per /speq-code-guardrails.
- Very specific: line 54
Write the patch folder's plan.md: H1 # Plan: <patch-name>, then ## Summary with the change intent from the user arguments.
- Very specific: line 56
Read specs/_plans/<patch-name>/code-review.md.
- Very specific: line 67
Keep the feature description accurate.
- Very specific: line 80
Delete the patch folder specs/_plans/<patch-name>/.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Patch (Orchestrator)
User Arguments
$ARGUMENTS
You take one small change to a tested, reviewed working tree. You run no git write: the user commits, or /speq-patch-pr ships the change as a PR. Stop on the first failed step and report it. Running it again resumes the work.
Required Skills
Invoke before starting:
/speq-cli: spec discovery and validation/speq-code-guardrails: TDD/speq-formats: the ADR rules (whether a change earns an ADR) and the architecture format/speq-writing-guardrails: prose style
Rules
- Never touch
specs/_recorded/orspecs/mission.md. Inspecs/_plans/, touch only the patch folderspecs/_plans/<patch-name>/. - Prose states requirements and decisions. No process narration, no history.
- Short Background: a spec's
## Backgroundis 3-5 one-line bullets of shared context, never behavior. Behavior is a scenario. - Specs describe the software, not its tests: never encode test suites, Docker setups, or the test environment as scenarios or Background.
- Ask about the size limit at most once per run. After a yes, report a later exceeded limit without asking.
Workflow
1. Check Prerequisites
No user arguments → ask the user for the change intent. specs/mission.md absent → stop before any edit and point to /speq-mission. The working tree has uncommitted changes → ask whether they belong to the patch. They do not → stop and ask the user to commit or stash them. Never stash or discard them yourself.
2. Discover and Name
- Run
speq plan listand the absence check per/speq-clifor the behavior the change touches. - Do not interview. Ask only when the intent has more than one reading or leaves the expected behavior open.
- Name the patch per
/speq-planstep 3, without itsintent.md. A stopped run for this intent left the patch folder or the branchpatch/<name>→ reuse<name>. Otherwise never pick a name thatspeq plan listshows.
3. Size Check Before Coding
The change exceeds the size limit when it needs a new feature spec or a new domain, changes scenarios in more than 2 features, or adds or removes a component in specs/architecture.md. Then name the limit and the measured value, recommend /speq-plan or /speq-plan-pr, and ask whether to continue. A "no" stops the run before any edit.
4. Implement and Test
- Write the code and tests, TDD per
/speq-code-guardrails. A fix starts with a test that reproduces the defect. A removal deletes the code and the tests that covered it. - Run the test suites and the lint command from
specs/mission.md § Commands. Run them per/speq-code-guardrails§ Running Suites. Every failure counts as caused by the patch. Red → fix and rerun. After 3 red runs of the same suite, stop and report the suite, its failing tests, and the log tail.
5. Review
- Collect the changed files per
/speq-implementPhase 3 step 1, with baseHEAD, leaving out the patch folder. - Write the patch folder's
plan.md: H1# Plan: <patch-name>, then## Summarywith the change intent from the user arguments. code-review.mdabsent from the patch folder → spawn the code reviewer once per/speq-implementPhase 3 step 2,<plan-name>set to<patch-name>. Present → a stopped run already reviewed: never spawn a second review.- Read
specs/_plans/<patch-name>/code-review.md. Fix every finding that is not yet fixed, then rerun the suites per step 4.
6. Specs, ADRs, Architecture, Docs
Edit only what the change needs.
- Specs. Edit
specs/<domain>/<feature>/spec.mddirectly, without delta markers.- A fix that restores behavior a scenario already states, or a refactor with no behavior change → no spec edit.
- Behavior that no scenario covers, or a wrong scenario → add or correct the scenario.
- Removed behavior → delete the scenario, and the feature directory when no scenario remains.
- A new feature starts from
/speq-plan'sreferences/feature-template.md. - Keep the feature description accurate. Every added or changed scenario has a test in the diff.
speq feature validate <domain>/<feature>passes for each edited feature. - An active plan other than the patch folder holds a delta for an edited feature → name the plan and the feature in the report.
- A feature with more than 10 scenarios or a domain with more than 8 features → name it in the report. Never reorganize the library.
- ADR. Apply the ADR rules in
adr-rules.mdin/speq-formats. The default is none. Write at most one new fragmentspecs/_decision/NNN-<patch-name>.md: NNN = existing fragment count plus one, zero-padded to 3 digits, H1# Decisions: <patch-name>,**Plan:** <patch-name>,**Status:** Accepted, layout peradr-rules.mdin/speq-formats. Never edit another fragment.speq decision-log validatepasses. - Architecture.
specs/architecture.mdabsent → no edit. Otherwise edit its affected section only when the change alters a component, boundary, interface, data flow, constraint, or external dependency it describes. Keep the format ofarchitecture-template.mdin/speq-formatsand check the edited file against its rules. On failure, restore the file and report. - Docs. Edit the project's user docs (by default
README.mdanddocs/) only where the change alters documented behavior.
7. Size Check After the Change
Measure the whole change against HEAD, leaving out the patch folder, the version file, and the lockfile: git diff --shortstat HEAD plus each untracked file from git ls-files --others --exclude-standard and its line count. More than 25 files changed, or more than 400 lines (insertions plus deletions), exceeds the size limit. Ask as in step 3. A "no" stops the run with the change left in the working tree: report the changed files.
8. Clean Up and Report
Delete the patch folder specs/_plans/<patch-name>/. Then report:
- the patch name, the changed files, and the number of review findings fixed
- each suite and the lint command with its result
- the new ADR with its ADR rule-2 criterion and ADR search result, or none
- the changed
specs/architecture.mdsections, or none - the size limit the user chose to exceed with its measured value, the affected plans, the library-size notes, and any
specs/mission.mdinaccuracy
End with: review the changes and commit them.
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.

