/llm-wiki:authoring-conceptsfrom llm-wiki
Use when writing or rewriting a single OKF concept document, or when you need the OKF v0.1 format rules — frontmatter conventions, concept IDs, reserved files, body structure, cross-linking, citation format, and what NOT to invent. The shared authoring routine that ingest, query, and lint all call.
Ships in llm-wiki. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are writing one conformant OKF document. This skill is the authoring
workflow and body conventions; the format rules it conforms to are in
references/okf-spec.md — read that when the question is about the format
itself (concept IDs, reserved files, conformance §9, the frontmatter contract).
python3 <plugin_root>/scripts/okf_doc.py read <bundle_root> <concept_id>. If a doc exists, use it as the starting point — refine rather than rewrite.okf_bq.py describe, etc.) to get structured data.index.md files and the CLAUDE.md at the bundle root to understand the existing type vocabulary and cross-link targets.echo '<JSON>' | python3 <plugin_root>/scripts/okf_doc.py write <bundle_root> <concept_id>. Do NOT hand-write YAML frontmatter directly — the script fills timestamp, reorders keys, validates, and applies the augmentation guard.Required keys: type, title, description, timestamp (auto-filled — omit or set to empty).
Recommended: resource (URI of underlying asset), tags (YAML list).
---
type: Article # required; match your bundle's type vocabulary
resource: https://... # source URI when applicable
title: Short Display Name
description: One tight sentence used verbatim in index.md.
tags: [topic, subtopic]
timestamp: # leave blank; okf_doc.py fills UTC ISO-8601
---
Write in this order (skip sections that don't apply):
Prose introduction (1–3 paragraphs) — what this concept is, what it represents, how it is typically used. For data tables: describe the grain (one row per X), time range, and any sampling or obfuscation caveats.
# Schema (data-catalog docs) — a readable summary of fields. For nested RECORD fields, indent or table-format their sub-fields. Skip mode/type when obvious. Highlight repeated records explicitly. Format field names in backticks so the augmentation guard can track them.
# Common query patterns (data-catalog docs) — 1–3 short sql fenced blocks illustrating realistic usage.
# Examples (general docs) — concrete examples, code snippets, or illustrations.
# Citations — numbered references. Always include the resource URL (if any) as [1]. Only cite URLs you actually know.
# Citations
[1] [BigQuery REST API](https://bigquery.googleapis.com/v2/...)
[2] [Schema Reference](https://example.com/schema)
After step 3, look at the available concept IDs (from index.md) and add file-relative links where your prose naturally names another concept:
# From tables/events.md:
[users table](users.md)
[dataset](../datasets/my_dataset.md)
[DAU metric](../references/metrics/dau.md)
Rules:
/.# Schema and # Common query patterns are optional domain patterns for data-catalog docs, not defaults for every concept type.okf_doc.pyThe JSON payload for write:
{
"frontmatter": {
"type": "Article",
"title": "My Concept",
"description": "One sentence.",
"resource": "https://...",
"tags": ["topic"]
},
"body": "Prose here.\n\n# Citations\n\n[1] [Source](https://...)\n"
}
The script validates frontmatter, auto-fills timestamp, reorders keys, and applies the augmentation guard before writing. An {"error": "..."} response means the write was refused — read the reason and fix it.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mlarkin00/plugins --plugin llm-wiki9 skills in this plugin
/indexUse when the user invokes /llm-wiki:index or asks to regenerate the index.md files in an OKF bundle. Runs okf_index.py for deterministic bottom-up index generation./ingestUse when the user invokes /llm-wiki:ingest or asks to ingest, add, or re-enrich a source in an OKF bundle — a BigQuery dataset, a web page or crawl, or local files. Covers source detection, adapter routing, the supervised ingest loop, per-concept dispatch, and the adapter contract for new sources./initUse when the user invokes /llm-wiki:init or asks to create a new OKF knowledge bundle. Scaffolds the bundle directory with a root index.md, per-bundle CLAUDE.md, .gitignore, and optional raw/ directory, then installs discovery into the host repo's briefing files so the bundle is actually read.Other plugins' skills for the same job