Skip to content
Agentmart
Submit a tool

ValidateVault

Validate vault files against .mdschema files — structural checks on frontmatter, headings, and required sections.

Skill by N4M3Z

IndexedEUPL-1.2★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/n4m3z-validatevault

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Validate vault files against .mdschema files — structural checks on frontmatter, headings, and required sections. USE WHEN validate vault, check vault, vault lint, schema check, validate journals, validate memory.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/validatevault

What's inside

Skill name
ValidateVault
Description
Validate vault files against .mdschema files — structural checks on frontmatter, headings, and required sections. USE WHEN validate vault, check vault, vault lint, schema check, validate journals, validate memory.
License
EUPL-1.2
Instructions
104 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: only lowercase letters, digits and single hyphens allowed

Files (2)

  • SKILL.md
  • SKILL.yaml

SKILL.md (first lines)

# ValidateVault

Validate vault markdown files against `.mdschema` schema files using the `mdschema` CLI. Reports structural violations: missing frontmatter fields, wrong field types, unexpected headings, missing required sections.

## Workflow Routing

| Workflow | Trigger | Section |
|----------|---------|---------|
| **Check** | "validate vault", "check journals", "validate memory" | [Check](#check) |
| **Report** | "how bad is it", "vault health", "show violations" | [Report](#report) |

## Tool Reference

Binary: `mdschema` (Go, installed via `brew install jackchuka/tap/mdschema`).

```bash
mdschema check "glob/pattern/**/*.md" --schema path/to/.mdschema
```

Output: per-file list of `✗` violations with line numbers, categories (`[frontmatter]`, `[structure]`), and descriptions.

## Schema Locations

Schemas ship with their convention-owning module, not in the vault. The vault contains instances; modules contain the rules.

| Content | Schema Location | Vault Glob |
|---------|----------------|------------|
| Daily journals | `$VAULT/Templates/Journals/.mdschema` | `$VAULT/Resources/Journals/Daily/**/*.md` |
| Weekly journals | `$VAULT/Templates/Journals/.mdschema` | `$VAULT/Resources/Journals/Weekly/**/*.md` |
| Memory Insights | `$MODULES/forge-reflect/skills/MemoryInsights/Templates/.mdschema` | `$VAULT/Orchestration/Memory/Insights/*.md` |
| Memory Imperatives | `$MODULES/forge-reflect/skills/MemoryInsights/Templates/.mdschema` | `$VAULT/Orchestration/Memory/Imperatives/*.md` |
| Memory Ideas | `$MODULES/forge-reflect/skills/MemoryInsights/Templates/.mdschema` | `$VAULT/Orchestration/Memory/Ideas/*.md` |

Where `$VAULT` resolves from `user.root` in `config.yaml` (currently `Vaults/Personal`) relative to `$HOME/Data`, and `$MODULES` is `Modules/`.

---

## Check

1. Resolve the vault root from `config.yaml`:
   ```bash
   FORGE_ROOT="$HOME/Data"
   VAULT="$FORGE_ROOT/$(grep 'root:' "$FORGE_ROOT/config.yaml" | awk '{print $2}')"
   MODULES="$FORGE_ROOT/Modules"
   ```

2. Verify `mdschema` is installed:
   ```bash
   command -v mdschema >/dev/null || { echo "mdschema not installed — brew install jackchuka/tap/mdschema"; exit 1; }
   ```

3. Determine scope from user request. Default to journals if unspecified.

4. Run validation against the relevant schema:
   ```bash
   # Daily journals
   mdschema check "$VAULT/Resources/Journals/Daily/**/*.md" \
       --schema "$VAULT/Templates/Journals/.mdschema"

   # Weekly journals
   mdschema check "$VAULT/Resources/Journals/Weekly/**/*.md" \
       --schema "$VAULT/Templates/Journals/.mdschema"

   # Memory (when requested)
   mdschema check "$VAULT/Orchestration/Memory/Insights/*.md" \
       --schema "$MODULES/forge-reflect/skills/MemoryInsights/Templates/.mdschema"
   ```

5. Present results to the user grouped by violation type.

---

## Report

Summarize validation results as a structured report:

1. Run the Check workflow, capturing full output.
2. Count violations by category:
   - **Frontmatter**: missing fields, wrong types
   - **Structure**: missing required sections, unexpected headings, heading hierarchy
3. Present summary table:

   ```
   | Directory     | Files | Passing | Failing | Top Violation           |
   |---------------|-------|---------|---------|-------------------------|
   | Daily 2026/01 | 31    | 12      | 19      | missing "## Plan"       |
   | Daily 2026/02 | 27    | 25      | 2       | missing 'tlp' field     |
   | Weekly 2026   | 8     | 8       | 0       | —                       |
   ```

4. List the top 5 most common violations with counts.
5. Suggest remediation approach (batch fix vs manual).

---

## Constraints

- Read-only — this skill validates, it does not fix. Remediation is a separate step.
- Skip directories that don't exist (graceful degradation).
- Skip validation entirely if `mdschema` is not installed — report the missing dependency.
- The journal `.mdschema` currently lives in the vault (`Templates/Journals/`). Future: migrate to forge-journals as source of truth.
- `mdschema` validates structure only — it cannot check semantic correctness (enum values, tag formats, date validity).

From N4M3Z/forge-obsidian, EUPL-1.2.

More from N4M3Z/forge-obsidian

Signals

Stars
2
Forks
0
Open issues
1
Last commit (this folder)
Jun 17, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
EUPL-1.2
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from N4M3Z

Cite this page

ValidateVault skill. Agent Mart. https://agentmart.dev/skills/n4m3z-validatevault (last updated 2026-10-24)