okf:create
Skill2 starsChanged 5 months agoUnlicenseView on GitHub
Create a new OKF bundle from source documents. Usage: /okf:create <source-path> [output:<bundle-path>] [git:yes|no]
In this repository12 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- github-issueSkill
- okf:editSkill
- okf:_okf-skill-git-commitSkill
- okf:_okf-skill-read-specSkill
- okf:reconcileSkill
- okf:_okf-skill-scan-bundleSkill
- okf:searchSkill
- okf:updateSkill
- okf:_okf-skill-validateSkill
- okf:validateSkill
- okf:_okf-skill-write-logSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
If no source path is provided, ask the user before proceeding.
- Very specific: line 26
Read every source document at the given path.
- Distinctive: line 63
Ask: "Proceed with this structure?
- Distinctive: line 65
Wait for the user's answer.
- Very specific: line 92
Write log.md at the bundle root.
- Very specific: line 103
Only if skills:yes was specified: copy all skill files found in skills/ (relative to the current working directory) into …
- Very specific: line 111
If git:yes was specified, or if not specified and the user confirms:
- Distinctive: line 112
If the bundle root is not already inside a git repository, run git init.
- Very specific: line 113
Follow okf:_okf-skill-git-commit with commit message: Initialize OKF bundle (<N> concepts, <M> types)
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
You are creating a new OKF (Open Knowledge Format) bundle from one or more source documents.
1. Parse arguments
$ARGUMENTS may contain:
- A path to source documents: a single file, a directory, or a glob pattern (required).
output:<path>— destination directory for the new bundle (default:./okf-bundle).git:yesorgit:no— whether to initialize a git repository (default: ask at the end).skills:yesorskills:no— whether to copy the OKF skill files into the bundle (default:no).
If no source path is provided, ask the user before proceeding.
2. Read the spec
Follow okf:_okf-skill-read-spec.
3. Read source documents
Read every source document at the given path. Supported formats: .md, .txt, .pdf, .csv, and any other readable format. For each document, extract:
- Main topic and subtopics.
- Key facts, definitions, processes, schemas, or relationships described.
- Any explicit references to external resources (URLs, system names, table names, etc.).
- Relationships between topics that could become cross-links.
4. Design the bundle structure
From the extracted knowledge, decide:
- Concepts: what distinct concepts to create. Each concept is one
.mdfile. Prefer granular concepts over monolithic ones — if a source document covers five distinct topics, create five concept files. - Types: assign a
typeto each concept. Be descriptive and consistent within the bundle (e.g.,Metric,BigQuery Table,API Endpoint,Playbook,Reference). Use the same type string for the same kind of thing across all concepts. - Hierarchy: group concepts into subdirectories by domain or category, not by source file. A concept from document A and a concept from document B may belong in the same subdirectory.
- Cross-links: identify relationships between concepts that should be expressed as markdown links in the body.
- Tags: identify cross-cutting tags.
Before writing any files, present the proposed structure to the user:
Proposed OKF bundle: <output path>
─────────────────────────────────────────
<bundle-root>/
├── index.md
├── log.md
├── <group>/
│ ├── index.md
│ ├── <concept>.md
│ └── <concept>.md
└── <group>/
├── index.md
└── <concept>.md
Concepts : <N>
Types : <list of distinct type values>
Tags : <list of distinct tags>
Source : <N> document(s) readAsk: "Proceed with this structure? (yes / no / describe changes)"
Wait for the user's answer. If they request changes, revise the structure and show it again before writing.
5. Write the bundle
After user approval:
Concept files
For each concept, write a .md file at the planned path with:
- Frontmatter:
type: as decidedtitle: human-readable display namedescription: one sentence summarizing the conceptresource: canonical URI if the concept describes a concrete external asset; omit otherwisetags: YAML list of relevant tagstimestamp: current datetime in ISO 8601 (UTC)
- Body: structured markdown derived from the source content. Use headings, lists, and tables. Add cross-links to related concepts using bundle-relative paths (starting with
/). Include a# Citationssection if claims are sourced from external material.
Index files
For each directory (including the root), write index.md with no frontmatter. Exception: the root index.md MAY include frontmatter with okf_version. Format per the spec's "Index files" section:
# <Directory / Group Name>
* [Title](./concept.md) - description from frontmatter
* [Subdirectory](./subdir/) - what this group containsLog file
Write log.md at the bundle root. Format per the spec's "Log files" section, with today's date and one entry per concept created:
# Bundle Update Log
## <YYYY-MM-DD>
* **Creation**: Initialized OKF bundle from <N> source document(s).
* **Creation**: Added [<title>](<path>) — <description>.
…Skill files (optional)
Only if skills:yes was specified: copy all skill files found in skills/ (relative to the current working directory) into <bundle-root>/skills/.
SPEC.md
Fetch SPEC.md from the upstream repository and write it to <bundle-root>/SPEC.md:
https://raw.githubusercontent.com/GoogleCloudPlatform/knowledge-catalog/main/okf/SPEC.md
6. Git (optional)
If git:yes was specified, or if not specified and the user confirms:
- If the bundle root is not already inside a git repository, run
git init. - Follow
okf:_okf-skill-git-commitwith commit message:Initialize OKF bundle (<N> concepts, <M> types)
7. Validate
Follow okf:_okf-skill-validate.
8. Final report
OKF bundle created
─────────────────────────────────────────
Path : <absolute path>
Concepts : <N> files across <M> directories
Types : <list>
Git : initialized with initial commit / not initialized
Skills : copied / not included
Validation: ✓ Conformant (OKF <version>)
Skill version: 1.09. Write invocation log
Follow okf:_okf-skill-write-log with:
skill:okf:create,version:1.0bundle: absolute path to the bundle root written in step 5outcome:successif the final report was printed;cancelledif the user declined the proposed structure;errorif an unrecoverable error occurredconcepts_added: number of concept files writtenconcepts_updated:nullconcepts_split:nullconflicts:nullnote:null
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
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.

