agentleFS
hu-qihu-qi/OpenKnowledgeFormat-Skill/skills/open-knowledge-format/SKILL.md

open-knowledge-format

Skill1 starsChanged 6 months agoMITView on GitHub

Use when creating, inspecting, validating, converting, or maintaining Open Knowledge Format (OKF) knowledge bundles made of Markdown files with YAML frontmatter, index files, logs, citations, and cross-links for human and AI-agent consumption.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. mindroom-ai/mindroom★ 319same name
    2. magnus919/agent-skills★ 109same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

Show its rules and text

We split this skill into the rules it gives an agent

44 rules. About 0 are common, 31 are distinctive, and 13 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈31

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 13

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to create, inspect, validate, convert, and maintain knowledge bases that follow the Open Knowledge Format, abbreviated as …

    line 10
  2. Distinctive:

    Use this skill when the user asks to:

    line 16
  3. Distinctive:

    Create an OKF bundle from project docs, schemas, APIs, metrics, runbooks, wiki pages, or notes.

    line 18
  4. Distinctive:

    Add citations, cross-links, examples, tags, or schema sections to OKF documents.

    line 24
  5. Distinctive:

    Do not use this skill for ordinary Markdown writing unless the user explicitly wants OKF-compatible knowledge files or bundle design.

    line 27
  6. Distinctive:

    Use the OKF v0.1 rules below as the working baseline.

    line 31
  7. Distinctive:

    Prefer local package files for reusable content:

    line 33
  8. Very specific:

    Every non-reserved .md concept file must begin with parseable YAML frontmatter.

    line 56
  9. Very specific:

    Do not generate okf_version in subdirectory indexes such as concepts/index.md, references/index.md, or insights/index.md.

    line 87
  10. Distinctive:

    Use standard Markdown links to connect concepts.

    line 111
  11. Distinctive:

    Prefer bundle-relative links for cross-directory references because they are stable when documents move:

    line 113
  12. Distinctive:

    When generating or editing a bundle, verify internal Markdown links against the actual file tree.

    line 125
  13. Very specific:

    When a concept makes factual claims based on external or source material, add a # Citations section at the bottom.

    line 139
  14. Distinctive:

    Create one Markdown file per concept.

    line 150
  15. Very specific:

    Add YAML frontmatter with at least type.

    line 151
  16. Distinctive:

    Add concise body sections such as Overview, Details, Schema, Examples, Relationships, and Citations when useful.

    line 152
  17. Distinctive:

    Add links between related concepts.

    line 153
  18. Very specific:

    Ensure only the bundle-root index.md has optional okf_version frontmatter.

    line 155
  19. Very specific:

    Add title, description, tags, and resource where available.

    line 165
  20. Distinctive:

    Add cross-links rather than duplicating repeated explanations.

    line 166
  21. Distinctive:

    Verify generated links against the final file tree.

    line 168
  22. Distinctive:

    All Markdown files are UTF-8.

    line 175
  23. Distinctive:

    Every concept file starts with parseable YAML frontmatter.

    line 177
  24. Very specific:

    Every concept frontmatter has a non-empty type.

    line 178
  25. Distinctive:

    Read direct child concept files and subdirectories.

    line 207
  26. Distinctive:

    Use relative links within the same directory and bundle-relative links for cross-directory references.

    line 210
  27. Very specific:

    Do not add frontmatter to non-root index.md files.

    line 212
  28. Very specific:

    Do not use index.md as a concept article or long-form content page.

    line 213
  29. Distinctive:

    Put newest entries first.

    line 219
  30. Very specific:

    Use ISO date headings, for example ## 2026-06-16.

    line 220
  31. Distinctive:

    Keep one concept per file.

    line 226
  32. Distinctive:

    Keep concept bodies concise and structured.

    line 227
  33. Distinctive:

    Use clear Markdown headings, tables, and lists.

    line 228
  34. Distinctive:

    Do not invent a mandatory type registry.

    line 231
  35. Distinctive:

    Do not replace domain-specific formats such as OpenAPI, SQL DDL, Protobuf, or Avro.

    line 232
  36. Distinctive:

    Do not embed secrets, credentials, private tokens, or sensitive internal URLs.

    line 233
  37. Distinctive:

    Use citations for source-backed claims.

    line 234
  38. Distinctive:

    Prefer links over duplicated content.

    line 235
  39. Distinctive:

    Prefer bundle-relative links for cross-directory concept references.

    line 236
  40. Very specific:

    Treat index.md as navigation and log.md as traceability.

    line 237
  41. Very specific:

    Never add YAML frontmatter to non-root index.md files.

    line 238
  42. Distinctive:

    When reading an OKF bundle, treat unknown types as generic concepts.

    line 261
  43. Distinctive:

    Before finalizing OKF output, verify:

    line 265
  44. Very specific:

    Only the bundle-root index.md has optional okf_version frontmatter.

    line 270

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Open Knowledge Format Skill

