AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Frontmatter Validation

skill-everyone-needs-a-copilot-claude-copilot-frontmatter-validation · by Everyone-Needs-A-Copilot

>-

No reviews yet
0 installs
38 views
0.0% view→install

Install

$ agentstack add skill-everyone-needs-a-copilot-claude-copilot-frontmatter-validation

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-everyone-needs-a-copilot-claude-copilot-frontmatter-validation)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Frontmatter Validation? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Frontmatter Validation

Validate and fix YAML frontmatter metadata in markdown documentation files.

Purpose

Frontmatter enables efficient AI navigation of documentation. This skill ensures all files have correct, complete metadata for their document type.

Frontmatter Schemas by Document Type

Tier 1: Skills (SKILL.md)

---
name: forces-analysis                # required, kebab-case
description: >-                      # required, trigger-rich — used by `cc skill search` for keyword matching
  One-line description covering use cases and when to invoke this skill.
version: 1.2                         # required, semver
allowed-tools: [Read, Write, Edit]   # required, array
tags: [forces, organization]         # required, array
---

Tier 2: Product Documentation

---
product: Insights Copilot            # required
status: active                       # required: active, beta, deprecated
last_updated: 2025-01-15             # required, ISO date
owner: Platform Team                 # required
token_estimate: 650                  # required, integer
doc_type: architecture               # required: overview, architecture, api, integration, security
source_of_truth: ../repo/docs/...    # optional, path to canonical doc
dependencies: [product-a, product-b] # optional, array
summary: Brief description           # optional, 1-2 sentences
key_entities: [Force, Pattern]       # optional, domain entities
integration_endpoints: [POST /api/x] # optional, for API docs
---

Tier 3: Operational Documentation

---
title: Documentation Strategy Guide  # required
doc_type: guide                       # required: guide, standard, reference, runbook
category: operations                  # required: operations, security, development
last_updated: 2025-01-15              # required, ISO date
version: 2.1                          # optional
status: active                        # required: active, deprecated, draft
primary_audience: [developers]        # optional, array
required_reading: false               # optional, boolean
token_estimate: 2500                  # required, integer
replaces: _archive/old-doc.md         # optional, path to replaced doc
related: [other-doc.md]               # optional, array
---

Procedure

1. Identify Target Files

find . -name "*.md" -type f -not -path "./_archive/*"

2. Detect Document Type

Infer from path and filename:

| Pattern | Document Type | |---------|---------------| | */SKILL.md | Tier 1: Skill | | 02-products/* | Tier 2: Product | | 03-ai-enabling/03-operations/* | Tier 3: Operational | | */00-overview.md | Product overview | | *-profile.md or 02-profiles/* | Agent profile |

3. Extract Existing Frontmatter

Frontmatter is YAML between --- markers at file start:

sed -n '/^---$/,/^---$/p' file.md | head -n -1 | tail -n +2

4. Validate Against Schema

Check for:

| Check | Severity | Description | |-------|----------|-------------| | Required fields missing | ERROR | Must be present | | Wrong type | ERROR | e.g., string instead of array | | Invalid value | ERROR | e.g., status: "live" not in enum | | Missing tokenestimate | WARNING | Should be calculated and added | | Stale lastupdated | WARNING | Older than file modification | | Broken path reference | WARNING | sourceoftruth doesn't exist |

5. Auto-Fix Where Possible

| Missing Field | Auto-Fix Strategy | |---------------|-------------------| | token_estimate | Calculate from word count × 1.4 | | last_updated | Use current date | | status | Default to "active" | | name | Derive from directory name | | doc_type | Infer from path/filename |

6. Generate Missing Frontmatter

For files without frontmatter, generate based on type:

---
title: [Derived from H1 or filename]
doc_type: [Inferred from path]
last_updated: 2025-12-21
status: active
token_estimate: [Calculated]
---

Output Format

## Frontmatter Validation Report

### Summary
- Files scanned: N
- Valid: N
- Errors: N
- Warnings: N
- Fixed: N

### Errors (Must Fix)

| File | Issue | Field | Details |
|------|-------|-------|---------|
| skills/x/SKILL.md | Missing required | name | Add skill name |
| products/y.md | Invalid value | status | "live" not valid, use "active" |

### Warnings

| File | Issue | Field | Suggestion |
|------|-------|-------|------------|
| docs/guide.md | Missing | token_estimate | Add: 1,250 (calculated) |
| docs/api.md | Stale | last_updated | Update to current date |

### Auto-Fixes Applied

| File | Field | Old Value | New Value |
|------|-------|-----------|-----------|
| docs/setup.md | token_estimate | (missing) | 890 |
| docs/setup.md | last_updated | 2024-06-01 | 2025-12-21 |

Validation Rules

Field Value Rules

| Field | Valid Values | |-------|--------------| | status | active, deprecated, draft, beta | | skill_category | analysis, engineering, facilitation, strategy, documentation | | doc_type | overview, architecture, api, integration, security, guide, standard, reference, runbook | | allowed_tools | Read, Write, Edit, Bash, Glob, Grep, WebFetch, WebSearch |

Path Validation

For path fields (source_of_truth, methodology, replaces, related):

  • Resolve relative to file location
  • Check target exists
  • Warn if external to repository

Token Estimate Accuracy

Compare token_estimate to actual:

  • Within 10%: OK
  • 10-25% off: WARNING
  • >25% off: ERROR (likely stale)

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.