Skip to content
Back to skills

Manufacturing Compliance

ASecurity

Audit manufacturing software for FDA 21 CFR Part 11 (electronic records, e-signatures, audit trails), ISO 9001/13485/14001/45001 quality management (document control, CAPA, nonconformance), GMP batch records and cleaning validation, lot/serial traceability (forward, backward, process. Use when reviewing MES, QMS, or batch record software, or the user mentions 21 CFR Part 11, ISO 13485, CAPA, GMP, or lot traceability.

  • 25 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added May 29, 2026
ai-agentsgorailstestinggitdatabaseperformancedocumentation

Works with

  • cli

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add tinh2/skills-hub-registry --skill manufacturing-compliance --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Manufacturing Compliance?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Manufacturing Compliance
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tinh2-manufacturing-compliance/badge)](https://www.skillsdirectory.com/skills/tinh2-manufacturing-compliance)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: manufacturing-compliance
description: "Audit manufacturing software for FDA 21 CFR Part 11 (electronic records, e-signatures, audit trails), ISO 9001/13485/14001/45001 quality management (document control, CAPA, nonconformance), GMP batch records and cleaning validation, lot/serial traceability (forward, backward, process. Use when reviewing MES, QMS, or batch record software, or the user mentions 21 CFR Part 11, ISO 13485, CAPA, GMP, or lot traceability."
version: "2.0.3"
category: review
platforms:
  - CLAUDE_CODE
---

Audit manufacturing codebases for regulatory compliance: ISO standards, FDA regulations, GMP, OSHA safety, hazardous materials, traceability, and audit trail completeness. Investigate the whole codebase without asking questions.

INPUT: $ARGUMENTS (optional): focus regulations or areas (e.g. "FDA 21 CFR Part 11", "traceability"); default is all applicable areas.

## PHASE 1: STACK DETECTION & REGULATORY SCOPE

1. Identify the tech stack from package.json, requirements.txt, pyproject.toml, go.mod, pom.xml or equivalent: languages, frameworks, databases, authentication, document management integrations, ERP/MES connections, and deployment environment (on-premise, cloud, hybrid, validated infrastructure).

2. Determine applicable regulations from codebase context (also check code comments, configuration, documentation for regulatory references): ISO 9001 (QMS, general manufacturing); ISO 13485 (medical device QMS); ISO 14001 (environmental); ISO 45001 (occupational health and safety); FDA 21 CFR Part 11 (electronic records, FDA-regulated industries); FDA 21 CFR Part 820 (Quality System Regulation, US medical devices); EU MDR/IVDR (EU medical devices); GMP (pharma, food, cosmetics); OSHA (workplace safety); REACH/RoHS (chemical/material); ITAR/EAR (export-controlled); AS9100 (aerospace); IATF 16949 (automotive).

3. Build the compliance scope map:

   Columns: Regulation, Applicable, Evidence, Key Requirements, System Coverage.

## PHASE 2: ELECTRONIC RECORDS & SIGNATURES (21 CFR Part 11)

Applies to FDA-regulated industries; if not applicable, skip and note it.

ELECTRONIC RECORDS:
- Quality records are stored electronically with: Unique record identifier; Creation timestamp (system-generated, not user-editable); Creator identity (authenticated user, not generic account); Record content integrity (checksums, digital signatures, or tamper detection).
- record immutability: Records cannot be deleted (soft-delete with audit trail at minimum); Modifications create new versions, original is preserved; Version history shows who changed what and when.
- Verify closed-system controls: System access limited to authorized individuals; Access control validates identity before allowing record creation/modification; System checks enforce allowed operations per user role.
- Flag any quality record that can be modified without creating an audit entry.

ELECTRONIC SIGNATURES:
- electronic signature implementation on: Batch release / lot disposition; Quality record approval; Deviation and CAPA closure; Document approval and revision; Specification changes.
- Verify signature components: Printed name of signer; Date and time of signing; Meaning of signature (approval, review, verification, responsibility).
- Signature is bound to the record (cannot be transferred to different content).
- Verify re-authentication for each signature (not persistent session).
- Flag signature implementations that are just a "click to approve" without re-authentication.

AUDIT TRAIL:
- Audit trail captures: Record creation (who, when, what); Record modification (who, when, what changed, old value, new value); Record deletion or deactivation (who, when, reason); Login/logout events; Failed login attempts; Permission changes; System configuration changes.
- Check that audit trail is: Computer-generated (not user-editable); Tamper-evident (cannot be modified or deleted by any user including admin); Retained for the required period (varies by regulation); Available for regulatory review.
- Verify audit trail is independent of application data (separate storage or immutable log).
- Flag systems where admin users can modify or delete audit trail entries.

SYSTEM VALIDATION:
- evidence of computer system validation (CSV): Validation protocol references in code or documentation; IQ/OQ/PQ (Installation/Operational/Performance Qualification) artifacts; User requirements specification (URS) traceability; Change control procedures for system modifications.
- validated state maintenance: Change control process before deploying updates; Regression testing after changes; Periodic review schedule.
- Flag automated deployments without change control gates for regulated systems.

## PHASE 3: QUALITY MANAGEMENT SYSTEM (ISO 9001 / 13485)

DOCUMENT CONTROL:
- document control implementation: Document versioning (major.minor, with effective date); Review and approval workflow before document becomes effective; Distribution control (users see only the current approved version); Obsolete document management (archived, not accessible for active use); Document change history (revision log with reason for change).
- Verify controlled document types include: SOPs (Standard Operating Procedures); Work instructions; Specifications and drawings; Forms and templates; Training records.
- Flag document management without version control or approval workflow.

NONCONFORMANCE MANAGEMENT:
- nonconformance recording and tracking: Nonconformance description and classification; Containment actions (immediate response); Root cause investigation linkage; Corrective action assignment and tracking; Effectiveness verification; Closure with evidence.
- Verify disposition workflow (use-as-is, rework, scrap, return to supplier).
- nonconformance trending and analysis.
- Flag nonconformance systems without mandatory root cause investigation.

CAPA (CORRECTIVE AND PREVENTIVE ACTION):
- CAPA workflow implementation: Problem identification and documentation; Impact assessment (scope, severity, risk); Root cause analysis (required, not optional); Corrective action plan with responsible party and due date; Preventive action plan (prevent recurrence in similar areas); Implementation tracking; Effectiveness verification (with defined criteria and timeline); Closure with management review.
- Verify CAPA escalation for overdue actions.
- CAPA metrics (open/closed, aging, effectiveness rate).
- Flag CAPA systems without effectiveness verification.

MANAGEMENT REVIEW:
- management review data aggregation: Quality metrics dashboards; CAPA status summaries; Customer complaint trends; Audit findings status; Process performance data; Risk assessment updates.
- Verify data supports required management review inputs per the applicable standard.

TRAINING MANAGEMENT:
- training record management: Training requirements linked to job roles; Training completion tracking; Training effectiveness assessment; Retraining triggers (procedure changes, nonconformance, periodic).
- Verify operators cannot perform regulated tasks without completed training records.
- Flag systems that allow task execution without training verification.

## PHASE 4: TRACEABILITY (LOT/SERIAL TRACKING)

FORWARD TRACEABILITY:
- raw material to finished product tracing: Raw material lot/batch numbers recorded at receipt; Material lot consumed at each production step recorded; Component serial numbers tracked through assembly; Finished product lot/serial linked to all input materials.
- Verify traceability supports recall scope determination: Given a raw material lot, identify all affected finished products; Given a finished product, identify all raw material lots used.
- Flag production systems without material lot tracking.

BACKWARD TRACEABILITY:
- finished product to source tracing: Customer shipment linked to finished product lot/serial; Finished product lot/serial linked to production records; Production records linked to equipment, operators, process parameters; Process parameters linked to raw material lots.
- Verify complete chain from customer to source is queryable.

PROCESS TRACEABILITY:
- as-built/as-produced records: Equipment used at each step; Operator identity at each step; Process parameters recorded (temperature, pressure, time, speed); Inspection results at each quality checkpoint; Environmental conditions (clean room class, humidity, temperature); Timestamps for each operation (start, end, duration).
- Verify process records are linked to product lot/serial.
- Flag production recording without equipment or operator identification.

RECALL MANAGEMENT:
- recall/withdrawal capability: Affected product identification (lot/serial range); Customer/distribution tracking (where did affected product go?); Recall notification workflow; Quarantine and segregation tracking; Recall effectiveness tracking (% recovered).
- Flag traceability systems that cannot support a targeted recall (must recall everything).

## PHASE 5: GMP (GOOD MANUFACTURING PRACTICE)

Applies to pharma, food, cosmetics, and medical devices; if not applicable, skip and note it.

BATCH RECORD MANAGEMENT:
- electronic batch record (EBR) implementation: Master batch record (MBR) template management; Batch record instantiation from MBR; Step-by-step execution recording; In-process checks and verifications; Deviation recording at the step level; Batch record review and approval workflow; Batch release/disposition.
- Verify batch records capture all required information: Material weights/measures with tolerances; Equipment identification and status; Environmental conditions; Operator identity and verification (dual signature where required); Critical process parameters; In-process test results; Yield calculations (theoretical vs actual).

CLEANING VALIDATION:
- cleaning status tracking: Equipment cleaning records (who, when, method, verified by); Clean hold time limits (maximum time between cleaning and next use); Dirty hold time limits (maximum time before cleaning required); Campaign limits (maximum batches between cleanings).
- Verify cleaning status is checked before equipment use.
- Flag systems that allow production on equipment without verified clean status.

ENVIRONMENTAL MONITORING:
- environmental monitoring data collection: Clean room particle counts; Temperature and humidity monitoring; Differential pressure monitoring; Microbial monitoring (if applicable).
- Verify excursion detection and alerting.
- environmental data linkage to batch records.

## PHASE 6: SAFETY AND HAZMAT COMPLIANCE

OSHA COMPLIANCE:
- safety-related data management: Safety incident reporting and tracking; Near-miss reporting system; Safety inspection checklists and scheduling; Lockout/tagout (LOTO) procedure management; Personal protective equipment (PPE) tracking; Safety training record management.
- Verify incident investigation workflow (root cause, corrective action).
- OSHA recordkeeping (300 log, 300A summary, 301 forms or equivalent).
- Flag safety systems without incident trending and analysis.

HAZARDOUS MATERIALS:
- hazmat management: Safety Data Sheet (SDS) management and accessibility; Chemical inventory tracking (location, quantity, expiration); Hazmat storage compatibility validation (incompatible materials separation); Secondary containment monitoring; Exposure monitoring data management; Hazmat waste tracking (generation, storage, disposal -- cradle to grave).
- Verify regulatory reporting support (Tier II, TRI, SARA, or equivalent).
- chemical approval workflow (new chemical introduction review).
- Flag chemical inventory without storage compatibility checking.

MACHINE SAFETY:
- machine safety management: Safety interlock monitoring and bypass tracking; Safety device inspection scheduling; Risk assessment documentation (per machinery); Safety-related access control (authorized operators only).
- Verify safety interlock bypasses are logged, time-limited, and require authorization.
- Flag any code that disables safety interlocks without logging.

## PHASE 7: AUDIT MANAGEMENT

Read `references/audit-management.md` (fallback: https://raw.githubusercontent.com/tinh2/skills-hub-registry/main/review/manufacturing-compliance/references/audit-management.md) for the full checklist. Cover: internal audit scheduling by risk, auditor qualification and independence, scope/checklists, planned vs completed; finding classification (major/minor nonconformance, observation, opportunity) with objective evidence, corrective action tracking, effectiveness verification, closure, linkage to CAPA, and external (certification body, regulatory, customer) findings; audit readiness (retrieve documents, records, training, CAPA status, nonconformance trends, and demonstrate product traceability). Flag systems that cannot produce required records within a reasonable time frame.

## PHASE 8: DATA INTEGRITY (ALCOA+ PRINCIPLES)

Verify data integrity across all regulated data per ALCOA+ principles:

Attributable (who and when for every record); Legible (readable, permanent, nothing overwritten or obscured); Contemporaneous (recorded at the time of the activity); Original (original preserved, or a certified true copy); Accurate (correct, reflects what occurred); Complete (all data including repeats and reprocessing); Consistent (consistent formats, not contradictory); Enduring (durable media, retrievable for the retention period); Available (accessible for review throughout retention).

Check each principle across production, quality/inspection, equipment calibration, training, environmental monitoring, and maintenance records.

Flag any data type where ALCOA+ principles are not enforced.


## SELF-HEALING VALIDATION (max 2 iterations)

After the review, verify: every output section is present and non-empty; every finding cites a file or code location; recommendations are actionable; severities are justified by evidence. IF VALIDATION FAILS, re-analyze the deficient areas and repeat (up to 2 iterations).

## OUTPUT

Write the report using `references/report-template.md` (fallback: https://raw.githubusercontent.com/tinh2/skills-hub-registry/main/review/manufacturing-compliance/references/report-template.md). Sections: header (stack, applicable regulations, areas reviewed, overall score /100); risk level (Critical 0-40: major violations, immediate remediation; High 41-60: significant gaps, risk at next audit; Medium 61-80: minor gaps, planned remediation; Low 81-100: minor observations only); regulatory coverage matrix; findings as CMP-NNN with severity, regulation and clause, `file:line`, requirement, current state, risk, remediation; audit trail, traceability (forward/backward/process) and ALCOA+ assessment tables; recommendations ranked by regulatory risk with regulation ref, risk and effort S/M/L.

DO NOT:
- Apply FDA 21 CFR Part 11 requirements to non-FDA-regulated systems without justification.
- Require full GMP compliance for general manufacturing that is not pharma/food/cosmetics.
- Flag all manual processes as non-compliant -- many regulations allow paper-based systems.
- Confuse ISO 9001 (general quality) with ISO 13485 (medical device) requirements.
- Assume every system needs electronic signatures -- evaluate based on the applicable regulation.
- Recommend GAMP 5 Category 5 validation for simple COTS software configurations.
- Ignore data integrity (ALCOA+) -- it is the foundation of all regulatory compliance.
- Treat compliance as binary -- partial compliance with a remediation plan is a valid state.

NEXT STEPS: `/predictive-maintenance` (maintenance record traceability), `/defect-detection` (QC data integrity, SPC records), `/production-optimizer` (scheduling vs regulatory constraints), `/energy-efficiency` (environmental reporting), `/iterate` (remediate critical gaps).

## SELF-EVOLUTION TELEMETRY

If a project memory directory exists for this project under `~/.claude/projects/`, append an entry to its `skill-telemetry.md` for /evolve; skip silently otherwise.

Entry format:
```
### /manufacturing-compliance — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.