用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/a5c-ai/babysitter --skill fmea-facilitator命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Reference for querying the Atlas knowledge graph through its MCP tools — the SECONDARY enrichment/comparison layer that adds best-practice context to systems you have ALREADY scanned from your real sources (`az`, repos, dirs). Use when you need to look up nodes, edges, kinds, clusters, stats, or wiki pages in Atlas to compare against your real inventory. (atlas graph, query atlas, atlas mcp, search the graph, graph neighbors, atlas record, atlas kinds, enrichment layer)
Atlas turns your STATED NEED into a real systems atlas by SCANNING your actual sources (Azure via `az`, git repos, local dirs) and process/data mining them, THEN enriching against the Atlas knowledge graph. Use this skill when asked to inventory/map your real systems, scan your cloud + repos + directories, mine the real processes or data they contain, or collect their real constraints/gotchas. (atlas, scan my systems, inventory our azure account, map my repos, real systems atlas, process mining, data mining, collect nuances, system discovery)
This skill should be used when the user asks to "find skills in the wild", "assimilate popular workflows", "discover SKILL.md files in repos", "research external skills", "find workflow patterns", "survey the skill landscape", "what skills exist out there", or wants to investigate public repositories for extractable processes, babysitter plugins, and reusable procedural insights. Searches GitHub for SKILL.md files, classifies repos by archetype, and maintains structured research under docs/reference-repos/.
正在显示 SKILL.md
基于 SOC 职业分类
| name | fmea-facilitator |
| description | Failure Mode and Effects Analysis facilitation skill for risk identification and prioritization. |
| allowed-tools | Bash(*) Read Write Edit Glob Grep WebFetch |
| metadata | {"author":"babysitter-sdk","version":"1.0.0","category":"quality-engineering","backlog-id":"SK-IE-018"} |
| graph | {"domains":["domain:industrial-engineering"],"skillAreas":["skill-area:statistical-analysis","skill-area:organizational-design","skill-area:data-analysis"],"roles":["role:operations-analyst","role:research-engineer"]} |
You are fmea-facilitator - a specialized skill for facilitating Failure Mode and Effects Analysis for risk identification and prioritization.
This skill enables AI-powered FMEA including:
from dataclasses import dataclass, field
from typing import List, Optional
from datetime import datetime
from enum import Enum
class FMEAType(Enum):
DESIGN = "DFMEA"
PROCESS = "PFMEA"
SYSTEM = "SFMEA"
@dataclass
class FailureMode:
id: str
item_function: str
potential_failure_mode: str
potential_effects: List[str]
severity: int # 1-10
potential_causes: List[str]
occurrence: int # 1-10
current_controls_prevention: List[str]
current_controls_detection: List[str]
detection: int # 1-10
recommended_actions: List[str] = field(default_factory=list)
responsibility: str = ""
target_date: Optional[datetime] = None
actions_taken: str = ""
severity_after: Optional[int] = None
occurrence_after: Optional[] =
detection_after: [] =
():
.severity * .occurrence * .detection
():
([.severity_after, .occurrence_after, .detection_after]):
.severity_after * .occurrence_after * .detection_after
:
fmea_type: FMEAType
item_name:
revision:
team_members: []
start_date: datetime
failure_modes: [FailureMode] = field(default_factory=)
():
.failure_modes.append(fm)
():
[fm fm .failure_modes fm.rpn >= threshold]
SEVERITY_RATINGS = {
10: {
"effect": "Hazardous without warning",
"description": "Very high severity ranking when potential failure mode affects safe operation without warning",
"criteria": "May endanger operator; Noncompliance with regulations"
},
9: {
"effect": "Hazardous with warning",
"description": "Very high severity ranking when potential failure mode affects safe operation with warning",
"criteria": "May endanger operator with warning"
},
8: {
"effect": "Very High",
"description": "Product inoperable, loss of primary function",
"criteria": "100% of product affected, customer very dissatisfied"
},
7: {
"effect": "High",
"description": "Product operable but performance level reduced",
"criteria": "Most customers dissatisfied"
},
6: {
"effect": "Moderate",
"description": "Product operable but comfort/convenience items inoperable",
"criteria": "Customer experiences discomfort"
},
5: {
"effect": "Low",
"description": "Product operable but comfort/convenience items reduced",
"criteria": "Customer somewhat dissatisfied"
},
: {
: ,
: ,
:
},
: {
: ,
: ,
:
},
: {
: ,
: ,
:
},
: {
: ,
: ,
:
}
}
():
SEVERITY_RATINGS
OCCURRENCE_RATINGS = {
10: {"probability": "Very High", "rate": ">= 100 per 1000", "cpk": "< 0.33"},
9: {"probability": "High", "rate": "50 per 1000", "cpk": ">= 0.33"},
8: {"probability": "High", "rate": "20 per 1000", "cpk": ">= 0.51"},
7: {"probability": "Moderately High", "rate": "10 per 1000", "cpk": ">= 0.67"},
6: {"probability": "Moderate", "rate": "5 per 1000", "cpk": ">= 0.83"},
5: {"probability": "Moderate", "rate": "2 per 1000", "cpk": ">= 1.00"},
4: {"probability": "Moderately Low", "rate": "1 per 1000", "cpk": ">= 1.17"},
3: {"probability": "Low", "rate": "0.5 per 1000", : },
: {: , : , : },
: {: , : , : }
}
DETECTION_RATINGS = {
10: {
"likelihood": "Almost Impossible",
"description": "No known controls to detect failure mode",
"criteria": "Cannot detect or not checked"
},
9: {
"likelihood": "Very Remote",
"description": "Controls probably will not detect",
"criteria": "Control achieved with indirect or random checks only"
},
8: {
"likelihood": "Remote",
"description": "Controls have poor chance of detection",
"criteria": "Control achieved with visual inspection only"
},
7: {
"likelihood": "Very Low",
"description": "Controls have poor chance of detection",
"criteria": "Control achieved with double visual inspection"
},
6: {
"likelihood": "Low",
"description": "Controls may detect",
"criteria": "Control achieved with charting methods (SPC)"
},
5: {
"likelihood": "Moderate",
"description": "Controls may detect",
"criteria": "Control based on variable gauging after parts leave station"
},
4: {
"likelihood": ,
: ,
:
},
: {
: ,
: ,
:
},
: {
: ,
: ,
:
},
: {
: ,
: ,
:
}
}
def calculate_action_priority(severity, occurrence, detection):
"""
Calculate Action Priority per AIAG-VDA FMEA handbook
Returns: 'H' (High), 'M' (Medium), 'L' (Low)
"""
# High Priority
if severity >= 9 and occurrence >= 4:
return "H"
if severity >= 9 and detection >= 7:
return "H"
if severity >= 5 and occurrence >= 7 and detection >= 5:
return "H"
# Low Priority
if severity <= 4 and occurrence <= 3:
return "L"
if severity <= 4 and detection <= 3:
return "L"
if severity <= 6 and occurrence <= 2 and detection <= 4:
return "L"
# Medium Priority (default)
return "M"
def get_ap_table():
"""
Return AP lookup table summary
"""
{
: {
: ,
: ,
:
},
: {
: ,
: ,
:
},
: {
: ,
: ,
:
}
}
def analyze_fmea(fmea: FMEA):
"""
Analyze FMEA and generate summary report
"""
analysis = {
"total_failure_modes": len(fmea.failure_modes),
"rpn_statistics": {},
"ap_distribution": {"H": 0, "M": 0, "L": 0},
"top_risks": [],
"actions_status": {
"pending": 0,
"in_progress": 0,
"completed": 0
}
}
rpns = [fm.rpn for fm in fmea.failure_modes]
if rpns:
analysis["rpn_statistics"] = {
"max": max(rpns),
"min": min(rpns),
"average": sum(rpns) / len(rpns),
"above_100": sum(1 for r in rpns if r >= 100),
"above_200": sum(1 for r in rpns if r >= 200)
}
# AP distribution
for fm in fmea.failure_modes:
ap = calculate_action_priority(fm.severity, fm.occurrence, fm.detection)
analysis[][ap] +=
sorted_fms = (fmea.failure_modes, key= x: x.rpn, reverse=)
analysis[] = [
{
: fm.,
: fm.potential_failure_mode,
: fm.rpn,
: fm.severity,
: fm.occurrence,
: fm.detection,
: calculate_action_priority(fm.severity, fm.occurrence, fm.detection)
}
fm sorted_fms[:]
]
fm fmea.failure_modes:
fm.actions_taken:
analysis[][] +=
fm.recommended_actions:
analysis[][] +=
:
analysis[][] +=
analysis
():
control_items = []
fm fmea.failure_modes:
control fm.current_controls_prevention + fm.current_controls_detection:
control_items.append({
: fm.item_function,
: fm.potential_failure_mode,
: control,
: ,
: ,
:
})
control_items
This skill integrates with the following processes:
failure-mode-effects-analysis.jsroot-cause-analysis-investigation.jsstatistical-process-control-implementation.js{
"fmea_summary": {
"type": "PFMEA",
"item": "Assembly Process",
"revision": "1.2",
"total_failure_modes": 45
},
"risk_analysis": {
"high_priority_count": 8,
"medium_priority_count": 22,
"low_priority_count": 15,
"max_rpn": 392,
"avg_rpn": 112
},
"top_risks": [
{
"failure_mode": "Missing fastener",
"rpn": 392,
"ap"