Okf Reader logo

Okf Reader

Community
xSAVIKx
okf-reader

Guidance for AI agents on how to parse, traverse, and query Open Knowledge Format (OKF) bundles efficiently — minimizing token usage and avoiding slow recursive directory walks. Use when reading, navigating, analyzing, or answering questions about an existing OKF bundle. Instructions-only; no binary required.

Overview

PublisherxSAVIKx
Repositoryokf-skills
Skill nameokf-reader
Stars
38
Forks
2
Bundled files
1
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by xSAVIKx on GitHub. Read the source before you install it.

Installation

Install the Okf Reader AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/xSAVIKx/okf-skills/tree/master/skills/okf-reader
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/xSAVIKx/okf-skills.git /tmp/okf-skills
mkdir -p .claude/skills
cp -r /tmp/okf-skills/skills/okf-reader .claude/skills/okf-reader
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Okf Reader in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Okf Reader on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Okf Reader is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

OKF Bundle Reader Guidance Skill

Procedural rules for reading and traversing any OKF bundle efficiently, no matter how its producer organized it. Following them reduces token consumption, speeds execution, and avoids recursive directory walks.

OKF is deliberately flexible: the directory layout, the concept type values, and whether concepts cross-link are all producer-defined. So these rules key off the spec's universal structures — frontmatter type, index.md, markdown links, and resource — and never off any one source's conventions (there is no required tables/ folder, no fixed type vocabulary, no guaranteed cross-links).

When to Use

Load this skill whenever you are tasked with reading, parsing, querying, or analyzing an existing OKF bundle.

Instructions for Agents

1. Index-first discovery (descend nested indexes)

  • Rule: NEVER recursively read or load every markdown file at startup.
  • Protocol:
    1. Read the bundle-root index.md first if present — it is the directory listing.
    2. Follow its links to map the available concepts. The index may be flat (every concept — including container/directory concepts — listed at the root as peers) or hierarchical (subdirectories carry their own index.md or sub-index concept). Descend any nested indexes for progressive disclosure instead of walking the tree.
    3. If there is no index.md, discover concepts cheaply — a shallow listing or a *.md glob — without reading bodies yet.
    4. Sanity-check it is an OKF bundle: concept files have YAML frontmatter with a type; the root index.md may declare okf_version.

2. Route directly to a concept (layout is producer-defined)

  • Rule: Do not assume a fixed directory layout. There is no required tables/ (or any other) folder — producers organize concepts however suits the domain (SQL connectors group under tables/; filesystem/git bundles mirror the source tree; others differ).
  • Protocol:
    • Resolve a concept's location from the index.md links — use each link target verbatim; do not guess, strip, or rewrite paths (filenames and separators are producer-defined).
    • When the layout mirrors a source path, the concept file is usually that path; otherwise trust the index links or the directory tree.
    • Open only the one file you need — don't list or read its siblings.

