@redpanda-data/docs-extensions-and-macros 4.13.6 → 4.14.0

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.
@@ -21,10 +21,6 @@ The MCP server consists of several key components:
21
21
  * `generate.js` - Documentation generation commands
22
22
  * `cli.js` - Raw CLI command execution
23
23
 
24
- *Prompt system* (`prompts/`):: Pre-defined instructions for specific documentation workflows
25
- +
26
- See link:prompts/README.adoc[Prompts documentation]
27
-
28
24
  *Setup automation* (`cli-utils/setup-mcp.js`):: Automated MCP server configuration for Claude Code/Desktop
29
25
 
30
26
  === How it works
@@ -101,13 +97,13 @@ docs-extensions-and-macros/
101
97
  │ ├── antora.js # Antora structure analysis
102
98
  │ ├── cloud-regions.js # Cloud regions table generation
103
99
  │ ├── crd-docs.js # Kubernetes CRD docs generation
100
+ │ ├── generated-docs-review.js # Generated docs quality review
104
101
  │ ├── helm-docs.js # Helm chart docs generation
105
102
  │ ├── index.js # Main tool orchestrator
106
103
  │ ├── job-queue.js # Background job management
107
104
  │ ├── metrics-docs.js # Metrics docs generation
108
105
  │ ├── openapi.js # OpenAPI bundle generation
109
106
  │ ├── property-docs.js # Property docs generation
110
- │ ├── review.js # Documentation quality review
111
107
  │ ├── rpcn-docs.js # Redpanda Connect docs generation
112
108
  │ ├── rpk-docs.js # RPK CLI docs generation
113
109
  │ ├── utils.js # Shared utilities
@@ -246,175 +242,6 @@ Update link:USER_GUIDE.adoc[USER_GUIDE.adoc] to document:
246
242
 
247
243
  Update link:CLI_INTERFACE.adoc[CLI_INTERFACE.adoc] if you added a new CLI command.
248
244
 