Purpose

Use this skill to create, inspect, validate, convert, and maintain knowledge bases that follow the Open Knowledge Format, abbreviated as OKF.

OKF represents knowledge as a directory of Markdown files with YAML frontmatter, normal Markdown links, optional directory indexes, optional update logs, and citations. Keep outputs useful for both humans and agents.

When to use

Use this skill when the user asks to:

  • Create an OKF bundle from project docs, schemas, APIs, metrics, runbooks, wiki pages, or notes.
  • Convert existing material into OKF concept files.
  • Validate whether a directory follows OKF v0.1.
  • Generate OKF concept documents.
  • Generate or update index.md files.
  • Generate or update log.md files.
  • Add citations, cross-links, examples, tags, or schema sections to OKF documents.
  • Design an agent-readable knowledge catalog for software, data, product, or enterprise knowledge.

Do not use this skill for ordinary Markdown writing unless the user explicitly wants OKF-compatible knowledge files or bundle design.

Source of truth

Use the OKF v0.1 rules below as the working baseline. When exact format details matter, consult the upstream OKF references linked from README.md.

Prefer local package files for reusable content:

  • templates/concept.md for the full concept document template.
  • examples/software-project-okf/ for a minimal OKF bundle example.

OKF v0.1 essentials

Bundle

An OKF bundle is a self-contained directory tree of Markdown files. It can live in a Git repository, a subdirectory, a zip/tar archive, or a static filesystem location.

Concept document

A concept is one unit of knowledge represented by one Markdown file.

The concept ID is the file path inside the bundle without the .md suffix.

Example:

tables/orders.md -> tables/orders

Every non-reserved .md concept file must begin with parseable YAML frontmatter.

Required frontmatter:

type: <Concept Type>

Recommended frontmatter:

title: <Human-readable title>
description: <One-sentence summary>
resource: <Optional URI for the underlying asset>
tags: [<tag1>, <tag2>]
timestamp: <ISO 8601 datetime>

Unknown frontmatter fields are allowed and should be preserved.

Reserved files

The following filenames are reserved and must not be treated as normal concept documents:

  • index.md: directory listing for progressive disclosure.
  • log.md: chronological update history.

Hard rule for index.md frontmatter:

  • The bundle-root index.md may include YAML frontmatter only to declare okf_version.
  • Non-root index.md files must not contain frontmatter.
  • Do not generate okf_version in subdirectory indexes such as concepts/index.md, references/index.md, or insights/index.md.

Valid bundle-root index.md version declaration:

---
okf_version: "0.1"
---

Valid subdirectory index.md shape:

# Concepts

## Business Concepts

- [Compliance Checking](./compliance_checking.md) - Compliance checking related concept.

index.md should primarily provide navigation. Do not place concept body content, long explanations, or source material in index.md; create concept files instead and link to them.

Links

Use standard Markdown links to connect concepts.

Prefer bundle-relative links for cross-directory references because they are stable when documents move:

[Customers](/tables/customers.md)

Relative links are also valid for nearby files:

[Neighbor](./neighbor.md)

When generating or editing a bundle, verify internal Markdown links against the actual file tree. Broken links are warnings for consumers, but production-quality bundles should fix them before delivery.

Common path mistake to avoid:

<!-- Wrong when target is inside the same concepts subtree -->
[Calculation Validation](../industry/calculation_validation.md)

<!-- Prefer -->
[Calculation Validation](/concepts/industry/calculation_validation.md)

Citations

When a concept makes factual claims based on external or source material, add a # Citations section at the bottom.

Citation links may point to external URLs, bundle-relative files, or files under a references/ directory.

