specification-driven-generation — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited specification-driven-generation (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Generate implementation code and validation tests from written specifications through a systematic specification-to-code workflow.
Read and extract requirements from the specification:
Plan the code structure before writing:
Write clean, well-documented code that satisfies the specification:
Code Structure:
Common Patterns:
Create comprehensive tests that validate the implementation against the specification:
Test Coverage:
Test Structure:
# Example: Testing a sorted list data structure
def test_basic_functionality():
# From spec: "Insert elements in sorted order"
sl = SortedList()
sl.insert(5)
sl.insert(2)
sl.insert(8)
assert sl.to_list() == [2, 5, 8]
def test_edge_case_duplicates():
# From spec: "Allow duplicate elements"
sl = SortedList()
sl.insert(3)
sl.insert(3)
assert sl.to_list() == [3, 3]
def test_error_handling():
# From spec: "Raise TypeError for non-comparable items"
sl = SortedList()
with pytest.raises(TypeError):
sl.insert("string")
sl.insert(5)Run tests to ensure implementation matches specification:
Python:
pytest test_<module>.py -vJava:
mvn testIf tests fail, debug and fix implementation to match specification.
Extract key information from prose descriptions:
Example specification:
"Implement a priority queue that supports insertion in O(log n) time and removal of the minimum element in O(log n) time. The queue should handle duplicate priorities and raise an error when attempting to remove from an empty queue."
Extracted requirements:
Parse structured requirements:
Example (mathematical notation):
Function: binary_search(arr: sorted array, target: int) → int
Precondition: arr is sorted in ascending order
Postcondition: returns index i where arr[i] = target, or -1 if not found
Complexity: O(log n)Extracted requirements:
For OpenAPI/Swagger specs, extract:
# From spec: "requirement text"Specification → Implementation:
Specification → Implementation:
Specification → Implementation:
User provides specification:
"Implement a Stack data structure with push, pop, and peek operations. The stack should have a maximum capacity and raise an exception when pushing to a full stack or popping from an empty stack. Include a method to check if the stack is empty."
Step 1: Analyze
Step 2: Design
Step 3: Generate Implementation
class StackOverflowError(Exception):
pass
class StackUnderflowError(Exception):
pass
class Stack:
def __init__(self, capacity):
self.capacity = capacity
self.items = []
def push(self, item):
if len(self.items) >= self.capacity:
raise StackOverflowError("Stack is full")
self.items.append(item)
def pop(self):
if self.is_empty():
raise StackUnderflowError("Stack is empty")
return self.items.pop()
def peek(self):
if self.is_empty():
raise StackUnderflowError("Stack is empty")
return self.items[-1]
def is_empty(self):
return len(self.items) == 0Step 4: Generate Tests
import pytest
def test_push_and_peek():
# From spec: "push and peek operations"
stack = Stack(capacity=3)
stack.push(1)
stack.push(2)
assert stack.peek() == 2
def test_pop():
# From spec: "pop operation"
stack = Stack(capacity=3)
stack.push(1)
stack.push(2)
assert stack.pop() == 2
assert stack.pop() == 1
def test_is_empty():
# From spec: "check if stack is empty"
stack = Stack(capacity=3)
assert stack.is_empty() == True
stack.push(1)
assert stack.is_empty() == False
def test_overflow():
# From spec: "raise exception when pushing to full stack"
stack = Stack(capacity=2)
stack.push(1)
stack.push(2)
with pytest.raises(StackOverflowError):
stack.push(3)
def test_underflow_pop():
# From spec: "raise exception when popping from empty stack"
stack = Stack(capacity=2)
with pytest.raises(StackUnderflowError):
stack.pop()
def test_underflow_peek():
# From spec: "raise exception when peeking empty stack"
stack = Stack(capacity=2)
with pytest.raises(StackUnderflowError):
stack.peek()Step 5: Verify
pytest test_stack.py -vAll tests pass → Implementation satisfies specification.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.