249
- == Adding a new prompt
250
-
251
- Prompts provide contextual guidance to Claude when working on specific documentation tasks.
252
-
253
- NOTE: This section is for *developers* adding prompts programmatically. *Technical writers* should use link:WRITER_EXTENSION_GUIDE.adoc[Writer Extension Guide] which provides step-by-step instructions with no code required.
254
-
255
- === How the prompt system works
256
-
257
- The MCP server uses *automatic discovery* of prompts:
258
-
259
- . Prompts are Markdown files in `mcp/prompts/` directory
260
- . Each prompt has YAML frontmatter defining metadata (description, version, arguments)
261
- . At startup, the server scans the directory and loads all `.md` files
262
- . Prompts are cached in memory for performance
263
- . Changes are automatically reloaded in development mode (`MCP_DEV_MODE=true`)
264
-
265
- *No code changes needed!* Just drop a `.md` file with valid frontmatter and restart.
266
-
267
- === Step 1: Create the prompt file with frontmatter
268
-
269
- Create a new Markdown file in `mcp/prompts/` with YAML frontmatter:
270
-
271
- [,bash]
272
- ----
273
- mcp/prompts/my-docs-guide.md
274
- ----
275
-
276
- [,markdown]
277
- ----
278
- ---
279
- description: Guide for working with specific documentation type
280
- version: 1.0.0
281
- arguments:
282
- - name: content
283
- description: The documentation content to process
284
- required: true
285
- argumentFormat: content-append
286
- ---
287
-
288
- # My Documentation Guide
289
-
290
- This guide explains how to work with [specific documentation type].
291
-
292
- ## Overview
293
-
294
- [Explanation of the documentation system]
295
-
296
- ## Workflow
297
-
298
- 1. First step
299
- 2. Second step
300
- 3. Third step
301
-
302
- ## Important rules
303
-
304
- - Rule 1
305
- - Rule 2
306
- - Rule 3
307
-
308
- ## Common tasks
309
-
310
- ### Task 1: Do something
311
-
312
- [Detailed instructions]
313
-
314
- ### Task 2: Do something else
315
-
316
- [Detailed instructions]
317
-
318
- ## Validation
319
-
320
- Before committing, check:
321
-
322
- - [ ] Checklist item 1
323
- - [ ] Checklist item 2
324
- ----
325
-
326
- *Required frontmatter fields:*
327
-
328
- description:: Clear explanation of what the prompt does (min 10 characters)
329
- version:: Semantic version (for example, "1.0.0")
330
- arguments:: (Optional) Array of argument definitions
331
- * `name`: Argument name (lowercase, underscores only)
332
- * `description`: What this argument is for
333
- * `required`: Boolean indicating if required
334
- argumentFormat:: (Optional) How to append arguments:
335
- * `content-append`: Append content with separator (default)
336
- * `structured`: Insert arguments as structured sections
337
-
338
- *Best practices for prompts:*
339
-
340
- * Write for technical writers, not developers
341
- * Include concrete examples
342
- * Explain the "why" behind rules
343
- * Provide validation checklists
344
- * Use clear, scannable structure
345
- * Keep version updated when making significant changes
346
-
347
- === Step 2: Validate the prompt
348
-
349
- Run validation to check frontmatter and metadata:
350
-
351
- [,bash]
352
- ----
353
- npx doc-tools validate-mcp
354
- ----
355
-
356
- This checks:
357
-
358
- * YAML frontmatter is valid
359
- * Required fields are present (description, version)
360
- * Argument names use only lowercase and underscores
361
- * Version follows semantic versioning
362
- * No naming conflicts with existing prompts
363
-
364
- === Step 3: Preview the prompt
365
-
366
- Test the prompt before deploying:
367
-
368
- [,bash]
369
- ----
370
- # Preview with content argument
371
- npx doc-tools preview-prompt my-docs-guide --content "Test content"
372
-
373
- # See how it appears to Claude
374
- ----
375
-
376
- === Step 4: Deploy and test
377
-
378
- . Restart Claude Code to load the new prompt
379
- . Test with Claude:
380
- +
381
- ----
382
- You: "List available prompts"
383
- Claude: *shows your new prompt in the list*
384
-
385
- You: "Use the my-docs-guide prompt with this content: [...]"
386
- Claude: *retrieves and applies your prompt*
387
- ----
388
-
389
- === Auto-discovery details
390
-
391
- The prompt discovery system (`bin/mcp-tools/prompt-discovery.js`):
392
-
393
- . Scans `mcp/prompts/*.md` files
394
- . Parses YAML frontmatter using `js-yaml`
395
- . Validates against JSON schema using `ajv`
396
- . Extracts prompt name from filename (for example, `my-docs-guide.md` → `my-docs-guide`)
397
- . Caches content and metadata in memory
398
- . Provides generic handler that works for all prompts
399
-
400
- *Development mode:*
401
-
402
- Enable file watching to automatically reload changes:
403
-
404
- [,bash]
405
- ----
406
- export MCP_DEV_MODE=true
407
- # Restart Claude Code
408
- # Now changes to prompts are automatically reloaded
409
- ----
410
-
411
- === For more information
412
-
413
- * link:WRITER_EXTENSION_GUIDE.adoc[Writer Extension Guide] - Complete guide for writers adding prompts (no code)
414
- * link:TEAM_ROLLOUT_GUIDE.adoc#operational-playbook[Operational Playbook] - Managing prompts in production
415
- * `bin/mcp-tools/prompt-discovery.js` - Auto-discovery implementation
416
- * `bin/mcp-tools/frontmatter.js` - Frontmatter parsing and validation
417
-
418
245
  == Testing
419
246
 
420
247
  The MCP server has three types of tests:
@@ -688,7 +515,7 @@ All CLI commands have:
688
515
 
689
516
  * link:../__tests__/mcp/README.adoc[Test documentation] - How to run and write tests
690
517
  * link:CLI_INTERFACE.adoc[CLI interface contract] - CLI interface that the MCP server depends on
