# Workflow Compliance Auditor

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

- Skill: `majiayu000/workflow-compliance-auditor` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/workflow-compliance-auditor`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/workflow-compliance-auditor/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/workflow-compliance-auditor

---


# 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.

