Okf harness bootstrap
Skill pumblus/okf-harness/packages/agent-pack/templates/okf-harness-bootstrap
Agent-first local harness for OKF-compatible LLM Wikis.From the repository description
npx -y skills add pumblus/okf-harness --skill okf-harness-bootstrapAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- runs commandsInstructs the agent to run 2 commands, including `okfh source add <source> --workspace <workspace> --json` and 1 more.
SKILL.md
3.3 KB, 705 tokens by cl100k_base, as published. Nobody here has run it
OKF Harness Bootstrap
Bootstrap routes OKF Harness setup before a workspace-local okf-harness skill exists.
Required Behavior
- Classify the request as setup, discovery, repair, or an explicit combination of those.
- If the current directory is already an OKF Harness workspace, do not create a nested workspace; repair {{agentLabel}} support and hand off to a fresh workspace session.
- Load only the reference needed for the current route.
- If
okfhis missing, stop and tell the user to runnpx @okf-harness/setup@latest; do not create workspaces or edit files until runtime setup is fixed. - Run harness operations through local-shell
okfh --jsoncommands and read their JSON before deciding the next step. - Before persistent setup writes, state the resolved workspace name, path, and agent target unless the user gave all three explicitly.
- Finish from the CLI
data.refreshobject when present; do not invent refresh commands. - In a parent-folder session after selection or setup, only continue with commands that use the resolved
--workspace <path>. - Treat setup-plus-source requests as a transitional path: resolve or create the workspace, register sources, prepare ingest plans, then stop with a fresh-session handoff.
Hard Rules
- Do not use this skill for workspace-local check, ingest, answer, or graph work; those belong to the workspace-local
okf-harnessskill. - Do not create a workspace skeleton by hand; use
okfh init. - Do not initialize a non-empty non-workspace directory in place.
- Do not install or repair extra agent clients unless the user explicitly asks for them.
- Never edit
raw/sources/by hand; source registration must useokfh source add. - Never synthesize wiki content, run
okfh check, prepare evidence, or answer from bootstrap.
Transitional Setup-Plus-Source
- Route references cover workspace resolution or repair; setup-plus-source then additionally uses the registration and ingest-planning commands below before final handoff.
- Classify requested sources as local paths or URLs before setup. Validate every required local source path with metadata/readability checks before
okfh init; missing, non-file, or unreadable local inputs stop setup. Report all invalid local inputs before creating or selecting the workspace. - URL sources are accepted as source pointers only. Do not fetch, scrape, summarize, or imply webpage content was captured in bootstrap.
- After setup or workspace selection, register each accepted source and prepare an ingest plan from the returned
data.source.idwith deterministic CLI JSON:
okfh source add <source> --workspace <workspace> --json
okfh ingest plan <source-id> --workspace <workspace> --json
- If local source validation, source registration, or ingest planning fails, report that step as the first-loop blocker with one concrete next action, then stop before wiki edits.
- Completion criterion: every accepted source has a successful registration result, a successful ingest plan, and a fresh-session handoff. Do not read raw source bodies or write
wiki/content. - Hand off wiki synthesis to
{{workspaceInvocation}}in a fresh workspace-local {{sessionName}}.
Routes
What ships with it: 3 files
5.1 KB alongside SKILL.md
references/
- discovery.md1.7 KB
- repair.md1.3 KB
- setup.md2.1 KB