# Schema Infer

> Schema Infer is an Agent Skill for research published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Auto-detect metadata conventions for a folder. Triggers on "infer schema", "what conventions", "learn schema", "folder conventions".

- Skill name: `schema-infer`
- Category: [Research](https://www.openparable.com/skill/research/1)
- Source: https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/data/schema-infer/SKILL.md
- Repository: majiayu000/claude-skill-registry (498 GitHub stars when collected)

## SKILL.md

# Schema Inference

Auto-detect metadata conventions from your existing notes. Zero configuration - the system learns from what you've already written.

## When to Use

Invoke when you want to:
- Understand what frontmatter fields are standard in a folder
- Discover implicit schemas from existing notes
- Find required vs optional fields
- See naming patterns for files

## Arguments

| Argument | Required | Description |
|----------|----------|-------------|
| folder | No | Folder to analyze (e.g., "meetings/"). Omit for entire vault. |

## Process

### 1. Parse User Input

Recognize schema inference requests:
- "what conventions does my meetings folder use?"
- "infer schema for projects/"
- "what fields should be in daily notes?"

### 2. Call MCP Tool

```
mcp__flywheel__infer_folder_conventions({
  folder: "meetings/",
  min_confidence: 0.5
})
```

### 3. Format Results

```
## Inferred Schema: meetings/

Based on 47 notes in this folder:

### Required Fields (>90% presence)
| Field | Type | Common Values |
|-------|------|---------------|
| type | string | "meeting" (100%) |
| date | date | - |
| attendees | array[wikilink] | - |

### Optional Fields (50-90% presence)
| Field | Type | Common Values |
|-------|------|---------------|
| status | string | scheduled (40%), completed (50%), cancelled (10%) |
| tags | array | meeting, standup, review |

### Suggested Computed Fields
- word_count (not currently tracked)
- link_count (not currently tracked)

### Naming Convention
Files follow pattern: `YYYY-MM-DD *.md`

### Coverage
- 94% of notes have frontmatter
- 3 notes may be incomplete (see /schema-gaps)
```

## Use Cases

- **New folder setup**: "What schema should my new project folder follow?"
- **Documentation**: "Document the metadata conventions for this vault"
- **Consistency check**: "Are my meeting notes following a pattern?"
- **Onboarding**: "What fields does this team use?"

## Integration

Works well with other skills:
- **schema-gaps**: Find notes missing expected fields
- **schema-apply**: Apply inferred conventions to incomplete notes
- **vault-schema**: See vault-wide field overview

---

**Version:** 1.0.0

---

Source: https://www.openparable.com/skill/research/schema-infer (OpenParable). Cite the canonical URL above.
