From reqstool
Add a new Software Verification Case (SVC) to the system-level SVCs file and update the relevant subproject filter. Use when the user wants to add a test scenario for a requirement.
How this skill is triggered — by the user, by Claude, or both
Slash command
/reqstool:add-svcThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Add a new SVC and update subproject filters.
Add a new SVC and update subproject filters.
Input: Requirement ID to verify, or a description of the test scenario.
Configuration
Read .reqstool-ai.yaml — see reqstool-conventions.md for field reference.
For reqstool fundamentals (imports, filters, implementations), see reqstool-overview.md in the reqstool-conventions skill references.
Steps
Read config
Read .reqstool-ai.yaml. Build a mapping of requirement prefixes to modules and SVC prefixes.
Gather SVC details
If not provided, use AskUserQuestion to collect:
CORE_0005)automated-test or manual-test (default: automated-test)If only a requirement ID is given, read the requirement from <system.path>/requirements.yml
to help draft the GIVEN/WHEN/THEN scenario.
Determine the module from the requirement ID
Match the requirement ID prefix against modules.<name>.req_prefix to find the correct module.
Use that module's svc_prefix for the new SVC ID.
Determine the next SVC ID
Read <system.path>/software_verification_cases.yml and find existing SVC IDs
with the relevant svc_prefix. The SVC ID mirrors the requirement ID structure:
For non-decomposed requirements (no dot in requirement ID):
CORE_0005 with svc_prefix: SVC_CORE_ -> try SVC_CORE_0005 firstFor child requirements (dot notation, e.g., CLI_0004.1):
SVC_CLI_0004.1SVC_CLI_0004.1aFor parent requirements (when children exist):
SVC_CLI_0004 (mirrors the parent requirement)reqstool-decomposition-conventions.md (in the reqstool-conventions skill references) for parent SVC conventionsAdd the SVC to system-level file
Append the new SVC to <system.path>/software_verification_cases.yml.
Format for automated-test:
- id: <SVC_ID>
requirement_ids: ["<REQ_ID>"]
title: <title>
verification: automated-test
description: |
GIVEN <precondition>
WHEN <action>
THEN <expected result>
revision: "<revision>"
Format for manual-test (includes instructions):
- id: <SVC_ID>
requirement_ids: ["<REQ_ID>"]
title: <title>
verification: manual-test
description: |
GIVEN <precondition>
WHEN <action>
THEN <expected result>
instructions: "<how to manually verify>"
revision: "<revision>"
Update the subproject filter
Add the new SVC ID to the filters.<urn>.svc_ids.includes list in the relevant module's
<module.path>/software_verification_cases.yml.
Verify with reqstool
Run reqstool status local -p <module.path> and confirm the new SVC appears
under the linked requirement.
Report
Show the user:
@SVCs annotation to the test method/function (see reqstool-annotation-conventions.md for language-specific syntax)."Guardrails
<system.path>/requirements.ymlCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub reqstool/reqstool-ai --plugin reqstool