一键导入
mapping-code-to-scenarios
Use when validating IDD scenarios - map each scenario's steps to specific implementation locations in scope-bounded source files
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when validating IDD scenarios - map each scenario's steps to specific implementation locations in scope-bounded source files
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Coaching Agent — validate and execute @regression scenarios for the Baseline Assessment (baseline-assessment.feature) and the Module-Based Training Journey (training-flow.feature) against the app. Logs in first, runs only @regression scenarios (ignoring @smoke/@sanity/@wip/untagged), captures evidence, and generates a regression report. Trigger with /coaching-agent.
Generate complete BDD/Gherkin test cases for the coaching platform from a scenario description or file.
Mandatory SDLC workflow for new features, bug fixes, refactors, architecture changes, API changes, database changes, UI changes, tests, and deployment-related work. Use before implementation.
Use when producing final IDD validation output - create markdown table with scenario findings, assign PASS/PARTIAL/FAIL verdict, follow schema exactly
Use when IDD scenario is not COVERED - trace code line-by-line to find what the code ACTUALLY does, not what it should do
Use when validating BDD feature files - extract scenarios, detect chunk filtering mode, classify positive vs negative scenarios
| name | mapping-code-to-scenarios |
| description | Use when validating IDD scenarios - map each scenario's steps to specific implementation locations in scope-bounded source files |
For each scenario extracted by gherkin-parser, find the implementing code within scope-bounded files. Every mapping must cite exact file, function, and line number — or explicitly declare no evidence.
Step 1: Find Entry Point
Scan the scenario's "When" steps to identify the action being tested.
Match to:
Step 2: Trace Execution Path
Within scope only:
Step 3: Record Mapping
{
"scenario": "Scenario name",
"entry_point": {
"file": "apps/auth/views.py",
"function": "login_view",
"line": 45
},
"step_mappings": [
{
"step": "Given a registered user with phone '03001234567'",
"file": "apps/users/models.py",
"function": "User.objects.get",
"line": 23,
"evidence": "QuerySet filter by phone"
}
],
"unresolvable_paths": ["core/permissions.py → outside scope"]
}
Per-scenario code mapping with exact evidence for each Given/When/Then step.