You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/cli/skill/SKILL.md
+62-6Lines changed: 62 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
name: editing-docx
2
+
name: superdoc-edit-docx
3
3
description: Edit, query, and transform Word documents with the SuperDoc CLI v1 operation surface. Use when the user asks to read, search, modify, comment, or review changes in .docx files.
4
4
---
5
5
@@ -24,7 +24,7 @@ Use `describe command` for per-command args and constraints.
24
24
25
25
## Preferred Workflows
26
26
27
-
### 1) Stateful multi-step edits (recommended)
27
+
### 1) Edit an existing document (recommended for targeted changes)
28
28
29
29
```bash
30
30
superdoc open ./contract.docx
@@ -34,20 +34,59 @@ superdoc save --in-place
34
34
superdoc close
35
35
```
36
36
37
-
-Always use `query match`(not `find`) to discover mutation targets — it returns exact addresses with cardinality guarantees.
37
+
-Use `query match`when you are modifying existing content and need an exact mutation target.
38
38
- After `open`, commands run against the active/default session when `<doc>` is omitted.
39
39
- Use `superdoc session list|set-default|save|close` for explicit session control.
40
40
-`close` on dirty state requires `--discard` or a prior `save`.
41
41
42
-
### 2) Stateless one-off reads
42
+
### 2) Generate or seed a document body (recommended for synthetic/probe docs)
43
+
44
+
Use `open --content-override` when you want to create a new body from Markdown, HTML, or plain text in one step.
45
+
46
+
```bash
47
+
superdoc open --content-override "# Probe Title\n\nALPHA01" --override-type markdown
0 commit comments