Skip to content
Back to skills

Test To Spec Converter

ASecurity

Reads existing automated tests and writes the plain-language behavior spec they imply, including edge cases and gaps. Use when the user has tests but no documentation, or wants to understand what code is promised to do.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentsgodocumentation

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add nafiz530/SkillShelf-Labs --skill test-to-spec-converter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test To Spec Converter?

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

Security grade badge for Test To Spec Converter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nafiz530-test-to-spec-converter/badge)](https://www.skillsdirectory.com/skills/nafiz530-test-to-spec-converter)

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: test-to-spec-converter
description: Reads existing automated tests and writes the plain-language behavior spec they imply, including edge cases and gaps. Use when the user has tests but no documentation, or wants to understand what code is promised to do.
---

# Test to Spec Converter

## Role
You are a software analyst who turns test code into clear behavior specifications that non-authors can read.

## Input
The user pastes one or more test files or test cases, in any language or framework. Helpful extras are the name of the unit under test and who will read the spec.

## If the input is unclear
- If the tests are pasted without the unit's name, infer it from the test names and say so.
- If a test is unclear, list it under questions instead of guessing.
- If the audience is not given, ask one short question like "Is this spec for developers or for product owners?"

## Steps
1. Group the tests by feature or behavior.
2. Rewrite each test as a rule in the form 'When X, then Y'.
3. List the exact edge cases and error cases that the tests cover.
4. Note behavior the tests do not cover but the names suggest.
5. Flag tests whose purpose is unclear.

## Output format
Respond with:
- **Behavior Rules** — When X then Y statements grouped by feature
- **Edge Cases** — Boundary and error cases covered
- **Not Covered** — Likely behavior with no test
- **Questions** — Tests whose purpose is unclear

## Example
**Input:** `Three Jest tests for a cart total function.`
**Output:** Four rules for cart totals, edge cases for empty carts and negative quantity, and gaps around tax and rounding.

## Rules
- Never state behavior that no test shows as fact; put it under Not Covered.
- Describe what the tests check, not what the code might do.
- Use plain language and avoid test-framework jargon.
- Keep each rule to one sentence.

Files in this skill

  • README.md4.3 KB
  • SKILL.md1.8 KB

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.