Use this skill when the user asks to create a new OKF bundle or asks how an OKF bundle should be structured.
Operating contract
Create bundles that are useful to both humans and agents. Do not merely convert pages into Markdown. Produce an intentional concept graph.
Always optimize for:
- Atomic concepts: one durable idea, asset, metric, process, API, system, data table, decision, or playbook per concept file.
- Traceability: claims from external material are backed by numbered citations under
# Citations.
- Progressive disclosure: root and directory
index.md files tell an agent where to go next without loading every file.
- Stable identity: file paths are stable concept IDs. Avoid temporary, vendor-specific, or date-stamped paths unless chronology is the domain.
- Preservation: when updating an existing bundle, preserve unknown frontmatter fields and user-authored prose unless there is a clear reason to change them.
- Reviewability: keep files diffable, structured, and small enough for code review.
Creation workflow
- Infer the bundle purpose, target consumers, intended freshness, and source boundaries from the request. Ask only when the answer cannot be discovered and a wrong assumption would materially damage the bundle.
- Define a source policy before writing: authoritative sources, allowed secondary sources, excluded sources, citation requirements, and licensing constraints.
- Gather facts using available tools. For web-derived bundles, prefer primary sources and official documentation; use secondary sources only to identify leads or compare interpretations.
- Create a concept inventory before writing files. Include
path, type, title, description, resource, tags, and key citations.
- Design the directory tree around retrieval behavior, not organizational politics. Recommended top-level directories:
concepts/ for core domain ideas.
systems/ for applications, platforms, products, services, or repositories.
data/ for datasets, tables, schemas, metrics, data contracts.
processes/ for operating procedures, runbooks, controls, and workflows.
decisions/ for architectural decisions and rationale.
sources/ only when source material itself is a concept worth describing.
- Write concept files with YAML frontmatter and structural Markdown sections.
- Add cross-links where they help traversal. Prefer absolute bundle-relative links, e.g.
/systems/payments-api.md.
- Generate
index.md for the root and every ancestor directory that participates in the concept tree. Keep index entries compact.
- Generate bundle-local
AGENTS.md usage guidance with the deterministic
generator - okf_generate_chatgpt_usage (with write_files) or
python tools/okf_tool.py generate-chatgpt-usage <bundle> --write - rather
than writing it by hand. The generated guidance stays portable (no Codex,
MCP, CLI, or OKF tooling assumed) and consistent across bundles.
- Add or update
log.md with a date-grouped summary.
- Run validation and repair until the bundle has no hard errors and only intentional warnings. Use
python tools/okf_tool.py lint <bundle> when the plugin repo is available.
Required OKF conformance minimum
Every concept file must:
---
type: <short descriptive type>
title: <human display title>
description: <one sentence summary>
resource: <canonical URI when there is one>
tags: [tag-one, tag-two]
timestamp: <ISO 8601 datetime>
---
# Summary
...
# Citations
[1] [Source title](https://example.com/source)
Only type is strictly required by the OKF v0.1 spec, but this plugin should usually include the recommended fields unless there is a reason not to. Omit resource when there is no real canonical URI; do not invent one to satisfy a template.
Concept types
OKF has no central type registry. Use self-explanatory types. Prefer stable nouns:
Reference
System
API
API Endpoint
Data Product
Dataset
Table
Metric
Business Term
Process
Playbook
Runbook
Control
Risk
Architectural Decision
Regulation
Source
Do not invent cute or opaque type names.
Completion criteria
Before final response, report:
- bundle path and packaging format;
- number of concept files;
- number of indexes and logs;
- whether bundle-local
AGENTS.md usage guidance was created;
- validation status;
- open warnings and known limitations;
- most important source/citation constraints.
1---2name: okf-bundle-architect3description: Design a new Open Knowledge Format bundle, including scope, concept taxonomy, directory structure, source policy, indexes, logs, validation gates, and final packaging.4---56Use this skill when the user asks to create a new OKF bundle or asks how an OKF bundle should be structured.78## Operating contract910Create bundles that are useful to both humans and agents. Do not merely convert pages into Markdown. Produce an intentional concept graph.1112Always optimize for:13141. **Atomic concepts**: one durable idea, asset, metric, process, API, system, data table, decision, or playbook per concept file.152. **Traceability**: claims from external material are backed by numbered citations under `# Citations`.163. **Progressive disclosure**: root and directory `index.md` files tell an agent where to go next without loading every file.174. **Stable identity**: file paths are stable concept IDs. Avoid temporary, vendor-specific, or date-stamped paths unless chronology is the domain.185. **Preservation**: when updating an existing bundle, preserve unknown frontmatter fields and user-authored prose unless there is a clear reason to change them.196. **Reviewability**: keep files diffable, structured, and small enough for code review.2021## Creation workflow22231. Infer the bundle purpose, target consumers, intended freshness, and source boundaries from the request. Ask only when the answer cannot be discovered and a wrong assumption would materially damage the bundle.242. Define a source policy before writing: authoritative sources, allowed secondary sources, excluded sources, citation requirements, and licensing constraints.253. Gather facts using available tools. For web-derived bundles, prefer primary sources and official documentation; use secondary sources only to identify leads or compare interpretations.264. Create a concept inventory before writing files. Include `path`, `type`, `title`, `description`, `resource`, `tags`, and key citations.275. Design the directory tree around retrieval behavior, not organizational politics. Recommended top-level directories:28 - `concepts/` for core domain ideas.29 - `systems/` for applications, platforms, products, services, or repositories.30 - `data/` for datasets, tables, schemas, metrics, data contracts.31 - `processes/` for operating procedures, runbooks, controls, and workflows.32 - `decisions/` for architectural decisions and rationale.33 - `sources/` only when source material itself is a concept worth describing.346. Write concept files with YAML frontmatter and structural Markdown sections.357. Add cross-links where they help traversal. Prefer absolute bundle-relative links, e.g. `/systems/payments-api.md`.368. Generate `index.md` for the root and every ancestor directory that participates in the concept tree. Keep index entries compact.379. Generate bundle-local `AGENTS.md` usage guidance with the deterministic38 generator - `okf_generate_chatgpt_usage` (with `write_files`) or39 `python tools/okf_tool.py generate-chatgpt-usage <bundle> --write` - rather40 than writing it by hand. The generated guidance stays portable (no Codex,41 MCP, CLI, or OKF tooling assumed) and consistent across bundles.4210. Add or update `log.md` with a date-grouped summary.4311. Run validation and repair until the bundle has no hard errors and only intentional warnings. Use `python tools/okf_tool.py lint <bundle>` when the plugin repo is available.4445## Required OKF conformance minimum4647Every concept file must:4849```markdown50---51type: <short descriptive type>52title: <human display title>53description: <one sentence summary>54resource: <canonical URI when there is one>55tags: [tag-one, tag-two]56timestamp: <ISO 8601 datetime>57---5859# Summary60...6162# Citations6364[1] [Source title](https://example.com/source)65```6667Only `type` is strictly required by the OKF v0.1 spec, but this plugin should usually include the recommended fields unless there is a reason not to. Omit `resource` when there is no real canonical URI; do not invent one to satisfy a template.6869## Concept types7071OKF has no central type registry. Use self-explanatory types. Prefer stable nouns:7273- `Reference`74- `System`75- `API`76- `API Endpoint`77- `Data Product`78- `Dataset`79- `Table`80- `Metric`81- `Business Term`82- `Process`83- `Playbook`84- `Runbook`85- `Control`86- `Risk`87- `Architectural Decision`88- `Regulation`89- `Source`9091Do not invent cute or opaque type names.9293## Completion criteria9495Before final response, report:9697- bundle path and packaging format;98- number of concept files;99- number of indexes and logs;100- whether bundle-local `AGENTS.md` usage guidance was created;101- validation status;102- open warnings and known limitations;103- most important source/citation constraints.