alchemiststudiosdotai/pi-harness-skills/docs-frontmatter-ontology
Claude Code and agent skill by alchemiststudiosdotai/pi-harness-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Enforce repository Markdown docs with required YAML frontmatter and ontology_relations, and set up a pre-push hook that blocks pushes when any .md file except AGENTS.md is missing required frontmatter keys.
Install
npx vskill@latest install alchemiststudiosdotai/pi-harness-skills/docs-frontmatter-ontologySemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as alchemiststudiosdotai/pi-harness-skills/docs-frontmatter-ontology.
Docs Frontmatter + Ontology Guard
Use this skill when a repo needs consistent documentation shape and enforcement.
What this skill enforces
For every Markdown file (*.md) except AGENTS.md, require top-of-file YAML frontmatter with these keys:
titlewhen_to_readsummaryontology_relations
ontology_relations entries must use this structure:
relationtargetnote
Canonical document scaffold
Use this scaffold for new docs:
Enforcement steps
1) Add validator script
Create scripts/check_markdown_frontmatter.py that:
- Enumerates markdown files from
git ls-files '*.md' - Skips
AGENTS.md - Validates YAML frontmatter exists at the very top of each file
- Fails if any required key is missing
- Exits non-zero with a clear per-file error list
2) Add pre-push hook in .pre-commit-config.yaml
Add a local hook:
3) Install and verify
Behavior rules
- Do not exempt README or docs unless explicitly requested.
- Keep relation IDs and targets stable and reusable.
- If a document is missing frontmatter, add it before any content edits.
- If repo already has a docs template, align it to this schema.
Completion checklist
- [ ] Every tracked
.mdfile exceptAGENTS.mdhas required frontmatter keys - [ ]
.pre-commit-config.yamlincludes the pre-push hook - [ ]
scripts/check_markdown_frontmatter.pyexists and fails correctly on bad files - [ ] Hook is installed for pre-push
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/docs-frontmatter-ontology/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alchemiststudiosdotai/pi-harness-skills/docs-frontmatter-ontology)