Logo vun Okf

Okf

Communautéit
sniperunder123
okf

Create, read, maintain, and visualize Open Knowledge Format (OKF) bundles — directory trees of Markdown "concept" files with YAML frontmatter that link into a knowledge graph. Triggers on `/okf` (and `/okf init|update|query|validate|viz`). Use when asked to capture a project's knowledge as OKF, keep an okf/ bundle in sync after changes, navigate a bundle to answer a question, or when a folder of .md files carries a `type:` frontmatter field (the Google Cloud Open Knowledge Format).

Iwwersiicht

Editeursniperunder123
Repositoryokf-knowledge
Skill-Nummokf
Stären
66
Forks
5
Matgeliwwert Fichieren
39
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 39 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum sniperunder123 op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Okf an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/sniperunder123/okf-knowledge/tree/main/okf
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/sniperunder123/okf-knowledge.git /tmp/okf-knowledge
mkdir -p .claude/skills
cp -r /tmp/okf-knowledge/okf .claude/skills/okf
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Okf an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Okf automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Okf net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

/okf — OKF Knowledge

Open Knowledge Format (OKF) is a vendor-neutral spec (Google Cloud, v0.2) for sharing knowledge as plain Markdown. A bundle is a directory tree of files where each non-reserved file is one concept (a table, a module, an endpoint, a metric, a runbook…) with YAML frontmatter, and concepts link to each other to form a knowledge graph. No SDK, no runtime — just git-versionable text.

