@inkeep/open-knowledge 0.6.0-beta.0 → 0.6.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,90 @@
1
+ ---
2
+ name: open-knowledge-discovery
3
+ description: "Read when the user asks what Open Knowledge is, wants to install it on a repository, wants to share an Open Knowledge project with collaborators, or asks how `ok init` / `ok install-skill` / OK Desktop set up a project. Do NOT load to perform Open Knowledge reads/writes — the runtime guidance for editing markdown inside an initialized OK project ships as a separate project-local skill at `.claude/skills/open-knowledge/` whenever `ok init` runs. If the user appears to be editing markdown inside a `.ok/` project and this is the only OK skill loaded, advise them to re-run `ok init` to install the project-local skill."
4
+ compatibility: "Any agent host — no MCP server required. Pure discovery + install guidance."
5
+ metadata:
6
+ version: "0.6.0-beta.2"
7
+ author: "Inkeep"
8
+ repository: "https://github.com/inkeep/open-knowledge"
9
+ ---
10
+ # Open Knowledge — what it is and how to install it
11
+
12
+ Open Knowledge (OK) is a markdown-CRDT collaboration platform. It turns a
13
+ directory of `.md` / `.mdx` files into a live, multi-writer knowledge base:
14
+ agents and humans edit the same documents in real time, every change is
15
+ attributed, and a browser preview renders edits as they land.
16
+
17
+ This skill is **discovery-only**. It explains what Open Knowledge is and how
18
+ to set it up. It carries **no runtime rules** for reading or editing markdown
19
+ — that guidance ships separately (see *Working inside a project* below).
20
+
21
+ ## Install Open Knowledge on a repository
22
+
23
+ Run `ok init` from the repository root:
24
+
25
+ ```bash
26
+ npx @inkeep/open-knowledge init
27
+ # or, after a global install:
28
+ npm install -g @inkeep/open-knowledge
29
+ ok init
30
+ ```
31
+
32
+ `ok init` is the one setup verb. It:
33
+
34
+ - scaffolds a `.ok/` directory (project config — `content.dir` defaults to `.`);
35
+ - wires the Open Knowledge MCP server into detected editors (Claude Code,
36
+ Cursor, Codex) — skip with `--no-mcp`;
37
+ - installs the **project-local runtime skill** at `.claude/skills/open-knowledge/`
38
+ and `.cursor/skills/open-knowledge/` so agents working in this repo get the
39
+ full read/write contract;
40
+ - ensures the project has a `.git/`.
41
+
42
+ Re-run `ok init` any time to refresh wiring and skills to the installed CLI
43
+ version.
44
+
45
+ ## Share an Open Knowledge project with collaborators
46
+
47
+ An OK project travels with its repository. To share one:
48
+
49
+ 1. Commit the `.ok/` directory and the project-local
50
+ `.claude/skills/open-knowledge/` (and `.cursor/skills/open-knowledge/`)
51
+ directories along with your `.md` content.
52
+ 2. Collaborators clone the repo and run `ok init` once — that registers the
53
+ MCP server on their machine and refreshes the project skill.
54
+ 3. Start the editor + preview with `ok start` (or open the project in OK
55
+ Desktop).
56
+
57
+ Collaboration is real-time once two writers have the project open against the
58
+ same content directory.
59
+
60
+ ## `ok install-skill` — Claude Chat & Cowork
61
+
62
+ `ok init`'s editor wiring does not reach Claude Chat or Cowork — those read a
63
+ separate Skills list inside the Claude Desktop App. Run `ok install-skill` to
64
+ build `openknowledge.skill` and open Claude Desktop so the user can upload it
65
+ (Customize → Skills → + → Create skill → Upload skill).
66
+
67
+ ## OK Desktop
68
+
69
+ OK Desktop is the standalone macOS app (`@inkeep/open-knowledge-desktop`). It
70
+ bundles its own CLI, opens a project as an editor + preview window, and keeps
71
+ the project's MCP wiring and skills current on every launch. Download DMGs
72
+ from the releases page.
73
+
74
+ ## Working inside a project — use the project-local skill, not this one
75
+
76
+ Do **not** use this skill to perform Open Knowledge reads or writes. The
77
+ runtime contract — STOP rules for native file tools on in-scope markdown, the
78
+ preview-attach handshake, grounding and linking rules, the MCP tool routing
79
+ table — lives in a **separate project-local skill** installed at
80
+ `.claude/skills/open-knowledge/SKILL.md` whenever `ok init` runs.
81
+
82
+ If the user is editing markdown inside a project that has a `.ok/` directory
83
+ and this discovery skill is the only Open Knowledge skill loaded, the
84
+ project-local skill is missing (the repo was never `ok init`'d, or the skill
85
+ directory was not committed). Advise the user to run `ok init` to install it.
86
+
87
+ ## Learn more
88
+
89
+ - Repository: <https://github.com/inkeep/open-knowledge>
90
+ - Run `ok --help` for the full command list.