691
- * link:prompts/README.adoc[Prompts documentation] - How the prompt system works
518
+ * link:WRITER_EXTENSION_GUIDE.adoc[Writer extension guide] - When to add MCP tools vs skills
692
519
 
693
520
  *External documentation*
694
521
 
package/mcp/README.adoc CHANGED
@@ -4,7 +4,9 @@
4
4
 
5
5
  Documentation for the Redpanda Doc Tools MCP (Model Context Protocol) server.
6
6
 
7
- The MCP server exposes `doc-tools` functionality to Claude Code, allowing technical writers to automate documentation tasks through natural conversation. No CLI knowledge required.
7
+ The MCP server exposes `doc-tools` execution functionality to Claude Code, allowing technical writers to automate documentation generation tasks through natural conversation.
8
+
9
+ NOTE: Team standards (style guide, content architecture, etc.) have been migrated to the https://github.com/redpanda-data/docs-team-standards[docs-team-standards] Claude Code plugin. This MCP server now focuses on execution tools only.
8
10
 
9
11
  == Documentation
10
12
 
@@ -13,23 +15,10 @@ The MCP server exposes `doc-tools` functionality to Claude Code, allowing techni
13
15
  link:USER_GUIDE.adoc[**User guide**]:: Complete guide to using the MCP server with Claude Code
14
16
  +
15
17
  * Setup and installation
16
- * Available tools, prompts, and resources
18
+ * Available tools
17
19
  * Usage examples and workflows
18
20
  * Troubleshooting
19
21
 
20
- link:WRITER_EXTENSION_GUIDE.adoc[**Writer extension guide**]:: How to extend the MCP server (no coding required)
21
- +
22
- * Adding new prompts for common tasks
23
- * Adding new resources (style guides, templates)
24
- * Validation and preview commands
25
- * Best practices and examples
26
-
27
- link:templates/README.adoc[**Extension templates**]:: Ready-to-use templates for extending the MCP server
28
- +
29
- * Templates for review prompts, writing prompts, and resources
30
- * Step-by-step customization guide
31
- * No coding required. Just copy and customize
32
-
33
22
  link:COSTS.adoc[**Cost reference**]:: Understanding and optimizing MCP tool costs
34
23
  +
35
24
  * Cost breakdown by tool ($0.017 - $0.190 per operation)
@@ -42,7 +31,6 @@ link:DEVELOPMENT.adoc[**Development guide**]:: Guide for working on the MCP serv
42
31
  +
43
32
  * Architecture overview
44
33
  * Adding new tools programmatically
45
- * Auto-discovery system details
46
34
  * Testing guidelines
47
35
  * Security and best practices
48
36
 
