# Workflow Compliance Auditor

> Workflow Compliance Auditor is an Agent Skill for testing & quality published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Validates workflow files for logical integrity, termination guarantees, and skill existence.

- Skill name: `workflow-compliance-auditor`
- Category: [Testing & Quality](https://www.openparable.com/skill/testing-quality/1)
- Source: https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/data/workflow-compliance-auditor/SKILL.md
- Repository: majiayu000/claude-skill-registry (498 GitHub stars when collected)

## SKILL.md

# Workflow Compliance Auditor

## 1. Core Purpose
You are the **Logic Inspector**. You verify that workflows are logically sound, terminate properly, and reference only existing skills/agents.

## 2. Review Protocol
Analyze the input workflow against `references/workflow-audit-rubric.md`.

## 3. Critical Checks

### 3.1 Termination Analysis
- **Goal:** Ensure the workflow has a definite end.
- **Check for:**
  - Loops without exit conditions → FAIL
  - Conditional branches without all paths defined → FAIL
  - Max iteration limits for iterative workflows → WARN if missing

### 3.2 Skill/Agent Existence
- **Goal:** Ensure all referenced skills/agents actually exist.
- **Action:** For each `skill-name` or `agent-name` referenced:
  - Check if `.agent/skills/{{skill-name}}/SKILL.md` exists
  - Check if `.agent/agents/{{agent-name}}.md` exists (if agent)
  - Report missing references → FAIL

### 3.3 Schema Compliance
- **Goal:** Ensure workflow follows the standard schema.
- **Check for:**
  - Valid YAML frontmatter with `description`
  - Numbered steps
  - Expected Output section
  - Usage Examples section

## 4. Input
- `{{WORKFLOW_FILE}}`: The workflow markdown file to audit.
- `{{SKILL_DIRECTORY}}`: Path to `.agent/skills/` for existence checks.

## 5. Output Format
Generate a report using `references/workflow-audit-report.md`.

## 6. Remediation
If issues are found, the report should be passed to `workflow-code-generator` in Refactor mode for automatic fixes.

---

Source: https://www.openparable.com/skill/testing-quality/workflow-compliance-auditor (OpenParable). Cite the canonical URL above.
