speq-code-guardrails
Skill56 starsChanged 14 days agoMITView on GitHub
TDD cycle and the code rules speq holds stricter than the usual defaults, for /speq-implement, /speq-patch, and the code-review sub-agent. Not for general coding.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- marconae/speq-skillword for word, first seen Nov 19, 2026
Other versions1 project uses a version of this.
Word for word · 1
- marconae/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-reviewSkill
- speq-design-philosophySkill
- speq-formatsSkill
- speq-git-operationsSkill
- speq-implement-prSkill
- speq-implementSkill
- speq-missionSkill
- speq-patch-prSkill
- speq-patchSkill
- 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
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Test first: No production code without a failing test.
- Distinctive: line 11
Evidence: No claim without evidence: run the command, show the output, then claim.
- Distinctive: line 12
Dependencies: No new dependency until the standard library and the installed dependencies are ruled out.
- Distinctive: line 32
No boolean or selector arguments: split the function.
- Distinctive: line 35
No role-suffix names without a responsibility (Manager, Processor, Handler, Util).
- Distinctive: line 36
No TODO, FIXME, or ticket references in code.
≈ “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
Code Guardrails
Rules
- Test first. No production code without a failing test. Before you change untested code, add a test that captures its current behavior.
- Evidence. No claim without evidence: run the command, show the output, then claim.
- Dependencies. No new dependency until the standard library and the installed dependencies are ruled out.
TDD Cycle
RED: write the test, run it, show the failure. GREEN: the least code that passes, run the test. REFACTOR: clean up, run the test and the linter. Run only the tests you touched, not the full suite.
Running Suites
Redirect each build, test, or lint command's output to a log: mkdir -p target && <command> > target/speq-<suite>.log 2>&1. Judge the result by the exit code. Quote at most tail -n 30 of a log in a report.
Tests
- Pure logic is tested without doubles. Orchestration is tested with doubles at its own abstractions. Adapters are tested against the real thing; a temporary directory is fine.
- Tests are repeatable: no shared mutable state, real clock, network, or unseeded randomness.
- Cover each failure path and the boundaries, not only the happy path.
- Assert observable behavior, never internal state.
- A skipped or ignored test is a defect. Fix it or delete it.
Code
- No boolean or selector arguments: split the function.
- Signal failure with the language's error mechanism, never a sentinel value. An error states what was attempted, the input, and the violated constraint.
- Translate a third-party error into the module's own error type at the boundary.
- No role-suffix names without a responsibility (Manager, Processor, Handler, Util). Keep transport, vendor, and storage format out of names.
- No TODO, FIXME, or ticket references in code.
- Inline an abstraction with one implementation, unless it is a seam over I/O, nondeterminism, or a third party.
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.

