con un clic
requirement-mapper
Map Jira requirements to testable scenarios with validation gates
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Map Jira requirements to testable scenarios with validation gates
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Classify PR review comments on STP/STD documents into auto-fixable vs needs-human categories. Maps free-text feedback to QualityFlow domain rules for automated fix routing.
Resolve Jira ID to project configuration and load project context
Generate comprehensive v2.1-ENHANCED STD YAML with pattern metadata, variables, test structure from ALL STP scenarios (single file)
Orchestrate STP → STD pipeline (generates comprehensive STD YAML only)
Generate test stubs with PSE docstrings from STD YAML — language and framework driven by project config
Detect test conventions from a codebase to drive test generation without tier config
Basado en la clasificación ocupacional SOC
| name | requirement-mapper |
| description | Map Jira requirements to testable scenarios with validation gates |
Phase: Core Processing User-Invocable: false
Map Jira requirements to testable scenarios, applying validation gates and project scope boundaries.
Invoked by the stp-generator subagent to transform regression analysis into validated requirements.
jira_data:
main_issue:
key: PROJ-12345
summary: Add CPU hot-plug support
description: ...
acceptance_criteria: ...
linked_issues: [...]
regression_data:
impacted_features:
- feature_name: Live Migration
relationship: Direct caller
why_might_break: ...
- ...
recommended_tests:
- requirement: Live migration works with CPU changes
test_scenario: Verify VM migration succeeds after CPU hot-plug
priority: P1
- ...
validated_requirements:
- requirement_id: PROJ-12345 # Jira issue key — NEVER invent IDs
requirement_summary: Live migration completes successfully after CPU hot-plug
source: regression_analysis
evidence: MigrateInstance calls UpdateSpec which was modified
validation_passed: true
test_scenario: Verify VM migration succeeds after CPU hot-plug
priority: P1
- requirement_id: "" # Leave blank for subsequent rows under the same epic
requirement_summary: CPU can be hot-added to running VM
source: regression_analysis
evidence: HandleCPUHotplug is new entry point
validation_passed: true
test_scenario: Verify CPU addition to running VM
priority: P0
- ...
rejected_requirements:
- requirement_summary: Kubernetes scheduler places VM pods correctly
reason: Platform-level test - Kubernetes scheduler is tested by platform team
gate_failed: Requirement Level Validation
- requirement_summary: PVC binds to PV correctly
reason: Platform-level test - CSI/storage tested by storage team
gate_failed: Requirement Level Validation
- ...
coverage_summary:
total_from_regression: 15
validated: 12
rejected: 3
tier1_count: 8
tier2_count: 4
Read {project_context.config_dir}/project.yaml scope_boundaries for all validation data:
testing_levels: Lists which testing levels to ACCEPT and which to REJECT.
Classify each requirement by its testing level, then look up the action.team_ownership: Lists which teams' scope to ACCEPT and which to REJECT.
Ask "Who tests this?" and look up the action.in_scope_resources: Resources that the project tests (ACCEPT if involved).out_of_scope_if_only: Resources that are out of scope when they are the
ONLY resource involved (REJECT if no in-scope resources are present).For each requirement, check which resources it involves:
scope_boundaries.in_scope_resourcesscope_boundaries.out_of_scope_if_onlyRead the scope_boundaries.validation_gate question from {project_context.config_dir}/project.yaml.
Requirement IDs MUST be Jira issue keys (e.g., PROJ-72329). Never invent IDs
like REQ-xxx-001, REQ-NAD-001, or any other synthetic ID format.
| BAD (Invented) | GOOD (Jira Key) |
|---|---|
| REQ-NAD-001 | PROJ-72329 |
| REQ-CPU-001 | PROJ-12345 |
| REQ-MIG-001 | PROJ-67890 |
Requirements must be HIGH-LEVEL capabilities:
| BAD (Too Low-Level) | GOOD (STP Level) |
|---|---|
| Create VM with 2 CPUs, start it, add 2 more | CPU can be hot-added to running VM |
Run {cli_tool} get resource and check status | Resource status is accurately reported via API |
| Create PVC, attach, write file, verify | Data persists across disk attach/detach |
Consolidate into feature capabilities:
| BAD (Fragmented) | GOOD (Consolidated) |
|---|---|
| Start VM, Stop VM, Restart VM | VM lifecycle operations function correctly |
| Create disk, Attach, Detach, Delete | Disk hot-plug operations complete successfully |
| Add CPU, Remove CPU, Add memory | Resource hot-plug preserves VM stability |
5-15 high-level requirements per feature - not 30-50 trivial operations.
EXCLUSIVE source for test scenarios: Regression Analysis
DO NOT derive test scenarios from:
Include negative test scenarios for:
Input (from regression analysis):
impacted_features:
- feature_name: Live Migration
relationship: Direct caller
why_might_break: Migration calls instance update which was modified
Output:
validated_requirements:
- requirement_id: PROJ-12345
requirement_summary: Live migration completes successfully after CPU configuration changes
source: regression_analysis
evidence: MigrateInstance → UpdateSpec (modified)
validation_passed: true
test_scenario: Verify VM migration succeeds with modified CPU config
priority: P1
Before finalizing, verify: