重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
capa-officer by borghei/claude-skills
npx skills add https://github.com/borghei/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 计 (EQ-042) 被发现校准超期 2 个月
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 | 未执行趋势分析 |
| 根本原因分析肤浅 | 调查培训不足 |
| 未验证有效性 | 无验证程序 |
| 措施未解决根本原因 | 处理症状而非消除原因 |
每周安装数
37
代码库
GitHub 星标数
29
首次出现
2026年2月23日
安全审计
安装于
claude-code31
cursor23
gemini-cli23
cline23
github-copilot23
codex23
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
37
Repository
GitHub Stars
29
First Seen
Feb 23, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code31
cursor23
gemini-cli23
cline23
github-copilot23
codex23
AI代理协作核心原则:提升开发效率的6大Agentic开发原则指南
7,600 周安装