openwriter 0.2.0 → 0.2.1

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.
package/README.md CHANGED
@@ -38,15 +38,17 @@ Already have markdown files? Open them directly — the agent can use `open_file
38
38
 
39
39
  ### Connect Your Agent
40
40
 
41
- **Claude Code:**
41
+ **Install the skill** (Claude Code, Cursor, Codex, and 20+ agents):
42
42
  ```bash
43
- claude mcp add -s user open-writer -- npx openwriter --no-open
43
+ npx skills add https://github.com/travsteward/openwriter --skill openwriter
44
+ ```
44
45
 
45
- # Optional: install the companion skill for better agent behavior
46
- npx openwriter install-skill
46
+ Then add the MCP server for the 24 editing tools:
47
+ ```bash
48
+ claude mcp add -s user open-writer -- npx openwriter --no-open
47
49
  ```
48
50
 
49
- The skill installs a `SKILL.md` to `~/.claude/skills/openwriter/` that teaches Claude Code how to use OpenWriter's 24 tools effectively — writing strategy, review etiquette, and troubleshooting.
51
+ The skill teaches your agent how to use OpenWriter's tools effectively — writing strategy, review etiquette, and troubleshooting. The MCP server provides the actual document editing capabilities.
50
52
 
51
53
  **Other MCP agents** (Cursor, OpenCode, etc.) — add to your MCP config:
52
54
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "openwriter",
3
- "version": "0.2.0",
4
- "description": "Local TipTap editor for human-agent collaboration via MCP",
3
+ "version": "0.2.1",
4
+ "description": "The open-source writing surface for AI agents. Markdown-native editor with pending change review — your agent writes, you accept or reject.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": "Travis Steward",
package/skill/SKILL.md CHANGED
@@ -1,39 +1,53 @@
1
1
  ---
2
2
  name: openwriter
3
3
  description: |
4
- OpenWriter — local TipTap editor for human-agent collaboration.
5
- Agent reads/edits documents via MCP tools (read_pad, write_to_pad, etc.).
6
- Changes appear as pending decorations the user accepts or rejects.
7
- Multi-document workspace with sidebar navigation.
4
+ OpenWriter — the writing surface for AI agents. A markdown-native rich text
5
+ editor where agents write via MCP tools and users accept or reject changes
6
+ in-browser. 24 tools for document editing, multi-doc workspaces, and
7
+ organization. Plain .md files on disk — no database, no lock-in.
8
8
 
9
9
  Use when user says: "open writer", "openwriter", "write in openwriter",
10
- "edit my document", "review my writing", "check the pad".
10
+ "edit my document", "review my writing", "check the pad", "write me a doc".
11
11
 
12
12
  Requires: OpenWriter MCP server configured. Browser UI at localhost:5050.
13
+ metadata:
14
+ author: travsteward
15
+ version: "0.2.0"
16
+ repository: https://github.com/travsteward/openwriter
17
+ license: MIT
13
18
  ---
14
19
 
15
- # OpenWriter — Public Companion Skill
20
+ # OpenWriter Skill
16
21
 
17
- You are a writing collaborator. The user has a document open in OpenWriter (http://localhost:5050). You read their document and make edits **exclusively via MCP tools**. Edits appear as pending decorations (colored highlights) that the user can accept or reject.
22
+ You are a writing collaborator. You read documents and make edits **exclusively via MCP tools**. Edits appear as pending decorations (colored highlights) in the user's browser that they accept or reject.
18
23
 
19
- **First action when activated:** Always share the browser URL:
20
- > OpenWriter is at **http://localhost:5050**
24
+ ## Setup Which Path?
21
25
 
22
- ## Quick Setup
26
+ Check whether the `open-writer` MCP tools are available (e.g. `read_pad`, `write_to_pad`). This determines setup state:
23
27
 
24
- OpenWriter must be configured as an MCP server before use. Two paths:
28
+ ### MCP tools ARE available (ready to use)
25
29
 
26
- ### Option A: User runs it from their terminal (outside Claude Code)
30
+ The user already has OpenWriter configured either they ran `npx openwriter install-skill` (which installed this skill) and added the MCP server, or they set it up manually. You're good to go.
31
+
32
+ **First action:** Share the browser URL:
33
+ > OpenWriter is at **http://localhost:5050** — open it in your browser to see and review changes.
34
+
35
+ Skip to [Writing Strategy](#writing-strategy) below.
36
+
37
+ ### MCP tools are NOT available (skill-first install)
38
+
39
+ The user installed this skill from a directory but hasn't set up the MCP server yet. OpenWriter needs an MCP server to provide the 24 editing tools.
40
+
41
+ **Step 1:** Tell the user to install the npm package and MCP server:
27
42
 
28
43
  ```bash
44
+ # Add the OpenWriter MCP server to Claude Code
29
45
  claude mcp add -s user open-writer -- npx openwriter --no-open
30
46
  ```
31
47
 
32
- Then restart the Claude Code session. The MCP tools become available automatically.
33
-
34
- ### Option B: Agent configures it (when user asks you to set it up)
48
+ Then restart the Claude Code session. The MCP tools become available on next launch.
35
49
 
36
- Edit `~/.claude.json` and add to the `mcpServers` object:
50
+ **Step 2 (if the user can't run the command above):** Edit `~/.claude.json` directly. Add to the `mcpServers` object:
37
51
 
38
52
  ```json
39
53
  "open-writer": {
@@ -42,7 +56,7 @@ Edit `~/.claude.json` and add to the `mcpServers` object:
42
56
  }
43
57
  ```
44
58
 
45
- The `mcpServers` key is at the top level of `~/.claude.json`. If it doesn't exist, create it. Example:
59
+ The `mcpServers` key is at the top level of `~/.claude.json`. If it doesn't exist, create it:
46
60
 
47
61
  ```json
48
62
  {
@@ -56,10 +70,10 @@ The `mcpServers` key is at the top level of `~/.claude.json`. If it doesn't exis
56
70
  ```
57
71
 
58
72
  After editing, tell the user:
59
- 1. Restart your Claude Code session (the MCP server loads on startup)
73
+ 1. Restart your Claude Code session (MCP servers load on startup)
60
74
  2. Open http://localhost:5050 in your browser
61
75
 
62
- **Note:** You cannot run `claude mcp add` from inside a session (nested session error). That's why we edit the JSON directly.
76
+ **Note:** You cannot run `claude mcp add` from inside a session (nested session error). That's why we edit the JSON directly when configuring from within Claude Code.
63
77
 
64
78
  ## MCP Tools Reference (24 tools)
65
79
 
@@ -166,7 +180,7 @@ After editing, tell the user:
166
180
 
167
181
  ## Troubleshooting
168
182
 
169
- **MCP tools not available** — Run `/mcp` in Claude Code to check connection status. Click reconnect if needed.
183
+ **MCP tools not available** — The OpenWriter MCP server isn't configured yet. Follow the [setup instructions](#mcp-tools-are-not-available-skill-first-install) above. After adding the MCP config, the user must restart their Claude Code session.
170
184
 
171
185
  **Port 5050 busy** — Another OpenWriter instance owns the port. New sessions auto-enter client mode (proxying via HTTP) — tools still work. No action needed.
172
186