Workflows

Create an OKF bundle

  1. Identify the knowledge domain and intended consumers.
  2. Propose a compact directory structure.
  3. Extract candidate concepts.
  4. Create one Markdown file per concept.
  5. Add YAML frontmatter with at least type.
  6. Add concise body sections such as Overview, Details, Schema, Examples, Relationships, and Citations when useful.
  7. Add links between related concepts; prefer bundle-relative links for cross-directory references.
  8. Generate directory-level index.md files when navigation matters.
  9. Ensure only the bundle-root index.md has optional okf_version frontmatter; subdirectory indexes must not have frontmatter.
  10. Generate or update log.md.
  11. Validate the bundle before reporting completion.

Convert existing material to OKF

  1. Inventory the provided sources.
  2. Split large documents into atomic concepts.
  3. Map each concept to a file path and type.
  4. Preserve source references in # Citations.
  5. Add title, description, tags, and resource where available.
  6. Add cross-links rather than duplicating repeated explanations.
  7. Generate indexes and logs.
  8. Verify generated links against the final file tree.
  9. Report converted files, skipped material, assumptions, and follow-up gaps.

Validate an OKF bundle

Check these items:

  • All Markdown files are UTF-8.
  • Reserved files are handled as index.md or log.md.
  • Every concept file starts with parseable YAML frontmatter.
  • Every concept frontmatter has a non-empty type.
  • Recommended fields are present where useful.
  • The bundle-root index.md may have okf_version frontmatter.
  • Non-root index.md files do not have frontmatter.
  • index.md files focus on navigation and progressive disclosure.
  • Markdown links are syntactically valid.
  • Internal links resolve against the actual bundle file tree.
  • Broken links are warnings for consumption, but should be fixed before delivery when possible.
  • log.md date headings use YYYY-MM-DD.
  • External claims have citations.

Return validation results using this structure:

# OKF Validation Report

## Summary

## Errors

## Warnings

## Recommendations

Generate index.md

For each directory:

  1. Read direct child concept files and subdirectories.
  2. Extract title and description from frontmatter where available.
  3. Group entries by type or subdirectory.
  4. Use relative links within the same directory and bundle-relative links for cross-directory references.
  5. Keep entries concise.
  6. Do not add frontmatter to non-root index.md files.
  7. Do not use index.md as a concept article or long-form content page.

Generate log.md

For each relevant directory:

  1. Put newest entries first.
  2. Use ISO date headings, for example ## 2026-06-16.
  3. Use short bullets.
  4. Link to affected concept files.

Output rules

  • Keep one concept per file.
  • Keep concept bodies concise and structured.
  • Use clear Markdown headings, tables, and lists.
  • Preserve producer-defined frontmatter fields.
  • Tolerate unknown type values.
  • Do not invent a mandatory type registry.
  • Do not replace domain-specific formats such as OpenAPI, SQL DDL, Protobuf, or Avro; link to or cite them instead.
  • Do not embed secrets, credentials, private tokens, or sensitive internal URLs.
  • Use citations for source-backed claims.
  • Prefer links over duplicated content.
  • Prefer bundle-relative links for cross-directory concept references.
  • Treat index.md as navigation and log.md as traceability.
  • Never add YAML frontmatter to non-root index.md files.

Recommended type names

OKF does not require a central type registry. Use descriptive type names, such as:

  • Database Table
  • BigQuery Table
  • Dataset
  • Metric
  • API Endpoint
  • API Schema
  • Business Concept
  • System
  • Module
  • Component
  • Runbook
  • Playbook
  • Decision
  • Reference
  • Policy
  • SOP

When reading an OKF bundle, treat unknown types as generic concepts.

Quality checklist

Before finalizing OKF output, verify:

  • The bundle or file paths are clear.
  • Concept files have required frontmatter.
  • Reserved files are not accidentally treated as concepts.
  • Only the bundle-root index.md has optional okf_version frontmatter.
  • Subdirectory index.md files have no frontmatter.
  • index.md files are navigational and not concept bodies.
  • Internal links resolve correctly.
  • Links are useful and not excessive.
  • Citations are present for factual source material.
  • The result can be read by humans and selectively loaded by agents.
  • Long examples or templates are placed in templates/ or examples/, not duplicated inside this skill file.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.