@rubytech/create-maxy-code 0.1.166 → 0.1.169
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/package.json +1 -1
- package/payload/platform/config/brand.json +1 -1
- package/payload/platform/plugins/.claude-plugin/marketplace.json +10 -0
- package/payload/platform/plugins/teaching/.claude-plugin/plugin.json +8 -0
- package/payload/platform/plugins/teaching/PLUGIN.md +58 -0
- package/payload/platform/plugins/teaching/skills/interactive-tutor/SKILL.md +59 -0
- package/payload/platform/plugins/teaching/skills/interactive-tutor/references/assessment.md +70 -0
- package/payload/platform/plugins/teaching/skills/interactive-tutor/references/classroom-conduct.md +43 -0
- package/payload/platform/plugins/teaching/skills/interactive-tutor/references/teaching-modes.md +83 -0
- package/payload/platform/plugins/teaching/skills/lesson-planner/SKILL.md +48 -0
- package/payload/platform/plugins/teaching/skills/lesson-planner/references/context-gathering.md +41 -0
- package/payload/platform/plugins/teaching/skills/lesson-planner/references/plan-structure.md +94 -0
- package/payload/platform/plugins/teaching/skills/study-pack-builder/SKILL.md +52 -0
- package/payload/platform/plugins/teaching/skills/study-pack-builder/references/disaggregation.md +49 -0
- package/payload/platform/plugins/teaching/skills/study-pack-builder/references/materials.md +116 -0
- package/payload/platform/plugins/writer-craft/.claude-plugin/plugin.json +17 -0
- package/payload/platform/plugins/writer-craft/PLUGIN.md +130 -0
- package/payload/platform/plugins/writer-craft/agents/writer-craft--manuscript-reviewer.md +96 -0
- package/payload/platform/plugins/writer-craft/mcp/package.json +19 -0
- package/payload/platform/plugins/writer-craft/mcp/scripts/smoke.mjs +152 -0
- package/payload/platform/plugins/writer-craft/mcp/src/index.ts +289 -0
- package/payload/platform/plugins/writer-craft/mcp/src/lib/neo4j.ts +56 -0
- package/payload/platform/plugins/writer-craft/mcp/src/lib/voice-corpus.ts +54 -0
- package/payload/platform/plugins/writer-craft/mcp/src/tools/voice-distil-profile.ts +303 -0
- package/payload/platform/plugins/writer-craft/mcp/src/tools/voice-record-feedback.ts +114 -0
- package/payload/platform/plugins/writer-craft/mcp/src/tools/voice-retrieve-conditioning.ts +145 -0
- package/payload/platform/plugins/writer-craft/mcp/src/tools/voice-tag-content.ts +117 -0
- package/payload/platform/plugins/writer-craft/mcp/tsconfig.json +8 -0
- package/payload/platform/plugins/writer-craft/skills/citation-style/SKILL.md +94 -0
- package/payload/platform/plugins/writer-craft/skills/citation-style/references/book-and-chapter-models.md +77 -0
- package/payload/platform/plugins/writer-craft/skills/citation-style/references/citation-rules.md +103 -0
- package/payload/platform/plugins/writer-craft/skills/citation-style/references/journal-article-models.md +74 -0
- package/payload/platform/plugins/writer-craft/skills/citation-style/references/other-source-models.md +146 -0
- package/payload/platform/plugins/writer-craft/skills/citation-style/references/reference-list-rules.md +70 -0
- package/payload/platform/plugins/writer-craft/skills/editorial-practice/SKILL.md +108 -0
- package/payload/platform/plugins/writer-craft/skills/editorial-practice/references/copyediting.md +73 -0
- package/payload/platform/plugins/writer-craft/skills/editorial-practice/references/developmental-editing.md +85 -0
- package/payload/platform/plugins/writer-craft/skills/editorial-practice/references/genre-specific-editing.md +78 -0
- package/payload/platform/plugins/writer-craft/skills/editorial-practice/references/line-editing.md +55 -0
- package/payload/platform/plugins/writer-craft/skills/editorial-practice/references/self-editing.md +89 -0
- package/payload/platform/plugins/writer-craft/skills/persuasive-storytelling/SKILL.md +114 -0
- package/payload/platform/plugins/writer-craft/skills/persuasive-storytelling/references/audience-analysis.md +73 -0
- package/payload/platform/plugins/writer-craft/skills/persuasive-storytelling/references/crafting-persuasive-story.md +76 -0
- package/payload/platform/plugins/writer-craft/skills/persuasive-storytelling/references/persuasion-case-studies.md +67 -0
- package/payload/platform/plugins/writer-craft/skills/persuasive-storytelling/references/transformation-framework.md +86 -0
- package/payload/platform/plugins/writer-craft/skills/point-of-view/SKILL.md +97 -0
- package/payload/platform/plugins/writer-craft/skills/point-of-view/references/indirect-narration.md +72 -0
- package/payload/platform/plugins/writer-craft/skills/point-of-view/references/pov-types-and-voice.md +91 -0
- package/payload/platform/plugins/writer-craft/skills/point-of-view/references/protagonist-filter.md +71 -0
- package/payload/platform/plugins/writer-craft/skills/point-of-view/references/tense-and-person.md +85 -0
- package/payload/platform/plugins/writer-craft/skills/prose-craft/SKILL.md +100 -0
- package/payload/platform/plugins/writer-craft/skills/prose-craft/references/punctuation-and-grammar.md +72 -0
- package/payload/platform/plugins/writer-craft/skills/prose-craft/references/repetition.md +71 -0
- package/payload/platform/plugins/writer-craft/skills/prose-craft/references/sound-and-rhythm.md +64 -0
- package/payload/platform/plugins/writer-craft/skills/prose-craft/references/word-economy.md +93 -0
- package/payload/platform/plugins/writer-craft/skills/reader-engagement/SKILL.md +100 -0
- package/payload/platform/plugins/writer-craft/skills/reader-engagement/references/cause-effect-setup-payoff.md +79 -0
- package/payload/platform/plugins/writer-craft/skills/reader-engagement/references/conflict-escalation.md +81 -0
- package/payload/platform/plugins/writer-craft/skills/reader-engagement/references/hooking-readers.md +67 -0
- package/payload/platform/plugins/writer-craft/skills/reader-engagement/references/neurochemistry-of-engagement.md +94 -0
- package/payload/platform/plugins/writer-craft/skills/review-manuscript/SKILL.md +111 -0
- package/payload/platform/plugins/writer-craft/skills/review-manuscript/references/review-manuscript-checklist.md +119 -0
- package/payload/platform/plugins/writer-craft/skills/review-prose/SKILL.md +99 -0
- package/payload/platform/plugins/writer-craft/skills/review-prose/references/prose-review-checklist.md +112 -0
- package/payload/platform/plugins/writer-craft/skills/review-scene/SKILL.md +99 -0
- package/payload/platform/plugins/writer-craft/skills/review-scene/references/scene-analysis-framework.md +95 -0
- package/payload/platform/plugins/writer-craft/skills/story-architecture/SKILL.md +106 -0
- package/payload/platform/plugins/writer-craft/skills/story-architecture/references/blueprinting-and-scene-cards.md +118 -0
- package/payload/platform/plugins/writer-craft/skills/story-architecture/references/inner-issue-and-protagonist-goal.md +66 -0
- package/payload/platform/plugins/writer-craft/skills/story-architecture/references/misbelief-desire-worldview.md +87 -0
- package/payload/platform/plugins/writer-craft/skills/story-architecture/references/origin-scenes-and-escalation.md +82 -0
- package/payload/platform/plugins/writer-craft/skills/story-blueprint/SKILL.md +133 -0
- package/payload/platform/plugins/writer-craft/skills/story-blueprint/references/blueprinting-exercises.md +118 -0
- package/payload/platform/plugins/writer-craft/skills/story-blueprint/references/blueprinting-process.md +128 -0
- package/payload/platform/plugins/writer-craft/skills/voice-mirror/SKILL.md +166 -0
- package/payload/platform/scripts/seed-neo4j.sh +4 -0
- package/payload/premium-plugins/.claude-plugin/marketplace.json +10 -0
- package/payload/premium-plugins/teaching/.claude-plugin/plugin.json +8 -0
- package/payload/premium-plugins/teaching/PLUGIN.md +58 -0
- package/payload/premium-plugins/teaching/skills/interactive-tutor/SKILL.md +59 -0
- package/payload/premium-plugins/teaching/skills/interactive-tutor/references/assessment.md +70 -0
- package/payload/premium-plugins/teaching/skills/interactive-tutor/references/classroom-conduct.md +43 -0
- package/payload/premium-plugins/teaching/skills/interactive-tutor/references/teaching-modes.md +83 -0
- package/payload/premium-plugins/teaching/skills/lesson-planner/SKILL.md +48 -0
- package/payload/premium-plugins/teaching/skills/lesson-planner/references/context-gathering.md +41 -0
- package/payload/premium-plugins/teaching/skills/lesson-planner/references/plan-structure.md +94 -0
- package/payload/premium-plugins/teaching/skills/study-pack-builder/SKILL.md +52 -0
- package/payload/premium-plugins/teaching/skills/study-pack-builder/references/disaggregation.md +49 -0
- package/payload/premium-plugins/teaching/skills/study-pack-builder/references/materials.md +116 -0
- package/payload/premium-plugins/writer-craft/.claude-plugin/plugin.json +17 -0
- package/payload/premium-plugins/writer-craft/PLUGIN.md +130 -0
- package/payload/premium-plugins/writer-craft/agents/writer-craft--manuscript-reviewer.md +96 -0
- package/payload/premium-plugins/writer-craft/mcp/package.json +19 -0
- package/payload/premium-plugins/writer-craft/mcp/scripts/smoke.mjs +152 -0
- package/payload/premium-plugins/writer-craft/mcp/src/index.ts +289 -0
- package/payload/premium-plugins/writer-craft/mcp/src/lib/neo4j.ts +56 -0
- package/payload/premium-plugins/writer-craft/mcp/src/lib/voice-corpus.ts +54 -0
- package/payload/premium-plugins/writer-craft/mcp/src/tools/voice-distil-profile.ts +303 -0
- package/payload/premium-plugins/writer-craft/mcp/src/tools/voice-record-feedback.ts +114 -0
- package/payload/premium-plugins/writer-craft/mcp/src/tools/voice-retrieve-conditioning.ts +145 -0
- package/payload/premium-plugins/writer-craft/mcp/src/tools/voice-tag-content.ts +117 -0
- package/payload/premium-plugins/writer-craft/mcp/tsconfig.json +8 -0
- package/payload/premium-plugins/writer-craft/skills/citation-style/SKILL.md +94 -0
- package/payload/premium-plugins/writer-craft/skills/citation-style/references/book-and-chapter-models.md +77 -0
- package/payload/premium-plugins/writer-craft/skills/citation-style/references/citation-rules.md +103 -0
- package/payload/premium-plugins/writer-craft/skills/citation-style/references/journal-article-models.md +74 -0
- package/payload/premium-plugins/writer-craft/skills/citation-style/references/other-source-models.md +146 -0
- package/payload/premium-plugins/writer-craft/skills/citation-style/references/reference-list-rules.md +70 -0
- package/payload/premium-plugins/writer-craft/skills/editorial-practice/SKILL.md +108 -0
- package/payload/premium-plugins/writer-craft/skills/editorial-practice/references/copyediting.md +73 -0
- package/payload/premium-plugins/writer-craft/skills/editorial-practice/references/developmental-editing.md +85 -0
- package/payload/premium-plugins/writer-craft/skills/editorial-practice/references/genre-specific-editing.md +78 -0
- package/payload/premium-plugins/writer-craft/skills/editorial-practice/references/line-editing.md +55 -0
- package/payload/premium-plugins/writer-craft/skills/editorial-practice/references/self-editing.md +89 -0
- package/payload/premium-plugins/writer-craft/skills/persuasive-storytelling/SKILL.md +114 -0
- package/payload/premium-plugins/writer-craft/skills/persuasive-storytelling/references/audience-analysis.md +73 -0
- package/payload/premium-plugins/writer-craft/skills/persuasive-storytelling/references/crafting-persuasive-story.md +76 -0
- package/payload/premium-plugins/writer-craft/skills/persuasive-storytelling/references/persuasion-case-studies.md +67 -0
- package/payload/premium-plugins/writer-craft/skills/persuasive-storytelling/references/transformation-framework.md +86 -0
- package/payload/premium-plugins/writer-craft/skills/point-of-view/SKILL.md +97 -0
- package/payload/premium-plugins/writer-craft/skills/point-of-view/references/indirect-narration.md +72 -0
- package/payload/premium-plugins/writer-craft/skills/point-of-view/references/pov-types-and-voice.md +91 -0
- package/payload/premium-plugins/writer-craft/skills/point-of-view/references/protagonist-filter.md +71 -0
- package/payload/premium-plugins/writer-craft/skills/point-of-view/references/tense-and-person.md +85 -0
- package/payload/premium-plugins/writer-craft/skills/prose-craft/SKILL.md +100 -0
- package/payload/premium-plugins/writer-craft/skills/prose-craft/references/punctuation-and-grammar.md +72 -0
- package/payload/premium-plugins/writer-craft/skills/prose-craft/references/repetition.md +71 -0
- package/payload/premium-plugins/writer-craft/skills/prose-craft/references/sound-and-rhythm.md +64 -0
- package/payload/premium-plugins/writer-craft/skills/prose-craft/references/word-economy.md +93 -0
- package/payload/premium-plugins/writer-craft/skills/reader-engagement/SKILL.md +100 -0
- package/payload/premium-plugins/writer-craft/skills/reader-engagement/references/cause-effect-setup-payoff.md +79 -0
- package/payload/premium-plugins/writer-craft/skills/reader-engagement/references/conflict-escalation.md +81 -0
- package/payload/premium-plugins/writer-craft/skills/reader-engagement/references/hooking-readers.md +67 -0
- package/payload/premium-plugins/writer-craft/skills/reader-engagement/references/neurochemistry-of-engagement.md +94 -0
- package/payload/premium-plugins/writer-craft/skills/review-manuscript/SKILL.md +111 -0
- package/payload/premium-plugins/writer-craft/skills/review-manuscript/references/review-manuscript-checklist.md +119 -0
- package/payload/premium-plugins/writer-craft/skills/review-prose/SKILL.md +99 -0
- package/payload/premium-plugins/writer-craft/skills/review-prose/references/prose-review-checklist.md +112 -0
- package/payload/premium-plugins/writer-craft/skills/review-scene/SKILL.md +99 -0
- package/payload/premium-plugins/writer-craft/skills/review-scene/references/scene-analysis-framework.md +95 -0
- package/payload/premium-plugins/writer-craft/skills/story-architecture/SKILL.md +106 -0
- package/payload/premium-plugins/writer-craft/skills/story-architecture/references/blueprinting-and-scene-cards.md +118 -0
- package/payload/premium-plugins/writer-craft/skills/story-architecture/references/inner-issue-and-protagonist-goal.md +66 -0
- package/payload/premium-plugins/writer-craft/skills/story-architecture/references/misbelief-desire-worldview.md +87 -0
- package/payload/premium-plugins/writer-craft/skills/story-architecture/references/origin-scenes-and-escalation.md +82 -0
- package/payload/premium-plugins/writer-craft/skills/story-blueprint/SKILL.md +133 -0
- package/payload/premium-plugins/writer-craft/skills/story-blueprint/references/blueprinting-exercises.md +118 -0
- package/payload/premium-plugins/writer-craft/skills/story-blueprint/references/blueprinting-process.md +128 -0
- package/payload/premium-plugins/writer-craft/skills/voice-mirror/SKILL.md +166 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# Revision Materials — Per-Topic Generation
|
|
2
|
+
|
|
3
|
+
For each confirmed topic, produce these outputs. All content must come from the knowledge base (memory search), not from training data.
|
|
4
|
+
|
|
5
|
+
## 1. Summary
|
|
6
|
+
|
|
7
|
+
A concise explanation of everything the student needs to know for this topic. Written for the student to read independently.
|
|
8
|
+
|
|
9
|
+
**Behaviour:**
|
|
10
|
+
- Search memory for the topic content and extract the key facts, definitions, and relationships
|
|
11
|
+
- Use precise, assessment-appropriate language — not dumbed-down paraphrases
|
|
12
|
+
- Organise logically: definitions first, then processes/relationships, then applications
|
|
13
|
+
- Include specific details the knowledge base provides (dates, names, values, formulae, named examples)
|
|
14
|
+
- Keep it dense — this is revision, not first-encounter teaching
|
|
15
|
+
- Adapt the language complexity to the student's age, but do not sacrifice precision for simplicity
|
|
16
|
+
|
|
17
|
+
## 2. Flashcards
|
|
18
|
+
|
|
19
|
+
Question-and-answer pairs for active recall practice.
|
|
20
|
+
|
|
21
|
+
**Behaviour:**
|
|
22
|
+
- Write questions that mirror assessment phrasing — use command words relevant to the subject (define, explain, describe, compare, evaluate, calculate)
|
|
23
|
+
- One concept per card
|
|
24
|
+
- Answers should be concise and specific — what an assessor would accept
|
|
25
|
+
- Cover every key term, definition, and process in the topic
|
|
26
|
+
- Include application questions, not just recall — "Why does X happen?" not just "What is X?"
|
|
27
|
+
- Aim for 8-15 cards per individual topic depending on content density
|
|
28
|
+
|
|
29
|
+
**Format:**
|
|
30
|
+
Present as a numbered list of Q/A pairs:
|
|
31
|
+
```
|
|
32
|
+
1. Q: [Question]
|
|
33
|
+
A: [Answer]
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## 3. Assessment Questions
|
|
37
|
+
|
|
38
|
+
Assessment-style questions at varying difficulty.
|
|
39
|
+
|
|
40
|
+
**Behaviour:**
|
|
41
|
+
- 3-5 questions per topic
|
|
42
|
+
- Mix question types: short answer, explanation, application
|
|
43
|
+
- Grade by difficulty: label each as Foundation, Intermediate, or Higher
|
|
44
|
+
- Write plausible distractors for multiple-choice questions — drawn from within the same topic, not obviously absurd
|
|
45
|
+
- Include the expected answer or mark scheme points for each question
|
|
46
|
+
- Where the subject uses specific command words, use them
|
|
47
|
+
|
|
48
|
+
## 4. Key Terms
|
|
49
|
+
|
|
50
|
+
A glossary of essential vocabulary for the topic.
|
|
51
|
+
|
|
52
|
+
**Behaviour:**
|
|
53
|
+
- Every technical term the student would encounter in this topic
|
|
54
|
+
- Definitions that match the precision expected at the student's level
|
|
55
|
+
- Include the term as used in context where helpful
|
|
56
|
+
- Order alphabetically within each topic
|
|
57
|
+
|
|
58
|
+
## 5. Visual Overview
|
|
59
|
+
|
|
60
|
+
Generate an image summarising the topic's key concepts and relationships.
|
|
61
|
+
|
|
62
|
+
**Behaviour:**
|
|
63
|
+
- Use `image_generate` to create a visual overview — an infographic-style image showing the main concepts, their relationships, and key facts
|
|
64
|
+
- The image should work as a one-page visual reference the student can glance at during revision
|
|
65
|
+
- Describe the image content precisely in the generation prompt: topic name, key concepts to include, relationships to show, any diagrams or flows that would help
|
|
66
|
+
- For science topics: include diagrams (cell structures, food webs, circuit diagrams)
|
|
67
|
+
- For maths topics: include worked examples and formula summaries
|
|
68
|
+
- For humanities topics: include timelines, cause-and-effect flows, key figure summaries
|
|
69
|
+
|
|
70
|
+
## 6. Video Summary (Future)
|
|
71
|
+
|
|
72
|
+
When HeyGen video generation is available, generate a short video explanation of each topic.
|
|
73
|
+
|
|
74
|
+
**Behaviour:**
|
|
75
|
+
- Write a script suitable for a 2-3 minute video summary of the topic
|
|
76
|
+
- The script should be structured as spoken narration — clear, direct, assessment-focused
|
|
77
|
+
- Save the script to memory alongside the other materials so it can be used for video generation when the capability is available
|
|
78
|
+
- Mark this output as "script ready — video generation pending"
|
|
79
|
+
|
|
80
|
+
## Saving to Memory
|
|
81
|
+
|
|
82
|
+
Save each topic's materials to memory as a single file at:
|
|
83
|
+
```
|
|
84
|
+
memory/public/study-packs/{subject}/{topic-slug}.md
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Use a consistent structure within each file:
|
|
88
|
+
```
|
|
89
|
+
# {Topic Name}
|
|
90
|
+
|
|
91
|
+
## Summary
|
|
92
|
+
...
|
|
93
|
+
|
|
94
|
+
## Flashcards
|
|
95
|
+
...
|
|
96
|
+
|
|
97
|
+
## Assessment Questions
|
|
98
|
+
...
|
|
99
|
+
|
|
100
|
+
## Key Terms
|
|
101
|
+
...
|
|
102
|
+
|
|
103
|
+
## Visual Overview
|
|
104
|
+
[Generated image reference]
|
|
105
|
+
|
|
106
|
+
## Video Script
|
|
107
|
+
[Script text — pending video generation]
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Quality Check
|
|
111
|
+
|
|
112
|
+
Before saving, verify:
|
|
113
|
+
- Every flashcard and assessment answer traces back to knowledge base content
|
|
114
|
+
- No content has been introduced from general knowledge or training data
|
|
115
|
+
- Key terms match the terminology used in the knowledge base
|
|
116
|
+
- The difficulty spread is appropriate for the student's age and level
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "writer-craft",
|
|
3
|
+
"description": "Manuscript review and writing craft tools grounded in neuroscience-based story theory, professional editing practice, and prose technique. 12 skills covering story architecture, reader engagement, prose craft, point of view, persuasive storytelling, editorial practice, citation style, three levels of manuscript review, and voice mirror (authorial-voice capture + application) — plus a specialist subagent for autonomous deep manuscript review.",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Rubytech LLC"
|
|
7
|
+
},
|
|
8
|
+
"mcpServers": {
|
|
9
|
+
"writer-craft": {
|
|
10
|
+
"type": "stdio",
|
|
11
|
+
"command": "node",
|
|
12
|
+
"args": [
|
|
13
|
+
"${CLAUDE_PLUGIN_ROOT}/mcp/dist/index.js"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
---
|
|
2
|
+
mcp-manifest: auto
|
|
3
|
+
name: writer-craft
|
|
4
|
+
description: "Manuscript review and writing craft tools grounded in neuroscience-based story theory, professional editing practice, and prose technique. 12 skills covering story architecture, reader engagement, prose craft, point of view, persuasive storytelling, editorial practice, citation style, three levels of manuscript review, and voice mirror (authorial-voice capture + application) — plus a specialist subagent for autonomous deep manuscript review."
|
|
5
|
+
icon: ✍️
|
|
6
|
+
tools:
|
|
7
|
+
- name: voice-tag-content
|
|
8
|
+
publicAllowlist: false
|
|
9
|
+
adminAllowlist: true
|
|
10
|
+
- name: voice-distil-profile
|
|
11
|
+
publicAllowlist: false
|
|
12
|
+
adminAllowlist: true
|
|
13
|
+
- name: voice-retrieve-conditioning
|
|
14
|
+
publicAllowlist: false
|
|
15
|
+
adminAllowlist: true
|
|
16
|
+
- name: voice-record-feedback
|
|
17
|
+
publicAllowlist: false
|
|
18
|
+
adminAllowlist: true
|
|
19
|
+
always: false
|
|
20
|
+
embed: false
|
|
21
|
+
mcp:
|
|
22
|
+
command: node
|
|
23
|
+
args:
|
|
24
|
+
- ${PLATFORM_ROOT}/lib/mcp-spawn-tee/dist/index.js
|
|
25
|
+
- ${PLATFORM_ROOT}/../premium-plugins/writer-craft/mcp/dist/index.js
|
|
26
|
+
env:
|
|
27
|
+
MCP_SPAWN_TEE_NAME: writer-craft
|
|
28
|
+
LOG_DIR: ${LOG_DIR}
|
|
29
|
+
PLATFORM_ROOT: ${PLATFORM_ROOT}
|
|
30
|
+
ACCOUNT_ID: ${ACCOUNT_ID}
|
|
31
|
+
ADMIN_USER_ID: ${ADMIN_USER_ID}
|
|
32
|
+
SESSION_ID: ${SESSION_ID}
|
|
33
|
+
NEO4J_URI: ${NEO4J_URI}
|
|
34
|
+
NEO4J_USER: ${NEO4J_USER}
|
|
35
|
+
NEO4J_PASSWORD: ${NEO4J_PASSWORD}
|
|
36
|
+
metadata: {"platform":{"optional":true,"pluginKey":"writer-craft","embed":["admin"]}}
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
# Writer Craft
|
|
40
|
+
|
|
41
|
+
11 specialist skills for writers, editors, and anyone working with narrative. Each skill draws on neuroscience-based story theory (how the brain processes narrative), professional editing practice (developmental, line, and copyediting), and prose technique (sound, rhythm, word economy, POV). One specialist subagent performs autonomous deep manuscript review.
|
|
42
|
+
|
|
43
|
+
## When to Activate
|
|
44
|
+
|
|
45
|
+
The user is:
|
|
46
|
+
- Writing fiction or nonfiction and wants craft-level guidance
|
|
47
|
+
- Reviewing or editing a manuscript, chapter, scene, or passage
|
|
48
|
+
- Building a story from scratch using blueprinting methodology
|
|
49
|
+
- Working on persuasive writing, speeches, or advocacy storytelling
|
|
50
|
+
- Formatting citations and references in Chicago author-date style
|
|
51
|
+
- Seeking feedback on prose quality, POV consistency, or reader engagement
|
|
52
|
+
|
|
53
|
+
## Skills
|
|
54
|
+
|
|
55
|
+
### Story & Structure
|
|
56
|
+
|
|
57
|
+
| Skill | Purpose |
|
|
58
|
+
|-------|---------|
|
|
59
|
+
| `story-architecture` | Build and analyze internal story architecture: misbelief, desire, third rail, worldview, origin scenes, scene cards |
|
|
60
|
+
| `story-blueprint` | Walk a writer interactively through building a story from the inside out using the Story Genius blueprinting method |
|
|
61
|
+
| `reader-engagement` | Analyze and teach reader engagement: hooking from page one, urgency, cause-and-effect, setup-payoff, conflict escalation |
|
|
62
|
+
|
|
63
|
+
### Prose & Voice
|
|
64
|
+
|
|
65
|
+
| Skill | Purpose |
|
|
66
|
+
|-------|---------|
|
|
67
|
+
| `prose-craft` | Review and teach prose technique: sound and rhythm, sentence variety, punctuation, repetition, word economy, crowding and leaping |
|
|
68
|
+
| `point-of-view` | Guide point of view, narrative voice, tense, person, and indirect narration |
|
|
69
|
+
| `persuasive-storytelling` | Guide persuasive storytelling for nonfiction, speeches, marketing, and advocacy |
|
|
70
|
+
|
|
71
|
+
### Editing & Reference
|
|
72
|
+
|
|
73
|
+
| Skill | Purpose |
|
|
74
|
+
|-------|---------|
|
|
75
|
+
| `editorial-practice` | Guide professional editing methods: developmental editing, line editing, copyediting, self-editing, genre-specific considerations |
|
|
76
|
+
| `citation-style` | Guide Chicago author-date citation and reference formatting per the Chicago Manual of Style (17th edition) |
|
|
77
|
+
|
|
78
|
+
### Review
|
|
79
|
+
|
|
80
|
+
| Skill | Purpose |
|
|
81
|
+
|-------|---------|
|
|
82
|
+
| `review-manuscript` | Comprehensive multi-level review covering story architecture, reader engagement, prose craft, and editorial quality |
|
|
83
|
+
| `review-scene` | Deep analysis of a single scene against scene card criteria, engagement principles, and prose craft standards |
|
|
84
|
+
| `review-prose` | Prose-level review analyzing sound, rhythm, sentence variety, POV consistency, word economy, and crowding/leaping balance |
|
|
85
|
+
|
|
86
|
+
### Authorial Voice
|
|
87
|
+
|
|
88
|
+
| Skill | Purpose |
|
|
89
|
+
|-------|---------|
|
|
90
|
+
| `voice-mirror` | Capture the operator's voice from their own writing (`human-only` corpus) and condition agent drafts on it. Four tools: tag historical content, distil a style card, retrieve conditioning for a drafting brief, and record operator edits as feedback. Other drafting skills (email composition, Postiz, property-brochure, prospectus) call it transparently — opt-out via `voiceMirror: false` in the calling skill's frontmatter. |
|
|
91
|
+
|
|
92
|
+
## Specialist Agent
|
|
93
|
+
|
|
94
|
+
| Agent | Purpose |
|
|
95
|
+
|-------|---------|
|
|
96
|
+
| `writer-craft--manuscript-reviewer` | Autonomous deep manuscript reviewer — reads a full manuscript or chapter and produces a structured report with inline observations and summary |
|
|
97
|
+
|
|
98
|
+
The manuscript-reviewer agent operates in its own context window with file tools (Read, Glob, Grep, Write), allowing it to work through full manuscripts autonomously. Use it when the user submits a substantial piece of text for comprehensive review across all dimensions.
|
|
99
|
+
|
|
100
|
+
## Tools
|
|
101
|
+
|
|
102
|
+
Voice-mirror introduces four deterministic plugin tools. They route writes through `memory-write` so the graph-write gate stamps provenance on every node.
|
|
103
|
+
|
|
104
|
+
| Tool | Purpose |
|
|
105
|
+
|------|---------|
|
|
106
|
+
| `voice-tag-content` | Stamp `authorshipMode ∈ {human-only, human-led-agent-assisted, agent-led-human-reviewed, agent-only, unknown}` on one or many `:KnowledgeDocument | :Message | :SocialPost` nodes (email threads live as `:KnowledgeDocument {source:'email'}` since Task 321). Bulk-mode for backfill batches. |
|
|
107
|
+
| `voice-distil-profile` | Walk the operator's `human-only` corpus and persist a `:VoiceProfile {styleCard, generatedAt, corpusSize, feedbackEntries}` linked to the `:AdminUser`. Cadence-guarded: re-runs on ≥20% corpus growth or ≥30 days, otherwise no-op. |
|
|
108
|
+
| `voice-retrieve-conditioning` | Return `{styleCard, exemplars[]}` for a drafting brief. K=5 short-form, K=15 long-form. Token-budget bounded. Graceful degradation: empty profile → `{styleCard: null, exemplars: []}`. |
|
|
109
|
+
| `voice-record-feedback` | Capture an operator edit on an agent draft as a `:VoiceEdit` with a Haiku-summarised `intent`, linked back to the operator's `:VoiceProfile` via `:FEEDBACK_FOR`. |
|
|
110
|
+
|
|
111
|
+
The non-voice skills continue to operate via existing platform tools (`memory-search` for knowledge retrieval). Structured choices are still presented as numbered lists in plain chat — the platform has no inline-UI component primitive on the admin / native-CC surface.
|
|
112
|
+
|
|
113
|
+
## References
|
|
114
|
+
|
|
115
|
+
Domain knowledge files loaded on demand by each skill. See individual skill files for their specific reference listings.
|
|
116
|
+
|
|
117
|
+
| Skill | References |
|
|
118
|
+
|-------|-----------|
|
|
119
|
+
| `story-architecture` | `misbelief-desire-worldview.md`, `blueprinting-and-scene-cards.md`, `origin-scenes-and-escalation.md`, `inner-issue-and-protagonist-goal.md` |
|
|
120
|
+
| `story-blueprint` | `blueprinting-process.md`, `blueprinting-exercises.md` |
|
|
121
|
+
| `prose-craft` | `sound-and-rhythm.md`, `word-economy.md`, `punctuation-and-grammar.md`, `repetition.md` |
|
|
122
|
+
| `point-of-view` | `pov-types-and-voice.md`, `tense-and-person.md`, `indirect-narration.md`, `protagonist-filter.md` |
|
|
123
|
+
| `reader-engagement` | `hooking-readers.md`, `cause-effect-setup-payoff.md`, `conflict-escalation.md`, `neurochemistry-of-engagement.md` |
|
|
124
|
+
| `persuasive-storytelling` | `audience-analysis.md`, `transformation-framework.md`, `crafting-persuasive-story.md`, `persuasion-case-studies.md` |
|
|
125
|
+
| `editorial-practice` | `developmental-editing.md`, `line-editing.md`, `copyediting.md`, `genre-specific-editing.md`, `self-editing.md` |
|
|
126
|
+
| `citation-style` | `citation-rules.md`, `reference-list-rules.md`, `journal-article-models.md`, `book-and-chapter-models.md`, `other-source-models.md` |
|
|
127
|
+
| `review-manuscript` | `review-manuscript-checklist.md` |
|
|
128
|
+
| `review-scene` | `scene-analysis-framework.md` |
|
|
129
|
+
| `review-prose` | `prose-review-checklist.md` |
|
|
130
|
+
| `voice-mirror` | No external references; the skill body defines the four tool contracts. Developer notes in `maxy-code/.docs/voice-mirror.md`. |
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: manuscript-reviewer
|
|
3
|
+
description: "Autonomous deep manuscript reviewer. Delegate when the user submits a manuscript, chapter, or substantial passage for comprehensive review, asks for a 'full review', 'manuscript assessment', or 'deep critique', or wants feedback across all dimensions of writing quality rather than a specific aspect."
|
|
4
|
+
summary: "Reads a full manuscript or chapter and produces a structured report with inline observations and a summary covering story architecture, reader engagement, prose craft, and editorial quality."
|
|
5
|
+
model: claude-sonnet-4-6
|
|
6
|
+
tools: Read, Glob, Grep, Write
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Manuscript Reviewer Agent
|
|
10
|
+
|
|
11
|
+
## Doctrine
|
|
12
|
+
|
|
13
|
+
Never run uncommanded git writes. `git init`, `git commit`, `git add`, `git stash`, `git reset`, `git checkout`, and branch mutations are forbidden unless the operator named the action in this turn. If a harness precondition demands a git state you don't have, stop and report — never improvise a repo or commit.
|
|
14
|
+
|
|
15
|
+
You are a manuscript reviewer with deep expertise in neuroscience-based story theory, professional editing practice, and prose craft. Your job is to read the submitted text carefully and produce a comprehensive review that helps the writer make their work better.
|
|
16
|
+
|
|
17
|
+
## Your Knowledge Base
|
|
18
|
+
|
|
19
|
+
You draw on three bodies of knowledge:
|
|
20
|
+
|
|
21
|
+
1. **Neuroscience-based story theory** — how the brain processes narrative, why readers engage or disengage, the internal architecture of story (misbelief, desire, third rail, cause-and-effect, setup-payoff)
|
|
22
|
+
2. **Professional editing practice** — developmental editing, line editing, copyediting, genre-specific considerations
|
|
23
|
+
3. **Prose craft technique** — sound, rhythm, sentence variety, POV, voice, word economy, crowding and leaping
|
|
24
|
+
|
|
25
|
+
## Review Process
|
|
26
|
+
|
|
27
|
+
### Step 1: Read the Full Text
|
|
28
|
+
Read everything before making observations. Note your first impressions — where you were engaged, confused, bored, or delighted. These are data.
|
|
29
|
+
|
|
30
|
+
### Step 2: Identify the Story's Core
|
|
31
|
+
Before critiquing, establish what exists:
|
|
32
|
+
- What is the story about (the internal journey, not the plot)?
|
|
33
|
+
- Who is the protagonist and what do they want?
|
|
34
|
+
- What is the misbelief or inner issue?
|
|
35
|
+
- What is the story question the reader is tracking?
|
|
36
|
+
|
|
37
|
+
If these cannot be identified, that is the primary finding.
|
|
38
|
+
|
|
39
|
+
### Step 3: Apply Four Lenses (in order)
|
|
40
|
+
|
|
41
|
+
**Lens 1 — Story Architecture:**
|
|
42
|
+
Check misbelief (specific, earned, active?), desire (in conflict with misbelief?), third rail (does every scene touch it?), cause-and-effect chain through the internal story, opening (last possible moment?), trajectory toward the Aha moment.
|
|
43
|
+
|
|
44
|
+
**Lens 2 — Reader Engagement:**
|
|
45
|
+
Check the opening hook, urgency, cause-and-effect scene to scene, setup-payoff integrity, conflict escalation, emotional resonance (protagonist reacting, reader able to mirror).
|
|
46
|
+
|
|
47
|
+
**Lens 3 — Prose Craft:**
|
|
48
|
+
Check sound and rhythm (mind's ear test), sentence variety, adjective/adverb economy, repetition (deliberate vs. accidental), POV consistency, exposition integration, crowding/leaping balance.
|
|
49
|
+
|
|
50
|
+
**Lens 4 — Editorial Quality:**
|
|
51
|
+
Check structural pacing, line-level clarity, internal consistency (names, timeline, details), passages where the reader would disengage.
|
|
52
|
+
|
|
53
|
+
### Step 4: Produce the Report
|
|
54
|
+
|
|
55
|
+
Output two parts:
|
|
56
|
+
|
|
57
|
+
**Part A — Inline Observations:**
|
|
58
|
+
Walk through the text, noting observations at the specific points where they occur. For each:
|
|
59
|
+
- Quote or reference the passage
|
|
60
|
+
- Name the issue precisely
|
|
61
|
+
- Explain why it matters to the reader's experience
|
|
62
|
+
- Suggest a direction for revision where possible
|
|
63
|
+
|
|
64
|
+
**Part B — Summary Report:**
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
## Manuscript Review: [Title/Description]
|
|
68
|
+
|
|
69
|
+
### What Works
|
|
70
|
+
[Specific, genuine praise — name what the writer does well]
|
|
71
|
+
|
|
72
|
+
### Story Architecture
|
|
73
|
+
[Misbelief, desire, third rail, internal story, cause-and-effect]
|
|
74
|
+
|
|
75
|
+
### Reader Engagement
|
|
76
|
+
[Hooks, urgency, setup-payoff, conflict, emotional resonance]
|
|
77
|
+
|
|
78
|
+
### Prose Craft
|
|
79
|
+
[Sound, rhythm, POV, word economy, crowding/leaping]
|
|
80
|
+
|
|
81
|
+
### Editorial Notes
|
|
82
|
+
[Structure, pacing, consistency, line-level issues]
|
|
83
|
+
|
|
84
|
+
### Priority Recommendations
|
|
85
|
+
[3-5 most important things to address, ordered by impact]
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Review Principles
|
|
89
|
+
|
|
90
|
+
- **Start with what works.** Every manuscript has strengths. Name them.
|
|
91
|
+
- **Biggest issues first.** If story architecture is broken, don't lead with comma placement.
|
|
92
|
+
- **Be specific.** Not "the pacing is off" but "Chapters 4-6 lose momentum because the protagonist has no active goal."
|
|
93
|
+
- **Explain why.** Don't just flag problems — explain what they do to the reader.
|
|
94
|
+
- **Preserve the author's voice.** Never suggest changes that would make the writing sound like you.
|
|
95
|
+
- **Frame as possibilities.** "What if..." rather than "You must..."
|
|
96
|
+
- **The book belongs to the author.** Help them write the best version of their book.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@maxy/writer-craft-mcp",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc",
|
|
9
|
+
"smoke": "node scripts/smoke.mjs"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
13
|
+
"neo4j-driver": "^5.28.1"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"typescript": "^5.7.0",
|
|
17
|
+
"@types/node": "^22.0.0"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Boot + shape smoke test for the writer-craft MCP server.
|
|
4
|
+
*
|
|
5
|
+
* Verifies:
|
|
6
|
+
* 1. Every compiled tool module loads without throwing.
|
|
7
|
+
* 2. Every exported handler is a function with the expected name.
|
|
8
|
+
* 3. AUTHORSHIP_MODES enum covers the five spec-required values.
|
|
9
|
+
* 4. TAGGABLE_PRIMARY_LABELS covers the four content labels.
|
|
10
|
+
* 5. `voice-retrieve-conditioning` returns the graceful-degradation
|
|
11
|
+
* shape `{styleCard: null, exemplars: []}` when accountId is empty
|
|
12
|
+
* (the contract the calling drafting skills depend on).
|
|
13
|
+
*
|
|
14
|
+
* Runs with no external dependencies and no neo4j connection — the
|
|
15
|
+
* graceful-degradation case never opens a session. The four other tools
|
|
16
|
+
* are not exercised against the database here; their unit test coverage
|
|
17
|
+
* is filed as a follow-up. This smoke harness catches import errors,
|
|
18
|
+
* accidental contract changes on the empty-corpus return shape, and
|
|
19
|
+
* structural drift on the exported enum.
|
|
20
|
+
*
|
|
21
|
+
* Exit code: 0 on pass, 1 on any assertion failure. Designed for CI
|
|
22
|
+
* gating and `npm run smoke` in the build pipeline.
|
|
23
|
+
*/
|
|
24
|
+
import { strict as assert } from "node:assert";
|
|
25
|
+
|
|
26
|
+
const errors = [];
|
|
27
|
+
function check(name, fn) {
|
|
28
|
+
try {
|
|
29
|
+
const result = fn();
|
|
30
|
+
if (result && typeof result.then === "function") {
|
|
31
|
+
return result.then(
|
|
32
|
+
() => console.log(` ok ${name}`),
|
|
33
|
+
(err) => {
|
|
34
|
+
errors.push({ name, err });
|
|
35
|
+
console.error(` FAIL ${name}: ${err.message}`);
|
|
36
|
+
},
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
console.log(` ok ${name}`);
|
|
40
|
+
} catch (err) {
|
|
41
|
+
errors.push({ name, err });
|
|
42
|
+
console.error(` FAIL ${name}: ${err.message}`);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
console.log("[writer-craft smoke] starting");
|
|
47
|
+
|
|
48
|
+
// 1. Modules load.
|
|
49
|
+
const tagMod = await import("../dist/tools/voice-tag-content.js");
|
|
50
|
+
const distilMod = await import("../dist/tools/voice-distil-profile.js");
|
|
51
|
+
const retrieveMod = await import("../dist/tools/voice-retrieve-conditioning.js");
|
|
52
|
+
const feedbackMod = await import("../dist/tools/voice-record-feedback.js");
|
|
53
|
+
const corpusMod = await import("../dist/lib/voice-corpus.js");
|
|
54
|
+
|
|
55
|
+
await check("voice-tag-content exports voiceTagContent function", () => {
|
|
56
|
+
assert.equal(typeof tagMod.voiceTagContent, "function");
|
|
57
|
+
});
|
|
58
|
+
await check("voice-tag-content exports AUTHORSHIP_MODES set of 5", () => {
|
|
59
|
+
const expected = [
|
|
60
|
+
"human-only",
|
|
61
|
+
"human-led-agent-assisted",
|
|
62
|
+
"agent-led-human-reviewed",
|
|
63
|
+
"agent-only",
|
|
64
|
+
"unknown",
|
|
65
|
+
];
|
|
66
|
+
assert.equal(tagMod.AUTHORSHIP_MODES.size, 5);
|
|
67
|
+
for (const m of expected) assert.ok(tagMod.AUTHORSHIP_MODES.has(m), `missing ${m}`);
|
|
68
|
+
});
|
|
69
|
+
await check("voice-distil-profile exports voiceDistilProfile function", () => {
|
|
70
|
+
assert.equal(typeof distilMod.voiceDistilProfile, "function");
|
|
71
|
+
});
|
|
72
|
+
await check("voice-retrieve-conditioning exports voiceRetrieveConditioning function", () => {
|
|
73
|
+
assert.equal(typeof retrieveMod.voiceRetrieveConditioning, "function");
|
|
74
|
+
});
|
|
75
|
+
await check("voice-record-feedback exports voiceRecordFeedback function", () => {
|
|
76
|
+
assert.equal(typeof feedbackMod.voiceRecordFeedback, "function");
|
|
77
|
+
});
|
|
78
|
+
await check("VOICE_CORPUS_WHERE is non-empty string with both predicates", () => {
|
|
79
|
+
assert.equal(typeof corpusMod.VOICE_CORPUS_WHERE, "string");
|
|
80
|
+
assert.ok(corpusMod.VOICE_CORPUS_WHERE.includes("authorshipMode IN"));
|
|
81
|
+
assert.ok(corpusMod.VOICE_CORPUS_WHERE.includes("human-only"));
|
|
82
|
+
assert.ok(corpusMod.VOICE_CORPUS_WHERE.includes("human-led-agent-assisted"));
|
|
83
|
+
assert.ok(corpusMod.VOICE_CORPUS_WHERE.includes("Section"));
|
|
84
|
+
});
|
|
85
|
+
await check("TAGGABLE_PRIMARY_LABELS covers the four content labels", () => {
|
|
86
|
+
const labels = [...corpusMod.TAGGABLE_PRIMARY_LABELS];
|
|
87
|
+
assert.deepEqual(labels.sort(), ["Email", "KnowledgeDocument", "Message", "SocialPost"]);
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
// 2. Graceful-degradation contract — the drafting skills depend on this.
|
|
91
|
+
// Empty accountId/adminUserId path returns the empty shape without
|
|
92
|
+
// opening a neo4j session. This is the load-bearing contract.
|
|
93
|
+
await check(
|
|
94
|
+
"voice-retrieve-conditioning returns empty shape on missing accountId",
|
|
95
|
+
async () => {
|
|
96
|
+
const result = await retrieveMod.voiceRetrieveConditioning({
|
|
97
|
+
accountId: "",
|
|
98
|
+
adminUserId: "u",
|
|
99
|
+
brief: { format: "short" },
|
|
100
|
+
});
|
|
101
|
+
assert.deepEqual(result, { styleCard: null, exemplars: [] });
|
|
102
|
+
},
|
|
103
|
+
);
|
|
104
|
+
await check(
|
|
105
|
+
"voice-retrieve-conditioning returns empty shape on missing adminUserId",
|
|
106
|
+
async () => {
|
|
107
|
+
const result = await retrieveMod.voiceRetrieveConditioning({
|
|
108
|
+
accountId: "acc",
|
|
109
|
+
adminUserId: "",
|
|
110
|
+
brief: { format: "long" },
|
|
111
|
+
});
|
|
112
|
+
assert.deepEqual(result, { styleCard: null, exemplars: [] });
|
|
113
|
+
},
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
// 3. voice-tag-content validates the mode enum before any DB work.
|
|
117
|
+
await check("voice-tag-content rejects an invalid mode", async () => {
|
|
118
|
+
await assert.rejects(
|
|
119
|
+
() =>
|
|
120
|
+
tagMod.voiceTagContent({
|
|
121
|
+
nodeIds: ["x"],
|
|
122
|
+
mode: "not-a-mode",
|
|
123
|
+
accountId: "acc",
|
|
124
|
+
}),
|
|
125
|
+
/invalid authorshipMode/,
|
|
126
|
+
);
|
|
127
|
+
});
|
|
128
|
+
await check("voice-tag-content rejects empty accountId", async () => {
|
|
129
|
+
await assert.rejects(
|
|
130
|
+
() =>
|
|
131
|
+
tagMod.voiceTagContent({
|
|
132
|
+
nodeIds: ["x"],
|
|
133
|
+
mode: "human-only",
|
|
134
|
+
accountId: "",
|
|
135
|
+
}),
|
|
136
|
+
/accountId is required/,
|
|
137
|
+
);
|
|
138
|
+
});
|
|
139
|
+
await check("voice-tag-content returns zero counts on empty nodeIds (no DB hit)", async () => {
|
|
140
|
+
const result = await tagMod.voiceTagContent({
|
|
141
|
+
nodeIds: [],
|
|
142
|
+
mode: "human-only",
|
|
143
|
+
accountId: "acc",
|
|
144
|
+
});
|
|
145
|
+
assert.deepEqual(result, { updated: 0, skipped: 0, skippedReasons: {} });
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
if (errors.length > 0) {
|
|
149
|
+
console.error(`\n[writer-craft smoke] FAILED — ${errors.length} assertion(s)`);
|
|
150
|
+
process.exit(1);
|
|
151
|
+
}
|
|
152
|
+
console.log("\n[writer-craft smoke] all passed");
|