- Home
- Skills
- Testing & Debugging
- Spec Tests — Paste an Agent Spec, Get Test Cases per Step
Spec Tests — Paste an Agent Spec, Get Test Cases per Step
Turn a written automation or AI procedure into a review table.
$5
Works with the AI Agents you already use
Spec Tests — Paste an Agent Spec, Get Test Cases per Step
Example session with this skill installed
Run spec-tests on examples/spec.txt in markdown format. The spec is: "## Order intake" then 1. Read the customer request.
2. Confirm the required fields are present; if any are missing, ask for them.
3. Save the accepted order record.
4. If saving fails, report the error and stop.
- Read your context and instructions
- Compiled the spec tests
Proposed test cases
4 candidate step(s); 12 proposed check(s). Not executed.
| Step | Scenario | Check | Expected observation | Source evidence |
|---|---|---|---|---|
| Step 1 [手順]: Read the customer request. | Normal operation | Provide the inputs described by the step and perform its stated action | Observe whether the stated action and next handoff occur; this is a proposed check, not a pass result. | Line 2: 1. Read the customer request. |
| Step 1 [手順]: Read the customer request. | Missing input | Omit one input explicitly needed by this step | Observe whether the step can continue and record the actual behavior; no fallback is specified here. | Line 2: 1. Read the customer request. |
| Step 1 [手順]: Read the customer request. | Mid-process failure | Simulate an interruption while this step is in progress | Record the observed behavior; this step does not state a failure response. | Line 2: 1. Read the customer request. |
| Step 2 [手順]: Confirm the required fields are present; if any are missing, ask for them. | Normal operation | Provide the inputs described by the step and perform its stated action | Observe whether the stated action and next handoff occur; this is a proposed check, not a pass result. | Line 3: 2. Confirm the required fields are present; if any are missing, ask for them. |
| Step 2 [手順]: Confirm the required fields are present; if any are missing, ask for them. | Missing input | Withhold the named required value | Observe the documented missing-input branch, if the spec defines one. | Line 3: 2. Confirm the required fields are present; if any are missing, ask for them. |
| Step 2 [手順]: Confirm the required fields are present; if any are missing, ask for them. | Mid-process failure | Simulate an interruption while this step is in progress | Record the observed behavior; this step does not state a failure response. | Line 3: 2. Confirm the required fields are present; if any are missing, ask for them. |
| Step 3 [手順]: Save the accepted order record. | Normal operation | Provide the inputs described by the step and perform its stated action | Observe whether the stated action and next handoff occur; this is a proposed check, not a pass result. | Line 4: 3. Save the accepted order record. |
| Step 3 [手順]: Save the accepted order record. | Missing input | Omit one input explicitly needed by this step | Observe whether the step can continue and record the actual behavior; no fallback is specified here. | Line 4: 3. Save the accepted order record. |
| Step 3 [手順]: Save the accepted order record. | Mid-process failure | Simulate an interruption while this step is in progress | Record the observed behavior; this step does not state a failure response. | Line 4: 3. Save the accepted order record. |
| Step 4 [手順]: If saving fails, report the error and stop. | Normal operation | Provide the inputs described by the step and perform its stated action | Observe whether the stated action and next handoff occur; this is a proposed check, not a pass result. | Line 5: 4. If saving fails, report the error and stop. |
| Step 4 [手順]: If saving fails, report the error and stop. | Missing input | Omit one input explicitly needed by this step | Observe whether the step can continue and record the actual behavior; no fallback is specified here. | Line 5: 4. If saving fails, report the error and stop. |
| Step 4 [手順]: If saving fails, report the error and stop. | Mid-process failure | Trigger the failure condition named in this step | Compare the observed recovery with the quoted retry, stop, or reporting instruction. | Line 5: 4. If saving fails, report the error and stop. |
Limit: List items are surfaced for review; items whose type is unclear are labeled '型が分からない手順'. Unnumbered continuation lines are joined to the preceding list step, but other prose may still be missed or joined incorrectly. Review every quote and edit the proposed checks before use. This tool does not execute steps, infer undocumented requirements, or determine pass/fail.
Connects securely to your tools. The creator never sees your data.
About this skill
Turn a written automation or AI procedure into a review table. For each candidate step, Spec Tests drafts a normal-operation check, a missing-input check, and a mid-process-failure check, with the source line quoted beside each. It proposes checks only: it does not run the procedure or decide whether anything passes.
What it does
- Finds candidate steps in numbered steps and Markdown list items, in source order.
- Drafts three proposed checks per step: normal operation, missing input, and mid-process failure.
- Points the expected observation back to the source wording when the spec states a missing-input or failure response; otherwise says the specification does not state one.
- Quotes the exact source line and line number beside every proposed check.
- Prints text, markdown, JSON, or CSV.
How it works
- Save your procedure as a text file.
- Run
python3 scripts/spec_tests.py spec.txt --format markdown. - Review the extracted steps and every quote, then edit the checks and define expected behavior with the procedure owner before running any tests.
Limits
This is a text-pattern drafting aid, not a test runner or specification validator. It cannot know whether a step is complete, whether a quote is the right requirement, or whether a proposed check covers a real risk. Unnumbered prose can be missed, and a wrapped step may still be joined or split incorrectly. For inputs with more than 200 candidate steps, only the first 200 are shown and the output states where the review stopped.
It requires Python 3.8+ and uses only the standard library.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.
A text-pattern drafting aid, not a test runner or specification validator. It does not execute steps or decide pass/fail. Unnumbered prose can be missed, and a wrapped step may be joined or split incorrectly. Only the first 200 candidate steps are shown.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 8 days ago
- Software
Python 3.8+ (standard library only)