.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/longsizhuo/okf-frontmatter
home/skills/longsizhuo/okf-frontmatter
longsizhuo avatar

okf-frontmatter

bylongsizhuo· 5 skills

Stars

41

Forks

4

Category

Documentation & Knowledge

View on GitHub

TL;DR

Maintain a repo's Markdown docs (wiki chapters, ADRs, references) under Google's Open Knowledge Format (OKF), and find the right doc/schema fast. Two jobs. (1) Maintain docs the OKF way — each doc carries a small YAML frontmatter block as the single source of truth (type, title, tags, intent, schema_source, documents); schema detail links to the authoritative code instead of being copied into prose, so docs stop drifting and stop ballooning into thousand-line Markdown. (2) Look docs up fast — grep the literal term FIRST; only when grep is ambiguous (hits scattered across files / synonym mismatch / zero hits) run find_docs.py to rank the doc that owns the topic by frontmatter intent, or resolve a doc's schema_source straight to the code. Trigger phrases — "which doc covers X", "find the schema this doc points to", "where is endpoint/config-key X documented", "add OKF frontmatter to this doc", "lint the docs", "scaffold a new ADR/chapter". Run: scripts/run.sh find|schema|index|lint|new (or python3 scripts/find_docs.py --repo <path> ...).

How to install okf-frontmatter?

longsizhuo/okf-frontmatter
$npx -y skills add longsizhuo/okf-frontmatter --skill okf-frontmatter

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Use this skill

