The okb commands you will use most, in the order you usually need them. For every command and argument, see the full reference.
Getting started#
Start a new ontology:
okb init wine --name "Wine and Food"
See where you are and what to do next:
okb status
Move on to the next step:
okb step next
Learn what a term or rule means:
okb explain class
Check your ontology against the rules:
okb validate
Planning#
Record what the ontology is for:
okb scope --domain "..." --purpose "..."
Add a competency question:
okb cq add "Which wines go with fish?"
Record that nothing existing fits:
okb reuse none --why "..."
Collect the words of your domain:
okb term add wine grape winery
Modeling#
Add a class:
okb class add RedWine --parent Wine
See the class hierarchy:
okb tree
Add a plain-value slot:
okb property add body --on Wine --type Enumerated --values light,full
Add a link between classes:
okb relationship add maker --from Wine --to Winery
Tighten a slot:
okb slot set maker --card single --min 1
See everything about one class, slot or instance:
okb show Wine
Add an instance:
okb instance add "Chateau Morgon" --of Beaujolais body=light
Connect two instances:
okb link Radio preferredOver SegmentedControl
Reviewing and sharing#
Get questions only a person can judge:
okb review
Record a design decision:
okb decision add --title "..." --decision "..." --why "..."
Draw the ontology:
okb diagram --out diagram.md
Export for a graph database:
okb export --format cypher --out wine.cypher
Working from documents#
Register a document to extract from:
okb source add docs/button.md
Record a quote:
okb quote add button "verbatim text" --cites Button
Record a rule a document states:
okb rule add --statement "..." --modality SHOULD --cites quote.1
Record an independent check:
okb verify rule.1 --status SUPPORTED
Skills#
Install the Claude skills that ship with okb:
okb skills install
Housekeeping#
Rename something everywhere:
okb rename Vino Wine
Delete something:
okb remove Vino