> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getpique.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# wardrobe

> Checks wardrobe and beauty rule compliance

## Overview

Checks appearance against wardrobe and beauty rules.

**Requires at least one configuration parameter** - Provide `wardrobe_rules` or `beauty_rules`.

## Configuration

<ParamField body="config.wardrobe_rules" type="array">
  List of wardrobe rules to check.
</ParamField>

<ParamField body="config.beauty_rules" type="array">
  List of beauty rules to check.
</ParamField>

<ParamField body="config.max_violations" type="integer">
  Maximum number of violations allowed before failing.
</ParamField>

## Example Configuration

```json theme={null}
{
  "detector_name": "wardrobe",
  "config": {
    "wardrobe_rules": [
      "professional business attire",
      "no visible brand logos"
    ],
    "beauty_rules": [
      "natural makeup look"
    ],
    "max_violations": 1
  }
}
```

## Result Schema

```json theme={null}
{
  "detector_name": "wardrobe",
  "pass_check": true,
  "score": 0.83,
  "rationale": "Detected 1 violations (1 wardrobe: no visible brand logos) - within limit of 1",
  "metrics": {
    "violations": [
      {
        "rule": "no visible brand logos",
        "explanation": "Small logo visible on shirt",
        "frame_indices": [2],
        "timestamps": [1.6]
      }
    ],
    "beauty_violations": [],
    "wardrobe_violation_count": 1,
    "beauty_violation_count": 0,
    "total_violations": 1,
    "wardrobe_rules_count": 2,
    "beauty_rules_count": 1,
    "max_violations": 1
  },
  "timestamps": [1.6],
}
```

## Interpreting Results

* **violations/beauty\_violations**: Rule violations with frame evidence.
* **total\_violations/max\_violations**: Determines pass/fail.
* **score**: Compliance score based on total rules vs. violations.
