@meldocio/mcp-stdio-proxy 1.0.26 → 1.0.27

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,548 @@
1
+ # Meldoc Documentation Writing Assistant
2
+
3
+ Expert at creating, structuring, and maintaining technical documentation in Meldoc.
4
+
5
+ ## When to Use This Skill
6
+
7
+ Use this skill when:
8
+
9
+ - Writing new documentation from scratch
10
+ - Structuring complex documentation projects
11
+ - Creating document templates
12
+ - Establishing documentation standards
13
+ - Converting existing content to Meldoc format
14
+
15
+ ## Meldoc File Format Requirements
16
+
17
+ ### File Extension
18
+
19
+ - Files must have extension: `*.meldoc.md` (configurable in `meldoc.config.yml`)
20
+
21
+ ### YAML Frontmatter (MANDATORY)
22
+
23
+ Every Meldoc document MUST start with YAML frontmatter between `---` delimiters:
24
+
25
+ **Required fields:**
26
+
27
+ - `title`: Document display title (string)
28
+ - `alias`: Unique document identifier (string, kebab-case, stable) - required for publishing
29
+
30
+ **Optional fields:**
31
+
32
+ - `parentAlias` (or `parent_alias`): Parent document alias for hierarchy
33
+ - `workflow`: `draft` | `published` (default: `published`) - only add if draft
34
+ - `visibility`: `visible` | `hidden` (default: `visible`) - only add if hidden
35
+ - `exposure`: `inherit` | `private` | `unlisted` | `public` (default: `inherit`) - keep default unless explicitly requested
36
+
37
+ **Example frontmatter:**
38
+
39
+ ```yaml
40
+ ---
41
+ alias: getting-started-guide
42
+ title: Getting Started Guide
43
+ parentAlias: documentation
44
+ workflow: published
45
+ visibility: visible
46
+ ---
47
+ ```
48
+
49
+ ## Best Practices
50
+
51
+ ### Document Structure
52
+
53
+ **Good documentation has:**
54
+
55
+ - Clear, descriptive titles in frontmatter
56
+ - Logical hierarchy (H2 → H3 → H4) - **NO H1 in content** (title comes from frontmatter)
57
+ - Introduction explaining the purpose
58
+ - Step-by-step instructions with examples
59
+ - Links to related documents using magic links
60
+ - Code examples with syntax highlighting
61
+
62
+ **Example structure:**
63
+
64
+ ```markdown
65
+ ---
66
+ alias: feature-name
67
+ title: Feature Name
68
+ parentAlias: features
69
+ ---
70
+
71
+ Brief description of what this feature does.
72
+
73
+ ## Overview
74
+
75
+ High-level explanation...
76
+
77
+ ## Prerequisites
78
+
79
+ What users need before starting...
80
+
81
+ ## Step-by-Step Guide
82
+
83
+ 1. First step with details
84
+ 2. Second step with code example
85
+ 3. Third step with screenshot
86
+
87
+ ## Troubleshooting
88
+
89
+ Common issues and solutions...
90
+
91
+ ## Related Documentation
92
+
93
+ - [[api-reference]]
94
+ - [[getting-started]]
95
+ ```
96
+
97
+ ### Creating Documents
98
+
99
+ When creating new documents, Claude should:
100
+
101
+ 1. **Ask clarifying questions:**
102
+ - What is the target audience? (developers, end-users, admins)
103
+ - What level of detail is needed?
104
+ - Are there existing related documents?
105
+
106
+ 2. **Use `docs_tree` first** to understand the structure
107
+
108
+ 3. **Create with proper frontmatter and metadata:**
109
+
110
+ ```javascript
111
+ // Example using docs_create
112
+ {
113
+ title: "Clear, Descriptive Title",
114
+ alias: "clear-descriptive-title", // kebab-case, stable identifier
115
+ contentMd: `---
116
+
117
+ alias: clear-descriptive-title
118
+ title: Clear, Descriptive Title
119
+ parentAlias: parent-doc-alias
120
+ ---
121
+
122
+ ## Overview
123
+
124
+ Content starts here with H2, not H1...
125
+ `,
126
+ projectId: "project-uuid",
127
+ parentAlias: "parent-doc-alias" // Optional
128
+ }
129
+
130
+ ```
131
+
132
+ 4. **Link to related documents** using magic links: `[[doc-alias]]` or cross-project: `[[project-alias::doc-alias]]`
133
+
134
+ ### Updating Documents
135
+
136
+ Before updating:
137
+
138
+ 1. Use `docs_get` to read current content
139
+ 2. Preserve existing frontmatter and structure unless requested otherwise
140
+ 3. Use `expectedUpdatedAt` for optimistic locking
141
+ 4. Explain what changed in the conversation
142
+
143
+ ### Documentation Templates
144
+
145
+ **API Endpoint Documentation:**
146
+
147
+ ```markdown
148
+ ---
149
+ alias: api-endpoint-resource
150
+ title: GET /api/v1/resource
151
+ parentAlias: api-reference
152
+ ---
153
+
154
+ Brief description of what this endpoint does.
155
+
156
+ ## Request
157
+
158
+ **Method:** GET
159
+ **URL:** `/api/v1/resource`
160
+ **Authentication:** Required
161
+
162
+ ### Parameters
163
+
164
+ | Name | Type | Required | Description |
165
+ |:-----|:-----|:----------|:------------|
166
+ | id | string | Yes | Resource identifier |
167
+
168
+ ### Example Request
169
+
170
+ \`\`\`bash
171
+ curl -X GET https://api.example.com/v1/resource/123 \
172
+ -H "Authorization: Bearer TOKEN"
173
+ \`\`\`
174
+
175
+ ## Response
176
+
177
+ ### Success (200 OK)
178
+
179
+ \`\`\`json
180
+ {
181
+ "id": "123",
182
+ "data": "..."
183
+ }
184
+ \`\`\`
185
+
186
+ ### Errors
187
+
188
+ - `400` - Bad Request
189
+ - `404` - Not Found
190
+ - `500` - Server Error
191
+
192
+ ## Related Endpoints
193
+
194
+ - [[api-list-resources]]
195
+ - [[api-create-resource]]
196
+ ```
197
+
198
+ **Feature Documentation:**
199
+
200
+ ```markdown
201
+ ---
202
+ alias: feature-name
203
+ title: Feature Name
204
+ parentAlias: features
205
+ ---
206
+
207
+ One-line description of what this feature enables.
208
+
209
+ ## What is [Feature]?
210
+
211
+ Explain the feature in simple terms...
212
+
213
+ ## Why Use [Feature]?
214
+
215
+ Key benefits:
216
+ - Benefit 1
217
+ - Benefit 2
218
+ - Benefit 3
219
+
220
+ ## How It Works
221
+
222
+ High-level overview of the mechanism...
223
+
224
+ ## Quick Start
225
+
226
+ 1. Step 1
227
+ 2. Step 2
228
+ 3. Step 3
229
+
230
+ ## Examples
231
+
232
+ ### Example 1: Common Use Case
233
+
234
+ Description and code...
235
+
236
+ \`\`\`javascript
237
+ // Example code
238
+ \`\`\`
239
+
240
+ ### Example 2: Advanced Use Case
241
+
242
+ Description and code...
243
+
244
+ ## Configuration
245
+
246
+ Available options...
247
+
248
+ ## Troubleshooting
249
+
250
+ Common issues...
251
+
252
+ ## FAQ
253
+
254
+ Frequently asked questions...
255
+ ```
256
+
257
+ **Tutorial Documentation:**
258
+
259
+ ```markdown
260
+ ---
261
+ alias: how-to-accomplish-task
262
+ title: How to [Accomplish Task]
263
+ parentAlias: tutorials
264
+ ---
265
+
266
+ Learn how to [accomplish task] in [estimated time].
267
+
268
+ ## What You'll Build
269
+
270
+ Brief description and maybe a screenshot...
271
+
272
+ ## Prerequisites
273
+
274
+ - Prerequisite 1
275
+ - Prerequisite 2
276
+
277
+ ## Step 1: [First Step]
278
+
279
+ Detailed instructions...
280
+
281
+ \`\`\`javascript
282
+ // Example code
283
+ \`\`\`
284
+
285
+ ## Step 2: [Second Step]
286
+
287
+ More instructions...
288
+
289
+ ## Step 3: [Final Step]
290
+
291
+ Wrap up...
292
+
293
+ ## Next Steps
294
+
295
+ - Try [[related-tutorial]]
296
+ - Learn about [[advanced-topic]]
297
+ - Explore [[related-feature]]
298
+ ```
299
+
300
+ ## Meldoc-Specific Features
301
+
302
+ ### Internal Links (Magic Links)
303
+
304
+ **Preferred method** - Link to other documents using aliases:
305
+
306
+ ```markdown
307
+ See the [[api-reference]] for details.
308
+
309
+ For cross-project links:
310
+ See [[other-project::setup-guide]] for details.
311
+ ```
312
+
313
+ **Alternative methods:**
314
+
315
+ - Standard markdown: `[Link Text](./path/to/doc.meldoc.md)`
316
+ - External: `[Link Text](https://example.com)`
317
+ - Reference links: `[Link text][ref]` with `[ref]: https://example.com`
318
+
319
+ ### Mermaid Diagrams
320
+
321
+ Meldoc supports Mermaid diagrams:
322
+
323
+ ```markdown
324
+ \`\`\`mermaid
325
+ graph TD
326
+ A[Start] --> B{Decision}
327
+ B -->|Yes| C[Action]
328
+ B -->|No| D[Alternative]
329
+ \`\`\`
330
+
331
+ Supported types:
332
+ - graph, flowchart
333
+ - sequenceDiagram
334
+ - classDiagram
335
+ - stateDiagram
336
+ - erDiagram
337
+ - gantt
338
+ - pie
339
+ - mindmap
340
+ ```
341
+
342
+ ### Task Lists
343
+
344
+ Use task lists for checklists:
345
+
346
+ ```markdown
347
+ - [ ] Unchecked task
348
+ - [x] Completed task
349
+ - [ ] Another task
350
+ ```
351
+
352
+ ### Backlinks
353
+
354
+ Check who references your document:
355
+
356
+ ```javascript
357
+ // Use docs_backlinks to find
358
+ docs_backlinks({ docId: "your-doc-id" })
359
+ ```
360
+
361
+ ### Document Trees
362
+
363
+ Organize hierarchically:
364
+
365
+ ```javascript
366
+ docs_create({
367
+ title: "Child Document",
368
+ alias: "child-document",
369
+ contentMd: `---
370
+ alias: child-document
371
+ title: Child Document
372
+ parentAlias: parent-doc
373
+ ---
374
+
375
+ ## Content...
376
+ `,
377
+ parentAlias: "parent-doc"
378
+ })
379
+ ```
380
+
381
+ ## Tips for AI-Assisted Writing
382
+
383
+ 1. **Start with outline** - Use `docs_create` with basic structure first
384
+ 2. **Iterate sections** - Update one section at a time
385
+ 3. **Check existing docs** - Use `docs_search` to avoid duplication
386
+ 4. **Link liberally** - Use `docs_links` to see connection opportunities
387
+ 5. **Review tree** - Use `docs_tree` to ensure logical hierarchy
388
+ 6. **Always include frontmatter** - Never create documents without YAML frontmatter
389
+ 7. **Use magic links** - Prefer `[[alias]]` over relative paths when possible
390
+
391
+ ## Common Patterns
392
+
393
+ ### Creating Documentation Series
394
+
395
+ ```javascript
396
+ // 1. Create parent document (overview)
397
+ docs_create({
398
+ title: "User Authentication Guide",
399
+ alias: "user-authentication-guide",
400
+ contentMd: `---
401
+ alias: user-authentication-guide
402
+ title: User Authentication Guide
403
+ ---
404
+
405
+ ## Overview
406
+
407
+ Authentication overview...
408
+ `
409
+ })
410
+
411
+ // 2. Create child documents
412
+ docs_create({
413
+ title: "OAuth Setup",
414
+ alias: "oauth-setup",
415
+ contentMd: `---
416
+ alias: oauth-setup
417
+ title: OAuth Setup
418
+ parentAlias: user-authentication-guide
419
+ ---
420
+
421
+ ## OAuth Setup
422
+
423
+ Detailed steps...
424
+ `,
425
+ parentAlias: "user-authentication-guide"
426
+ })
427
+
428
+ docs_create({
429
+ title: "Session Management",
430
+ alias: "session-management",
431
+ contentMd: `---
432
+ alias: session-management
433
+ title: Session Management
434
+ parentAlias: user-authentication-guide
435
+ ---
436
+
437
+ ## Sessions
438
+
439
+ How sessions work...
440
+ `,
441
+ parentAlias: "user-authentication-guide"
442
+ })
443
+ ```
444
+
445
+ ### Refactoring Documentation
446
+
447
+ ```javascript
448
+ // 1. Search for related content
449
+ docs_search({ query: "authentication" })
450
+
451
+ // 2. Review each document
452
+ docs_get({ docId: "..." })
453
+
454
+ // 3. Consolidate or split as needed
455
+ docs_update({ docId: "...", contentMd: "..." })
456
+
457
+ // 4. Update links using docs_links
458
+ ```
459
+
460
+ ### Migration from Other Platforms
461
+
462
+ When migrating content:
463
+
464
+ 1. **Add frontmatter** - Every document needs YAML frontmatter
465
+ 2. **Convert H1 to title** - Move H1 content to frontmatter `title` field
466
+ 3. **Update headings** - Start content with H2, not H1
467
+ 4. **Convert links** - Update to magic links `[[alias]]` format
468
+ 5. **Add aliases** - Generate stable kebab-case aliases
469
+ 6. **Create hierarchy** - Set up parent-child relationships
470
+ 7. **Preserve structure** - Keep original organization initially
471
+
472
+ ## Markdown Syntax Reference
473
+
474
+ ### Headings
475
+
476
+ - Use H2 (`##`) as the first heading in content
477
+ - H1 is provided by frontmatter `title` field
478
+ - Hierarchy: H2 → H3 → H4 → H5 → H6
479
+
480
+ ### Text Formatting
481
+
482
+ - **Bold**: `**text**` or `__text__`
483
+ - *Italic*: `*text*` or `_text_`
484
+ - ~~Strikethrough~~: `~~text~~`
485
+ - Combined: `***bold italic***`, `**bold and _italic_**`
486
+
487
+ ### Code
488
+
489
+ - Inline: `` `code` ``
490
+ - Blocks: ` ```language ` with syntax highlighting
491
+ - Supported languages: javascript, typescript, python, html, css, json, bash, etc.
492
+
493
+ ### Lists
494
+
495
+ - Bullet: `-`, `*`, or `+`
496
+ - Numbered: `1. 2. 3.`
497
+ - Nested: indent with 2 spaces
498
+ - Task lists: `- [ ]` unchecked, `- [x]` checked
499
+
500
+ ### Tables
501
+
502
+ ```markdown
503
+ | Header 1 | Header 2 |
504
+ |:---------|:---------:|
505
+ | Left | Center |
506
+ | Aligned | Aligned |
507
+ ```
508
+
509
+ Alignment:
510
+
511
+ - `:---` - left
512
+ - `:---:` - center
513
+ - `---:` - right
514
+
515
+ ### Other Elements
516
+
517
+ - Blockquotes: `> quoted text`
518
+ - Horizontal rules: `---` or `***` or `___`
519
+ - Escape special chars: `\* \# \[ \]`
520
+
521
+ ## Quality Checklist
522
+
523
+ Before finalizing documentation:
524
+
525
+ - [ ] YAML frontmatter is present and correct
526
+ - [ ] `alias` is set (kebab-case, stable)
527
+ - [ ] `title` is clear and searchable
528
+ - [ ] Content starts with H2, not H1
529
+ - [ ] Introduction explains purpose
530
+ - [ ] Prerequisites are listed
531
+ - [ ] Steps are numbered and detailed
532
+ - [ ] Code examples are tested
533
+ - [ ] Links use magic links `[[alias]]` format
534
+ - [ ] Images/diagrams included if helpful
535
+ - [ ] Troubleshooting section added
536
+ - [ ] Document is in correct project/hierarchy
537
+ - [ ] Spelling and grammar checked
538
+ - [ ] Related documents are linked
539
+
540
+ ## Common Mistakes to Avoid
541
+
542
+ 1. **Missing frontmatter** - Every document MUST have YAML frontmatter
543
+ 2. **Using H1 in content** - Title comes from frontmatter, start with H2
544
+ 3. **Missing alias** - Required for publishing, must be kebab-case
545
+ 4. **Wrong link format** - Use `[[alias]]` for internal links, not `[text](doc-alias)`
546
+ 5. **Inconsistent aliases** - Aliases should be stable, don't change them
547
+ 6. **No parent hierarchy** - Use `parentAlias` to organize documents
548
+ 7. **Forgetting workflow** - Set `workflow: draft` for work-in-progress docs
@@ -79,9 +79,14 @@ Some operations require write permissions to your workspace:
79
79
 
80
80
  Read-only operations (list, get, search) work with any authenticated account.
81
81
 
82
- ## Related Documentation
82
+ ## Meldoc Document Format
83
83
 
84
- - [Getting Started Guide](docs/getting-started.meldoc.md)
85
- - [Authentication Guide](docs/authentication.meldoc.md)
86
- - [MCP Tools Reference](docs/mcp-tools.meldoc.md)
87
- - [Full Documentation](https://docs.meldoc.io/integrations/mcp)
84
+ When creating or updating documents, remember:
85
+
86
+ - **File extension**: `*.meldoc.md`
87
+ - **YAML frontmatter required**: Every document must start with frontmatter containing `title` and `alias`
88
+ - **No H1 in content**: Title comes from frontmatter, content starts with H2
89
+ - **Magic links**: Use `[[alias]]` for internal document links
90
+ - **Hierarchy**: Use `parentAlias` to organize documents
91
+
92
+ See [[documentation-writing]] for detailed writing guidelines.