spec:test-task

Execute Specific Test

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "spec:test-task" with this command: npx skills add ikatsuba/skills/ikatsuba-skills-spec-test-task

Execute Specific Test

Executes a specific test case by its number from a specification's test plan document. This skill allows targeted execution of any test, useful for re-testing failed tests or running tests out of order.

When to use

Use this skill when the user needs to:

  • Re-test a specific failed test case

  • Run a particular test out of order

  • Verify a fix for a previously failed test

Specification Files Structure

All specification documents are located in .specs/<spec-name>/ directory:

File Description

.specs/<spec-name>/test-plan.md

Manual test plan with test cases

Instructions

Step 1: Parse Arguments

The <args> should contain:

  • Test number (required) - e.g., "1.2", "2.1"

  • Spec name (optional) - e.g., "user-auth"

Format examples:

  • spec:test-task 1.2

  • Execute test 1.2 from the current/only spec

  • spec:test-task user-auth 2.1

  • Execute test 2.1 from the user-auth spec

  • spec:test-task 3

  • Execute all tests in scenario group 3

Step 2: Locate and Read Test Plan

  • If spec name provided, look in .specs/<spec-name>/test-plan.md

  • If no spec name, check if there's only one spec in .specs/

  • If multiple specs exist without a name specified, list them and use the AskUserQuestion tool to let the user choose

  • Read and parse test-plan.md

Step 3: Find the Specified Test

  • Search for the test matching the provided number

  • If test number is a scenario group (e.g., "2"), include all test cases in that group (2.1, 2.2, etc.)

  • If test not found, list available tests and ask for correction

Step 4: Execute a Single Test Case

If the test number points to a single test case (e.g., "1.2"):

  • Mark as in-progress - Update the test case checkbox to [-] in test-plan.md

  • Show test info - Display to the user:

  • Test number and name

  • Current status (pending/passed/failed — note if this is a re-test)

  • Preconditions

  • Step-by-step instructions

  • Expected result

  • Requirements being verified

  • Collect result - Use the AskUserQuestion tool to ask: "What was the result of this test?"

  • Options: "Passed", "Failed", "Skipped"

  • If "Failed", use the AskUserQuestion tool to ask for failure description

  • Update test plan - Based on the result:

  • Passed: Mark as [x] . If this was previously [!] (failed), remove the old failure note

  • Failed: Mark as [!] . Add or update failure note: - FAILED: [description]

  • Skipped: Mark as [s]

  • Update scenario group - If all test cases within the group are now complete:

  • All passed → [x]

  • Any failed → [!]

  • All skipped → [s]

  • Update Summary counters - Recount Passed, Failed, and Skipped

  • Commit changes - Stage test-plan.md and invoke the git:commit skill (if tracked)

Step 5: Execute a Scenario Group

If the test number points to a scenario group (e.g., "2") with multiple test cases:

For each test case in the group, in order:

  • Follow the single test case flow from Step 4

  • After each test case, use the AskUserQuestion tool to ask: "Continue to next test in this group?" with options "Continue", "Stop here"

  • After all test cases in the group complete, show a group summary

Step 6: Report Completion

After completing the test(s):

  • Show the result (passed/failed/skipped)

  • Note if this was a re-test of a previously completed test

  • Show the updated Summary section

Error Handling

  • If test-plan.md does not exist, inform the user and suggest running spec:test-plan first

  • If the specified test number does not exist, list available tests and use the AskUserQuestion tool to let the user pick

Arguments

  • <args>

  • Test number and optionally spec name

  • Format: [spec-name] <test-number>

  • Test number: "1", "1.2", etc.

  • Spec name: kebab-case identifier

Examples:

  • 1.2

  • Test 1.2 from the default/only spec

  • user-auth 3.1

  • Test 3.1 from user-auth spec

  • payment-flow 2

  • All tests in group 2 from payment-flow spec

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

spec:design

No summary provided by upstream source.

Repository SourceNeeds Review
General

spec:requirements

No summary provided by upstream source.

Repository SourceNeeds Review
General

git:amend

No summary provided by upstream source.

Repository SourceNeeds Review