jamditis/claude-skills-journalism/okf-wiki

Claude Code and agent skill by jamditis/claude-skills-journalism

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Builds an Open Knowledge Format (OKF) knowledge base from existing docs, notes, or a repo. Use to scaffold an OKF wiki.

Install

npx vskill@latest install jamditis/claude-skills-journalism/okf-wiki

SKILL.md

The same SKILL.md was published earlier as jamditis/claude-skills-journalism/okf-wiki.

okf-wiki: scaffold an Open Knowledge Format knowledge base

OKF (Open Knowledge Format) stores knowledge as small markdown files: one concept per file, each carrying its own provenance in YAML frontmatter, with directory index.md files for navigation and a validator that enforces the contract. It is built for knowledge bases that both people and agents read and edit, newsroom institutional memory, a research atlas, a team's decision log, an infrastructure map.

This skill scaffolds a conforming OKF project and validates it. The format contract is in spec/SPEC.md (in this skill's directory), read it before changing structure.

When to use

  • The user wants to start an OKF knowledge base, atlas, or wiki.
  • They want docs structured as one-concept-per-file with provenance, not prose pages.
  • They want to "initialize OKF" in a repo, optionally publishing into its GitHub wiki.

Start here: scope the wiki with the user

Before you scaffold anything, settle four things with the user. They shape what gets created and how it is published, and they are awkward to retrofit once concepts exist. Ask the user and wait for an explicit answer. Use the client's structured question tool when it has one. Ask in two steps: the first three questions together, then the publish question only if the audience is public or both (it does not apply to an internal-only wiki, and its relevant options depend on that answer, so it cannot share the first batch). Infer the title from the repo or project and confirm it. Skip any question the user already answered in their request, do not re-ask what they have told you.

  1. Audience, who reads this wiki? This answer sets the others:
  • Internal (agents and teammates): the orientation hooks earn their keep, so keep them on.

The bundle may hold infrastructure detail, so it usually lives in a private repo. The in-repo bundle/ is the source of truth.

  • Public (people browsing): readability and secret-scrubbing come first; the hooks matter

less, since people read it and agents do not. Plan a published view (see Publish below).

  • Both: the in-repo bundle/ is the source of truth with hooks on for agents, plus a

published view for people. Default here when the user is unsure.

  1. Title and sections, the knowledge-base title (infer it, then confirm) and the starting

sections. Offer sections as a use-case preset, not a blank prompt:

  • Newsroom institutional memory: people, orgs, sources, decisions, beats
  • Research atlas: concepts, sources, methods, findings
  • Infrastructure or fleet map: machines, services, networks, credentials, processes
  • Decision log: decisions, context, events

The chosen title and list feed --title and --sections below; the user can edit the list.

  1. Populate now or later, author concepts now from existing material (a repo, docs, notes, or a

URL: gather it and enter the authoring loop after scaffolding), or scaffold an empty tree the user fills in later.

  1. Publish target, a follow-up question made only after the audience comes back

public or both (skip it entirely for an internal-only wiki):

  • In-repo bundle only (default): the validator and relative links work directly, with no

extra surface to maintain. Right for most wikis.

  • GitHub wiki: an optional reading surface. Advanced and manual, see "Optional: publish into

a GitHub wiki" below, bootstrapped with scripts/gh-wiki-bootstrap.py.

  • GitHub Pages: a browsable site rendered from the bundle. Not built yet, treat it as a

goal and keep the in-repo bundle as the source of truth.

Carry the answers into the scaffold command (the title and sections, plus --no-hooks if the user opts out of the hooks for a public-only wiki) and into the populate step. The audience answer is also the visibility decision the "Before finishing" section asks you to make deliberately, you are making it here, up front, where it can steer the rest of the setup.

What gets created

scripts/scaffold.py writes a project that passes its own validator by construction:

<target>/
SPEC.md the OKF format contract
README.md how to use and validate the bundle
scripts/validate.py the validator
.claude/ optional Claude Code adapter: session-orientation hooks
settings.json registers the hooks (Claude Code approves them once)
hooks/okf-anchor.py SessionStart: load the index into context
hooks/okf-orient.py PreToolUse: gate the first action on orientation
bundle/ the OKF bundle (the validated tree)
index.md carries okf_version: "0.3" by default; "0.4" with --trust-signals
<section>/
index.md
example-concept.md a starter concept with full frontmatter

Docs and tooling sit at the project root; only bundle/ is validated. Keep them separate, the validator treats every non-reserved .md inside the bundle as a concept that needs frontmatter, so a stray SPEC.md inside bundle/ would fail. The .claude/ adapter sits outside bundle/, so it never trips the concept checks.

How to run it

Use an explicit target outside the installed skill directory. On Windows, use python instead of python3 (stock Windows has no python3). The --title and --sections come from the onboarding answers above, and --no-hooks only if the user opted out. The scaffold validates automatically.

In Claude Code, ${CLAUDE_SKILL_DIR} expands to this skill's directory:

bash
python3 "${CLAUDE_SKILL_DIR}/scripts/scaffold.py" ./my-knowledge-base \
--title "Team knowledge base" \
--sections concepts,services,decisions

In other clients, take the absolute SKILL.md location from the skill catalog. Stay in the project directory and run the installed script by its absolute path:

bash
python3 /absolute/path/to/okf-wiki/scripts/scaffold.py ./my-knowledge-base \
--title "Team knowledge base" \
--sections concepts,services,decisions

Default section is concepts. Use --force to write into a non-empty directory, --no-validate to skip the validation run, and --date YYYY-MM-DD to set the sample frontmatter date. The session hooks are written by default; --no-hooks skips them and --hooks-os posix|windows overrides the auto-detected launch command (see below).

Validate any time, from the scaffolded project root (use python on Windows):

bash
python3 scripts/validate.py --bundle bundle # must exit 0

Populate the bundle: author concepts from existing material

Scaffolding leaves an empty tree with one placeholder concept. The usual next request, "here are my docs / plans / notes / repo, build the wiki", has no importer script, and can't have one: deciding what counts as a single concept, writing its one-line description, choosing its type, and pointing source at real provenance is judgment work, not a mechanical transform. Author the concepts directly in this loop:

  1. Gather the source. Read what the user pointed you at, a file, a folder, a repo, or a

URL (fetch a URL first). Skim the whole thing before writing anything, so you can see the natural concept boundaries.

  1. Decide concept boundaries. One file is one concept: one thing a reader would look up on

its own (a service, a decision, a path, a person, an event). Split a doc that covers five things into five concepts; merge fragments that only mean something together into one. A heading is a hint, not a rule, do not blindly map one ## to one file.

  1. Draft each concept at bundle/<section>/<slug>.md with the full frontmatter. Read the

bundle-root index.md before writing so the verification key matches its declared format: use verified for okf_version 0.1 through 0.3; use verified_on for okf_version 0.4. Emit that exact key with type, title, description, source, timestamp, tags:

  • type from the vocab. Infrastructure: Machine, Network, Service, Session, Project,

Repo, Credential, Path, Process. Domain-neutral: Concept, Decision, Event, Person, Org, Source. Plus Reference (the catch-all). The set is closed; an unlisted type fails.

  • description is one line. source, quote every element, points at where the fact

actually came from (the origin file path, URL, command, or event), not at this skill.

  • Set timestamp to today. verified/verified_on is the date the fact was last confirmed

true, set it by how you came to know it, not reflexively to today:

  • You re-checked it against reality now, or the user is the authority for it (a decision,

preference, or intent they state in this session): today.

  • The user is recalling external or system state (a spec, a path, a config): their memory is a

source claim, not a re-check, so date it to when that state was last checked or to the recollection's own date, not today just because it came up now.

  • It was copied from a dated source without re-checking: the date it was last known true (the

source's own date), not today.

  • It came from an undated record you cannot re-confirm (a memory file, an old conversation):

the oldest date you can evidence, file timestamp, introducing commit, or the date it was said, never today. If you cannot evidence any date at all, it is not yet a verifiable fact; find a datable source or leave the concept out. When the date is uncertain, round it down: an older verified correctly reads as "may be stale, re-check," while today reads as "just confirmed." The frontmatter date is the contract; a caveat in the body does not undo an overstated value, because the validator and tools read only the date.

  • Strip secret values as you go: a credential concept names the key and its retrieval path,

never the value. The validator fails the build on a leaked secret.

  1. Place and link. Put each concept in the right section (create sections as needed), add a

bullet for it to that section's index.md, and cross-link related concepts with relative [text](path.md) links, not [[slug]] wikilinks. [[slug]] is the auto-memory idiom; the OKF validator rejects it and never resolves it, so a typo'd or deleted reference passes silently. When you create a new section, also link it from the bundle-root index.md, that root is the navigation map the session anchor loads, so a section missing from it is invisible to orientation even though validation still passes.

  1. Clear the placeholder. If you scaffolded fresh, delete the starter example-concept.md (and

its bullet in the section index.md) once real concepts exist, otherwise the sample ships in the finished wiki and still passes validation.

  1. Validate in a loop. Run python3 scripts/validate.py --bundle bundle, fix what it

reports, repeat until it exits 0. Unquoted source elements and missing frontmatter keys are the common failures. Author in batches and validate between them rather than writing fifty files and debugging the lot.

When the source is already OKF

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
414
Repository forks
67
7-day trend score
30

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jamditis/claude-skills-journalism/okf-wiki/badge)](https://verified-skill.com/skills/jamditis/claude-skills-journalism/okf-wiki)

Something wrong with this skill or its page? Tell us.