mdedit-cli 0.3.5 → 0.4.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 +17 -11
- package/dist/index.js +373 -103
- package/dist/index.js.map +1 -1
- package/openclaw.json +8 -7
- package/package.json +5 -5
- package/skills/catalog.json +200 -0
- package/skills/find-mdedit-document/cli/SKILL.md +21 -0
- package/skills/find-mdedit-document/mcp/SKILL.md +23 -0
- package/skills/publish-mdedit-document/cli/SKILL.md +19 -0
- package/skills/publish-mdedit-document/mcp/SKILL.md +19 -0
- package/skills/review-mdedit-document/cli/SKILL.md +22 -0
- package/skills/review-mdedit-document/mcp/SKILL.md +27 -0
- package/skills/revise-mdedit-document/cli/SKILL.md +19 -0
- package/skills/revise-mdedit-document/mcp/SKILL.md +23 -0
- package/skills/save-mdedit-document/cli/SKILL.md +22 -0
- package/skills/save-mdedit-document/mcp/SKILL.md +21 -0
- package/skill.md +0 -333
package/openclaw.json
CHANGED
|
@@ -341,19 +341,20 @@
|
|
|
341
341
|
},
|
|
342
342
|
{
|
|
343
343
|
"name": "skill_show",
|
|
344
|
-
"description": "Print
|
|
345
|
-
"command": "mdedit skill show",
|
|
346
|
-
"example": "mdedit skill show"
|
|
344
|
+
"description": "Print one canonical mdedit skill variant to stdout",
|
|
345
|
+
"command": "mdedit skill show <skillId> --via <cli|mcp>",
|
|
346
|
+
"example": "mdedit skill show save-mdedit-document --via cli"
|
|
347
347
|
},
|
|
348
348
|
{
|
|
349
349
|
"name": "skill_install",
|
|
350
|
-
"description": "Install
|
|
350
|
+
"description": "Install canonical mdedit skills into native host skill directories.",
|
|
351
351
|
"command": "mdedit skill install",
|
|
352
352
|
"flags": {
|
|
353
|
-
"--target <claude|cursor|
|
|
354
|
-
"--
|
|
353
|
+
"--target <agents|claude|cursor|gemini>": "Native skill directory target (default: agents)",
|
|
354
|
+
"--via <cli|mcp>": "Choose the CLI-backed or MCP-backed variant (default: cli)",
|
|
355
|
+
"--scope <project|user>": "Install for the current project or the current user (default: project)"
|
|
355
356
|
},
|
|
356
|
-
"example": "mdedit skill install --target
|
|
357
|
+
"example": "mdedit skill install --target cursor --via mcp"
|
|
357
358
|
}
|
|
358
359
|
],
|
|
359
360
|
"workflows": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdedit-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Command-line interface for mdedit.ai.",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"files": [
|
|
32
32
|
"bin",
|
|
33
33
|
"dist",
|
|
34
|
-
"
|
|
34
|
+
"skills",
|
|
35
35
|
"openclaw.json",
|
|
36
36
|
"README.md",
|
|
37
37
|
"LICENSE"
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"dev": "tsx src/index.ts",
|
|
42
42
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
43
43
|
"test": "yarn build && vitest run",
|
|
44
|
-
"prepack": "yarn build"
|
|
44
|
+
"prepack": "yarn --cwd ../.. check:agent-skills && yarn build"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@mdedit/agent-client": "1.0.
|
|
48
|
-
"@mdedit/sdk": "0.3.
|
|
47
|
+
"@mdedit/agent-client": "1.0.5",
|
|
48
|
+
"@mdedit/sdk": "0.3.7",
|
|
49
49
|
"@napi-rs/keyring": "^1.3.0",
|
|
50
50
|
"chalk": "^5.6.2",
|
|
51
51
|
"commander": "^14.0.3",
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"evidenceDate": "2026-08-24",
|
|
5
|
+
"product": "mdedit",
|
|
6
|
+
"docsUrl": "https://mdedit.ai/docs/skills",
|
|
7
|
+
"installUrl": "https://mdedit.ai/docs/skills/install",
|
|
8
|
+
"publicInstallationUrl": "https://mdedit.ai",
|
|
9
|
+
"portableCompatibility": "Requires mdedit-cli 0.4.0 or newer and an authenticated mdedit profile or scoped API key.",
|
|
10
|
+
"channels": [
|
|
11
|
+
{
|
|
12
|
+
"id": "portable",
|
|
13
|
+
"name": "Portable Agent Skills",
|
|
14
|
+
"status": "release-candidate",
|
|
15
|
+
"detail": "CLI-backed skills generated for the open Agent Skills format. Public installation begins with mdedit-cli 0.4.0."
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"id": "openai",
|
|
19
|
+
"name": "ChatGPT and Codex plugin",
|
|
20
|
+
"status": "published",
|
|
21
|
+
"detail": "Published in the ChatGPT Store on 2026-08-24. Review support and natural-response improvements are prepared for the next Store update and still require portal revalidation."
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "claude-code",
|
|
25
|
+
"name": "Claude Code plugin",
|
|
26
|
+
"status": "release-candidate",
|
|
27
|
+
"detail": "The package validates locally; production OAuth and marketplace publication remain release gates."
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": "cursor",
|
|
31
|
+
"name": "Cursor plugin",
|
|
32
|
+
"status": "planned",
|
|
33
|
+
"detail": "A generated candidate package exists, but IDE and CLI authentication and upstream acceptance are not yet verified."
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "gemini-cli",
|
|
37
|
+
"name": "Gemini CLI extension",
|
|
38
|
+
"status": "planned",
|
|
39
|
+
"detail": "A generated API-key candidate exists; OAuth compatibility and public extension distribution remain unverified."
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"skills": [
|
|
43
|
+
{
|
|
44
|
+
"id": "save-mdedit-document",
|
|
45
|
+
"anchor": "save",
|
|
46
|
+
"title": "Save a document",
|
|
47
|
+
"shortDescription": "Create and durably save a private Markdown document in mdedit.",
|
|
48
|
+
"description": "Create and durably save a private Markdown Document in mdedit. Use when the user explicitly asks to save, persist, archive, or turn conversation content into a document in mdedit. Do not use for generic Markdown writing, formatting, or local-file creation that does not require mdedit storage.",
|
|
49
|
+
"examplePrompt": "Save this conversation as a private Markdown document in mdedit.",
|
|
50
|
+
"triggers": [
|
|
51
|
+
"save to mdedit",
|
|
52
|
+
"persist this document",
|
|
53
|
+
"archive this conversation"
|
|
54
|
+
],
|
|
55
|
+
"exclusions": [
|
|
56
|
+
"generic Markdown writing",
|
|
57
|
+
"local file creation",
|
|
58
|
+
"public publishing"
|
|
59
|
+
],
|
|
60
|
+
"scopes": [
|
|
61
|
+
"workspaces:read",
|
|
62
|
+
"articles:write"
|
|
63
|
+
],
|
|
64
|
+
"operations": [
|
|
65
|
+
"Resolve the destination workspace",
|
|
66
|
+
"Create the document once",
|
|
67
|
+
"Verify the durable saved result"
|
|
68
|
+
],
|
|
69
|
+
"success": "Returns the saved title and server- or CLI-returned document identity while keeping the document private.",
|
|
70
|
+
"safety": "Saving never implies permission to publish, and identifiers or URLs are never invented."
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "find-mdedit-document",
|
|
74
|
+
"anchor": "find",
|
|
75
|
+
"title": "Find a document",
|
|
76
|
+
"shortDescription": "Find and read an existing Markdown document stored in mdedit.",
|
|
77
|
+
"description": "Find and read an existing Markdown Document stored in mdedit. Use when the user asks to locate, open, retrieve, quote, summarize, or inspect a saved mdedit document. Do not use for local files, web pages, or generic Markdown questions unrelated to mdedit storage.",
|
|
78
|
+
"examplePrompt": "Find my project brief in mdedit and summarize the saved version.",
|
|
79
|
+
"triggers": [
|
|
80
|
+
"find my mdedit document",
|
|
81
|
+
"open a saved document",
|
|
82
|
+
"summarize the stored version"
|
|
83
|
+
],
|
|
84
|
+
"exclusions": [
|
|
85
|
+
"local files",
|
|
86
|
+
"web pages",
|
|
87
|
+
"unsaved conversation content"
|
|
88
|
+
],
|
|
89
|
+
"scopes": [
|
|
90
|
+
"workspaces:read",
|
|
91
|
+
"articles:read"
|
|
92
|
+
],
|
|
93
|
+
"operations": [
|
|
94
|
+
"Resolve the workspace",
|
|
95
|
+
"Match returned document metadata",
|
|
96
|
+
"Read the selected saved content"
|
|
97
|
+
],
|
|
98
|
+
"success": "Answers from returned saved content, clearly distinguishes summaries from exact text, and keeps internal metadata out of the user-facing response.",
|
|
99
|
+
"safety": "The workflow is read-only and stops when workspace or document matching is ambiguous."
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "revise-mdedit-document",
|
|
103
|
+
"anchor": "revise",
|
|
104
|
+
"title": "Revise a document",
|
|
105
|
+
"shortDescription": "Safely revise a saved document with anchored, conflict-aware edits.",
|
|
106
|
+
"description": "Safely revise an existing Markdown Document stored in mdedit with anchored, conflict-aware edits. Use when the user asks to update, rewrite, correct, insert, remove, or reorganize content in a saved mdedit document. Do not use for unsaved local Markdown, local files, or generic editing advice.",
|
|
107
|
+
"examplePrompt": "Revise the introduction in my saved launch brief without overwriting concurrent changes.",
|
|
108
|
+
"triggers": [
|
|
109
|
+
"revise my mdedit document",
|
|
110
|
+
"update a saved section",
|
|
111
|
+
"correct stored content"
|
|
112
|
+
],
|
|
113
|
+
"exclusions": [
|
|
114
|
+
"unsaved local Markdown",
|
|
115
|
+
"generic editing advice",
|
|
116
|
+
"ambiguous overwrite requests"
|
|
117
|
+
],
|
|
118
|
+
"scopes": [
|
|
119
|
+
"workspaces:read",
|
|
120
|
+
"articles:read",
|
|
121
|
+
"articles:write"
|
|
122
|
+
],
|
|
123
|
+
"operations": [
|
|
124
|
+
"Read the current durable content",
|
|
125
|
+
"Apply the smallest anchored edit",
|
|
126
|
+
"Re-read or stop when conflicts occur"
|
|
127
|
+
],
|
|
128
|
+
"success": "Confirms the durable change conversationally with no unresolved conflicts and keeps internal revision metadata out of the user-facing response.",
|
|
129
|
+
"safety": "The skill never overwrites ambiguity and does not retry a conflict without reconciling the user's intent."
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"id": "review-mdedit-document",
|
|
133
|
+
"anchor": "review",
|
|
134
|
+
"title": "Review a document",
|
|
135
|
+
"shortDescription": "Review a saved document and decide pending suggestions.",
|
|
136
|
+
"description": "Review an existing Markdown Document in mdedit with anchored comments and suggestions, or accept or reject an existing suggestion. Use when the user asks to review, critique, proofread, suggest improvements, or decide pending review feedback on a saved mdedit document. Do not use when the user asks for an unrelated direct edit, publishing, or review of local or unsaved content.",
|
|
137
|
+
"examplePrompt": "Review my launch brief in mdedit and leave suggestions for anything unclear.",
|
|
138
|
+
"triggers": [
|
|
139
|
+
"review my mdedit document",
|
|
140
|
+
"critique a saved draft",
|
|
141
|
+
"leave suggestions on my document",
|
|
142
|
+
"accept that suggestion",
|
|
143
|
+
"reject that suggestion"
|
|
144
|
+
],
|
|
145
|
+
"exclusions": [
|
|
146
|
+
"direct document edits",
|
|
147
|
+
"publishing",
|
|
148
|
+
"local or unsaved content"
|
|
149
|
+
],
|
|
150
|
+
"scopes": [
|
|
151
|
+
"workspaces:read",
|
|
152
|
+
"articles:read",
|
|
153
|
+
"articles:write",
|
|
154
|
+
"reviews:read",
|
|
155
|
+
"reviews:write"
|
|
156
|
+
],
|
|
157
|
+
"operations": [
|
|
158
|
+
"Resolve and read the saved document",
|
|
159
|
+
"Inspect existing review threads",
|
|
160
|
+
"Add anchored comments or suggestions",
|
|
161
|
+
"Accept or reject a selected suggestion",
|
|
162
|
+
"Summarize feedback conversationally"
|
|
163
|
+
],
|
|
164
|
+
"success": "Adds focused review items or applies the requested suggestion decision and summarizes the result without exposing internal metadata.",
|
|
165
|
+
"safety": "Review never implies permission to make unrelated edits or publish, and ambiguous anchors or suggestion choices are never guessed."
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"id": "publish-mdedit-document",
|
|
169
|
+
"anchor": "publish",
|
|
170
|
+
"title": "Publish a document",
|
|
171
|
+
"shortDescription": "Inspect or explicitly change a saved document's public link.",
|
|
172
|
+
"description": "Check or change Public Document Publishing for an existing mdedit Markdown Document. Use when the user explicitly asks to publish, unpublish, inspect publication status, or create or update a public mded.it link. Do not use for private editor links, local files, or generic sharing advice.",
|
|
173
|
+
"examplePrompt": "Check my document's publication status, then ask before making it public.",
|
|
174
|
+
"triggers": [
|
|
175
|
+
"publish my mdedit document",
|
|
176
|
+
"get the public link",
|
|
177
|
+
"unpublish this document"
|
|
178
|
+
],
|
|
179
|
+
"exclusions": [
|
|
180
|
+
"private editor sharing",
|
|
181
|
+
"saving or editing alone",
|
|
182
|
+
"generic sharing advice"
|
|
183
|
+
],
|
|
184
|
+
"scopes": [
|
|
185
|
+
"workspaces:read",
|
|
186
|
+
"articles:read",
|
|
187
|
+
"publishing:read",
|
|
188
|
+
"publishing:write"
|
|
189
|
+
],
|
|
190
|
+
"operations": [
|
|
191
|
+
"Resolve the saved document",
|
|
192
|
+
"Inspect current publication status",
|
|
193
|
+
"Confirm before publishing or unpublishing",
|
|
194
|
+
"Return the exact successful result URL"
|
|
195
|
+
],
|
|
196
|
+
"success": "Returns the exact public URL and publication state supplied by a successful mdedit result.",
|
|
197
|
+
"safety": "Public visibility is never inferred from saving or editing, and both publish and unpublish require explicit confirmation."
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- Generated from packages/agent-skills. Do not edit this copy directly. -->
|
|
2
|
+
---
|
|
3
|
+
name: find-mdedit-document
|
|
4
|
+
description: Find and read an existing Markdown Document stored in mdedit. Use when the user asks to locate, open, retrieve, quote, summarize, or inspect a saved mdedit document. Do not use for local files, web pages, or generic Markdown questions unrelated to mdedit storage.
|
|
5
|
+
compatibility: Requires mdedit-cli 0.4.0 or newer and an authenticated mdedit profile or scoped API key.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Find and read a document in mdedit
|
|
9
|
+
|
|
10
|
+
Resolve real saved content before describing it.
|
|
11
|
+
|
|
12
|
+
1. Run `mdedit workspace list --format json` unless a returned workspace ID is already established. Ask the user to choose when several workspaces could match.
|
|
13
|
+
2. Run `mdedit article list --workspace <workspaceId> --full --format json`.
|
|
14
|
+
3. Match only against returned document metadata.
|
|
15
|
+
- Continue when there is one clear match.
|
|
16
|
+
- When several documents plausibly match, present their returned titles and ask the user to choose.
|
|
17
|
+
- When none match, say so and stop.
|
|
18
|
+
4. Run `mdedit article get <articleId> --workspace <workspaceId> --include-content --format json`.
|
|
19
|
+
5. Answer from the returned saved content. Distinguish exact saved text from any summary or interpretation. Keep IDs, revisions, hashes, and raw JSON internal unless the user explicitly asks for diagnostic details.
|
|
20
|
+
|
|
21
|
+
This workflow is read-only. Do not run create, edit, publish, or unpublish commands. Never infer document content, identifiers, publication state, or URLs from titles or conversation memory.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!-- Generated from packages/agent-skills. Do not edit this copy directly. -->
|
|
2
|
+
---
|
|
3
|
+
name: find-mdedit-document
|
|
4
|
+
description: Find and read an existing Markdown Document stored in mdedit. Use when the user asks to locate, open, retrieve, quote, summarize, or inspect a saved mdedit document. Do not use for local files, web pages, or generic Markdown questions unrelated to mdedit storage.
|
|
5
|
+
compatibility: Requires the mdedit MCP server with workspace and article read tools.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Find and read a document in mdedit
|
|
9
|
+
|
|
10
|
+
Resolve a real saved document before describing its content.
|
|
11
|
+
|
|
12
|
+
1. Resolve the workspace with `list_workspaces` unless a `workspaceId` from an earlier mdedit tool result is already established.
|
|
13
|
+
- If several workspaces could match, ask the user to choose by returned name.
|
|
14
|
+
- If no workspace matches, stop without guessing.
|
|
15
|
+
2. Call `list_articles` for the resolved workspace. When the user gives a title or keywords, pass them as `query`. Work from one bounded page at a time; do not retrieve every page merely to reproduce a long document list in chat.
|
|
16
|
+
3. Match the user's title or description against returned document metadata.
|
|
17
|
+
- If there is one clear match, continue.
|
|
18
|
+
- If several documents plausibly match, present only their returned titles and ask the user to choose.
|
|
19
|
+
- If there is no match, say so and stop.
|
|
20
|
+
4. Call `read_article` with the returned `workspaceId` and `articleId`.
|
|
21
|
+
5. For open, show, or preview requests, call `render_article` with `focus: preview`. Answer from the returned saved `content` when a textual answer is also needed. Distinguish exact saved content from any summary or interpretation. Keep `contentRevision`, `contentHash`, `workspaceId`, and `articleId` internal unless the user explicitly asks for diagnostic details.
|
|
22
|
+
|
|
23
|
+
This workflow is read-only. Do not call create, edit, publish, or unpublish tools. Never infer document content, identifiers, revisions, publication status, or URLs from titles or conversation memory.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!-- Generated from packages/agent-skills. Do not edit this copy directly. -->
|
|
2
|
+
---
|
|
3
|
+
name: publish-mdedit-document
|
|
4
|
+
description: Check or change Public Document Publishing for an existing mdedit Markdown Document. Use when the user explicitly asks to publish, unpublish, inspect publication status, or create or update a public mded.it link. Do not use for private editor links, local files, or generic sharing advice.
|
|
5
|
+
compatibility: Requires mdedit-cli 0.4.0 or newer and an authenticated mdedit profile or scoped API key with publishing permissions.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Manage Public Document Publishing
|
|
9
|
+
|
|
10
|
+
Public visibility is a separate, explicit action. Never treat saving or editing as permission to publish.
|
|
11
|
+
|
|
12
|
+
1. Resolve the workspace and document from returned CLI results. Ask the user to choose when a match is ambiguous.
|
|
13
|
+
2. For a status-only request, run `mdedit article publish-status <articleId> --workspace <workspaceId> --format json`, report the returned state and exact URL fields, then stop.
|
|
14
|
+
3. Before publishing or updating a public link, warn that anyone with the link can view the document and ask for explicit confirmation.
|
|
15
|
+
4. After confirmation, run `mdedit article publish <articleId> --workspace <workspaceId> --format json`. The command atomically defaults a new link to Live while preserving an existing link's mode, so do not add a status preflight. Add `--snapshot`, `--live`, `--slug`, or SEO metadata only when the user requested or approved it.
|
|
16
|
+
5. Treat publication as successful only when the command returns a public URL and publication identity. Return the exact command-provided URL.
|
|
17
|
+
6. Before disabling a link, run `publish-status` to identify the current link and ask for explicit confirmation. After confirmation, run `mdedit article unpublish <articleId> --workspace <workspaceId> --yes --format json`.
|
|
18
|
+
|
|
19
|
+
Never construct an `mded.it` URL, expose an editor URL as a public link, or claim publication from a requested slug. On denied permission, failure, or missing result fields, report the bounded error and leave visibility unchanged.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!-- Generated from packages/agent-skills. Do not edit this copy directly. -->
|
|
2
|
+
---
|
|
3
|
+
name: publish-mdedit-document
|
|
4
|
+
description: Check or change Public Document Publishing for an existing mdedit Markdown Document. Use when the user explicitly asks to publish, unpublish, inspect publication status, or create or update a public mded.it link. Do not use for private editor links, local files, or generic sharing advice.
|
|
5
|
+
compatibility: Requires the mdedit MCP server with publishing tools and explicit confirmation fields.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Manage Public Document Publishing
|
|
9
|
+
|
|
10
|
+
Public visibility is a separate, explicit action. Never treat saving or editing as permission to publish.
|
|
11
|
+
|
|
12
|
+
1. Resolve the workspace and document using `list_workspaces`, `list_articles`, and `read_article`. Use `list_articles.query` when the user provides a title or keywords, and work from one bounded page at a time instead of retrieving every page. Ask the user to choose when a returned match is ambiguous.
|
|
13
|
+
2. For a status-only request, call `get_publish_status`, then call `render_article` with `focus: publish`. Report only the returned state and exact URL fields, then stop without mutating.
|
|
14
|
+
3. Before publishing or updating a public link, warn that anyone with the link can view the document and ask for explicit confirmation. Do not infer confirmation from an earlier save or edit request.
|
|
15
|
+
4. After confirmation, call `publish_article` with `confirmPublic: true`. The tool atomically defaults a new link to Live while preserving an existing link's mode, so do not add a status preflight. Include a custom slug or SEO metadata only when the user supplied or approved it.
|
|
16
|
+
5. Treat publication as successful only when the tool returns `publishId`, `shortUrl`, `fullUrl`, and `publishedAt`. Call `render_article` with `focus: publish`. Return the exact tool-provided public URL; prefer `shortUrl` for sharing.
|
|
17
|
+
6. Before disabling a public link, call `get_publish_status` to identify the current link and ask for explicit confirmation. After confirmation, call `unpublish_article` with `confirmUnpublish: true`, then refresh the publish component with `render_article`.
|
|
18
|
+
|
|
19
|
+
Never construct an `mded.it` URL, expose an editor URL as a public link, or claim publication from a requested slug. On denied permission, failure, or missing result fields, report the bounded error and leave visibility unchanged.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!-- Generated from packages/agent-skills. Do not edit this copy directly. -->
|
|
2
|
+
---
|
|
3
|
+
name: review-mdedit-document
|
|
4
|
+
description: Review an existing Markdown Document in mdedit with anchored comments and suggestions, or accept or reject an existing suggestion. Use when the user asks to review, critique, proofread, suggest improvements, or decide pending review feedback on a saved mdedit document. Do not use when the user asks for an unrelated direct edit, publishing, or review of local or unsaved content.
|
|
5
|
+
compatibility: Requires mdedit-cli 0.4.0 or newer with an authenticated profile or scoped API key.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Review a document in mdedit
|
|
9
|
+
|
|
10
|
+
Read the saved document, then leave focused feedback without changing the writer's Markdown.
|
|
11
|
+
|
|
12
|
+
1. Resolve the workspace and document with `mdedit workspace list --format json` and `mdedit article list --workspace <returned-workspace-id> --format json`. Ask the user to choose by returned name if several results plausibly match.
|
|
13
|
+
2. Read the current document with `mdedit article get <returned-article-id> --workspace <returned-workspace-id> --format json`.
|
|
14
|
+
3. Inspect existing feedback with `mdedit review list <returned-article-id> --workspace <returned-workspace-id> --status open --format json` so you do not duplicate it.
|
|
15
|
+
4. Add focused review items:
|
|
16
|
+
- Use `mdedit review add` with `--quote` and `--body` for comments.
|
|
17
|
+
- Use `mdedit review suggest` with `--quote` and `--replace` for concrete replacements.
|
|
18
|
+
5. Summarize the number and themes of the comments or suggestions. Do not display workspace IDs, article IDs, thread IDs, command IDs, hashes, revisions, or raw JSON unless the user explicitly asks for diagnostics.
|
|
19
|
+
|
|
20
|
+
When the user asks to accept or reject review feedback, locate the exact open suggestion with `mdedit review list`, ask one focused question if more than one suggestion could match, then use `mdedit review accept` or `mdedit review reject` with the returned thread ID. Do not simulate acceptance with a separate article edit. Confirm the decision only after the command succeeds.
|
|
21
|
+
|
|
22
|
+
Review requests never authorize unrelated article edits, publishing, or unpublishing. Adding review feedback leaves Markdown unchanged; accepting a specifically selected suggestion applies only that proposed replacement. Review commands work on ordinary documents. If a quote or suggestion choice is ambiguous or no longer matches, read the document again and ask one focused question instead of guessing.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<!-- Generated from packages/agent-skills. Do not edit this copy directly. -->
|
|
2
|
+
---
|
|
3
|
+
name: review-mdedit-document
|
|
4
|
+
description: Review an existing Markdown Document in mdedit with anchored comments and suggestions, or accept or reject an existing suggestion. Use when the user asks to review, critique, proofread, suggest improvements, or decide pending review feedback on a saved mdedit document. Do not use when the user asks for an unrelated direct edit, publishing, or review of local or unsaved content.
|
|
5
|
+
compatibility: Requires the mdedit MCP server with article read and review tools.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Review a document in mdedit
|
|
9
|
+
|
|
10
|
+
Read the saved document, then leave focused feedback without changing the writer's Markdown.
|
|
11
|
+
|
|
12
|
+
1. Resolve the workspace and document with `list_workspaces` and `list_articles`. Use `query` when the user provides a title or keywords, and work from one bounded page at a time instead of retrieving every page. If several returned names plausibly match, ask the user to choose by name. Never ask the user for an internal ID unless troubleshooting requires it.
|
|
13
|
+
2. Call `read_article` for the selected document. Use its current saved content as the only source for the review.
|
|
14
|
+
3. Call `list_review_threads` so you do not duplicate existing feedback.
|
|
15
|
+
4. Add only useful, non-duplicative review items:
|
|
16
|
+
- Use `add_comment` for a question, concern, or explanation.
|
|
17
|
+
- Use `add_suggestion` for a concrete replacement that the writer can accept or reject.
|
|
18
|
+
- Anchor each item to a unique quote with nearby context when needed.
|
|
19
|
+
5. Call `render_article` with `focus: review` so the user can inspect and triage feedback. Summarize the review conversationally: state how many comments or suggestions were added and the main themes. Do not display `workspaceId`, `articleId`, `threadId`, `commandId`, hashes, revisions, or JSON unless the user explicitly asks for diagnostic details.
|
|
20
|
+
|
|
21
|
+
When the user asks to accept or reject review feedback:
|
|
22
|
+
|
|
23
|
+
1. Use the `suggestionId` and `targetId` already returned by `add_suggestion`, or call `list_review_threads` with `status: open` and match the user's description against the returned suggestions. Ask one focused question if more than one suggestion could match.
|
|
24
|
+
2. Call `accept_suggestion` to atomically apply the replacement and mark it accepted, or `reject_suggestion` to close it without changing the document. Never simulate acceptance with `edit_article` plus `resolve_thread`.
|
|
25
|
+
3. Confirm the decision conversationally only when the tool returns `applied: true`.
|
|
26
|
+
|
|
27
|
+
Review requests never imply permission to call `edit_article`, publish, or unpublish. Review tools work on ordinary documents; do not ask the user to enable collaboration. Treat a review mutation as successful only when the tool returns `applied: true`. If an anchor is ambiguous or changed, read the document again and ask one focused question instead of guessing.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<!-- Generated from packages/agent-skills. Do not edit this copy directly. -->
|
|
2
|
+
---
|
|
3
|
+
name: revise-mdedit-document
|
|
4
|
+
description: Safely revise an existing Markdown Document stored in mdedit with anchored, conflict-aware edits. Use when the user asks to update, rewrite, correct, insert, remove, or reorganize content in a saved mdedit document. Do not use for unsaved local Markdown, local files, or generic editing advice.
|
|
5
|
+
compatibility: Requires mdedit-cli 0.4.0 or newer and an authenticated mdedit profile or scoped API key.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Revise a document in mdedit
|
|
9
|
+
|
|
10
|
+
Read the current durable content, then apply the smallest unambiguous anchored change.
|
|
11
|
+
|
|
12
|
+
1. Resolve the workspace and document with `mdedit workspace list --format json`, `mdedit article list --workspace <workspaceId> --full --format json`, and `mdedit article get <articleId> --workspace <workspaceId> --include-content --format json`.
|
|
13
|
+
2. Ask a focused question when the target text, section, or replacement is unclear.
|
|
14
|
+
3. For one unique replacement, run `mdedit article edit <articleId> --workspace <workspaceId> --replace <exactText> --with <replacement> --format json`.
|
|
15
|
+
4. For insertions, deletions, contextual anchors, or several edits, write the smallest operation array and run `mdedit article edit <articleId> --workspace <workspaceId> --ops-file <path> --format json`.
|
|
16
|
+
5. Avoid whole-document replacement unless the user explicitly requests a full rewrite.
|
|
17
|
+
6. Treat the edit as successful only when the JSON result has no unresolved conflict. Re-read the saved document when the result is ambiguous, then summarize the durable change without displaying IDs, revisions, hashes, or raw JSON unless the user asks for diagnostics.
|
|
18
|
+
|
|
19
|
+
If the command reports a conflict, stop, run `article get` again, and explain what changed concurrently. Do not retry against new content until the user's intent has been reconciled. Never invent anchors or claim success from requested text alone.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!-- Generated from packages/agent-skills. Do not edit this copy directly. -->
|
|
2
|
+
---
|
|
3
|
+
name: revise-mdedit-document
|
|
4
|
+
description: Safely revise an existing Markdown Document stored in mdedit with anchored, conflict-aware edits. Use when the user asks to update, rewrite, correct, insert, remove, or reorganize content in a saved mdedit document. Do not use for unsaved local Markdown, local files, or generic editing advice.
|
|
5
|
+
compatibility: Requires the mdedit MCP server with read_article and edit_article tools.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Revise a document in mdedit
|
|
9
|
+
|
|
10
|
+
Read the current durable content, then apply the smallest unambiguous anchored change.
|
|
11
|
+
|
|
12
|
+
1. Resolve the workspace and document using `list_workspaces`, `list_articles`, and `read_article`. Use `list_articles.query` when the user provides a title or keywords, and work from one bounded page at a time instead of retrieving every page. Ask the user to choose when a returned workspace or document match is ambiguous.
|
|
13
|
+
2. Confirm the requested change is specific enough to apply. Ask a focused question when the target text, section, or replacement is unclear.
|
|
14
|
+
3. Build one or more `edit_article` operations:
|
|
15
|
+
- Prefer a unique `quote` anchor with nearby `context`.
|
|
16
|
+
- Use `afterHeading`, `beforeHeading`, or `inSection` for section changes.
|
|
17
|
+
- Use a numeric range only when it came from current tool-returned content.
|
|
18
|
+
- Avoid whole-document replacement unless the user requests a full rewrite.
|
|
19
|
+
4. Pass the current `contentHash` from `read_article` as `ifContentHash`.
|
|
20
|
+
5. Treat the edit as successful only when the result has no conflicts and returns new durable `content`, `contentRevision`, and `contentHash`.
|
|
21
|
+
6. Call `render_article` with `focus: preview`, then summarize what changed in one or two conversational sentences. Do not display revisions, hashes, IDs, or JSON unless the user explicitly asks for diagnostic details.
|
|
22
|
+
|
|
23
|
+
If the tool reports a hash mismatch or any conflict, stop, read the document again, and explain what changed concurrently. Do not retry against a new version without reconciling the user's intent. Never overwrite ambiguity, invent anchors, or claim success from requested text alone.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!-- Generated from packages/agent-skills. Do not edit this copy directly. -->
|
|
2
|
+
---
|
|
3
|
+
name: save-mdedit-document
|
|
4
|
+
description: Create and durably save a private Markdown Document in mdedit. Use when the user explicitly asks to save, persist, archive, or turn conversation content into a document in mdedit. Do not use for generic Markdown writing, formatting, or local-file creation that does not require mdedit storage.
|
|
5
|
+
compatibility: Requires mdedit-cli 0.4.0 or newer and an authenticated mdedit profile or scoped API key.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Save a document to mdedit
|
|
9
|
+
|
|
10
|
+
Create one durable private document from content the user supplied or asked you to draft.
|
|
11
|
+
|
|
12
|
+
1. Determine the intended title and complete Markdown content. Ask a focused question if the source material or document boundary is unclear.
|
|
13
|
+
2. Run `mdedit workspace list --format json` unless a returned workspace ID is already established.
|
|
14
|
+
- If exactly one workspace is returned, use it.
|
|
15
|
+
- If several could match, ask the user to choose by returned name.
|
|
16
|
+
- If none match, stop without guessing.
|
|
17
|
+
3. Save the content once with `mdedit article create --workspace <workspaceId> --title <title> --file <path> --format json`. Use `--content` only for short content that is safe to pass as one argument.
|
|
18
|
+
4. Do not pass `--publish`, `--live`, `--snapshot`, or public-link metadata.
|
|
19
|
+
5. Read the created document with `mdedit article get <articleId> --workspace <workspaceId> --include-content --format json` and verify that the returned durable content matches the intended document.
|
|
20
|
+
6. Report the saved title and returned document identity. State that the document remains private.
|
|
21
|
+
|
|
22
|
+
Never invent workspace IDs, article IDs, revisions, hashes, or URLs. If creation or content persistence fails, report the bounded error and do not claim the document was saved.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- Generated from packages/agent-skills. Do not edit this copy directly. -->
|
|
2
|
+
---
|
|
3
|
+
name: save-mdedit-document
|
|
4
|
+
description: Create and durably save a private Markdown Document in mdedit. Use when the user explicitly asks to save, persist, archive, or turn conversation content into a document in mdedit. Do not use for generic Markdown writing, formatting, or local-file creation that does not require mdedit storage.
|
|
5
|
+
compatibility: Requires the mdedit MCP server with list_workspaces and create_article tools.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Save a document to mdedit
|
|
9
|
+
|
|
10
|
+
Create one durable private document from content the user supplied or asked you to draft.
|
|
11
|
+
|
|
12
|
+
1. Determine the intended title and Markdown content. Ask a focused question if the source material or document boundary is unclear.
|
|
13
|
+
2. Resolve the destination workspace:
|
|
14
|
+
- Use an established `workspaceId` only when it came from an earlier mdedit tool result.
|
|
15
|
+
- Otherwise call `list_workspaces`.
|
|
16
|
+
- If exactly one workspace is returned, use it. If several are returned, ask the user which returned workspace name to use. If none are returned, stop.
|
|
17
|
+
3. Call `create_article` once with the returned `workspaceId`, title, complete Markdown content, and `collaborative: false` unless the user explicitly asks for live collaboration.
|
|
18
|
+
4. Treat the save as successful only when the tool returns the saved title, `editorUrl`, `contentHash`, and internal `contentRevision` metadata; keep routing, hash, and revision values out of the conversational response.
|
|
19
|
+
5. Call `render_article` with `focus: preview` so UI-capable hosts show the saved document. Report the saved title in one short sentence and use the exact returned resource link. State that the document remains private.
|
|
20
|
+
|
|
21
|
+
Never invent or reconstruct a workspace ID, document ID, revision, hash, or editor URL. Never call a publishing tool as part of this workflow. If creation fails or reports retained partial state, report that bounded failure and do not claim the document was saved.
|