Skip to content

Agents

Beyond the MCP server, LOKF bundles a set of agent skills — self-contained instructions that teach a coding agent (Claude Code and compatible harnesses) how to work with LOKF bundles. They ship inside the lokf package, so uv pip install lokf puts them one command away.

Terminal window
lokf skills list # name + one-line summary for each bundled skill
lokf skills path # print the directory the skills live in
lokf skills install # copy them into .claude/skills (or --dest DIR)

lokf skills install copies the skill folders into your project’s .claude/skills/ (override the target with --dest), where a coding agent picks them up automatically.

LOKF ships five skills. Each is a SKILL.md of instructions that drive the real lokf CLI — one for the whole workflow, four for the individual phases:

Skill What it does
build-knowledge-base Stand up a bundle end-to-end — create the index, author concepts, enrich relations, validate, and query. The starting point for a new knowledge base.
author-concept Scaffold a new concept with the right type, frontmatter, and body, then inspect its RDF. For adding a metric, dataset, table, glossary term, service, or playbook.
enrich-relations Turn plain markdown links into typed RDF relations with lokf propose, review the suggestions, then apply the good ones.
query-knowledge-base Answer a question by writing SPARQL and running lokf query — look up concepts, counts, or provenance chains instead of reading files by hand.
publish-graph Serve a bundle with lokf serve for a SPARQL endpoint and live graph explorer, and drive /sparql programmatically.

Run lokf skills list for the exact names and summaries as shipped in your installed version.

The skills, the lokf CLI, and the lokf-mcp server all come from the same package. Install it however you manage Python:

Terminal window
uv pip install lokf

That gives you:

  • the lokf CLI (convert, query, serve, propose, vocab, skills, mcp),
  • the lokf-mcp stdio server for MCP clients, and
  • the bundled skills, reachable via lokf skills.

The core install is lean — typer, rdflib, pyoxigraph, and mcp. Only regenerating the LinkML-derived artifacts needs the heavier linkml dependency, which lives behind the lokf[build] extra (uv pip install 'lokf[build]'). See Getting started for the from-source setup.