v0.2 keeps the v0.1 core (below) and adds optional provenance, trust, lifecycle, and attestation families — see "OKF v0.2 additions" further down. A v0.1 bundle (using timestamp and a body # Citations list) stays fully conformant; those are legacy fallbacks consumers must still accept.

This skill is command-driven: the user runs /okf <subcommand> and you follow the matching flow below to build, sync, read, validate, or visualize a bundle.

Usage

/okf                      # smart default: sync the okf/ bundle if it exists, else offer to init
/okf init [path]          # build a new OKF bundle from this project's code + docs
/okf update [path]        # sync the bundle with what changed; fix links, append log.md, validate
/okf query "<question>"   # answer by navigating the bundle, index-first (no full-file dumps)
/okf validate [path]      # run conformance + lint checks
/okf viz [path]           # (re)generate viz.html + graph.mmd
/okf add "<thing>"        # add one new concept and wire its links

Default bundle directory: okf/ in the current project (override with [path]).

What to do when invoked

  1. Parse the subcommand (no subcommand → smart default: if <project>/okf/ exists run update, otherwise propose init).
  2. Resolve the bundle directory (arg, else okf/).
  3. Run the matching flow below.
  4. Always finish by validating and fixing every error: python <skill-dir>/scripts/validate.py <bundle> --strict (<skill-dir> = this SKILL.md's directory; scripts/ and resources/ are its siblings. Both validate.py and visualize.py need PyYAML — pip install pyyaml.)

The format in one screen

  • A concept = one .md file. Concept ID = its path within the bundle minus .md (modules/openrouter-client.md → modules/openrouter-client).
  • Frontmatter is delimited by ---. The only required field is type (a non-empty string). Recommended, in order: title, description (one sentence), resource (a URI), tags (YAML list). Optional provenance/trust/lifecycle families — see "OKF v0.2 additions" below.
  • Links use ordinary Markdown and keep .md. Prefer absolute, bundle-relative: [customers](/data/customers.md).
  • Reserved files at every level: index.md (navigation / progressive disclosure) and log.md (chronological history, newest first). They carry no type. Only the bundle-root index.md may carry frontmatter, and only okf_version: "0.2".
  • Conventional body headings: # Schema (structural/schema sections), # Examples (usage examples), # Computation (the sanctioned code of an Attested Computation — see below). Other headings are free-form. # Citations is a legacy v0.1 heading; new concepts use frontmatter sources + footnotes instead.
  • Links are untyped, directed relationships. An ordinary Markdown link [B](B.md) in concept A means "A references B". No explicit edge labels or types are needed; the graph is implicit in the link structure.
  • Honesty: never invent a resource, a date, or a description; never create a broken link; one concept per file; keep every concept reachable from an index.md.
yaml
---
type: BigQuery Table
title: Orders
description: One row per completed customer order.
resource: bigquery://acme/sales/orders
tags: [sales, orders]
generated: { by: human:maintainer, at: 2026-05-28T00:00:00Z }
---

See resources/example-bundle/ for a complete reference bundle.


OKF v0.2 additions (all optional)

Four families on top of the v0.1 core above. Absence of any of them is fine — never reject a concept for missing them; a plain type-only concept stays fully conformant.

  • Provenance — sources: a list of { id, resource, title, author, usage_count, last_modified } the concept derives from (resource is required per entry). Attribute one claim with a Markdown footnote whose label is a sources[].id: claim.[^src-id] … [^src-id]: Source title.
  • Trust — generated / verified: generated: { by, at } records who/what produced the current content (by required); verified records independent confirmations, as one { by, at } mapping or a list of them. Actor convention: <producer>/<version> for agents, human:<id> for people, process:<id> for automated processes. Trust tier (derived, not stored): no verified → unverified; non-human: verifier(s) only → machine-confirmed; any human: verifier → human-reviewed.
  • Lifecycle — status / stale_after: status: draft|stable|deprecated (default stable); stale_after: <ISO 8601 instant> — content is stale once now >= stale_after.
  • Attestation — type: Attested Computation: a standalone concept carrying a sanctioned computation so a consumer can confirm it (not an agent's improvisation) produced a value: runtime (required for this type, e.g. bigquery/dbt/python), parameters (a { name, type, required } list), computation (a path to the code, or a body # Computation fence), executor: { resource, receipt }, attester: { resource } (deterministic, no-LLM check code). A Metric or table links to it instead of embedding raw SQL.

Breaking, with an accepted fallback: timestamp → generated.at; a body # Citations list → sources + footnotes. A v0.1 concept using the old fields stays fully conformant — consumers fall back to them when the v0.2 field is absent. During /okf update, migrate a concept you're already touching to the new fields; don't rewrite the whole bundle in one pass just to bump fields.

Full spec: https://github.com/GoogleCloudPlatform/open-knowledge-format/blob/main/SPEC.md


Flows

/okf init — build a bundle

  1. Inventory the concepts: one file per atomic unit (table/collection, endpoint, module, metric, playbook, system…). Choose a directory layout that fits the domain.
  2. Fix the full path list first — this is what makes cross-links valid. For a large source, list every concept's path/type/title before writing bodies.
  3. Write each concept: valid frontmatter + a faithful Markdown body distilled from the source (keep tables, code, key numbers; never invent). Link related concepts (absolute paths).
  4. Add a root index.md declaring okf_version: "0.2" plus a per-directory index.md.
  5. Start log.md with an **Initialization** entry.
  6. Validate --strict; fix everything. Offer /okf viz.

For bulk import from a source of truth (DB schema, dbt manifest, OpenAPI, an existing doc), map one concept per asset and leave description empty rather than inventing it.

/okf update — sync after changes (the on-demand maintain)

This is the everyday command. Bring the bundle back in line with reality:

  1. Find what changed. Prefer git: git status / git diff since the most recent date in log.md (or since the last commit). If git is unavailable, ask the user "what changed?".
  2. Map changes to concepts: a new route → endpoints/<x>.md; a changed module → modules/<y>.md; a renamed file → rename its concept and update every inbound link (search the whole bundle for the old path).
  3. Create/update the affected concept files; refresh each changed file's generated: { by, at } (or its legacy timestamp, if that's the field the concept already uses).
  4. Keep links valid — but never rewrite links inside historical log.md entries (dangling history is expected and exempt from the link check).
  5. Update the relevant index.md when concepts are added/removed/renamed.
  6. Append a dated entry to log.md (newest first) with the right convention word (Creation / Update / Removal / Fix / Deprecation), linking the affected concept(s).
  7. Validate --strict; fix; offer to refresh viz.

/okf query "<question>" — read

  1. Start at the root index.md (if absent, build a map from the tree + each file's frontmatter). Follow only the links relevant to the question — do not dump every file.
  2. Use frontmatter (type, tags, description) as the quick-query layer; bodies for detail.
  3. Check log.md for "what changed". Answer, citing the concepts you used by path.

/okf validate [path]

Run python <skill-dir>/scripts/validate.py <bundle> --strict.

Conformance errors (always checked — failing any is a spec violation):

  • Parseable YAML frontmatter on every concept file.
  • Non-empty string type on every concept file.
  • Reserved-file structure (index.md / log.md must not carry a type).

Producer lints (warnings, enabled by --strict): broken intra-bundle links, links missing the .md extension, orphan concepts unreachable from any index.md, missing recommended fields (title, description); malformed optional v0.2 families when present (generated missing by, a verified/sources entry missing a required sub-field, non-ISO-8601 dates, an invalid status, an Attested Computation missing runtime); and migration nudges for the two legacy v0.1 fields (timestamp without generated, a body # Citations heading). These are not spec violations — they flag quality issues in the producer (the tool generating the bundle). Consumers must tolerate bundles that have lint warnings; they are never grounds to reject a bundle.

Report results; fix errors. Lint warnings should be fixed too, but they do not make a bundle non-conformant.

/okf viz [path]

Run python <skill-dir>/scripts/visualize.py <bundle> to (re)generate viz.html (interactive graph) and graph.mmd (aggregated Mermaid). It reads the explicit concept links — no LLM.

/okf add "<thing>"

Create one new concept file in the right directory with valid frontmatter, link it to/from related concepts, add it to the directory index.md, log a **Creation** entry, validate.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Okf?

Create, read, maintain, and visualize Open Knowledge Format (OKF) bundles — directory trees of Markdown "concept" files with YAML frontmatter that link into a knowledge graph. Triggers on `/okf` (and `/okf init|update|query|validate|viz`). Use when asked to capture a project's knowledge as OKF, keep an okf/ bundle in sync after changes, navigate a bundle to answer a question, or when a folder of .md files carries a `type:` frontmatter field (the Google Cloud Open Knowledge Format).

Firwat Okf op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Okf besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Okf an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/sniperunder123/okf-knowledge/tree/main/okf an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Okf benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Okf benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Okf domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Okf gratis?

Jo. De Skill gëtt vum sniperunder123 ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