Imported from spencerbeggs/okfit (
plugins/claude-code/skills/okf-finalize/SKILL.md). Install upstream withnpx skills add spencerbeggs/okfit --skill okf-finalize. Copyright stays with the author.
okf-finalize
The sweep, in order
Run all six steps sequentially in one context. There is no context: fork
here (M-12) -- design-docs' finalize workflow isolates its bundle-editing,
context-editing, and readme-editing phases across three separate agents
(FIELDSTUDY:448-457), and this plugin consciously trades that isolation
for the simplicity of one agent running one skill straight through.
- List the concepts the branch's diff touches:
git diffagainst the base branch, restricted to bundle paths. - Reconcile each touched concept against
okf-authoring's nineteen rules. - Run
validate_bundle— orokfit validate --format jsonwhen the MCP tools are unavailable — and fix what it reports. When the report is worth quoting, cite itsengine_versionandokf_version; a differentokfit_versionbetween the tool and the CLI is each front end's own version, not a different engine. - Run
okfit sync(orokfit sync --dry-runfirst to inspect) to regenerategenerated.at,generated.body_sha256,index.md, andlog.md. A concept whose recorded digest still matches its body is reportedunchangedand keeps its existingat, so a squash-merged branch needs no restamp pass. All three are derived (okf-spec's reserved-files section plus theprofiles-generated-at-is-author-dateDecision) -- never hand-edit any of them. Report whatsyncwrote, left unchanged, or skipped (and why) to whoever reads the sweep's output. - Check CLAUDE.md pointer coverage with
okf-context's checklist, in both directions. - Tell the user what changed. Separately, list any concept step 3's
okfit validatereported asrequire-verified-unmetas "awaiting human verification" and stop there — this skill never runsokfit verify.
Ends by reporting, never committing
This skill never commits, never pushes, and never creates a changeset --
that stays a human's call (Spencer's standing rule), restated here because
this is the one skill in the group whose allowed-tools includes a
Bash(...) grant at all, and therefore the one place the commit boundary
could be crossed by accident. The grants above are scoped to git diff:*
and the two okfit subcommands this sweep actually runs -- validate and
context -- across every invocation form okfit is run through in this
repo (direct, pnpm exec, npx, and node_modules/.bin/okfit). There is
no bare Bash(okfit:*) grant: okfit verify writes a human's attestation
(step 6 above defers to a human for that), and a permission pattern that
cannot match it is a second line of defence alongside the prose, not just
a subcommand list git commit happens to be excluded from -- running this
skill to completion means describing what changed and stopping there.