一键导入
analyzing-actual-behavior
Use when IDD scenario is not COVERED - trace code line-by-line to find what the code ACTUALLY does, not what it should do
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when IDD scenario is not COVERED - trace code line-by-line to find what the code ACTUALLY does, not what it should do
用 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 validating IDD scenarios - map each scenario's steps to specific implementation locations in scope-bounded source files
Use when validating BDD feature files - extract scenarios, detect chunk filtering mode, classify positive vs negative scenarios
| name | analyzing-actual-behavior |
| description | Use when IDD scenario is not COVERED - trace code line-by-line to find what the code ACTUALLY does, not what it should do |
For every non-COVERED scenario (PARTIAL, MISSING, VIOLATION), trace execution to discover what the code actually does. Never infer, never guess — trace and document.
Trace:
• Does the endpoint/function exist? → 404 or stub?
• If stub exists: what does it return? (null, empty, error?)
• What actually happens when called?
Document:
actual_behavior: "Endpoint GET /api/X returns 404 — not implemented"
OR
actual_behavior: "Function exists but returns None → caller crashes with TypeError"
Trace:
• Which Given/When/Then steps ARE implemented? (cite lines)
• At which step does execution fail or stop?
• What is the last successful operation?
• What happens at the gap?
Document:
actual_behavior: "Input validated ✓ (line 23), request sent ✓ (line 31), response handler missing ✗ → button stuck in loading state"
Trace:
• Where in the execution path can the forbidden behavior occur?
• What specific condition triggers it?
• Is there a guard? Can the guard be bypassed?
• What is the exact line of the vulnerability?
Document:
actual_behavior: "Line 63: `if expiry_time < now()` accepts OTP at exact expiry moment (off-by-one: < should be <=)"
{
"scenario_name": "Exact name from feature file",
"status": "❌ MISSING | ⚠️ PARTIAL | ❌ VIOLATION",
"actual_behavior": "Specific description of what code does",
"root_cause": "Exact line or missing code that causes the behavior",
"code_location": "file: path/to/file.py | function: name | line: N",
"impact": "What the user experiences (plain language)"
}
Actual-behavior records for all non-COVERED scenarios, ready for report-formatter.