/flow:okffrom flow
Creates, edits, validates, and structures Open Knowledge Format (OKF v0.2) bundle files under .agents/bundles/, including YAML frontmatter, provenance footnotes, and catalog trees.
Ships in flow. 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.
Author, validate, tag, and structure Open Knowledge Format (OKF v0.2) knowledge bundles (.agents/bundles/) compatible with both local agent workflows and the Google Cloud Knowledge Catalog (okf-bundle aspect).
okf_version: "0.2"
default_scaffold:
- bundles/index.md
- bundles/log.md
- bundles/product/index.md
- bundles/product/product.md
- bundles/product/product-guidelines.md
- bundles/product/tech-stack.md
- bundles/knowledge/index.md
- bundles/knowledge/workflow.md
provenance_contract:
required_for: [architecture, data-model, domain, pattern, standard, testing, gotcha, research]
sources_schema:
- id: string
resource: string
title: string
inline_citations: markdown_footnotes_matching_source_id
trust_and_generation:
generated: { by: "<producer>/<version>", at: "YYYY-MM-DDTHH:MM:SSZ" }
verified:
- by: "<actor>"
at: "YYYY-MM-DDTHH:MM:SSZ"
commit: "<git_sha_optional>"
truth_block:
markers: ["<!-- truth: start -->", "<!-- truth: end -->"]
max_lines: 40
archive:
resident_spec_directories: forbidden
effect: knowledge_synthesis_log_prepend_and_completed_spec_removal
.agents/bundles/).agents/bundles/
├── index.md # Root bundle manifest (okf_version: "0.2" in frontmatter or header)
├── log.md # Lifecycle audit log (newest ISO date first; prepend new entries; no frontmatter)
├── product/ # Product vision, engineering tenets, and tech stack
│ ├── index.md
│ ├── product.md
│ ├── product-guidelines.md
│ └── tech-stack.md
├── knowledge/ # Hierarchical OKF v0.2 knowledge base
│ ├── index.md
│ ├── workflow.md # Canonical build, lint, typecheck, test, and release checks
│ ├── architecture/<area>.md # Subsystem boundaries, dataflow, concurrency, IPC/RPC contracts
│ ├── patterns/<topic>.md # Language/framework idioms, class layout, serialization conventions
│ ├── domains/<domain>.md # Domain vocabulary, invariants, adapters, and business rules
│ ├── testing/<topic>.md # Test cases, fixture patterns, and test boundary rules
│ ├── gotchas/<area>.md # Non-obvious footguns, runtime traps, platform quirks
│ └── decisions/adr-NNN-<slug>.md # Architectural Decision Records (context, decision, rejected alternatives)
├── research/ # Project-wide promoted primary-source research notes
│ ├── index.md
│ └── <topic>_<YYYYMMDD>.md
└── specs/ # Active Flow Specifications & Chaptered Roadmaps
├── index.md # Frontmatter-free directory catalog
└── <flow_id>/
├── spec.md # Root Full-Plan Roadmap OR Single-Chapter Spec (type: Spec)
├── learnings.md # Implementation discoveries awaiting promotion to knowledge/
├── research/<topic>.md # Spec-scoped primary-source research (type: Research)
├── tasks/<id>-<slug>.md # Single-chapter task worksheets (1..N tasks; type: Task)
└── chapters/ # Multi-chapter decomposition (2..N chapters, zero upper cap)
├── index.md # Frontmatter-free chapter catalog
└── ch01-<slug>/
├── spec.md # Chapter specification (type: Spec)
└── tasks/<id>-<slug>.md # Chapter task worksheets (1..N tasks; type: Task)
OKF v0.2 + Knowledge Catalog)Every non-reserved .md file (index.md and log.md are reserved) begins with YAML frontmatter:
---
type: Pattern # Required: non-empty concept type (Pattern, Architecture, Domain, Guide, Decision, Research, Spec, Task, Attested Computation, etc.)
title: Centralized JSON Serialization
description: Route all JSON encoding and decoding through msgspec serializer helpers.
status: stable # Document lifecycle only: draft | stable | deprecated (never workflow state)
tags: [serialization, msgspec, json]
generated:
by: flow/<version>
at: 2026-11-01T00:00:00Z
verified:
- by: agent:flow-learn
at: 2026-11-01T00:00:00Z
commit: 164b07f
sources:
- id: serializer-mod
resource: src/core/serialization.py::encode_json
title: Canonical msgspec JSON serializer module
---
<!-- truth: start --> Block & Footnote CitationsPlace a bounded (<= 40 lines) machine-checkable invariant block at the top of each knowledge chapter or project skill, and anchor body claims to sources[].id via standard Markdown footnotes ([^serializer-mod]):
<!-- truth: start -->
- Route all JSON encoding/decoding through `encode_json` and `decode_json` in `src/core/serialization.py`[^serializer-mod].
- Never call `json.dumps` or `json.loads` directly in adapter or controller modules.
<!-- truth: end -->
[^serializer-mod]: `src/core/serialization.py::encode_json` - Canonical msgspec JSON serializer module.
.agents/bundles/ or catalog.yaml + bundle/):
index.md declares okf_version: "0.2" and bundle: <repo-slug>. External catalog exports with catalog.yaml + bundle/{agents,assets,documents,_links.yaml} may use catalog.yaml for scope instead of bundle:. Record ISO-dated lifecycle events (setup, synthesize, verify, archive) in log.md.product/, knowledge/{architecture,patterns,domains,testing,gotchas,decisions}/, research/, or specs/<flow_id>/) with YAML frontmatter (type, title, description, status, tags, generated, verified, sources).<= 40-line <!-- truth: start --> block at the top of the body and cite every sources[].id entry via a matching [^id] footnote.index.md files resolve on disk, reserved files (index.md, log.md) omit concept-only keys (type, status, sources), and completed specs are captured in knowledge/** upon /flow:archive.draft, planned, active, completed on Spec; pending, in_progress, completed, blocked, deferred on Task) lives strictly in state:. Document maturity (draft, stable, deprecated) lives strictly in status:. Never mix them.bundles/index.md carries okf_version: "0.2" and bundle: <repo-slug> (unless catalog.yaml supplies scope), whereas every subdirectory index.md (product/index.md, knowledge/index.md, specs/index.md, specs/<flow_id>/chapters/index.md) and log.md carry zero YAML frontmatter. Never place standalone --- horizontal rules inside .agents/bundles/**/*.md bodies so strict OKF YAML frontmatter splitters parse cleanly.catalog_publish: false in frontmatter, add globs to catalog.yaml (catalog_exclude: / exclude:), or place a .kc-no-export marker file to omit private files/subtrees from catalog ingestion; keep non-excluded overviews at or below 120,832 HTML-safe JSON-escaped bytes (<, >, & expanded) when knowledge_catalog.enabled is true.specs/<flow_id>/spec.md, chapters/index.md, and chapters/<ch_id>/spec.md updated in place in present tense as chapters finish or change. Record chronological history in log.md and Git commits.description: or exceeds ~200 lines, split it into focused nested chapters and link them from the parent index.md.Confirm /flow:validate passes on .agents/bundles/, every non-reserved .md file has type, title, and description, and every sources[].id resolves to a [^id]: footnote in the document body.
flow catalog lint --json
Produce valid OKF v0.2 Markdown documents, index.md catalogs, and log.md audit entries.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub cofin/flow --plugin flow11 skills in this plugin
/debloatUse when reviewing or simplifying code, tests, prose, or repository checks through behavior-preserving cuts while keeping typing, performance, and conventions intact. Don't use for adding new features, planning specs (use flow-planning), or running full workflow closeouts (use flow-completion)./flowUse when a repository has .agents, or when routing Flow lifecycle tasks (setup, prd, spec, plan, revise, research, implement, status, dispatch, delegate, coordinate, learn, refresh, sync, docs, pr, review, simplify, finish, archive, cleanup, revert, validate, studio). Don't use for direct coding without specs or standalone plugin authoring (use multi-harness-plugins)./flow-completionUse when running independent code, spec, or subtraction-only simplify reviews, finishing and syncing completed specs, archiving into knowledge bundles, cleaning up, reverting, or validating Flow bundles. Don't use for planning new specs (use flow-planning) or implementing open tasks (use flow-execution)./flow-dispatchUse when choosing between inline work, subagents, packaged workflows, or bounded worker swarms, routing models and task briefs, dispatching work across CLI harnesses, or coordinating separate workspace conversations. Don't use for planning specs (use flow-planning), writing code (use flow-execution), or reviews (use flow-completion)./flow-docsUse when writing or auditing technical documentation, READMEs, user guides, design docs, agent instructions, pull requests, commit messages, or changelogs. Don't use for planning implementation specs (use flow-planning) or syncing task state against Git (use flow-learn)./flow-executionUse when implementing an approved Flow chapter's task worksheets or reporting live spec and branch status. Don't use for drafting or revising specs (use flow-planning), initializing bundles (use flow-setup), or final review and closeout (use flow-completion).Other plugins' skills for the same job