# Custom Criteria Audit

> Evaluate semantic view against user-defined validation rules and custom criteria.

- Skill: `s-14-h/custom-criteria-audit` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add s-14-h/custom-criteria-audit`
- Raw SKILL.md: https://api.skillmd.com/api/skills/s-14-h/custom-criteria-audit/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: S-14-H (https://skillmd.com/u/s-14-h)
- Updated: 2026-11-24
- Page: https://skillmd.com/skills/s-14-h/custom-criteria-audit

---


# Custom Criteria Audit

## When to Use

User selects "Custom Criteria" from the audit menu.

## Workflow

### Phase 1: Gather Criteria

```
What criteria would you like to check?

Examples:
- "All revenue metrics have 'revenue' in their name"
- "All date columns use DATE or TIMESTAMP types"
- "Customer tables have customer_id foreign key"

Enter criteria (one per line):
```

**⚠️ STOP:** Wait for user input.

### Phase 2: Parse Criteria

Identify for each criterion:
- Check type (naming, data type, relationship, metadata, content)
- Target elements
- Success/failure conditions

### Phase 3: Load Semantic View

Read YAML from workspace using `cortex agent-studio sv-read`.

### Phase 4: Execute Checks

For each criterion:
1. Scan relevant YAML sections
2. Flag violations
3. Document specific issues

### Phase 5: Categorize Results

Per criterion:
- **Violations**: Components that fail
- **Compliant**: Components that pass
- **Not Applicable**: Out of scope

### Phase 6: Present Results

Load `results_formatting.md` and present findings.

### Phase 7: Next Steps

**⚠️ STOP** — Prompt user:
- **A**: Add more criteria
- **B**: Fix issues → Load `../../edit/SKILL.md`
- **C**: Run another audit type
- **D**: Exit

## Stopping Points

- ✋ Phase 1: Gathering criteria
- ✋ Phase 7: After audit completion

## Output

- Per-criterion compliance rates
- Specific violations with locations
- Actionable recommendations

