@rotifer/playground 0.5.0-alpha.1 → 0.7.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.
- package/CHANGELOG.md +178 -16
- package/LICENSE +1 -1
- package/README.md +52 -24
- package/README.zh.md +54 -25
- package/dist/cloud/auth.d.ts +7 -1
- package/dist/cloud/auth.d.ts.map +1 -1
- package/dist/cloud/auth.js +65 -1
- package/dist/cloud/auth.js.map +1 -1
- package/dist/cloud/client.d.ts +4 -1
- package/dist/cloud/client.d.ts.map +1 -1
- package/dist/cloud/client.js +10 -3
- package/dist/cloud/client.js.map +1 -1
- package/dist/cloud/types.d.ts +4 -2
- package/dist/cloud/types.d.ts.map +1 -1
- package/dist/cloud/types.js +1 -1
- package/dist/cloud/types.js.map +1 -1
- package/dist/commands/agent-create.d.ts.map +1 -1
- package/dist/commands/agent-create.js +66 -3
- package/dist/commands/agent-create.js.map +1 -1
- package/dist/commands/agent-run.d.ts.map +1 -1
- package/dist/commands/agent-run.js +296 -32
- package/dist/commands/agent-run.js.map +1 -1
- package/dist/commands/arena-submit.d.ts.map +1 -1
- package/dist/commands/arena-submit.js +45 -17
- package/dist/commands/arena-submit.js.map +1 -1
- package/dist/commands/compile.d.ts.map +1 -1
- package/dist/commands/compile.js +9 -3
- package/dist/commands/compile.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +13 -3
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +23 -16
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/network.js +4 -4
- package/dist/commands/network.js.map +1 -1
- package/dist/commands/publish.d.ts.map +1 -1
- package/dist/commands/publish.js +162 -44
- package/dist/commands/publish.js.map +1 -1
- package/dist/commands/scan.d.ts +10 -0
- package/dist/commands/scan.d.ts.map +1 -1
- package/dist/commands/scan.js +70 -3
- package/dist/commands/scan.js.map +1 -1
- package/dist/commands/test.d.ts.map +1 -1
- package/dist/commands/test.js +209 -23
- package/dist/commands/test.js.map +1 -1
- package/dist/commands/wrap.d.ts.map +1 -1
- package/dist/commands/wrap.js +76 -2
- package/dist/commands/wrap.js.map +1 -1
- package/dist/index.js +0 -0
- package/dist/runtime/network-gateway.d.ts +53 -0
- package/dist/runtime/network-gateway.d.ts.map +1 -0
- package/dist/runtime/network-gateway.js +147 -0
- package/dist/runtime/network-gateway.js.map +1 -0
- package/dist/utils/binding.d.ts +25 -0
- package/dist/utils/binding.d.ts.map +1 -1
- package/dist/utils/binding.js.map +1 -1
- package/dist/utils/open-browser.d.ts +10 -0
- package/dist/utils/open-browser.d.ts.map +1 -0
- package/dist/utils/open-browser.js +23 -0
- package/dist/utils/open-browser.js.map +1 -0
- package/genes/academic-writer/.cloud-manifest.json +6 -0
- package/genes/academic-writer/.gene-manifest.json +8 -0
- package/genes/academic-writer/SKILL.md +274 -0
- package/genes/academic-writer/phenotype.json +28 -0
- package/genes/ai-components/.cloud-manifest.json +6 -0
- package/genes/ai-components/.gene-manifest.json +8 -0
- package/genes/ai-components/SKILL.md +381 -0
- package/genes/ai-components/phenotype.json +28 -0
- package/genes/algorithmic-art/.cloud-manifest.json +6 -0
- package/genes/algorithmic-art/.gene-manifest.json +8 -0
- package/genes/algorithmic-art/SKILL.md +405 -0
- package/genes/algorithmic-art/phenotype.json +28 -0
- package/genes/answer-synthesizer/.cloud-manifest.json +6 -0
- package/genes/answer-synthesizer/index.ts +194 -0
- package/genes/answer-synthesizer/phenotype.json +61 -0
- package/genes/api-designer/.cloud-manifest.json +6 -0
- package/genes/api-designer/.gene-manifest.json +8 -0
- package/genes/api-designer/SKILL.md +456 -0
- package/genes/api-designer/phenotype.json +28 -0
- package/genes/auto-coder/.cloud-manifest.json +6 -0
- package/genes/auto-coder/.gene-manifest.json +8 -0
- package/genes/auto-coder/SKILL.md +400 -0
- package/genes/auto-coder/phenotype.json +28 -0
- package/genes/auto-writer/.cloud-manifest.json +6 -0
- package/genes/auto-writer/.gene-manifest.json +8 -0
- package/genes/auto-writer/SKILL.md +361 -0
- package/genes/auto-writer/phenotype.json +28 -0
- package/genes/brand-personality/.cloud-manifest.json +6 -0
- package/genes/brand-personality/.gene-manifest.json +8 -0
- package/genes/brand-personality/SKILL.md +549 -0
- package/genes/brand-personality/phenotype.json +28 -0
- package/genes/business-writer/.cloud-manifest.json +6 -0
- package/genes/business-writer/.gene-manifest.json +8 -0
- package/genes/business-writer/SKILL.md +448 -0
- package/genes/business-writer/phenotype.json +28 -0
- package/genes/citation-manager/.cloud-manifest.json +6 -0
- package/genes/citation-manager/.gene-manifest.json +8 -0
- package/genes/citation-manager/SKILL.md +279 -0
- package/genes/citation-manager/index.ts +162 -0
- package/genes/citation-manager/package.json +1 -0
- package/genes/citation-manager/phenotype.json +50 -0
- package/genes/code-complexity/.cloud-manifest.json +6 -0
- package/genes/code-complexity/README.md +35 -0
- package/genes/code-complexity/index.ts +101 -0
- package/genes/code-complexity/phenotype.json +34 -0
- package/genes/copywriter/.cloud-manifest.json +6 -0
- package/genes/copywriter/.gene-manifest.json +8 -0
- package/genes/copywriter/SKILL.md +329 -0
- package/genes/copywriter/phenotype.json +28 -0
- package/genes/creative-writer/.cloud-manifest.json +6 -0
- package/genes/creative-writer/.gene-manifest.json +8 -0
- package/genes/creative-writer/SKILL.md +356 -0
- package/genes/creative-writer/phenotype.json +28 -0
- package/genes/data-modeler/.cloud-manifest.json +6 -0
- package/genes/data-modeler/.gene-manifest.json +8 -0
- package/genes/data-modeler/SKILL.md +486 -0
- package/genes/data-modeler/phenotype.json +28 -0
- package/genes/debugger/.cloud-manifest.json +6 -0
- package/genes/debugger/.gene-manifest.json +8 -0
- package/genes/debugger/SKILL.md +416 -0
- package/genes/debugger/phenotype.json +28 -0
- package/genes/design-tokens/.cloud-manifest.json +6 -0
- package/genes/design-tokens/.gene-manifest.json +8 -0
- package/genes/design-tokens/SKILL.md +222 -0
- package/genes/design-tokens/index.ts +128 -0
- package/genes/design-tokens/package.json +1 -0
- package/genes/design-tokens/phenotype.json +1 -0
- package/genes/devops-automator/.cloud-manifest.json +6 -0
- package/genes/devops-automator/.gene-manifest.json +8 -0
- package/genes/devops-automator/SKILL.md +490 -0
- package/genes/devops-automator/phenotype.json +28 -0
- package/genes/doc-coauthoring/.cloud-manifest.json +6 -0
- package/genes/doc-coauthoring/.gene-manifest.json +8 -0
- package/genes/doc-coauthoring/SKILL.md +375 -0
- package/genes/doc-coauthoring/phenotype.json +28 -0
- package/genes/doc-retrieval/.cloud-manifest.json +6 -0
- package/genes/doc-retrieval/index.ts +134 -0
- package/genes/doc-retrieval/phenotype.json +54 -0
- package/genes/docs-writer/.cloud-manifest.json +6 -0
- package/genes/docs-writer/.gene-manifest.json +8 -0
- package/genes/docs-writer/SKILL.md +492 -0
- package/genes/docs-writer/phenotype.json +28 -0
- package/genes/evolve-life/.cloud-manifest.json +6 -0
- package/genes/evolve-life/.compile-result.json +12 -0
- package/genes/evolve-life/README.md +52 -0
- package/genes/evolve-life/gene.ir.wasm +0 -0
- package/genes/evolve-life/gene.wasm +0 -0
- package/genes/evolve-life/index.ts +255 -0
- package/genes/evolve-life/phenotype.json +129 -0
- package/genes/evolve-life-bitwise/.cloud-manifest.json +6 -0
- package/genes/evolve-life-bitwise/.compile-result.json +12 -0
- package/genes/evolve-life-bitwise/gene.ir.wasm +0 -0
- package/genes/evolve-life-bitwise/gene.wasm +0 -0
- package/genes/evolve-life-bitwise/index.ts +273 -0
- package/genes/evolve-life-bitwise/phenotype.json +129 -0
- package/genes/evolve-life-sparse/.cloud-manifest.json +6 -0
- package/genes/evolve-life-sparse/.compile-result.json +12 -0
- package/genes/evolve-life-sparse/gene.ir.wasm +0 -0
- package/genes/evolve-life-sparse/gene.wasm +0 -0
- package/genes/evolve-life-sparse/index.ts +236 -0
- package/genes/evolve-life-sparse/phenotype.json +129 -0
- package/genes/fact-checker/.cloud-manifest.json +6 -0
- package/genes/fact-checker/.gene-manifest.json +8 -0
- package/genes/fact-checker/SKILL.md +373 -0
- package/genes/fact-checker/phenotype.json +28 -0
- package/genes/genesis-code-format/.cloud-manifest.json +6 -0
- package/genes/genesis-code-format/package.json +1 -0
- package/genes/genesis-code-format/phenotype.json +1 -0
- package/genes/genesis-file-read/.cloud-manifest.json +6 -0
- package/genes/genesis-file-read/index.ts +11 -1
- package/genes/genesis-file-read/package.json +1 -0
- package/genes/genesis-file-read/phenotype.json +1 -0
- package/genes/genesis-l0-constraint/.cloud-manifest.json +6 -0
- package/genes/genesis-l0-constraint/package.json +1 -0
- package/genes/genesis-l0-constraint/phenotype.json +1 -0
- package/genes/genesis-web-search/.cloud-manifest.json +2 -2
- package/genes/genesis-web-search/package.json +1 -0
- package/genes/genesis-web-search/phenotype.json +1 -0
- package/genes/genesis-web-search-lite/.cloud-manifest.json +6 -0
- package/genes/genesis-web-search-lite/package.json +1 -0
- package/genes/genesis-web-search-lite/phenotype.json +1 -0
- package/genes/git-workflow/.cloud-manifest.json +6 -0
- package/genes/git-workflow/.gene-manifest.json +8 -0
- package/genes/git-workflow/SKILL.md +407 -0
- package/genes/git-workflow/phenotype.json +28 -0
- package/genes/grammar-checker/.cloud-manifest.json +6 -0
- package/genes/grammar-checker/.gene-manifest.json +8 -0
- package/genes/grammar-checker/SKILL.md +194 -0
- package/genes/grammar-checker/index.ts +168 -0
- package/genes/grammar-checker/package.json +1 -0
- package/genes/grammar-checker/phenotype.json +52 -0
- package/genes/json-validator/.cloud-manifest.json +6 -0
- package/genes/json-validator/README.md +42 -0
- package/genes/json-validator/index.ts +112 -0
- package/genes/json-validator/phenotype.json +42 -0
- package/genes/license-advisor/.cloud-manifest.json +6 -0
- package/genes/license-advisor/.gene-manifest.json +8 -0
- package/genes/license-advisor/SKILL.md +117 -0
- package/genes/license-advisor/phenotype.json +28 -0
- package/genes/logic-architect/.cloud-manifest.json +6 -0
- package/genes/logic-architect/.gene-manifest.json +8 -0
- package/genes/logic-architect/SKILL.md +451 -0
- package/genes/logic-architect/phenotype.json +28 -0
- package/genes/markdown-formatter/.cloud-manifest.json +6 -0
- package/genes/markdown-formatter/README.md +34 -0
- package/genes/markdown-formatter/index.ts +86 -0
- package/genes/markdown-formatter/phenotype.json +32 -0
- package/genes/orch/.cloud-manifest.json +6 -0
- package/genes/orch/.gene-manifest.json +8 -0
- package/genes/orch/SKILL.md +504 -0
- package/genes/orch/phenotype.json +28 -0
- package/genes/particle-barneshut/.cloud-manifest.json +6 -0
- package/genes/particle-barneshut/.compile-result.json +12 -0
- package/genes/particle-barneshut/README.md +55 -0
- package/genes/particle-barneshut/gene.ir.wasm +0 -0
- package/genes/particle-barneshut/gene.wasm +0 -0
- package/genes/particle-barneshut/index.ts +486 -0
- package/genes/particle-barneshut/phenotype.json +137 -0
- package/genes/particle-brute/.cloud-manifest.json +6 -0
- package/genes/particle-brute/.compile-result.json +12 -0
- package/genes/particle-brute/README.md +55 -0
- package/genes/particle-brute/gene.ir.wasm +0 -0
- package/genes/particle-brute/gene.wasm +0 -0
- package/genes/particle-brute/index.ts +277 -0
- package/genes/particle-brute/phenotype.json +137 -0
- package/genes/particle-spatial/.cloud-manifest.json +6 -0
- package/genes/particle-spatial/.compile-result.json +12 -0
- package/genes/particle-spatial/README.md +53 -0
- package/genes/particle-spatial/gene.ir.wasm +0 -0
- package/genes/particle-spatial/gene.wasm +0 -0
- package/genes/particle-spatial/index.ts +352 -0
- package/genes/particle-spatial/phenotype.json +137 -0
- package/genes/performance-optimizer/.cloud-manifest.json +6 -0
- package/genes/performance-optimizer/.gene-manifest.json +8 -0
- package/genes/performance-optimizer/SKILL.md +480 -0
- package/genes/performance-optimizer/phenotype.json +28 -0
- package/genes/plagiarism-checker/.cloud-manifest.json +6 -0
- package/genes/plagiarism-checker/.gene-manifest.json +8 -0
- package/genes/plagiarism-checker/SKILL.md +342 -0
- package/genes/plagiarism-checker/phenotype.json +28 -0
- package/genes/product-manager/.cloud-manifest.json +6 -0
- package/genes/product-manager/.gene-manifest.json +8 -0
- package/genes/product-manager/SKILL.md +249 -0
- package/genes/product-manager/phenotype.json +28 -0
- package/genes/project-reviewer/.cloud-manifest.json +6 -0
- package/genes/project-reviewer/.gene-manifest.json +8 -0
- package/genes/project-reviewer/SKILL.md +312 -0
- package/genes/project-reviewer/phenotype.json +28 -0
- package/genes/prompt-engineer/.cloud-manifest.json +6 -0
- package/genes/prompt-engineer/.gene-manifest.json +8 -0
- package/genes/prompt-engineer/SKILL.md +411 -0
- package/genes/prompt-engineer/phenotype.json +28 -0
- package/genes/readability-analyzer/.cloud-manifest.json +6 -0
- package/genes/readability-analyzer/.gene-manifest.json +8 -0
- package/genes/readability-analyzer/SKILL.md +357 -0
- package/genes/readability-analyzer/index.ts +123 -0
- package/genes/readability-analyzer/package.json +1 -0
- package/genes/readability-analyzer/phenotype.json +35 -0
- package/genes/rotifer-protocol/SKILL.md +121 -0
- package/genes/security-auditor/.cloud-manifest.json +6 -0
- package/genes/security-auditor/.gene-manifest.json +8 -0
- package/genes/security-auditor/SKILL.md +494 -0
- package/genes/security-auditor/phenotype.json +28 -0
- package/genes/seo-optimizer/.cloud-manifest.json +6 -0
- package/genes/seo-optimizer/.gene-manifest.json +8 -0
- package/genes/seo-optimizer/SKILL.md +327 -0
- package/genes/seo-optimizer/index.ts +206 -0
- package/genes/seo-optimizer/package.json +1 -0
- package/genes/seo-optimizer/phenotype.json +1 -0
- package/genes/source-linker/.cloud-manifest.json +6 -0
- package/genes/source-linker/index.ts +88 -0
- package/genes/source-linker/phenotype.json +45 -0
- package/genes/style-optimizer/.cloud-manifest.json +6 -0
- package/genes/style-optimizer/.gene-manifest.json +8 -0
- package/genes/style-optimizer/SKILL.md +285 -0
- package/genes/style-optimizer/phenotype.json +28 -0
- package/genes/tech-lead/.cloud-manifest.json +6 -0
- package/genes/tech-lead/.gene-manifest.json +8 -0
- package/genes/tech-lead/SKILL.md +451 -0
- package/genes/tech-lead/phenotype.json +28 -0
- package/genes/test-wrap/.cloud-manifest.json +6 -0
- package/genes/test-wrap/.gene-manifest.json +8 -0
- package/genes/test-wrap/phenotype.json +28 -0
- package/genes/testing-strategist/.cloud-manifest.json +6 -0
- package/genes/testing-strategist/.gene-manifest.json +8 -0
- package/genes/testing-strategist/SKILL.md +500 -0
- package/genes/testing-strategist/phenotype.json +28 -0
- package/genes/text-summarizer/.cloud-manifest.json +6 -0
- package/genes/text-summarizer/README.md +34 -0
- package/genes/text-summarizer/index.ts +122 -0
- package/genes/text-summarizer/phenotype.json +32 -0
- package/genes/tone-analyzer/.cloud-manifest.json +6 -0
- package/genes/tone-analyzer/.gene-manifest.json +8 -0
- package/genes/tone-analyzer/SKILL.md +410 -0
- package/genes/tone-analyzer/phenotype.json +28 -0
- package/genes/translator/.cloud-manifest.json +6 -0
- package/genes/translator/.gene-manifest.json +8 -0
- package/genes/translator/SKILL.md +355 -0
- package/genes/translator/phenotype.json +28 -0
- package/genes/ui-components/.cloud-manifest.json +6 -0
- package/genes/ui-components/.gene-manifest.json +8 -0
- package/genes/ui-components/SKILL.md +467 -0
- package/genes/ui-components/phenotype.json +28 -0
- package/genes/uiux-designer/.cloud-manifest.json +6 -0
- package/genes/uiux-designer/.gene-manifest.json +8 -0
- package/genes/uiux-designer/SKILL.md +353 -0
- package/genes/uiux-designer/phenotype.json +28 -0
- package/genes/url-extractor/.cloud-manifest.json +6 -0
- package/genes/url-extractor/README.md +37 -0
- package/genes/url-extractor/index.ts +86 -0
- package/genes/url-extractor/phenotype.json +48 -0
- package/genes/ux-patterns/.cloud-manifest.json +6 -0
- package/genes/ux-patterns/.gene-manifest.json +8 -0
- package/genes/ux-patterns/SKILL.md +872 -0
- package/genes/ux-patterns/phenotype.json +28 -0
- package/genes/web3-components/.cloud-manifest.json +6 -0
- package/genes/web3-components/.gene-manifest.json +8 -0
- package/genes/web3-components/SKILL.md +390 -0
- package/genes/web3-components/phenotype.json +28 -0
- package/package.json +6 -5
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: style-optimizer
|
|
3
|
+
description: Optimize writing style for clarity, consistency, and readability. Improve sentence structure, word choice, and flow. Use when polishing written content for better reader experience.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Style Optimizer (风格优化师)
|
|
7
|
+
|
|
8
|
+
**Goal**: 优化文字风格,提升可读性、一致性和表达力。
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 1. 可读性优化
|
|
13
|
+
|
|
14
|
+
### 句子长度
|
|
15
|
+
|
|
16
|
+
```markdown
|
|
17
|
+
## 建议
|
|
18
|
+
|
|
19
|
+
- 中文:每句 20-40 字为宜
|
|
20
|
+
- 英文:每句 15-25 词为宜
|
|
21
|
+
- 复杂内容拆分为多句
|
|
22
|
+
- 避免一句话包含多个观点
|
|
23
|
+
|
|
24
|
+
## 示例
|
|
25
|
+
|
|
26
|
+
❌ 虽然这个项目的目标是为用户提供一个更加便捷的购物体验,但是由于预算限制和时间紧迫,我们不得不在功能和用户界面之间做出一些艰难的取舍,最终决定优先保证核心功能的稳定性。
|
|
27
|
+
|
|
28
|
+
✅ 这个项目旨在提供更便捷的购物体验。由于预算和时间限制,我们需要在功能和界面间取舍。最终,我们优先保证核心功能的稳定性。
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### 段落结构
|
|
32
|
+
|
|
33
|
+
```markdown
|
|
34
|
+
## 黄金法则
|
|
35
|
+
|
|
36
|
+
1. 每段围绕一个中心思想
|
|
37
|
+
2. 段落首句点明主旨(主题句)
|
|
38
|
+
3. 后续句子支撑主题
|
|
39
|
+
4. 段落间有逻辑过渡
|
|
40
|
+
|
|
41
|
+
## 段落长度
|
|
42
|
+
|
|
43
|
+
- 短内容(社交媒体):2-3 句
|
|
44
|
+
- 中等内容(博客):3-5 句
|
|
45
|
+
- 长内容(论文):5-8 句
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## 2. 词语选择
|
|
51
|
+
|
|
52
|
+
### 简洁原则
|
|
53
|
+
|
|
54
|
+
| 冗余表达 | 简洁表达 |
|
|
55
|
+
|----------|----------|
|
|
56
|
+
| 进行研究 | 研究 |
|
|
57
|
+
| 做出决定 | 决定 |
|
|
58
|
+
| 在...的过程中 | 在...时 |
|
|
59
|
+
| 基本上 | (删除或具体化)|
|
|
60
|
+
| 非常非常 | 非常 / 极其 |
|
|
61
|
+
|
|
62
|
+
### 具体化原则
|
|
63
|
+
|
|
64
|
+
| 模糊表达 | 具体表达 |
|
|
65
|
+
|----------|----------|
|
|
66
|
+
| 很多 | 超过 1000 / 大约 80% |
|
|
67
|
+
| 最近 | 过去两周 / 上个月 |
|
|
68
|
+
| 一些 | 3-5 个 / 少数 |
|
|
69
|
+
| 显著提升 | 提升 30% |
|
|
70
|
+
|
|
71
|
+
### 动词优先
|
|
72
|
+
|
|
73
|
+
| 名词化 | 动词化 |
|
|
74
|
+
|--------|--------|
|
|
75
|
+
| 进行调查 | 调查 |
|
|
76
|
+
| 做出改变 | 改变 |
|
|
77
|
+
| 进行分析 | 分析 |
|
|
78
|
+
| 给予帮助 | 帮助 |
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## 3. 一致性检查
|
|
83
|
+
|
|
84
|
+
### 术语一致
|
|
85
|
+
|
|
86
|
+
```markdown
|
|
87
|
+
## 规则
|
|
88
|
+
|
|
89
|
+
同一文档中,同一概念使用同一术语
|
|
90
|
+
|
|
91
|
+
❌ 用户 / 客户 / 使用者(混用)
|
|
92
|
+
✅ 用户(统一使用)
|
|
93
|
+
|
|
94
|
+
❌ AI / 人工智能 / 机器学习(混用)
|
|
95
|
+
✅ AI(统一使用,首次出现解释全称)
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### 格式一致
|
|
99
|
+
|
|
100
|
+
```markdown
|
|
101
|
+
## 检查项
|
|
102
|
+
|
|
103
|
+
- 标题格式:统一使用中文或英文标点
|
|
104
|
+
- 列表格式:统一使用有序或无序
|
|
105
|
+
- 强调方式:统一使用加粗或斜体
|
|
106
|
+
- 代码格式:统一使用行内或代码块
|
|
107
|
+
- 日期格式:2024-01-15 或 2024年1月15日
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### 语气一致
|
|
111
|
+
|
|
112
|
+
| 场景 | 语气 | 示例 |
|
|
113
|
+
|------|------|------|
|
|
114
|
+
| 技术文档 | 客观、专业 | "使用该函数可以..." |
|
|
115
|
+
| 营销文案 | 热情、亲切 | "你一定会爱上..." |
|
|
116
|
+
| 学术论文 | 严谨、正式 | "研究表明..." |
|
|
117
|
+
| 商业报告 | 专业、简洁 | "数据显示..." |
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## 4. 逻辑与流畅
|
|
122
|
+
|
|
123
|
+
### 过渡词使用
|
|
124
|
+
|
|
125
|
+
| 关系 | 过渡词 |
|
|
126
|
+
|------|--------|
|
|
127
|
+
| 递进 | 而且、此外、更重要的是 |
|
|
128
|
+
| 转折 | 但是、然而、不过 |
|
|
129
|
+
| 因果 | 因此、所以、由于 |
|
|
130
|
+
| 举例 | 例如、比如、以...为例 |
|
|
131
|
+
| 总结 | 总之、综上所述、简言之 |
|
|
132
|
+
|
|
133
|
+
### 并列结构
|
|
134
|
+
|
|
135
|
+
```markdown
|
|
136
|
+
## 规则
|
|
137
|
+
|
|
138
|
+
并列项保持结构一致
|
|
139
|
+
|
|
140
|
+
❌ 我们的目标是:
|
|
141
|
+
- 提升用户体验
|
|
142
|
+
- 降低成本
|
|
143
|
+
- 团队更高效
|
|
144
|
+
|
|
145
|
+
✅ 我们的目标是:
|
|
146
|
+
- 提升用户体验
|
|
147
|
+
- 降低运营成本
|
|
148
|
+
- 提高团队效率
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## 5. 风格模板
|
|
154
|
+
|
|
155
|
+
### 技术文档风格
|
|
156
|
+
|
|
157
|
+
```markdown
|
|
158
|
+
- 语气:客观、准确
|
|
159
|
+
- 人称:第三人称 / 无人称
|
|
160
|
+
- 句式:陈述句为主
|
|
161
|
+
- 术语:专业术语,首次出现解释
|
|
162
|
+
- 示例:代码示例必备
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### 营销文案风格
|
|
166
|
+
|
|
167
|
+
```markdown
|
|
168
|
+
- 语气:热情、有感染力
|
|
169
|
+
- 人称:第二人称 "你"
|
|
170
|
+
- 句式:短句、感叹句
|
|
171
|
+
- 词汇:生动、有画面感
|
|
172
|
+
- 结尾:明确的行动号召
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### 学术论文风格
|
|
176
|
+
|
|
177
|
+
```markdown
|
|
178
|
+
- 语气:严谨、客观
|
|
179
|
+
- 人称:避免第一人称
|
|
180
|
+
- 句式:复杂句,逻辑严密
|
|
181
|
+
- 术语:学术规范
|
|
182
|
+
- 引用:规范引用格式
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
## 6. 检查清单
|
|
188
|
+
|
|
189
|
+
```markdown
|
|
190
|
+
## Style Optimization Checklist
|
|
191
|
+
|
|
192
|
+
### 可读性
|
|
193
|
+
- [ ] 句子长度适中
|
|
194
|
+
- [ ] 段落结构清晰
|
|
195
|
+
- [ ] 逻辑过渡自然
|
|
196
|
+
|
|
197
|
+
### 简洁性
|
|
198
|
+
- [ ] 无冗余表达
|
|
199
|
+
- [ ] 无重复信息
|
|
200
|
+
- [ ] 动词优先
|
|
201
|
+
|
|
202
|
+
### 一致性
|
|
203
|
+
- [ ] 术语统一
|
|
204
|
+
- [ ] 格式统一
|
|
205
|
+
- [ ] 语气统一
|
|
206
|
+
|
|
207
|
+
### 具体性
|
|
208
|
+
- [ ] 数据具体化
|
|
209
|
+
- [ ] 描述有细节
|
|
210
|
+
- [ ] 避免模糊用词
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
215
|
+
## 7. 可读性评分
|
|
216
|
+
|
|
217
|
+
### Flesch Reading Ease (英文)
|
|
218
|
+
|
|
219
|
+
| 分数 | 难度 | 适用 |
|
|
220
|
+
|------|------|------|
|
|
221
|
+
| 90-100 | 非常容易 | 小学 |
|
|
222
|
+
| 80-90 | 容易 | 初中 |
|
|
223
|
+
| 70-80 | 较容易 | 高中 |
|
|
224
|
+
| 60-70 | 标准 | 大学 |
|
|
225
|
+
| 30-60 | 困难 | 专业 |
|
|
226
|
+
| 0-30 | 非常困难 | 学术 |
|
|
227
|
+
|
|
228
|
+
### 中文可读性指标
|
|
229
|
+
|
|
230
|
+
```markdown
|
|
231
|
+
- 平均句长:20-30 字为佳
|
|
232
|
+
- 平均段落:3-5 句为佳
|
|
233
|
+
- 专业术语:控制在 10% 以内
|
|
234
|
+
- 被动句:控制在 15% 以内
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
|
|
239
|
+
## Quick Reference
|
|
240
|
+
|
|
241
|
+
### 风格优化速查
|
|
242
|
+
|
|
243
|
+
```markdown
|
|
244
|
+
1. 短句优于长句
|
|
245
|
+
2. 主动优于被动
|
|
246
|
+
3. 具体优于抽象
|
|
247
|
+
4. 简洁优于冗余
|
|
248
|
+
5. 一致优于混乱
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
### 常见优化模式
|
|
252
|
+
|
|
253
|
+
| 原文模式 | 优化建议 |
|
|
254
|
+
|----------|----------|
|
|
255
|
+
| 被动句过多 | 改为主动句 |
|
|
256
|
+
| 句子过长 | 拆分为短句 |
|
|
257
|
+
| 术语不一致 | 统一术语 |
|
|
258
|
+
| 过渡生硬 | 添加过渡词 |
|
|
259
|
+
| 表达冗余 | 精简用词 |
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
## Integration with auto-writer
|
|
264
|
+
|
|
265
|
+
```markdown
|
|
266
|
+
## 调用时机
|
|
267
|
+
|
|
268
|
+
- 每次写作迭代后,grammar-checker 之后调用
|
|
269
|
+
- 作为核心验证步骤
|
|
270
|
+
|
|
271
|
+
## 输出格式
|
|
272
|
+
|
|
273
|
+
{
|
|
274
|
+
"readabilityScore": number, // 0-100
|
|
275
|
+
"issues": [
|
|
276
|
+
{
|
|
277
|
+
"type": "readability|consistency|conciseness",
|
|
278
|
+
"description": "问题描述",
|
|
279
|
+
"suggestion": "优化建议",
|
|
280
|
+
"priority": "high|medium|low"
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"overallAssessment": "优秀|良好|需改进"
|
|
284
|
+
}
|
|
285
|
+
```
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"domain": "content.style",
|
|
3
|
+
"description": "Optimize writing style for clarity, consistency, and readability. Improve sentence structure, word choice, and flow. Use when polishing written content for better reader experience.",
|
|
4
|
+
"inputSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"prompt": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"required": []
|
|
12
|
+
},
|
|
13
|
+
"outputSchema": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"result": {
|
|
17
|
+
"type": "string"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"dependencies": [],
|
|
22
|
+
"version": "0.1.0",
|
|
23
|
+
"author": "rotifer-team",
|
|
24
|
+
"createdAt": 1771939399973,
|
|
25
|
+
"fidelity": "Wrapped",
|
|
26
|
+
"transparency": "Open",
|
|
27
|
+
"source": "skill"
|
|
28
|
+
}
|