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.
npx skills add marconae/speq-skill --skill speq-code-guardrailsgit clone --depth 1 https://github.com/marconae/speq-skillWrote 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.
[](https://agentmods.dev/skills/marconae/speq-skill/speq-code-guardrails)<a href="https://agentmods.dev/skills/marconae/speq-skill/speq-code-guardrails"><img src="https://agentmods.dev/badge/skills/marconae/speq-skill/speq-code-guardrails/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/marconae/speq-skill/speq-code-guardrails"><img src="https://agentmods.dev/badge/skills/marconae/speq-skill/speq-code-guardrails.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.01178 |
| Opus 5.5 | $0.00014 | $0.00471 |
| Sonnet 5.5 | $0.00007 | $0.00236 |
| Haiku 4.5 | $0.00003 | $0.00118 |
Grade A, and why
speq-code-guardrails 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 1mo ago.
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.
How it starts
The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code Guardrails
TDD workflow and quality guardrails. Draws on established practice, including work by R. Martin, K. Beck, B. Meyer, and Toyota's Five Whys.
Golden Rule
No production code without a failing test first. Before changing existing code that has no test, add one that captures its current behavior first.
Evidence Rule
No claim without evidence. Run command, show output, then claim.
Dependency Rule
No new dependency without confirming the standard library or an already-installed dependency cannot do it first.
TDD Cycle (London School)
RED → Write failing test, run it, show failure
GREEN → Minimal code to pass, run test, show pass
REFACTOR → Clean up, run test + lint, show output
Run ONLY the test you created/changed, not the full suite.
Tests
- Arrange, act, assert. One concept per test.
- The test name states the condition and the expected behavior.
- Independent and repeatable: no shared mutable state, no real clock, network, filesystem, or unseeded randomness.
- Cover every branch and every edge case: empty, single, maximum, off-by-one, transition, and each way the operation can fail.
- Assert observable behavior, never internal state.
- Pure logic is tested without doubles. Orchestration is tested with doubles at its abstractions. Adapters are tested against the real thing.
- Test code follows every rule in this document, same as production code.
- A skipped or ignored test is a defect. Fix it or delete it.
Guiding Principles
| Principle | Meaning |
|---|---|
| KISS | Simplest solution that works |
| YAGNI | Build for now, not hypotheticals |
| DRY | Extract duplication on the third occurrence, not the second (Rule of Three) |
| Single Responsibility (SOLID) | One function = one purpose |
| Boy Scout | Leave code cleaner than you found it |
| Root Cause | Five Whys — fix the source, not the symptom |
Design
- Law of Demeter: talk only to immediate collaborators
- Dependency direction, module depth, and boundary placement: see
/speq-design-philosophy
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.
- 1mo ago Changed · -20 tokens per session ef8fef5c26c9
- 1mo ago Changed · -3 tokens per session 0fc90c3e97f5
- 2mo ago Changed 7122fe66c01a
- 2mo ago Changed 40cadf909528
- 3mo ago Changed · +4 lines · -6 tokens per session 94a62bc75b7e
- 3mo ago First seen · 114 lines · 63 tokens per session scan A 0be122d286e5
speq-code-guardrails is a skill published in the GitHub repository marconae/speq-skill (54 stars, last pushed 1mo ago), licensed MIT. It adds 34 tokens to every session and 1,178 once invoked, about $0.0001 per session on Opus 5.5. 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.
speq-code-guardrails compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| speq-code-guardrailsmarconae/speq-skill | Skill | 54 | 1mo ago | MIT | A | 34 | Claude Code |
| feature-tddonur-aslan/sdd | Skill | 13 | yesterday | MIT | A | 84 | Claude Code |
| aiops-implementyugasun/aiops | Skill | 4 | 11d ago | Apache-2.0 | A | 30 | Claude Code |
| tddyugasun/aiops | Skill | 4 | 11d ago | Apache-2.0 | A | 17 | Claude Code |
| skillevaluatorNVIDIA/SkillEvaluator | Skill | 4.8k | today | Apache-2.0 | A | 56 | Claude Code, Codex |
| create-custom-graderNVIDIA/SkillEvaluator | Skill | 4.8k | today | Apache-2.0 | A | 35 | Claude Code, Codex |
| contract-builderMageByte-Zero/spec-superflow | Skill | 924 | 3d ago | MIT | A | 33 | Claude Code |