capa-officer by alirezarezvani/claude-skills
npx skills add https://github.com/alirezarezvani/claude-skills --skill capa-officer质量管理体系中的纠正与预防措施管理,专注于系统性根本原因分析、措施实施和有效性验证。
从启动到关闭,进行系统性的 CAPA 调查:
| 触发类型 | 是否需要 CAPA | 判定标准 |
|---|---|---|
| 客户投诉(安全相关) | 是 | 任何涉及患者/用户安全的投诉 |
| 客户投诉(质量相关) | 评估 | 基于严重程度和发生频率 |
| 内部审核发现(主要) | 是 | 系统性失效或要素缺失 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 内部审核发现(次要) |
| 建议 |
| 孤立性失误或部分实施 |
| 不合格(重复发生) | 是 | 相同类型的不合格发生 3 次以上 |
| 不合格(孤立事件) | 评估 | 基于严重程度和风险 |
| 外部审核发现 | 是 | 所有主要和次要发现 |
| 趋势分析 | 评估 | 基于趋势的显著性 |
| CAPA 严重程度 | 必需的团队成员 |
|---|---|
| 关键 | CAPA 专员、过程负责人、质量保证经理、主题专家、管理代表 |
| 主要 | CAPA 专员、过程负责人、主题专家 |
| 次要 | CAPA 专员、过程负责人 |
根据问题特征选择并应用适当的 RCA 方法。
Is the issue safety-critical or involves system reliability?
├── Yes → Use FAULT TREE ANALYSIS
└── No → Is human error the suspected primary cause?
├── Yes → Use HUMAN FACTORS ANALYSIS
└── No → How many potential contributing factors?
├── 1-2 factors (linear causation) → Use 5 WHY ANALYSIS
├── 3-6 factors (complex, systemic) → Use FISHBONE DIAGRAM
└── Unknown/proactive assessment → Use FMEA
适用场景:单一原因问题、具有线性因果关系、过程偏差且有明确失效点。
模板:
PROBLEM: [清晰、具体的陈述]
WHY 1: 为什么发生了 [问题]?
BECAUSE: [第一层原因]
EVIDENCE: [支持性数据]
WHY 2: 为什么发生了 [第一层原因]?
BECAUSE: [第二层原因]
EVIDENCE: [支持性数据]
WHY 3: 为什么发生了 [第二层原因]?
BECAUSE: [第三层原因]
EVIDENCE: [支持性数据]
WHY 4: 为什么发生了 [第三层原因]?
BECAUSE: [第四层原因]
EVIDENCE: [支持性数据]
WHY 5: 为什么发生了 [第四层原因]?
BECAUSE: [根本原因]
EVIDENCE: [支持性数据]
示例 - 校准超期:
PROBLEM: pH meter (EQ-042) found 2 months overdue for calibration
WHY 1: 为什么校准超期了?
BECAUSE: 设备未列入校准计划
EVIDENCE: 审查校准计划,EQ-042 未列出
WHY 2: 为什么它不在计划中?
BECAUSE: 设备采购时未更新计划
EVIDENCE: 采购日期 2023-06-15,计划日期 2023-01-01
WHY 3: 为什么计划没有更新?
BECAUSE: 没有流程要求在设备采购时更新计划
EVIDENCE: 审查 SOP-EQ-001,无此要求
WHY 4: 为什么没有这样的要求?
BECAUSE: 程序编写于设备跟踪集中化之前
EVIDENCE: SOP 上次修订于 2019 年,设备系统于 2021 年实施
WHY 5: 为什么程序没有更新?
BECAUSE: 定期评审未评估与新系统的兼容性
EVIDENCE: 未记录针对新设备系统的评审
ROOT CAUSE: 程序评审过程未评估与原程序创建后实施的组织系统的兼容性。
| 类别 | 关注领域 | 典型原因 |
|---|---|---|
| 人 | 培训、能力、工作量 | 技能差距、疲劳、沟通 |
| 机 | 校准、维护、使用年限 | 磨损、故障、能力不足 |
| 法 | 程序、作业指导书 | 步骤不清晰、缺少控制 |
| 料 | 规格、供应商、储存 | 不符合规格、降解、污染 |
| 测 | 校准、方法、解读 | 仪器误差、方法错误 |
| 环 | 温度、湿度、清洁度 | 环境偏差 |
完整的方法详情和模板请参见 references/rca-methodologies.md。
在进入措施规划前,验证根本原因:
制定针对已识别根本原因的有效措施:
| 类型 | 目的 | 时间表 | 示例 |
|---|---|---|---|
| 遏制 | 停止直接影响 | 24-72 小时 | 隔离受影响产品 |
| 纠正 | 修复特定发生项 | 1-2 周 | 返工或更换受影响项目 |
| 纠正措施 | 消除根本原因 | 30-90 天 | 修订程序、增加控制 |
| 预防措施 | 防止在其他区域发生 | 60-120 天 | 将解决方案扩展到类似过程 |
ACTION PLAN TEMPLATE
CAPA Number: [CAPA-XXXX]
Root Cause: [Identified root cause]
ACTION 1: [Specific action description]
- Type: [ ] Containment [ ] Correction [ ] Corrective [ ] Preventive
- Responsible: [Name, Title]
- Due Date: [YYYY-MM-DD]
- Resources: [Required resources]
- Success Criteria: [Measurable outcome]
- Verification Method: [How success will be verified]
ACTION 2: [Specific action description]
...
IMPLEMENTATION TIMELINE:
Week 1: [Milestone]
Week 2: [Milestone]
Week 4: [Milestone]
Week 8: [Milestone]
APPROVAL:
CAPA Owner: _____________ Date: _______
Process Owner: _____________ Date: _______
QA Manager: _____________ Date: _______
| 指标 | 目标 | 危险信号 |
|---|---|---|
| 措施范围 | 完全解决根本原因 | 只处理症状 |
| 具体性 | 可测量的交付成果 | 模糊的承诺 |
| 时间表 | 积极但可实现 | 无截止日期或不切实际 |
| 资源 | 已识别并分配 | 未指定 |
| 可持续性 | 永久解决方案 | 临时修复 |
验证纠正措施是否达到预期结果:
| CAPA 严重程度 | 等待期 | 验证窗口 |
|---|---|---|
| 关键 | 30 天 | 实施后 30-90 天 |
| 主要 | 60 天 | 实施后 60-180 天 |
| 次要 | 90 天 | 实施后 90-365 天 |
| 方法 | 适用场景 | 所需证据 |
|---|---|---|
| 数据趋势分析 | 可量化的问题 | 实施前/后对比、趋势图 |
| 过程审核 | 程序符合性问题 | 审核清单、访谈记录 |
| 记录审查 | 文件问题 | 样本记录、符合率 |
| 测试/检验 | 产品质量问题 | 测试结果、通过/失败数据 |
| 访谈/观察 | 培训问题 | 访谈记录、观察记录 |
Did recurrence occur during verification period?
├── Yes → CAPA INEFFECTIVE (re-investigate root cause)
└── No → Were all effectiveness criteria met?
├── Yes → CAPA EFFECTIVE (proceed to closure)
└── No → Extent of gap?
├── Minor gap → Extend verification or accept with justification
└── Significant gap → CAPA INEFFECTIVE (revise actions)
详细程序请参见 references/effectiveness-verification-guide.md。
通过关键指标监控 CAPA 项目绩效。
| 指标 | 目标 | 计算方法 |
|---|---|---|
| CAPA 周期时间 | 平均 <60 天 | (关闭日期 - 开启日期) / CAPA 总数 |
| 超期率 | <10% | 超期 CAPA 数 / 总开启 CAPA 数 |
| 首次有效性 | >90% | 首次验证即有效的 CAPA 数 / 总已验证 CAPA 数 |
| 复发率 | <5% | 复发问题数 / 总关闭 CAPA 数 |
| 调查质量 | 100% 根本原因已验证 | 已验证根本原因的 CAPA 数 / 总 CAPA 数 |
| 时效区间 | 状态 | 所需行动 |
|---|---|---|
| 0-30 天 | 按计划 | 监控进展 |
| 31-60 天 | 监控 | 审查是否存在延迟 |
| 61-90 天 | 警告 | 上报管理层 |
90 天 | 关键 | 需要管理层干预
月度 CAPA 状态报告包括:
references/rca-methodologies.md 包含:
references/effectiveness-verification-guide.md 包含:
# Generate CAPA status report
python scripts/capa_tracker.py --capas capas.json
# Interactive mode for manual entry
python scripts/capa_tracker.py --interactive
# JSON output for integration
python scripts/capa_tracker.py --capas capas.json --output json
# Generate sample data file
python scripts/capa_tracker.py --sample > sample_capas.json
计算和报告:
{
"capas": [
{
"capa_number": "CAPA-2024-001",
"title": "Calibration overdue for pH meter",
"description": "pH meter EQ-042 found 2 months overdue",
"source": "AUDIT",
"severity": "MAJOR",
"status": "VERIFICATION",
"open_date": "2024-06-15",
"target_date": "2024-08-15",
"owner": "J. Smith",
"root_cause": "Procedure review gap",
"corrective_action": "Updated SOP-EQ-001"
}
]
}
| 子条款 | 要求 | 关键活动 |
|---|---|---|
| 8.5.2 纠正措施 | 消除不合格的原因 | 不合格评审、原因确定、措施评估、实施、有效性评审 |
| 8.5.3 预防措施 | 消除潜在不合格的原因 | 趋势分析、原因确定、措施评估、实施、有效性评审 |
要求的 CAPA 要素:
| 观察项 | 根本原因模式 |
|---|---|
| 未对复发问题启动 CAPA | 未执行趋势分析 |
| 根本原因分析肤浅 | 调查培训不足 |
| 未验证有效性 | 无验证程序 |
| 措施未解决根本原因 | 治疗症状而非消除原因 |
每周安装数
163
代码库
GitHub 星标数
3.6K
首次出现
Jan 20, 2026
安全审计
安装于
claude-code138
gemini-cli119
opencode119
codex109
cursor104
github-copilot95
Corrective and Preventive Action (CAPA) management within Quality Management Systems, focusing on systematic root cause analysis, action implementation, and effectiveness verification.
Conduct systematic CAPA investigation from initiation through closure:
| Trigger Type | CAPA Required | Criteria |
|---|---|---|
| Customer complaint (safety) | Yes | Any complaint involving patient/user safety |
| Customer complaint (quality) | Evaluate | Based on severity and frequency |
| Internal audit finding (Major) | Yes | Systematic failure or absence of element |
| Internal audit finding (Minor) | Recommended | Isolated lapse or partial implementation |
| Nonconformance (recurring) | Yes | Same NC type occurring 3+ times |
| Nonconformance (isolated) | Evaluate | Based on severity and risk |
| External audit finding | Yes | All Major and Minor findings |
| Trend analysis | Evaluate | Based on trend significance |
| CAPA Severity | Required Team Members |
|---|---|
| Critical | CAPA Officer, Process Owner, QA Manager, Subject Matter Expert, Management Rep |
| Major | CAPA Officer, Process Owner, Subject Matter Expert |
| Minor | CAPA Officer, Process Owner |
Select and apply appropriate RCA methodology based on problem characteristics.
Is the issue safety-critical or involves system reliability?
├── Yes → Use FAULT TREE ANALYSIS
└── No → Is human error the suspected primary cause?
├── Yes → Use HUMAN FACTORS ANALYSIS
└── No → How many potential contributing factors?
├── 1-2 factors (linear causation) → Use 5 WHY ANALYSIS
├── 3-6 factors (complex, systemic) → Use FISHBONE DIAGRAM
└── Unknown/proactive assessment → Use FMEA
Use when: Single-cause issues with linear causation, process deviations with clear failure point.
Template:
PROBLEM: [Clear, specific statement]
WHY 1: Why did [problem] occur?
BECAUSE: [First-level cause]
EVIDENCE: [Supporting data]
WHY 2: Why did [first-level cause] occur?
BECAUSE: [Second-level cause]
EVIDENCE: [Supporting data]
WHY 3: Why did [second-level cause] occur?
BECAUSE: [Third-level cause]
EVIDENCE: [Supporting data]
WHY 4: Why did [third-level cause] occur?
BECAUSE: [Fourth-level cause]
EVIDENCE: [Supporting data]
WHY 5: Why did [fourth-level cause] occur?
BECAUSE: [Root cause]
EVIDENCE: [Supporting data]
Example - Calibration Overdue:
PROBLEM: pH meter (EQ-042) found 2 months overdue for calibration
WHY 1: Why was calibration overdue?
BECAUSE: Equipment was not on calibration schedule
EVIDENCE: Calibration schedule reviewed, EQ-042 not listed
WHY 2: Why was it not on the schedule?
BECAUSE: Schedule not updated when equipment was purchased
EVIDENCE: Purchase date 2023-06-15, schedule dated 2023-01-01
WHY 3: Why was the schedule not updated?
BECAUSE: No process requires schedule update at equipment purchase
EVIDENCE: SOP-EQ-001 reviewed, no such requirement
WHY 4: Why is there no such requirement?
BECAUSE: Procedure written before equipment tracking was centralized
EVIDENCE: SOP last revised 2019, equipment system implemented 2021
WHY 5: Why has procedure not been updated?
BECAUSE: Periodic review did not assess compatibility with new systems
EVIDENCE: No review against new equipment system documented
ROOT CAUSE: Procedure review process does not assess compatibility
with organizational systems implemented after original procedure creation.
| Category | Focus Areas | Typical Causes |
|---|---|---|
| Man (People) | Training, competency, workload | Skill gaps, fatigue, communication |
| Machine (Equipment) | Calibration, maintenance, age | Wear, malfunction, inadequate capacity |
| Method (Process) | Procedures, work instructions | Unclear steps, missing controls |
| Material | Specifications, suppliers, storage | Out-of-spec, degradation, contamination |
| Measurement | Calibration, methods, interpretation | Instrument error, wrong method |
| Mother Nature | Temperature, humidity, cleanliness | Environmental excursions |
See references/rca-methodologies.md for complete method details and templates.
Before proceeding to action planning, validate root cause:
Develop effective actions addressing identified root causes:
| Type | Purpose | Timeline | Example |
|---|---|---|---|
| Containment | Stop immediate impact | 24-72 hours | Quarantine affected product |
| Correction | Fix the specific occurrence | 1-2 weeks | Rework or replace affected items |
| Corrective | Eliminate root cause | 30-90 days | Revise procedure, add controls |
| Preventive | Prevent in other areas | 60-120 days | Extend solution to similar processes |
ACTION PLAN TEMPLATE
CAPA Number: [CAPA-XXXX]
Root Cause: [Identified root cause]
ACTION 1: [Specific action description]
- Type: [ ] Containment [ ] Correction [ ] Corrective [ ] Preventive
- Responsible: [Name, Title]
- Due Date: [YYYY-MM-DD]
- Resources: [Required resources]
- Success Criteria: [Measurable outcome]
- Verification Method: [How success will be verified]
ACTION 2: [Specific action description]
...
IMPLEMENTATION TIMELINE:
Week 1: [Milestone]
Week 2: [Milestone]
Week 4: [Milestone]
Week 8: [Milestone]
APPROVAL:
CAPA Owner: _____________ Date: _______
Process Owner: _____________ Date: _______
QA Manager: _____________ Date: _______
| Indicator | Target | Red Flag |
|---|---|---|
| Action scope | Addresses root cause completely | Treats only symptoms |
| Specificity | Measurable deliverables | Vague commitments |
| Timeline | Aggressive but achievable | No due dates or unrealistic |
| Resources | Identified and allocated | Not specified |
| Sustainability | Permanent solution | Temporary fix |
Verify corrective actions achieved intended results:
| CAPA Severity | Wait Period | Verification Window |
|---|---|---|
| Critical | 30 days | 30-90 days post-implementation |
| Major | 60 days | 60-180 days post-implementation |
| Minor | 90 days | 90-365 days post-implementation |
| Method | Use When | Evidence Required |
|---|---|---|
| Data trend analysis | Quantifiable issues | Pre/post comparison, trend charts |
| Process audit | Procedure compliance issues | Audit checklist, interview notes |
| Record review | Documentation issues | Sample records, compliance rate |
| Testing/inspection | Product quality issues | Test results, pass/fail data |
| Interview/observation | Training issues | Interview notes, observation records |
Did recurrence occur during verification period?
├── Yes → CAPA INEFFECTIVE (re-investigate root cause)
└── No → Were all effectiveness criteria met?
├── Yes → CAPA EFFECTIVE (proceed to closure)
└── No → Extent of gap?
├── Minor gap → Extend verification or accept with justification
└── Significant gap → CAPA INEFFECTIVE (revise actions)
See references/effectiveness-verification-guide.md for detailed procedures.
Monitor CAPA program performance through key indicators.
| Metric | Target | Calculation |
|---|---|---|
| CAPA cycle time | <60 days average | (Close Date - Open Date) / Number of CAPAs |
| Overdue rate | <10% | Overdue CAPAs / Total Open CAPAs |
| First-time effectiveness | >90% | Effective on first verification / Total verified |
| Recurrence rate | <5% | Recurred issues / Total closed CAPAs |
| Investigation quality | 100% root cause validated | Root causes validated / Total CAPAs |
| Age Bucket | Status | Action Required |
|---|---|---|
| 0-30 days | On track | Monitor progress |
| 31-60 days | Monitor | Review for delays |
| 61-90 days | Warning | Escalate to management |
90 days | Critical | Management intervention required
Monthly CAPA status report includes:
references/rca-methodologies.md contains:
references/effectiveness-verification-guide.md contains:
# Generate CAPA status report
python scripts/capa_tracker.py --capas capas.json
# Interactive mode for manual entry
python scripts/capa_tracker.py --interactive
# JSON output for integration
python scripts/capa_tracker.py --capas capas.json --output json
# Generate sample data file
python scripts/capa_tracker.py --sample > sample_capas.json
Calculates and reports:
{
"capas": [
{
"capa_number": "CAPA-2024-001",
"title": "Calibration overdue for pH meter",
"description": "pH meter EQ-042 found 2 months overdue",
"source": "AUDIT",
"severity": "MAJOR",
"status": "VERIFICATION",
"open_date": "2024-06-15",
"target_date": "2024-08-15",
"owner": "J. Smith",
"root_cause": "Procedure review gap",
"corrective_action": "Updated SOP-EQ-001"
}
]
}
| Sub-clause | Requirement | Key Activities |
|---|---|---|
| 8.5.2 Corrective Action | Eliminate cause of nonconformity | NC review, cause determination, action evaluation, implementation, effectiveness review |
| 8.5.3 Preventive Action | Eliminate potential nonconformity | Trend analysis, cause determination, action evaluation, implementation, effectiveness review |
Required CAPA elements:
| Observation | Root Cause Pattern |
|---|---|
| CAPA not initiated for recurring issue | Trend analysis not performed |
| Root cause analysis superficial | Inadequate investigation training |
| Effectiveness not verified | No verification procedure |
| Actions do not address root cause | Symptom treatment vs. cause elimination |
Weekly Installs
163
Repository
GitHub Stars
3.6K
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code138
gemini-cli119
opencode119
codex109
cursor104
github-copilot95
AI代理协作核心原则:提升开发效率的6大Agentic开发原则指南
7,600 周安装
TypeScript性能优化指南:45条最佳实践规则,提升编译速度与类型安全
686 周安装
Remotion 教程:使用 React 框架编程创建视频动画与数据可视化
696 周安装
Knowledge Site Creator - AI自动生成知识学习网站,支持闪卡、测试、进度追踪
695 周安装
Polymarket API 集成指南:Python 交易接口与区块链预测市场开发
701 周安装
HeyGen数字人视频API教程:创建AI虚拟人视频,控制形象、语音、脚本和场景
749 周安装
YouTube视频分析师 - 逆向分析病毒内容公式,提取钩子、留存机制与情感触发点
724 周安装