Documentation
¶
Overview ¶
Package command implements the okf subcommands (lint, index, fmt, new, graph) and their shared plumbing: global flags, bundle discovery/loading, and the human/JSON renderers. Each command returns an exit code and an error.
Index ¶
- func Fmt(w io.Writer, args []string) (int, error)
- func Gaps(w io.Writer, args []string) (int, error)
- func Graph(w io.Writer, args []string) (int, error)
- func Index(w io.Writer, args []string) (int, error)
- func Lint(w io.Writer, args []string) (int, error)
- func New(w io.Writer, args []string) (int, error)
- func Skill(w io.Writer, args []string) (int, error)
- func SkillMarkdown() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fmt ¶
Fmt normalizes frontmatter key order, timestamps, citation numbering and link style. --check reports which files would change (non-zero exit if any); --write applies them.
func Gaps ¶
Gaps reports concepts semantically near the seed but not linked to it — the candidate cross-links / bridges to refine a topic. Detection is deterministic; composing the bridge is the agent's job. The algorithm lives in internal/gaps; this command only parses flags, merges config, and renders the result.
func New ¶
New scaffolds a conformant concept page (frontmatter + a Citations stub), preventing drift at creation.
func Skill ¶
Skill prints the bundled agent skill to stdout, so a project can install it, e.g. `okftool skill > .claude/skills/okftool/SKILL.md`.
func SkillMarkdown ¶
func SkillMarkdown() string
SkillMarkdown returns the bundled agent skill as a Claude Code SKILL.md.
Types ¶
This section is empty.