Skip to content
Back to skills

Speq Code Guardrails

ASecurity

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.

  • 56 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 9, 2026
ai-agentsrailscode-review

Security analysis

A100/100

Scanned November 18, 2026

npx -y skills add marconae/speq-skill --skill speq-code-guardrails --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Speq Code Guardrails?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Speq Code Guardrails
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/marconae-speq-code-guardrails/badge)](https://www.skillsdirectory.com/skills/marconae-speq-code-guardrails)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: speq-code-guardrails
description: "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."
---

# 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.