Skip to content
Back to skills

Spec Loop Closer

ASecurity

Forces every user requirement through a 1:1 mapping to a checkable assertion (grep-able token, executable test, or numeric threshold) before implementation begins. Blocks "done" until each assertion has a machine-runnable check.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 27, 2026
developmentpythonshellexpressapi

Works with

  • api

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add RMAzrim/opencode-artes --skill spec-loop-closer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Spec Loop Closer?

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

Security grade badge for Spec Loop Closer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rmazrim-spec-loop-closer/badge)](https://www.skillsdirectory.com/skills/rmazrim-spec-loop-closer)

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: Spec Loop Closer
description: Forces every user requirement through a 1:1 mapping to a checkable assertion (grep-able token, executable test, or numeric threshold) before implementation begins. Blocks "done" until each assertion has a machine-runnable check.
metadata:
  source: skills/spec-loop-closer/spec-loop-closer.md
---

# Spec Loop Closer

## Prerequisites & Dependencies

- Python 3.10+ (for assertion mapping logic)
- Access to project source files and test directories
- No external runtime dependencies

## Execution Steps

1. **Materialize requirements**: Parse the user's original request/task description and extract each distinct requirement/acceptance criterion.

2. **Map to checkable assertions**: For each requirement, define a machine-verifiable check:
   - **Grep-able token**: A unique string that can be found with `grep` in the implemented code
   - **Executable test**: A pytest/unit test that passes/fails based on the requirement
   - **Numeric threshold**: A specific value that can be computed and compared (e.g., "response time < 200ms")
   - **Enum/constraint check**: A field that must match one of a set of allowed values

3. **Create assertion mapping table**: Produce a structured table listing:
   - Requirement ID (auto-generated or user-assigned)
   - Original requirement text
   - Assertion type (grep/test/threshold/enum)
   - Concrete check expression or test code
   - Status (mapped / pending / blocked)

4. **Block until all mapped**: Implementation must not report "done" until every requirement has a corresponding mapped assertion with a machine-runnable check.

5. **Post-implementation verification**: Run each assertion manually or via automation to confirm all pass before marking the task complete.

## Assertion Mapping Table Example

| ID | Requirement | Type | Check |
|----|-------------|------|-------|
| R1 | "User must be able to reset password via email" | grep | `grep -r "reset.password.email" --include="*.py" .`
| R2 | "API must return 401 for unauthenticated calls" | test | `pytest -k "auth" --tb=short`
| R3 | "Response time < 200ms under load" | threshold | `hey -n 100 -qps 10 https://api.example.com/ping | grep "mean.*200"` |

## Windows PowerShell Notes

- Use `Select-String` instead of `grep` for Windows pattern matching
- Numeric threshold checks should use `[regex]::Match()` for PowerShell parsing
- Assertion mapping table can be saved as `spec-assertions.json` for machine consumption
```

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.

Comments

Loading comments…

Newsletter

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