---
name: Cross Validation
slug: cross-validation
category: Quality
description: Cross Validation checks agent outputs for consistency after tasks are done. It compares files for conflicting facts and creates correction tasks based on the authoritative source order.
github: "https://github.com/chekusu/wanman/tree/main/packages/core/skills/cross-validation"
language: TypeScript
stars: 679
forks: 106
install: "npx degit https://github.com/chekusu/wanman/tree/main/packages/core/skills/cross-validation ~/.claude/skills/cross-validation"
installs_to: ~/.claude/skills/cross-validation
source_path: packages/core/skills/cross-validation/SKILL.md
collection_size: 6
category_size: 1354
collection_url: "https://dirskills.com/collections/chekusu/wanman"
added: 2026-08-24T05:16:34.230Z
last_synced: 2026-08-24T05:16:34.230Z
canonical_url: "https://dirskills.com/skills/cross-validation"
---

# Cross Validation

Cross Validation checks agent outputs for consistency after tasks are done. It compares files for conflicting facts and creates correction tasks based on the authoritative source order.

**Install:**

```bash
npx degit https://github.com/chekusu/wanman/tree/main/packages/core/skills/cross-validation ~/.claude/skills/cross-validation
```

## README

# Output Consistency Validation

## When to Execute

After `wanman task list` shows all tasks with status=done, perform output consistency validation **before inspecting artifact data**.

## Validation Process

### Step 1: Collect All Output Files

```bash
# List all agent output files
find /workspace/agents -name "*.md" -o -name "*.html" | grep -v CLAUDE.md | sort
```

### Step 2: Extract Key Facts

Extract the following key information from each file:

| Fact Type | Example |
|-----------|---------|
| Brand name | "COFFEE TO" |
| Tagline | "Coffee to, begin." |
| Address | 2-XX-XX Kamimeguro, Meguro-ku, Tokyo |
| Business hours | 8:00 - 20:00 |
| Opening date | 2026.4.1 |
| Menu prices | Drip Coffee ¥500 |
| Instagram handle | @coffee.to.nakameguro |
| Color HEX values | #2D1B0E, #F5E6D3 |

### Step 3: Compare for Consistency

Cross-check file by file:

```
Brand guide (marketing) brand name  ←→  Website (dev) brand name
Brand guide tagline                 ←→  Poster (marketing) tagline
Brand guide colors                  ←→  Website CSS colors
Financial report pricing            ←→  Website menu prices
Poster opening date                 ←→  Social media content date
Poster address                      ←→  Website address
```

### Step 4: Handle Inconsistencies

When inconsistencies are found, **defer to the earliest completed authoritative document** (usually the brand guide) and create a correction task:

```bash
# Example: website brand name does not match brand guide
wanman task create "Fix website brand name: unify the brand name on the website from 'KAWA' to 'COFFEE TO' as specified in the brand guide. Update all brand names, taglines, and Instagram handles in index.html. Reference: /workspace/agents/output/marketing/brand-design.md" --assign dev --priority 1
```

## Authoritative Document Priority

When information conflicts, follow this order of precedence:

1. **Brand guide** — Brand name, tagline, visual style
2. **Financial report** — Prices, cost data
3. **Market research** — Competitor data, market data
4. **Website/posters** — Must align with the above (not a source of truth)

## Common Inconsistency Patterns

| Pattern | Cause | Fix |
|---------|-------|-----|
| Website brand name differs from brand guide | Dev started website before brand design was complete | Create correction task for dev |
| Poster prices differ from financial pricing | Marketing and finance worked independently | Defer to finance, fix the poster |
| Social media dates differ from poster dates | Same agent produced outputs at different times | Unify to the latest confirmed date |

## Preventive Measures

When creating tasks, use `--after` to declare dependencies:

```bash
# Brand design must be completed first
brand_id=$(wanman task create "Brand design" --assign marketing --priority 1 | grep -o '[a-f0-9-]\{36\}')

# Website development depends on brand design
wanman task create "Website development: based on the brand guide..." --assign dev --priority 5 --after $brand_id

# Poster design also depends on brand design
wanman task create "Opening poster: based on the brand guide..." --assign marketing --priority 4 --after $brand_id
```
