plugins/reqstool/skills/reqstool/init/SKILL.md
Create or update .reqstool-ai.yaml configuration for a project. Use when the user wants to initialize or reconfigure reqstool-ai settings.
npx skillsauth add reqstool/reqstool-ai reqstool:initInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create or update .reqstool-ai.yaml configuration for this project.
Input: None required. Existing config is used as defaults when present.
Steps
Check for existing config
Check if .reqstool-ai.yaml already exists in the project root.
If it exists: read it, show the user the current config, and say
"I found an existing .reqstool-ai.yaml. I'll use it as a starting point —
you can update any values or add/remove modules."
Pre-fill all prompts below with the existing values.
If it does not exist: start fresh with empty/default values.
Gather project-level config
Use AskUserQuestion to collect each value. When updating an existing config, show the current value and ask if the user wants to change it.
my-project"0.1.0"requirements.yml and software_verification_cases.yml.
Default: docs/reqstoolNote: these directories and files do not need to exist yet. The user may be setting up reqstool for the first time.
Gather modules
A module is a subproject that imports a subset of requirements/SVCs from the system level via filters. Projects typically have one or more modules.
If updating: show the existing modules and ask the user which to keep, modify, or remove. Then ask if they want to add new modules.
If new: explain what a module is and ask the user to define their first one.
For each module, collect:
core, app, cli).
This becomes the key in the YAML and is used in commands like
/reqstool:add-req core.core/docs/reqstoolCORE_, CLI_, AUTH_).
All requirement IDs for this module will start with this prefix.
Set to empty string "" for projects using domain-specific prefixes where
IDs are managed manually.SVC_CORE_, SVC_CLI_).
Typically SVC_ followed by the req_prefix.After each module, ask: "Add another module? (yes/no)" Continue until the user says no or indicates they are done.
At least one module is required.
Write the config file
Write .reqstool-ai.yaml to the project root with the collected values.
Use references/reqstool-ai.yaml.template as the template — follow its
structure, comments, and formatting. Replace placeholder values with the
user's inputs and include only the modules the user defined.
Configure MCP server (optional)
Offer to configure the reqstool MCP server (requires reqstool ≥ 0.10.0):
The reqstool MCP server gives AI tools structured access to your requirements. Would you like me to add the MCP server configuration?
If yes, use AskUserQuestion to ask the scope:
.mcp.json in the project root (shared with the team via version control)~/.config/claude/mcp.json (just for you, not committed)Read the chosen file (create if missing) and add or update the reqstool entry:
{
"mcpServers": {
"reqstool": {
"command": "reqstool",
"args": ["mcp"]
}
}
}
reqstool mcp (no arguments) auto-detects the dataset by walking up from
the server's working directory to find .reqstool-ai.yaml and using its
system.path — so this same config is portable across contributors.
If the chosen file already has a reqstool entry, show it and ask before overwriting.
If reqstool is not yet installed, skip this step and tell the user:
Install reqstool first (
pipx install reqstool), then re-run/reqstool:initor add the MCP config manually.
Verify (if possible)
If reqstool CLI is installed and the system path contains existing reqstool files,
run reqstool status local -p <system.path> to verify the config.
If reqstool is not installed or files don't exist yet, skip verification and
tell the user they can run /reqstool:status later once their reqstool files are in place.
Report
Show the user:
.reqstool-ai.yaml to version control (and .mcp.json if project-scoped)/reqstool:add-req to add your first requirement,
or /reqstool:status to check traceability status."Guardrails
.reqstool-ai.yaml without reading it first and using it as defaultstools
Install the openspecui reqstool hook into this project. Writes openspec/openspecui.hooks.ts so openspecui enriches all OpenSpec documents (spec, changes, and archived) with reqstool requirement/SVC titles and descriptions at read time.
tools
Run reqstool traceability status on the local filesystem. Use when the user wants to check requirement coverage, missing implementations, or test status.
tools
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.
tools
Add a new requirement to the system-level requirements.yml and update the relevant subproject filter. Use when the user wants to add a new requirement.