2.8 KiB
2.8 KiB
allowed-tools, argument-hint, description, model
| allowed-tools | argument-hint | description | model | |
|---|---|---|---|---|
| Read, Write, Edit, Bash(reqvire:*), SlashCommand |
|
Add a complete feature by orchestrating requirement and verification creation following MBSE workflow | claude-sonnet-4-5-20250929 |
Add Feature
Add a complete feature by orchestrating multiple commands to create requirements, verifications, and proper traceability.
Current Model Context
- Total requirements: !
reqvire search --json | jq -r '.global_counters.total_elements' - Verification coverage: !
reqvire coverage --json | jq -r '.summary.leaf_requirements_coverage_percentage'%
User Request
${1:+Feature name: $1} ${1:-The user will provide feature details.}
MBSE Workflow
This command orchestrates the complete workflow:
- Define requirements (parent → children)
- Create verifications for leaf requirements
- Validate and check coverage
Steps
-
Understand the feature:
- Ask user for feature description
- Identify if this derives from existing requirement
- Plan requirement hierarchy (parent → leaf requirements)
-
Create parent requirement (if needed):
/add-requirementThis creates the high-level feature requirement.
-
Create leaf requirements:
For each specific capability:
/add-requirementLink each to the parent via
derivedFrom. -
Create verifications for leaf requirements:
For each leaf requirement:
/add-verificationThis will:
- Check if verification is needed (leaf vs parent)
- Read all requirements in trace chain
- Create verification with comprehensive test criteria
- Link to tests if applicable
-
Validate complete feature:
reqvire validate reqvire coverage --filter-name="<feature-name>" reqvire traces --filter-name="<feature-name>" -
Clean up model:
reqvire lint --fix
Command Flow
/add-feature
├─> /add-requirement (parent)
├─> /add-requirement (leaf 1)
├─> /add-requirement (leaf 2)
├─> /add-requirement (leaf 3)
├─> /add-verification (for leaf 1)
├─> /add-verification (for leaf 2)
├─> /add-verification (for leaf 3)
└─> reqvire lint --fix
Best Practices
- Requirements first: Create all requirements before verifications
- Hierarchical: Parent requirement → leaf requirements
- Verify leaves only: Use
/add-verificationfor leaf requirements - Delegate: Let individual commands handle their specific logic
- Validate often: Run validation after each major step
Notes
- This is an orchestration command - it calls other commands
- Follow MBSE methodology: requirements → verifications → tests
- Each step uses specialized commands for consistency
- Run
reqvire coverageat the end to confirm complete feature coverage