Install
$ agentstack add skill-hu-qi-openknowledgeformat-skill-open-knowledge-format ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
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.mdfiles. - Generate or update
log.mdfiles. - 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.mdfor 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:
Recommended frontmatter:
title:
description:
resource:
tags: [, ]
timestamp:
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.mdmay include YAML frontmatter only to declareokf_version. - Non-root
index.mdfiles must not contain frontmatter. - Do not generate
okf_versionin subdirectory indexes such asconcepts/index.md,references/index.md, orinsights/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:
[Calculation Validation](../industry/calculation_validation.md)
[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
- Identify the knowledge domain and intended consumers.
- Propose a compact directory structure.
- Extract candidate concepts.
- Create one Markdown file per concept.
- Add YAML frontmatter with at least
type. - Add concise body sections such as Overview, Details, Schema, Examples, Relationships, and Citations when useful.
- Add links between related concepts; prefer bundle-relative links for cross-directory references.
- Generate directory-level
index.mdfiles when navigation matters. - Ensure only the bundle-root
index.mdhas optionalokf_versionfrontmatter; subdirectory indexes must not have frontmatter. - Generate or update
log.md. - Validate the bundle before reporting completion.
Convert existing material to OKF
- Inventory the provided sources.
- Split large documents into atomic concepts.
- Map each concept to a file path and
type. - Preserve source references in
# Citations. - Add
title,description,tags, andresourcewhere available. - Add cross-links rather than duplicating repeated explanations.
- Generate indexes and logs.
- Verify generated links against the final file tree.
- 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.mdorlog.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.mdmay haveokf_versionfrontmatter. - Non-root
index.mdfiles do not have frontmatter. index.mdfiles 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.mddate headings useYYYY-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:
- Read direct child concept files and subdirectories.
- Extract
titleanddescriptionfrom frontmatter where available. - Group entries by type or subdirectory.
- Use relative links within the same directory and bundle-relative links for cross-directory references.
- Keep entries concise.
- Do not add frontmatter to non-root
index.mdfiles. - Do not use
index.mdas a concept article or long-form content page.
Generate log.md
For each relevant directory:
- Put newest entries first.
- Use ISO date headings, for example
## 2026-06-16. - Use short bullets.
- 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
typevalues. - 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.mdas navigation andlog.mdas traceability. - Never add YAML frontmatter to non-root
index.mdfiles.
Recommended type names
OKF does not require a central type registry. Use descriptive type names, such as:
Database TableBigQuery TableDatasetMetricAPI EndpointAPI SchemaBusiness ConceptSystemModuleComponentRunbookPlaybookDecisionReferencePolicySOP
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.mdhas optionalokf_versionfrontmatter. - Subdirectory
index.mdfiles have no frontmatter. index.mdfiles 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/orexamples/, not duplicated inside this skill file.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: hu-qi
- Source: hu-qi/OpenKnowledgeFormat-Skill
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.