A PFMEA is only as good as its ratings. Most PFMEAs fail audits for the same reasons: optimistic detection for
visual checks, occurrence lowered without changing prevention, and high-priority rows with no action.
scripts/pfmea_ap.py applies the AIAG-VDA Action Priority table, keeps RPN for legacy customers, and flags
the rating errors.
Trigger Conditions
Activate this skill when the user:
- Is building a PFMEA for a new part or process, or a process change
- Wants to move from RPN to AIAG-VDA Action Priority
- Needs a PFMEA reviewed before PPAP, a customer audit, or after a complaint
- Asks how to rate severity, occurrence or detection
The control plan built from the PFMEA: control-plan-writer.
Workflow
1. PLAN -> scope, team (process, quality, production, maintenance, design), timing
2. STRUCTURE -> steps from the process flow diagram, work elements (4M)
3. FUNCTION -> requirements per step (product and process characteristics)
4. FAILURE -> effect - failure mode - cause chains; one row per cause
5. RISK -> controls, S/O/D ratings -> python scripts/pfmea_ap.py pfmea.csv
6. OPTIMISE -> actions for AP H (required) and M (should); owners, dates; re-rate after implementation
7. LINK -> controls and special characteristics into the control planAction Priority
AP ranks severity first, then occurrence, then detection: S10 O2 D3 is never outranked by S4 O5 D5 as it is under RPN. H means action required (or documented, approved justification); M means action should be taken; L could. The full table, seven steps and rating guidance: aiag-vda-method.md.
AP S O D RPN Step Failure mode Cause
H 9 5 6 270 OP45 Crimp Low pull-out force Crimp height drift
FM001 [high] row 5 OP45 Crimp / Low pull-out force / Crimp height drift: AP H (S9 O5 D6) needs an action or a documented justificationChecks (pfmea_ap.py)
| Code | Severity | Problem |
|---|---|---|
| FM001 | high | AP H without action |
| FM002 | high | Severity 9-10 with no controls |
| FM003 | high | Missing or out-of-range rating |
| FM004 | medium | D 1-3 without error-proofing or automatic detection |
| FM005 | medium | O 1-2 without prevention control |
| FM006 | medium | Severity 9-10 not marked as a special characteristic |
| FM007 | low | Action without owner or due date |
Failure-chain wording, control-plan link, review triggers and common findings: pfmea-practice.md.
Output Format
Deliver the PFMEA table (step, function, failure mode, effect, S, cause, prevention, O, detection, D, AP, special
characteristic, action, owner, due), sorted by AP, then the pfmea_ap.py findings resolved, then the list of
controls and special characteristics to carry into the control plan.
Scripts
python scripts/pfmea_ap.py pfmea.csv
python scripts/pfmea_ap.py pfmea.csv --sort rpn
python scripts/pfmea_ap.py pfmea.csv --csv > pfmea_rated.csv # adds AP and RPN columns; findings to stderrColumns: step, function, failure_mode, effect, S, cause, prevention, O, detection, D, special, action, owner, due. Exit codes: 0 no high findings, 1 high findings, 2 read error or missing columns.
Additional Resources
| File | Content |
|---|---|
| aiag-vda-method.md | Seven steps, rating guidance, full Action Priority table, AP vs RPN |
| pfmea-practice.md | Inputs, failure chain wording, control-plan link, review triggers, audit findings |
8d-problem-solving-report-writer
Write and review 8D problem-solving reports for customer complaints and serious nonconformities (automotive and aerospace practice: Ford Global 8D, VDA, GM, Stellantis formats): D0 emergency response, D1 cross-functional team and champion, D2 problem description with 5W2H and is / is-not and no cause in the statement, D3 interim containment within 24 hours with verification and clean point, D4 verified occurrence and escape (non-detection) root causes plus systemic cause, D5 permanent corrective actions for each cause verified before implementation, D6 implementation, validation with production data and removal of containment, D7 PFMEA, control plan and read-across to similar products, D8 closure and recognition. Checks an 8D discipline by discipline for missing content, human-error root causes, missing escape cause or action, late containment and dates out of order.
acceptance-sampling-plan-selector
Select and evaluate acceptance sampling plans for incoming, in-process and final inspection: ANSI/ASQ Z1.4 / ISO 2859-1 single sampling under normal inspection (code letter from lot size and inspection level I, II, III, S-1 to S-4; sample size, Ac and Re from AQL, following the table's arrows to the correct plan; 100% when n reaches the lot size; AQLs above 10 per 100 units), operating characteristic curves (Pa at any quality, producer's quality level, indifference point, LTPD, AOQ and AOQL, binomial or hypergeometric), plans designed from producer and consumer risk, and c = 0 zero-acceptance plans. Covers AQL choice by defect class, switching rules between normal, tightened and reduced inspection, when sampling is not appropriate, and random sampling.
approved-supplier-list-manager
Manage and audit an approved supplier list (ASL) / external provider register for ISO 9001 8.4.1, IATF 16949 8.4 and AS9100 8.4.1: supplier status (approved, conditional, probation, pending, disqualified), scope of approval by commodity and process, risk class, certification and expiry, re-evaluation intervals by risk, conditions with end dates, single-source contingency, approver and customer-directed sources. Audits the list for expired or expiring certificates, overdue re-evaluations, conditional or probation status past its decision date, high-risk suppliers without the required certification, single-source suppliers without backup and missing approvers, and checks purchase orders for suppliers that are off-list, disqualified or pending, or buying outside the approved scope. Covers ERP blocks, PO requirements, off-list and emergency purchases.
apqp-phase-planner
Plan and track Advanced Product Quality Planning (AIAG APQP 3rd edition, IATF 16949) for a new or changed automotive part: back-schedule the five phases (plan and define, product design, process design, product and process validation, launch and feedback) from the start-of-production date by program complexity, with overlap, PPAP lead and safe-launch period; list the deliverables and gate for each phase (DFMEA, DVP&R, feasibility, process flow, PFMEA, control plans, MSA, Ppk, run at rate, PPAP, safe launch, lessons learned); adjust for build-to-print suppliers; flag compressed timelines and late or untracked deliverables against a status list. Covers gate reviews, red/yellow/green status reporting, run at rate and safe-launch exit criteria.
as9100-gap-analyzer
Run an AS9100D / EN 9100:2018 gap analysis for aviation, space and defence suppliers on the requirements added to ISO 9001: on-time delivery and conformity focus, management representative, ethics and human-factors awareness, operational planning and operational risk management, configuration management, product safety, counterfeit-part prevention, special requirements, critical items and key characteristics, external provider register and flow-down, FOD prevention, tooling and NC program control, special process validation, first article inspection (AS9102), traceability, in-service data and nonconforming product control. Generates and scores a worksheet, grades missing core controls as major, and checks invalid n/a claims. Covers AS9101/AS9104, OASIS, AS9102 FAI forms, counterfeit standards (AS5553, AS6174, AS6081), NADCAP and the planned IA9100 transition.
audit-report-writer
Write internal, supplier and pre-certification audit reports with the content ISO 19011:2018 6.5 expects: audit objectives, scope, criteria with revisions, dates, team and auditees, method and sampling statement, specific strengths, findings table and three-part finding details (requirement, evidence, statement), conclusion on the degree of fulfilment of criteria, diverging opinions, follow-up deadlines and distribution. Builds a Markdown report from a JSON audit record, generates the conclusion from the findings (major / minor / none) and flags reports missing required content or findings without clause or evidence. Covers conclusion wording, closing meetings, response expectations and verifying corrective actions.