一键导入
ba-metrics
[Agentic] Requirements Metrics & SPC - Statistical Process Control for Quality (SKILL-18)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
[Agentic] Requirements Metrics & SPC - Statistical Process Control for Quality (SKILL-18)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
[Meta] How to use BA-Kit effectively. Use when starting with BA-Kit, unsure which agent to invoke, or when an AI agent needs to map user intent to the right skill.
[Agentic] Agile BA Practices - User Story Mapping, MVP Definition, Hypothesis-Driven Development
[Agentic] Business Rules Management - decision tables, decision trees, rule catalog, conflict detection
[Agentic] Change Management - ADKAR, readiness assessment, training needs, go-live planning, benefits realization
[Agentic] Communication & Reporting - audience-adapted messaging, status reports, executive summaries
[Agentic] Conflict Resolution & Negotiation - resolve stakeholder disagreements (SKILL-06)
| name | ba-metrics |
| description | [Agentic] Requirements Metrics & SPC - Statistical Process Control for Quality (SKILL-18) |
| version | 1.0.0 |
If input is unclear, incomplete, or out-of-scope:
When NOT to use:
When activated via @ba-metrics, perform the following cognitive loop:
STOP & THINK. Don't be fooled by Vanity Metrics.
Present the Quality Health Card:
Don't stop here. Recommend the next step:
@ba-root-cause to investigate why these metrics are out of control."@ba-innovation to design an experiment to improve the process."@ba-process to redesign the workflow based on bottleneck data."| Rationalization | Reality |
|---|---|
| "We don't have historical data" | Start collecting now. Month 1 baseline beats Month 6 guess. Even 5 sprint data points is a start. |
| "SPC charts are overkill for BA" | You're measuring defect density. Without control limits, you can't distinguish signal from noise. |
| "Monthly metrics are enough" | Monthly lags 30 days behind problems. Weekly cadence catches issues while corrective action is still cheap. |
| "Trend is up, we're fine" | Up 3 points means nothing without UCL/LCL. Plot it on a control chart before declaring victory. |
| "We track defects in Jira, no need for SPC" | Jira counts. SPC tells you if the count is common cause (ignore) or special cause (act now). Different questions. |
After completing this skill's process, confirm:
run_commandrun_command: REQUIRED to calculate Standard Deviation ($\sigma$) and Cpk.write_to_file: To generate a Quality Report CSV.Step 1 — Collect Data: Thu thập dữ liệu thô từ Jira/Bugzilla (defect log), danh sách user story, kết quả test execution. Xác định kỳ đo lường (sprint, tháng, release).
Step 2 — Calculate Metrics: Tính toán các chỉ số cốt lõi:
run_command Python — KHÔNG tính thủ công.Step 3 — Build Control Chart: Vẽ X-bar/R chart hoặc p-chart. Tính UCL (Upper Control Limit) và LCL (Lower Control Limit) từ dữ liệu lịch sử ≥ 20 điểm. Gắn nhãn các điểm ngoài giới hạn là "Special Cause".
Step 4 — Interpret: Phân biệt Common Cause variation (nhiễu bình thường) vs Special Cause variation (tín hiệu bất thường). Đặt câu hỏi ngược: "Defects giảm đột ngột có phải do code tốt hơn, hay do test ít đi?"
Step 5 — Report: Xuất Quality Health Card. Đề xuất hành động: Stop / Continue / Investigate. Handoff sang @ba-root-cause nếu phát hiện Special Cause.
=== QUALITY HEALTH CARD ===
Module / Sprint: [Tên module hoặc Sprint X]
Period : [DD/MM/YYYY — DD/MM/YYYY]
Measured by : @ba-metrics | Date: [today]
| Metric | Value | UCL | LCL | Status |
|-------------------------|-----------|-------|-------|-------------|
| Defect Density | X.XX /FP | X.XX | X.XX | ✅ / ⚠️ / 🔴 |
| Requirement Volatility | XX% | XX% | — | ✅ / ⚠️ / 🔴 |
| Test Pass Rate | XX% | — | XX% | ✅ / ⚠️ / 🔴 |
| Sigma Level (estimated) | X.X σ | — | — | ✅ / ⚠️ / 🔴 |
Process Stability : [STABLE / UNSTABLE]
Verdict : [1-sentence judgment]
Recommended Action: [Continue / Investigate / Stop]
Next Handoff : [@ba-root-cause / @ba-innovation / none]
===========================
Tình huống: Module "Chấm Công" của EAMS vừa kết thúc Sprint 5.
Tính toán (dùng Python):
defect_density = 12 / 40 # = 0.30 bugs/story
req_volatility = 8 / 40 * 100 # = 20%
test_pass_rate = 48 / 60 * 100 # = 80%
# UCL benchmark từ 10 sprint trước: Defect Density UCL = 0.25
status_dd = "⚠️ NGOÀI GIỚI HẠN" if defect_density > 0.25 else "✅"
Kết quả:
Defect Density: 0.30 /story | UCL: 0.25 → ⚠️ Special Cause detected
Req Volatility: 20% | UCL: 15% → ⚠️ Quá nhiều scope changes
Test Pass Rate: 80% | LCL: 85% → 🔴 Dưới ngưỡng chấp nhận
Verdict: Process UNSTABLE. Ngừng tính năng mới. Điều tra ngay.
Next: @ba-root-cause — Why defect density vượt UCL sprint này?
Before drafting, search for relevant knowledge:
run_command: python3 .agent/scripts/ba_search.py "<topic keywords>" --domain metricspython3 .agent/scripts/ba_search.py "<query>" --multi-domainActivation Phrase: "Quality Control online. Show me the numbers."