Run `npx skills use "https://github.com/longsizhuo/okf-frontmatter" --skill "longsizhuo/okf-frontmatter"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.

Use the whole pack

Use the skills in "https://github.com/longsizhuo/okf-frontmatter" that are relevant to the current task. Run `npx skills add "https://github.com/longsizhuo/okf-frontmatter"` and select the relevant skills, then follow their instructions.

Files · 1

View on GitHub
SKILL.md
1<div align="center">
2 
3# okf-frontmatter
4 
5**Keep a repo's Markdown docs under the Open Knowledge Format — and find the right doc/schema fast.**
6 
7[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
8&nbsp;·&nbsp; pure-Python stdlib &nbsp;·&nbsp; portable agent skill — Claude Code / Codex / any
9 
10</div>
11 
12---
13 
14## Table of contents
15 
16- [What it is](#what-it-is)
17- [Install](#install)
18 - [Claude Code](#claude-code)
19 - [Codex](#codex)
20 - [Any other agent](#any-other-agent)
21- [Background](#background)
22- [Does it actually help? I measured it.](#does-it-actually-help-i-measured-it)
23- [CLI usage](#cli-usage)
24- [Commands](#commands)
25- [Frontmatter schema](#frontmatter-schema)
26- [Layout](#layout)
27- [License](#license)
28 
29---
30 
31## What it is
32 
33**okf-frontmatter** is a portable agent skill: just a `SKILL.md` plus a small script, so any
34agent that loads skills can pick it up (or you can run it as a plain CLI). It does two things.
35 
36**Keeps docs in OKF shape.** Each doc opens with a little YAML frontmatter — `type`, `title`,
37`tags`, `intent`, `schema_source`, `documents`. The parts that *are* code — models, config
38keys, endpoints — get a `schema_source: file.py:Symbol` pointer instead of being retyped into
39prose. So docs stop drifting from the code and stop ballooning into thousand-line walls.
40 
41**Finds the right doc fast.** Hand `find_docs.py` a symbol, an endpoint, a config key, or just
42a keyword, and it ranks the doc that actually *owns* the topic (by frontmatter intent). `schema
43<doc>` goes one step further and resolves those pointers straight to the code, so the agent
44reads the authoritative definition without opening the prose at all.
45 
46One thing I want to be straight about: this is **grep-first**. The script isn't a replacement
47for grep — it's what you reach for when grep is ambiguous (hits scattered across files, a
48synonym mismatch, or nothing at all). On a clean literal hit, plain grep is already the best
49move, and the skill tells the agent exactly that. The
50[full strategy is here](references/lookup-strategy.md).
51 
52---
53 
54## Install
55 
56No dependencies — pure Python stdlib. It'll use PyYAML if you happen to have it, otherwise a
57tiny built-in frontmatter parser kicks in. Pick the install that matches your agent.
58 
59### Claude Code
60 
61The repo ships a `.claude-plugin/plugin.json` manifest, so it loads as a first-class plugin (not
62just a loose skill). Clone into the skills dir; it auto-loads next session as
63`okf-frontmatter@skills-dir`:
64 
65```bash
66git clone https://github.com/longsizhuo/okf-frontmatter.git ~/.claude/skills/okf-frontmatter
67# then in a session: /reload-plugins (or restart Claude Code)
68```
69 
70### Codex
71 
72Codex skills are plain folders under `$CODEX_HOME/skills/`; the same `SKILL.md` works as-is
73(no manifest needed, Codex ignores `.claude-plugin/`):
74 
75```bash
76git clone https://github.com/longsizhuo/okf-frontmatter.git ~/.codex/skills/okf-frontmatter
77# picked up on the next Codex session
78```
79 
80### Any other agent
81 
82Works on Cursor, Cline, Gemini CLI, OpenClaw, and the rest — drop it wherever that agent looks
83for skills, or just clone it anywhere and call the script directly:
84 
85```bash
86git clone https://github.com/longsizhuo/okf-frontmatter.git
87ln -s "$(pwd)/okf-frontmatter" ~/.claude/skills/okf-frontmatter # or wherever your agent looks
88```
89 
90Once it's loaded, the agent follows the grep-first / script-fallback flow from `SKILL.md`. Don't
91use a skill runner? Just call `scripts/run.sh` (or `find_docs.py`) from anywhere — it's the same
92tool. See [CLI usage](#cli-usage) below.
93 
94---
95 
96## Background
97 
98I let my coding agents maintain the docs — wikis, design notes, postmortems. That's lovely for
99the docs and rough on the agent: a repo slowly grows to dozens, sometimes hundreds, of markdown
100files, and every "where's the doc about X?" turns into grepping thousands of lines and a few
101rounds of `find`. Slow, and a quiet token sink. I looked at standing up RAG for it and it felt
102like a cannon to swat a fly. 🦟
103 
104Then a colleague pointed me at Google's
105[Open Knowledge Format (OKF)](https://cloud.google.com/blog/products/data-analytics/how-the-open-knowledge-format-can-improve-data-sharing/):
106give each doc a small structured frontmatter block as its single source of truth, and link the
107code-ish details to the code instead of copying them into prose. The thing that clicked for me
108was that the same frontmatter makes a great *index* — so I built this.
109 
110---
111 
112## Does it actually help? I measured it.
113 
114Short version: **yes for structured or ambiguous lookups, a wash for clean keyword hits** — and
115I'd rather show you the wash than bury it.
116 
117The setup: 8 fresh agents, no shared context, the same LLM on both sides (Claude Sonnet 4.6),
118read-only, each pinned to one checkout of [openInvest](https://github.com/longsizhuo/openInvest).
119Same questions, two states of the repo:
120 
121- **baseline** — plain `main`: monolithic docs, no frontmatter, no skill. grep + read only.
122- **current** — the same docs with OKF frontmatter, skill available.

Preview

longsizhuo/okf-frontmatterlongsizhuo/okf-frontmatter

$ npx -y skills add longsizhuo/okf-frontmatter --skill okf-frontmatter

▸ installing to .claude/skills…

✓ okf-frontmatter ready

Repolongsizhuo/okf-frontmatter
TypeSkills
CategoryDocumentation & Knowledge
ForDeveloperArchitect
UpdatedJun 2026
License—
First seenJul 27, 2026

Tags

Skill

Related

6 picks
Type
  1. mattpocock avatargrill-with-docsA relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.SkillsJul 2026585k189k
  2. larksuite avatarlark-doc飞书云文档(Docx / Wiki 文档):读取和编辑飞书文档内容。当用户给出文档 URL 或 token,或需要查看、创建、编辑文档、插入或下载文档图片附件时使用。文档中嵌入的电子表格、多维表格、画板,先用本 skill 提取 token 再切到对应 skill。当用户给出 doubao.com 的 /docx/…SkillsJul 2026393k16k
  3. larksuite avatarlark-wiki飞书知识库:管理知识空间、空间成员和文档节点。创建和查询知识空间、查看和管理空间成员、管理节点层级结构、在知识库中组织文档和快捷方式。当用户需要在知识库中查找或创建文档、浏览知识空间结构、查看或管理空间成员、移动或复制节点时使用。当用户给出 doubao.com 的 /wiki/ URL/token…SkillsJul 2026389k16k
  4. larksuite avatarlark-minutes飞书妙记:搜索妙记、查看妙记基础信息、下载/上传音视频、读取或编辑妙记的产物内容、改标题、替换说话人/关键词、申请妙记查看/编辑权限。当给出minute_token、本地音视频文件,要查/改/转妙记产物,或用户明确要主动申请妙记权限时使用;本地音视频转纪要/逐字稿优先走本 skill,不要用…SkillsJul 2026387k16k
  5. larksuite avatarlark-vc飞书视频会议:搜索历史会议记录、查询会议纪要(总结/待办/章节/逐字稿)、查询参会人快照。当用户查询已结束的会议、获取会议产物(纪要/妙记)、查看参会人时使用;查询未来日程走 lark-calendar。不负责:Agent 真实入会/离会、会中实时事件(走 lark-vc-agent)。SkillsJul 2026387k16k
  6. mattpocock avatarwriting-great-skillsReference for writing and editing skills well — the vocabulary and principles that make a skill predictable.SkillsJul 2026262k189k