@hanna84/mcp-writing 3.1.1 → 3.1.2

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/CHANGELOG.md CHANGED
@@ -4,11 +4,21 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### [v3.1.2](https://github.com/hannasdev/mcp-writing.git
8
+ /compare/v3.1.1...v3.1.2)
9
+
10
+ - refactor: move styleguide skill output to skills/prose-styleguide/SKILL.md [`#168`](https://github.com/hannasdev/mcp-writing.git
11
+ /pull/168)
12
+
7
13
  #### [v3.1.1](https://github.com/hannasdev/mcp-writing.git
8
14
  /compare/v3.1.0...v3.1.1)
9
15
 
16
+ > 3 May 2026
17
+
10
18
  - fix: surface runtime warning for invalid PROSE_STYLEGUIDE_ENFORCEMENT_MODE [`#167`](https://github.com/hannasdev/mcp-writing.git
11
19
  /pull/167)
20
+ - Release 3.1.1 [`0531168`](https://github.com/hannasdev/mcp-writing.git
21
+ /commit/0531168d60bde6f445a3465b3f4246fdca53bfba)
12
22
 
13
23
  #### [v3.1.0](https://github.com/hannasdev/mcp-writing.git
14
24
  /compare/v3.0.0...v3.1.0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanna84/mcp-writing",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "MCP service for AI-assisted reasoning and editing on long-form fiction projects",
5
5
  "homepage": "https://hannasdev.github.io/mcp-writing/",
6
6
  "type": "module",
@@ -1,5 +1,5 @@
1
- export const PROSE_STYLEGUIDE_SKILL_DIRNAME = "skills";
2
- export const PROSE_STYLEGUIDE_SKILL_BASENAME = "prose-styleguide.md";
1
+ export const PROSE_STYLEGUIDE_SKILL_DIRNAME = "skills/prose-styleguide";
2
+ export const PROSE_STYLEGUIDE_SKILL_BASENAME = "SKILL.md";
3
3
 
4
4
  const LANGUAGE_LABELS = {
5
5
  english_us: "English (US)",
@@ -63,7 +63,7 @@ export function buildProseStyleguideSkill({ resolvedConfig, sources = [], projec
63
63
  ok: false,
64
64
  error: {
65
65
  code: "INVALID_STYLEGUIDE_CONFIG",
66
- message: "Cannot generate prose-styleguide.md without a resolved config object.",
66
+ message: "Cannot generate skills/prose-styleguide/SKILL.md without a resolved config object.",
67
67
  },
68
68
  };
69
69
  }
@@ -73,7 +73,7 @@ function resolveStyleguideSnapshot({ syncDir, projectId, errorResponse }) {
73
73
  ok: false,
74
74
  response: errorResponse(
75
75
  "STYLEGUIDE_SKILL_IO_ERROR",
76
- "Failed to read skills/prose-styleguide.md while resolving styleguide snapshot.",
76
+ "Failed to read skills/prose-styleguide/SKILL.md while resolving styleguide snapshot.",
77
77
  {
78
78
  file_path: skillPath,
79
79
  reason: err.message,
@@ -147,14 +147,14 @@ function evaluateStyleguidePolicy({
147
147
  ok: false,
148
148
  response: errorResponse(
149
149
  "STYLEGUIDE_SKILL_REQUIRED",
150
- "Cannot propose prose edits before skills/prose-styleguide.md exists.",
150
+ "Cannot propose prose edits before skills/prose-styleguide/SKILL.md exists.",
151
151
  {
152
152
  next_step: "Run setup_prose_styleguide_skill, then retry propose_edit.",
153
153
  }
154
154
  ),
155
155
  };
156
156
  }
157
- warnings.push("skills/prose-styleguide.md was not found at sync root.");
157
+ warnings.push("skills/prose-styleguide/SKILL.md was not found at sync root.");
158
158
  }
159
159
  }
160
160
 
@@ -603,10 +603,10 @@ export function registerStyleguideTools(s, {
603
603
 
604
604
  s.tool(
605
605
  "setup_prose_styleguide_skill",
606
- "Generate skills/prose-styleguide.md from the resolved prose styleguide config and universal craft rules.",
606
+ "Generate skills/prose-styleguide/SKILL.md from the resolved prose styleguide config and universal craft rules.",
607
607
  {
608
608
  project_id: z.string().optional().describe("Optional project ID for scoped config resolution (e.g. 'the-lamb' or 'universe-1/book-1')."),
609
- overwrite: z.boolean().optional().describe("If true, replaces an existing skills/prose-styleguide.md file."),
609
+ overwrite: z.boolean().optional().describe("If true, replaces an existing skills/prose-styleguide/SKILL.md file."),
610
610
  },
611
611
  async ({ project_id, overwrite = false }) => {
612
612
  if (project_id !== undefined) {
@@ -638,7 +638,7 @@ export function registerStyleguideTools(s, {
638
638
  if (resolved.setup_required || !resolved.resolved_config) {
639
639
  return errorResponse(
640
640
  "STYLEGUIDE_CONFIG_REQUIRED",
641
- "Cannot generate prose-styleguide.md before prose-styleguide.config.yaml is set up.",
641
+ "Cannot generate skills/prose-styleguide/SKILL.md before prose-styleguide.config.yaml is set up.",
642
642
  {
643
643
  project_id: project_id ?? null,
644
644
  next_step: "Run setup_prose_styleguide_config or bootstrap_prose_styleguide_config first.",
@@ -658,7 +658,7 @@ export function registerStyleguideTools(s, {
658
658
  if (fs.existsSync(skillPath) && !overwrite) {
659
659
  return errorResponse(
660
660
  "STYLEGUIDE_SKILL_EXISTS",
661
- "skills/prose-styleguide.md already exists. Set overwrite=true to replace it.",
661
+ "skills/prose-styleguide/SKILL.md already exists. Set overwrite=true to replace it.",
662
662
  { target_path: path.resolve(skillPath) }
663
663
  );
664
664
  }