3. Frontmatter-first parsing

  • Rule: To identify, filter, or catalog concepts, read only the top frontmatter — not the bodies.
  • Protocol:
    • Parse the YAML block between the first two ---.
    • Use type (an arbitrary producer-defined kind — e.g. Table, File, Metric, Playbook, Attested Computation), title, description (the one-line summary — the most useful field for cataloging), and resource (canonical URI of the underlying asset).
    • OKF v0.2 Metadata Families:
      • Generation & Timestamp: Read generated.by (actor) and generated.at (ISO 8601 timestamp). Fall back to legacy timestamp if generated is absent.
      • Trust Tier: Derive trust from verified: human-reviewed if any verified[].by starts with human:, machine-confirmed if verified by processes/agents only, unverified if absent.
      • Freshness & Staleness: Check stale_after (YYYY-MM-DD). A concept is stale when today >= stale_after.
      • Lifecycle Status: Read status (draft | stable | deprecated; default: stable).
      • Provenance: Read sources array (id, resource, title, author, usage_count, last_modified) and usage_window. Resolve inline footnote claim citations ([^source-id]).
      • Attested Computations: Concepts with type: Attested Computation declare runtime, parameters, computation (or # Computation body fence), executor, and attester.
    • The bundle stores knowledge about an asset, not its contents — for filesystem/git bundles the body may be only metadata. To read the asset itself, dereference its resource URI: for file://, drop the scheme and URL-decode to a local path; other schemes (bq://, postgres://, git://, …) identify the asset but need the matching connector or credentials to fetch.

4. Search by name or keyword with grep

  • Rule: To find a field, key, column, or any keyword across the bundle, don't open files one by one.
  • Protocol: Run grep/ripgrep across the bundle directory and open only the files that match. For frontmatter-only filters, grep anchored lines (e.g. ^type:, ^title:, ^status:).

5. Follow links for relationships — when they exist

  • Rule: Relationships are expressed as standard markdown links between concepts; don't infer them. Some bundles are richly cross-linked; others (e.g. filesystem/git) encode structure only as index/tree containment and have no body links — tolerate their absence rather than forcing a graph.
  • Protocol: Scan a concept body for links to other concept files and follow them to build a relationship view. Treat a broken link as not-yet-written knowledge, not an error.

6. Source-side catalog: .okf-metadata.yaml

  • Rule: When pointed at a source directory (not a bundle) that has been ingested, a .okf-metadata.yaml at its root is a flat path: description catalog — read it directly for an instant index, no bundle required.
  • Protocol: Inside a bundle you don't need it — the same descriptions already live in each concept's frontmatter description (Rule 3). Reach for .okf-metadata.yaml only when summarizing the source itself.

7. Navigating Attested Computations (type: Attested Computation)

  • Rule: When answering questions that require calculating a metric or running a formula, check for an Attested Computation link instead of improvising custom queries.
  • Protocol:
    1. Follow links from narrative concepts (Metric, Playbook) to target Attested Computation documents.
    2. Inspect contract frontmatter: runtime (bigquery, postgres, dbt, python), parameters list (name, type, required), executor resource, and attester resource.
    3. Supply required parameter values as declared — do not edit or rewrite the sanctioned query under # Computation (or in computation: <file>).
    4. Pass execution receipts to the attester script to confirm run fidelity and provenance before presenting final values.

8. Trust, Staleness, and Provenance Gating (OKF v0.2)

  • Rule: Weight facts according to their trust tier, recency, and lifecycle status.
  • Protocol:
    • Trust Tier: Classify trust as human-reviewed (highest; verified by human:<id>), machine-confirmed (verified by process: / tools), or unverified (no verified entry). Surface trust status when presenting critical business figures.
    • Staleness: Compare today's date against stale_after (YYYY-MM-DD). If today >= stale_after, flag the fact as stale or suggest re-verification.
    • Lifecycle Status: Respect status (draft | stable | deprecated). Ignore deprecated concepts for active decision-making unless historical context is requested.
    • Per-Claim Attribution: When reading bodies with inline footnotes [^source-id], resolve attribution by joining source-id against sources[].id in frontmatter. Inspect author, usage_count, and last_modified credibility signals to gauge source authority.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Okf Reader AI skill do?

Guidance for AI agents on how to parse, traverse, and query Open Knowledge Format (OKF) bundles efficiently — minimizing token usage and avoiding slow recursive directory walks. Use when reading, navigating, analyzing, or answering questions about an existing OKF bundle. Instructions-only; no binary required.

Why use Okf Reader on TypingMind?

Because you install it once and use it with any model. Okf Reader is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Okf Reader in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/xSAVIKx/okf-skills/tree/master/skills/okf-reader. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Okf Reader?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Okf Reader?

As many as you like. As long as a model supports skills, you can use Okf Reader with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Okf Reader AI skill free?

Yes. It is published on GitHub by xSAVIKx under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