okf-repo-organizer
Skill2 starsChanged 5 months agoMITView on GitHub
Organize a repository, folder, or knowledge corpus into generic Open Knowledge Format (OKF) bundles. Use when you are asked to convert or normalize repo files and folders to OKF, add OKF index/log/concept frontmatter, choose bundle boundaries, migrate idea/project/doc folders into OKF-style structure, or validate generic OKF conformance.
In this repository20 other files it gives its agents.
- codex-paper-figure-skillSkill
- discover-academic-skillsSkill
- drawio-paperSkill
- explain-anything-htmlSkill
- explain-paper-htmlSkill
- filetree-simpleSkill
- human-cognition-cacheSkill
- karpathy-coding-rulesSkill
- map-then-territorySkill
- paper-searchSkill
- paper-wiki-managerSkill
- project-dispatchSkill
- research-bibleSkill
- research-project-managerSkill
- sell-research-honestlySkill
- session-handoffSkill
- skill-organizerSkill
- task-file-builderSkill
- uv-envSkill
- writing-great-promptSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 6 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill to make an existing repo or folder easier for humans and agents to traverse as OKF.
- Very specific: line 14
Read references/SPEC.md from this skill before changing files.
- Very specific: line 16
Do not invent stricter required fields than the spec.
- Very specific: line 18
Add frontmatter minimally and let content drive it.
- Distinctive: line 23
Use the path the user names.
- Distinctive: line 24
Prefer treating knowledge-oriented folders as OKF bundles.
- Very specific: line 28
Use rg --files to inspect Markdown, source, asset, generated, and vendor paths.
- Very specific: line 33
Add or update index.md at the bundle root and important subdirectories for progressive disclosure.
- Very specific: line 34
Add or update log.md when the folder needs chronological history.
- Very specific: line 48
Keep type short and descriptive, such as Idea, Project, Template, Reference, Runbook, Dataset, Note, or Decision.
- Very specific: line 49
Leave code, data, images, PDFs, and other non-Markdown assets in normal project locations.
- Very specific: line 50
Prefer bundle-relative Markdown links that begin with / when links should survive file moves.
- Very specific: line 54
Run bundled scripts from this skill's root directory, using paths relative to the directory that contains this SKILL.md.
- Very specific: line 55
Run the bundled validator on every OKF bundle root you changed.
- Very specific: line 61
If uv is unavailable and the environment already has Python 3.11+ plus PyYAML, run it directly:
- Distinctive: line 67
If an OKF reference implementation is available and you want to reuse its parser, pass it explicitly.
- Distinctive: line 77
If validation fails, fix the OKF format issues before finishing unless the user explicitly asks you to stop.
- Distinctive: line 78
Call out deliberate non-OKF areas, such as source-only directories or a top-level README kept outside the selected bundle.
≈ “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
OKF Repo Organizer
Overview
Use this skill to make an existing repo or folder easier for humans and agents to traverse as OKF. Keep the skill generic: OKF is markdown plus YAML frontmatter, not a domain-specific taxonomy.
Reference
Read references/SPEC.md from this skill before changing files. Treat it as the only OKF format reference. Do not assume the target repository contains an okf/ directory or its own copy of the spec.
Do not invent stricter required fields than the spec. For generic OKF conformance, every non-reserved .md concept document needs parseable YAML frontmatter with a non-empty type. title, description, resource, tags, and timestamp are recommended, not mandatory.
Add frontmatter minimally and let content drive it. Always include type; add a recommended field only when it carries information the document body and the file's location do not already make obvious. Prefer the smallest frontmatter that satisfies OKF over a complete one.
Workflow
- Establish scope and bundle boundaries.
- Use the path the user names. If none is named, inspect the repo and choose the smallest sensible scope.
- Prefer treating knowledge-oriented folders as OKF bundles. Do not force a whole software repo to be one OKF bundle unless the user asks for that or the repo is already markdown-first.
- A nested folder can be its own bundle when it has independent context, for example an
ideas/idea_example/folder with its ownindex.md,log.md, and concept files.
- Inventory before editing.
- Use
rg --filesto inspect Markdown, source, asset, generated, and vendor paths. - Preserve user content and existing frontmatter keys. Move or rename files only when it improves OKF traversal and does not break obvious project conventions.
- Ignore generated and dependency folders such as
.git/,node_modules/,.venv/,dist/, andbuild/unless the user explicitly wants them modeled.
- Use
- Organize the bundle.
- Add or update
index.mdat the bundle root and important subdirectories for progressive disclosure. Keep index files as plain Markdown; only a bundle-rootindex.mdmay use frontmatter, and only forokf_version. - Add or update
log.mdwhen the folder needs chronological history. Use## YYYY-MM-DDdate headings, newest first. - For each non-reserved
.mdconcept file, add or normalize frontmatter. Onlytypeis required; add the other keys only when they earn their place:
- Add or update
---
type: <self-explanatory type> # required
title: <human-readable title> # recommended
description: <one-sentence summary> # recommended
tags: [optional, tags] # optional
# add resource, timestamp, or other keys only when they carry non-redundant information
---- Keep frontmatter minimal and content-driven. Do not add a field that merely duplicates the body or the file's position. For example, omit
timestampon a chronological, newest-first log whose top## YYYY-MM-DDheading already states the last-change date, and omitcreatedwhen the oldest in-body entry already states it. - Keep
typeshort and descriptive, such asIdea,Project,Template,Reference,Runbook,Dataset,Note, orDecision. Do not create a central type registry. - Leave code, data, images, PDFs, and other non-Markdown assets in normal project locations. When useful, create a concept
.mdthat describes or links to the asset instead of modifying the asset. - Prefer bundle-relative Markdown links that begin with
/when links should survive file moves. Relative links are fine for local neighbors. - For repeatable project workflows, keep templates and instances semantically distinct. A useful generic pattern is
projects-folder/templates/<TemplateName>/for reusable templates andprojects-folder/<ProjectName>/for instantiated projects.
- Validate.
- Run bundled scripts from this skill's root directory, using paths relative to the directory that contains this
SKILL.md. Pass the bundle root as an absolute path when the target repo is not the current working directory. - Run the bundled validator on every OKF bundle root you changed. Prefer
uv runso the script can install its declared Python dependency from the inline PEP 723 metadata:
- Run bundled scripts from this skill's root directory, using paths relative to the directory that contains this
uv run scripts/validate_okf_bundle.py /absolute/path/to/bundle-root- If
uvis unavailable and the environment already has Python 3.11+ plus PyYAML, run it directly:
python scripts/validate_okf_bundle.py /absolute/path/to/bundle-root- If an OKF reference implementation is available and you want to reuse its parser, pass it explicitly. This is optional; the validator also works with PyYAML when the reference implementation is unavailable.
uv run scripts/validate_okf_bundle.py /absolute/path/to/bundle-root --okf-src /path/to/okf/src- The validator reuses
enrichment_agent.bundle.document.OKFDocument.parsefromokf/srcwhen available, then applies the generic conformance rules from this skill's bundledreferences/SPEC.md. It does not call the stricter enrichment-agent document validator because that validator requires recommended fields that generic OKF does not require.
- Finish with a concise report.
- List the bundle root(s), important files changed, and validator result.
- If validation fails, fix the OKF format issues before finishing unless the user explicitly asks you to stop.
- Call out deliberate non-OKF areas, such as source-only directories or a top-level README kept outside the selected bundle.
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.

