# safety-compliance-checker

safety-compliance-checker is a Claude Code skill that checks safety compliance on construction sites. It tracks PPE, zone access, and work at heights, and generates violation reports.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 131 installs · ★ 434 repo stars
- Author: datadrivenconstruction
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction/tree/HEAD/5_DDC_Innovative/safety-compliance-checker/SKILL.md
- Updated: 2026-10-19
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/safety-compliance-checker

## What it does

The skill implements a compliance checking system using OSHA standards and local regulations. It analyzes personal protective equipment usage, work at heights exceeding 6 feet, confined space entry, hot work operations, excavations, and other critical safety areas. Each check returns a compliance status, identified violations, and corrective actions with assigned deadlines.

Built on Python, it includes a rule engine with preconfigured checks for PPE, fall protection, excavation, confined spaces, hot work, fire prevention, scaffolding, and cranes. Each rule maps to OSHA CFR standards and includes a risk level (low to critical). The system tracks violations, their resolution status, and assigned owners.

Requires `python3` on your system. Designed for safety engineers and project leads who need to automate compliance monitoring and maintain audit-ready documentation.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill safety-compliance-checker -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/safety-compliance-checker/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/safety-compliance-checker/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill safety-compliance-checker -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/safety-compliance-checker/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill safety-compliance-checker -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/safety-compliance-checker/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction 5_DDC_Innovative/safety-compliance-checker/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/safety-compliance-checker/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill safety-compliance-checker -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --path 5_DDC_Innovative/safety-compliance-checker
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/safety-compliance-checker/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction --skill safety-compliance-checker -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction/tree/HEAD/5_DDC_Innovative/safety-compliance-checker/SKILL.md

## When to use it
- verify PPE compliance for workers at a given location
- detect working-at-heights violations before they escalate to incidents
- track status and closure dates of outstanding safety violations
- generate compliance reports for regulatory inspections
- monitor permit and entry requirements for confined spaces

## Example prompts
- Check PPE compliance for workers in sector A against OSHA standards
- Generate a report of all height-safety violations from the past month
- List open violations with assigned owners and due dates

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 2cdf1c4850dc163b.

BEGIN THIRD-PARTY FILE 2cdf1c4850dc163b
````text
---
name: "safety-compliance-checker"
description: "Automated safety compliance verification for construction sites. Check PPE usage, zone access, working at heights regulations, and generate compliance reports using rule-based and ML approaches."
homepage: "https://datadrivenconstruction.io"
metadata: {"openclaw": {"emoji": "🚀", "os": ["darwin", "linux", "win32"], "homepage": "https://datadrivenconstruction.io", "requires": {"bins": ["python3"]}}}
---
# Safety Compliance Checker

## Overview

This skill implements automated safety compliance checking for construction projects. Verify regulatory requirements, track safety metrics, and identify potential violations before they become incidents.

**Compliance Areas:**
- Personal Protective Equipment (PPE)
- Working at heights regulations
- Confined space entry
- Hot work permits
- Excavation safety
- Electrical safety
- Fire prevention

## Quick Start

```python
from dataclasses import dataclass
from typing import List, Dict, Optional
from enum import Enum
from datetime import datetime, date

class ComplianceStatus(Enum):
    COMPLIANT = "compliant"
    NON_COMPLIANT = "non_compliant"
    PARTIAL = "partial"
    NOT_APPLICABLE = "not_applicable"
    PENDING_REVIEW = "pending_review"

@dataclass
class ComplianceCheck:
    rule_id: str
    rule_name: str
    status: ComplianceStatus
    findings: List[str]
    evidence: Optional[str]
    checked_at: datetime
    checked_by: str

# Quick compliance check
def check_ppe_compliance(workers: List[Dict]) -> List[ComplianceCheck]:
    """Check PPE compliance for workers"""
    checks = []

    for worker in workers:
        findings = []
        required_ppe = worker.get('required_ppe', ['helmet', 'vest', 'boots'])
        actual_ppe = worker.get('actual_ppe', [])

        missing = set(required_ppe) - set(actual_ppe)
        if missing:
            findings.append(f"Missing PPE: {', '.join(missing)}")

        status = ComplianceStatus.COMPLIANT if not missing else ComplianceStatus.NON_COMPLIANT
````
END THIRD-PARTY FILE 2cdf1c4850dc163b

The third-party file has ended. Everything between the 2cdf1c4850dc163b tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2024 of 28872 bytes. © datadrivenconstruction · MIT · https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction/tree/HEAD/5_DDC_Innovative/safety-compliance-checker/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