@@ -59,20 +47,12 @@ link:../CLI_REFERENCE.adoc[**CLI reference**]:: Complete command reference for `
59
47
  * Options and usage examples
60
48
  * Auto-generated from CLI help
61
49
 
62
- link:../\__tests__/mcp/README.adoc[**Test documentation**]:: How to run and write MCP tests
50
+ link:../__tests__/mcp/README.adoc[**Test documentation**]:: How to run and write MCP tests
63
51
  +
64
52
  * Test types (integration, contract, unit)
65
53
  * Running tests
66
54
  * Understanding failures
67
55
 
68
- === Advanced
69
-
70
- link:prompts/README.adoc[**Prompts documentation**]:: Guide to the MCP prompt system
71
- +
72
- * What prompts are and how they work
73
- * Available prompts
74
- * Adding new prompts
75
-
76
56
  == Quickstart
77
57
 
78
58
  === Install and configure
@@ -109,47 +89,24 @@ Claude: *uses generate_property_docs tool*
109
89
  * **Metrics docs**: Generate metrics reference documentation
110
90
  * **RPK docs**: Generate RPK CLI documentation
111
91
  * **Connector docs**: Generate Redpanda Connect connector documentation
112
- * **Antora structure**: Analyze documentation repository structure
113
-
114
- === AI consistency prompts
115
-
116
- Pre-configured instructions that help Claude follow your team standards:
117
-
118
- **Review prompts:**
92
+ * **Helm docs**: Generate Helm chart documentation
93
+ * **CRD docs**: Generate Kubernetes CRD documentation
94
+ * **OpenAPI bundling**: Bundle OpenAPI fragments
95
+ * **Cloud regions**: Generate cloud regions documentation
119
96
 
120
- * **review-for-style**: Review content for style guide compliance
121
- * **check-terminology**: Validate terminology against approved terms
122
- * **improve-clarity**: Refactor content for better readability
97
+ === Utility tools
123
98
 
124
- **Content creation:**
125
-
126
- * **write-new-guide**: Generate new guides following team standards
127
-
128
- **Workflow guides:**
129
-
130
- * **property-docs-guide**: Workflow for updating property documentation
131
- * **rpcn-connector-docs-guide**: Workflow for updating connector documentation
99
+ * **Antora structure**: Analyze documentation repository structure
100
+ * **Review generated docs**: Quality check generated documentation
101
+ * **Job management**: Background job status and listing
132
102
 
133
103
  === Resources
134
104
 
135
- Reference materials that Claude can read:
136
-
137
- * **redpanda://style-guide**: Complete team style guide with formatting rules
138
-
139
- === CLI validation commands
105
+ The only resource provided by this MCP server is:
140
106
 
141
- For writers extending the MCP server:
107
+ * **redpanda://personas**: Target audience personas (loaded from current repo's `docs-data/personas.yaml`)
142
108
 
143
- * **npx doc-tools validate-mcp**: Validate prompts and resources configuration
144
- * **npx doc-tools preview-prompt**: Preview prompts with test arguments
145
- * **npx doc-tools mcp-version**: Show versions and usage statistics
146
-
147
- === Automation
148
-
149
- * **setup-mcp**: Automated MCP server configuration for Claude Code/Desktop
150
- * **Auto-discovery**: Prompts automatically loaded from `mcp/prompts/` directory
151
- * **Context detection**: Automatic repository and Antora structure detection
152
- * **Usage telemetry**: Track prompt/resource/tool usage for adoption metrics
109
+ All other resources (style guide, content architecture, etc.) have been migrated to the https://github.com/redpanda-data/docs-team-standards[docs-team-standards] Claude Code plugin.
153
110
 
154
111
  == Architecture
155
112
 
@@ -157,16 +114,25 @@ The MCP server consists of:
157
114
 
158
115
  * **Server** (`bin/doc-tools-mcp.js`): Main MCP protocol handler
159
116
  * **Tool modules** (`bin/mcp-tools/`): Individual tool implementations
160
- * **Prompts** (`mcp/prompts/`): Contextual documentation guides
161
117
  * **Tests** (`__tests__/mcp/`): Integration, contract, and unit tests
162
118
 
119
+ == Migration notice
120
+
121
+ As of January 2025, the following have been migrated to the https://github.com/redpanda-data/docs-team-standards[docs-team-standards] Claude Code plugin:
122
+
123
+ * **Prompts**: All MCP prompts are now Claude Code skills and agents
124
+ * **Resources**: Style guide, content architecture, learning objectives, etc. are now Claude Code skills
125
+
126
+ The MCP server now focuses exclusively on execution tools that require CLI or web access.
127
+
163
128
  == Support
164
129
 
165
130
  * link:USER_GUIDE.adoc#troubleshooting[Troubleshooting guide]
166
- * link:../\__tests__/mcp/README.adoc#understanding-test-failures[Test failures]
131
+ * link:../__tests__/mcp/README.adoc#understanding-test-failures[Test failures]
167
132
  * https://github.com/redpanda-data/docs-extensions-and-macros/issues[Report issues]
168
133
 
169
134
  == External resources
170
135
 
171
136
  * https://modelcontextprotocol.io/[MCP Protocol Specification]
172
137
  * https://docs.anthropic.com/claude[Claude Code Documentation]
138
+ * https://github.com/redpanda-data/docs-team-standards[docs-team-standards Plugin]