@ww_nero/skills 2.4.5 → 3.0.1

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.
Files changed (2) hide show
  1. package/index.js +5 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -183,13 +183,15 @@ const GUIDES = {
183
183
  1. **规划PPT内容**,存储到markdown文件中:
184
184
  - 每页Slide的规划需要包含:内容、布局方式、插图(只有用户明确提出要求时才添加插图)
185
185
  - 不同页面应尽可能使用不同的布局方式,避免过于单调,可适当使用图表来呈现信息,例如折线图、柱状图、饼状图等;各正文页面背景和标题样式应保持一致
186
- - 如果用户未明确提出要求,则页面默认比例为宽1280px、高720px,默认背景为象牙白(#FFFFF0)、弱渐变、商务简约、扁平化风格
186
+ - 如果用户未明确提出要求,则页面默认比例为宽1280px、高720px,默认背景为弱渐变的浅灰蓝(#F2F4F7 → #FCFCFC)、商务简约、扁平化风格
187
187
  - 如果需要插入图片,则按照以下方式:
188
188
  - 收集图片素材,优先使用用户提供的图片;如未提供,则使用图片生成工具生成合适的图片
189
189
  - 将图片素材保存到\`images\`文件夹中,通过python脚本获取每个图片的宽高比例,然后对每张图片进行重命名,通过名称标识图片的内容及宽高比例,例如\`main_background_16_9.png\`表示该图片是主背景图,宽高比为16:9;对于用户提供的图片素材,可调用工具解读图片内容
190
190
 
191
191
  2. **通过SVG代码实现Slides的排版**:
192
- - 如需插图,统一使用\`rect\`或\`circle\`元素进行占位(必须符合图片宽高比例),占位元素应设置合适的位置,可添加浅色填充或边框以便预览时识别
192
+ - 如需Image,统一使用\`rect\`或\`circle\`元素进行占位(必须符合图片宽高比例),占位元素应设置合适的位置,可添加浅色填充或边框以便预览时识别
193
+ - 如需Icon,优先使用Emoji,其次使用纯代码的方式绘制
194
+ - 如需Chart,如折线图、柱状图等,应使用纯代码的方式绘制,而不是使用图片占位元素
193
195
  - 所有Slide的页面共同保存在一个HTML文件中。
194
196
 
195
197
  3. **把SVG转成PPTX文件**:
@@ -282,7 +284,7 @@ const listTools = () => ({
282
284
  ]
283
285
  });
284
286
 
285
- const server = new Server({ name: 'skills', version: '2.4.5' }, { capabilities: { tools: {} } });
287
+ const server = new Server({ name: 'skills', version: '3.0.1' }, { capabilities: { tools: {} } });
286
288
 
287
289
  server.setRequestHandler(ListToolsRequestSchema, async () => listTools());
288
290
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ww_nero/skills",
3
- "version": "2.4.5",
3
+ "version": "3.0.1",
4
4
  "description": "MCP server that returns Python reference snippets and skill guides",
5
5
  "main": "index.js",
6
6
  "bin": {