/myco:myco-okffrom myco
Synthesizes or maintains an OKF-conformant project wiki as git-committed markdown files with YAML frontmatter. Generates index files and uses Myco vault intelligence rather than raw source dumps.
Ships in myco. 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; scripts run unread.
Synthesize or maintain a project wiki that any OKF-conformant reader can
render: plain markdown files with YAML frontmatter, committed to the repo,
grouped into directories with generated index.md files. No database, no
daemon feature, no bundle machinery — the wiki is the artifact. This skill
is the entire mechanism.
Full conformance rules: references/okf-spec-floor.md. Read it before
writing your first page — the frontmatter shape, key order, slug charset,
link rules, and index format below all cite it.
The single biggest failure mode for a synthesis agent handed "document this repo" is producing empty or generic content — because it either dumps raw file contents into pages verbatim, or mechanically walks the file tree top-to-bottom without ever asking what's worth documenting. Both produce a wiki nobody would read.
The fix: start from Myco's pre-computed intelligence, not from the source tree. The vault already holds the reasoning, decisions, and gotchas that took real sessions to work out — that's higher-signal than anything you can re-derive by re-reading source cold, and it's already written in prose. Use it as your outline; use the source tree to verify and fill gaps, not as your starting point.
Wiki pages describe the CURRENT system, in present tense, for readers who use or build on it. The vault is your source material, not your genre — the vault speaks in history (decisions, migrations, dead ends); the wiki must not. A page must never contain:
as of <date>, X was replaced by Y. That history lives in the Myco
vault (spores, sessions, plans); the wiki is not its mirror.Write every page as if it were written fresh today by someone describing what the subsystem IS. A reader should not be able to reconstruct the project's internal timeline from the wiki — only how the system works now.
Pinned convention:
.md files mostly carry valid frontmatter per the floor doc, an
index.md in the reserved no-frontmatter form, or a name like okf/),
adopt it — write and update pages there. Don't create a second wiki
root next to an existing one.okf/ at the repo root (the
default a Myco-generated wiki has always used).okf/ AND a
wiki/ that both look conformant), stop and ask the user which one is
the real wiki root. Don't guess and don't merge them silently.To check a candidate directory: sample a few of its .md files (skip
index.md/log.md) and confirm they open with --- frontmatter carrying a
non-empty type. If most do, it's the wiki.
While establishing the root, if you find non-content state files left
behind by prior generator tooling (e.g. a .myco-okf-maintain.json
marker, or any similar machine-state sidecar), flag them to the user as
non-content files that are safe to delete. Do not silently keep them, and
do not delete them without saying so — the user decides.
Before touching the source tree, gather what Myco already knows, in this order:
myco_cortex({"op":"canopy_map","project":"<project id>"}) when available,
then check the checkout. Use the tree to decide what deserves a wiki page, and
spend your reading budget on the parts the wiki will actually cover.myco_cortex({"op":"instructions"}). The
project's own guidance and its project id. There is no pre-synthesized
project narrative to draw on, so the "decisions" and "architecture" pages
are assembled from spores and sessions.myco_search({"query": "<component or topic>"})
for each area the code map or repository tree surfaced as wiki-worthy. Follow
each result's retrieve hint to pull the full record (myco_spores,
myco_sessions, myco_plans, myco_skills).myco_spores({"op":"list","project":"<project id>"}) for durable
gotchas and decisions the search pass didn't surface by keyword.myco_skills({"op":"list"}). An existing skill is often
itself the best source for a "howto" wiki page — it's already a
procedure, just not in OKF form.Write down, before you open a single source file, the list of pages you intend to produce or update and why each one earns a page. If you can't justify a page from what step 2 surfaced, it's probably not worth writing yet.
Now open source files — but only the ones step 2 pointed at, and only to verify or fill a specific gap (confirm a function signature, check whether a described behavior is still current, find the file path a spore referenced but didn't quote). This is the same navigation discipline you'd use fixing a bug: follow a lead to a file, read what's relevant, move on. It is not a second pass over the whole tree.
If step 2 came up thin for an area you know is important (a first run against a project with little vault history yet), it's fine to explore more broadly there — but keep it scoped to that area, and prefer writing a shorter, honest page over padding with restated code.
Each page: YAML frontmatter satisfying the floor (type, title,
description, timestamp all non-empty; canonical key order; see the
reference doc), then a body written in your own words. Cite what grounds a
claim (a file path, a spore, a decision) rather than quoting large blocks of
source or tool output verbatim — a page that's 90% pasted JSON or a raw file
dump is the failure mode this skill exists to avoid.
When a citation names a spore or session, use the short hash-prefix form
(e.g. spore ff43e7a6), never the raw UUID a tool returns. A raw UUID is
exactly what the pre-commit scanner flags as a raw session identifier —
cite short and human-readable up front instead of tripping the scan and
redacting afterwards.
type is a free string — pick values that describe the page's role and
stay consistent within one wiki. Reasonable starting set: overview,
component, decision, howto, gotcha, reference. Not enforced, not
exhaustive — use what fits the project.
Updating an existing page: read it first, preserve what's still accurate,
correct what's drifted, and don't rewrite frontmatter you don't need to
change (in particular, don't touch timestamp unless the page's content is
actually changing).
Links between pages are relative markdown links, resolved against the
linking page's directory ([Ingest Path](../components/ingest.md)).
Absolute /-rooted links are not conformant here — see the reference doc
for why.
index.md for every directory you touchedFor each directory with at least one content page (new or pre-existing),
regenerate its index.md following the exact algorithm in
references/okf-spec-floor.md — grouped by type, sorted headings, bullets
sorted by title, a Subdirectories section when applicable, no frontmatter.
Regenerate deterministically from the current page set; don't hand-edit an
index incrementally, or it will drift from what the pages actually say.
This applies equally to an adopted wiki: regenerate its indexes to THIS skill's algorithm and wording even where the existing indexes were built differently — bring them into conformance rather than preserving legacy phrasing. The index format is deterministic precisely so maintenance can change hands without forking the style.
log.md (optional; reserved, no frontmatter): a reverse-chronological
maintenance log at the wiki root. If the wiki keeps one, add one dated line
per skill run at the top summarizing what changed — e.g.
- <YYYY-MM-DD>: added 3 component pages, refreshed the capture overview —
matching the style of the existing entries if there are any. It records
that the wiki changed and what, never why the underlying system changed
(that's the content doctrine's line to hold).
Run the bundled scanner against the whole wiki root — not just the pages you touched — before telling the user their wiki is ready to commit. Scanning the full tree is a strict superset of scanning just the diff, and it's the only way to catch a finding in a page you didn't edit this run:
node scripts/scan-content.mjs <wiki-root>
Run it from this skill's own directory — a project checkout of this repo has
it at packages/myco/skills/myco-okf/scripts/scan-content.mjs; a linked
install has it at .agents/skills/myco-okf/scripts/scan-content.mjs or, for
a global skill, ~/.myco/skills/myco-okf/scripts/scan-content.mjs. Locate
whichever of these exists on this host and invoke it with a path (absolute
or relative) to the wiki root as the sole argument.
It flags four finding classes: secrets (API keys, tokens, private-key
headers), absolute local filesystem paths, raw session/machine identifiers
(UUIDs, session_id: / prompt_batch_id: / machine_id: keys), and
resource: repo://… frontmatter references to sensitive-looking repo files
(.env and .env.*, .npmrc/.pypirc/.netrc/.dockercfg, SSH private
keys like id_rsa/*_ed25519, and .key/.pem/.p12/.pfx files) —
defense-in-depth against a spore or session excerpt that happened to carry
one of these, or a page whose resource points at a credential file. Exit
code 0 means clean. Exit code 1 means findings were printed to stderr, each
with a masked excerpt and a stable hash — resolve each one (redact the
offending text) before proceeding. Exit code 2 means the invocation itself
was wrong (missing argument, or the target isn't a directory) — fix the
command and re-run; it says nothing about the content. Do not silently
ignore a finding; if you believe it's a false positive, say so explicitly
to the user rather than dropping it.
If node/Bash isn't available on this host, fall back to manually
checking each new or changed page against this checklist before advising a
commit:
AKIA + 16 alnum chars), a GitHub
token (gh[pousr]_...), a Slack token (xox[baprs]-...), a Google API key
(AIza...), a -----BEGIN ... PRIVATE KEY----- block, or a bare
bearer <token>./Users/..., /home/..., /root/..., or a
Windows C:\Users\... form).session_id:/prompt_batch_id:/machine_id: value, and no bare
UUID that looks like one of those identifiers.resource: repo://… frontmatter value pointing at a sensitive repo
file: .env or .env.*, .npmrc, .pypirc, .netrc, .dockercfg, an
SSH private key (id_rsa, id_dsa, id_ecdsa, id_ed25519, or any
*_rsa/*_dsa/*_ecdsa/*_ed25519 name), or a .key/.pem/.p12/
.pfx file.Summarize what you wrote or changed (pages added/updated, indexes regenerated) and the scan result. Do not commit automatically — leave the diff for the user's normal review-and-commit flow; this skill produces files on disk, not a git action.
Walk this list against your actual output before reporting done:
okf/, or asked the user when candidates were ambiguous — never
silently created a second root..md you touched has parseable frontmatter with
non-empty type, title, description, timestamp, in canonical
key order.id frontmatter key anywhere — identity is the file path./-rooted links.index.md/log.md (where present) carry no frontmatter.index.md regenerated for every touched directory, grouped by type,
sorted per the reference doc's algorithm — adopted wikis brought into
conformance, not left in legacy phrasing.log.md, this run added its one dated line;
orphaned generator-state files were flagged to the user, not silently
kept or deleted.references/okf-spec-floor.md — the OKF 0.1 conformance floor this
skill targets: frontmatter shape, key order, slug charset, link rules,
reserved names, index generation algorithm, worked examples.scripts/scan-content.mjs — standalone, zero-dependency pre-commit
content scanner (step 6).What SKILL.md sets; muted values are Claude Code's defaults
"create a wiki", "build a project wiki", "document this codebase as a wiki", "keep the wiki in sync with the code", or any request naming OKF, the Open Knowledge Format, or a knowledge catalog.
Three short reads, in order
project-wiki, knowledge-base, documentation-generation, okf, myco
npx claudepluginhub goondocks-co/myco --plugin myco9 skills in this plugin
/mycoMyco is this project's memory — the sessions that happened, the durable observations (spores) drawn from them, and the plans. It holds why the code is the way it is, which the code itself cannot show. Use it before a design decision, when debugging something non-obvious, when a structure looks arbitrary, when picking up work someone else started, and after learning something worth keeping./myco-handoffCarry a session's working intention to another session or another agent. PREPARE compresses why we are here, what we are doing, the gotchas, the dead ends and the decisions already closed into a digest of at most 1500 tokens, saved on a Myco plan. RECEIVE takes that plan id, rehydrates the context, marks the referenced plans in progress, loads the suggested skills and resumes the work./myco-outcome-tasksAuthor and debug the tasks Myco's own agent runs. A task is one prompt with declared expected evidence, dispatched to a runner: no phases, no turn budget, no orchestrator. It declares the gate that admits it, the tools its run may call, its schedule if it has one, and how the server decides afterwards that it actually did the work. Getting those four declarations consistent is the whole job./myco-rulesKeep AGENTS.md minimal, durable and canonical across every agent that reads it. Adds, trims and audits project rules without letting the rules file decay into a dump of whatever was true last week./myco-server-debuggingWork out why a Myco deployment refused something, lost something, or stopped doing something. The server answers a caller's own fault as a terminal refusal carrying a named code, and its own faults as a retryable failure — telling those two apart is the first move in every investigation, because only one of them is worth retrying and only one of them is your bug./myco-server-provisioningProvision, update, roll back and destroy the Cloudflare Deployment — the Worker front door — with `myco server <verb> --target cloudflare`. One verb, from artifacts the binary carries: no source checkout on the machine that deploys, and no container runtime anywhere.Other plugins' skills for the same job