flowmind 1.0.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/LICENSE +21 -0
- package/README.md +855 -0
- package/README_CN.md +854 -0
- package/bin/flowmind.js +464 -0
- package/core/adapters/api-doc-adapter.js +71 -0
- package/core/adapters/base-adapter.js +80 -0
- package/core/adapters/database-manager-adapter.js +60 -0
- package/core/adapters/database-query-adapter.js +51 -0
- package/core/adapters/knowledge-base-adapter.js +75 -0
- package/core/adapters/log-service-adapter.js +41 -0
- package/core/adapters/mcp-adapter.js +65 -0
- package/core/adapters/report-adapter.js +60 -0
- package/core/adapters/workflow-adapter.js +62 -0
- package/core/component-registry.js +281 -0
- package/core/component-types.js +63 -0
- package/core/config-manager.js +360 -0
- package/core/index.js +223 -0
- package/core/learning-engine.js +588 -0
- package/core/mcp-compatibility.js +150 -0
- package/core/providers/aliyun/dms-adapter.js +98 -0
- package/core/providers/aliyun/redis-adapter.js +88 -0
- package/core/providers/aliyun/sls-adapter.js +86 -0
- package/core/providers/friday/flow-adapter.js +85 -0
- package/core/providers/friday/report-adapter.js +83 -0
- package/core/providers/yapi/yapi-adapter.js +79 -0
- package/core/providers/yuque/yuque-adapter.js +90 -0
- package/core/scene-matcher.js +326 -0
- package/core/skill-loader.js +291 -0
- package/package.json +67 -0
- package/scripts/migrate-config.js +153 -0
- package/skills/api-sync/SKILL.md +203 -0
- package/skills/archive-change/SKILL.md +172 -0
- package/skills/auto-flow/SKILL.md +277 -0
- package/skills/code-review/SKILL.md +206 -0
- package/skills/code-review-audit/SKILL.md +150 -0
- package/skills/data-logic-validation/SKILL.md +162 -0
- package/skills/data-validation/SKILL.md +210 -0
- package/skills/git-review/SKILL.md +190 -0
- package/skills/learning-engine/SKILL.md +352 -0
- package/skills/learning-feedback/SKILL.md +174 -0
- package/skills/log-audit/SKILL.md +226 -0
- package/skills/project-review/SKILL.md +196 -0
- package/skills/requirement-analyst/SKILL.md +275 -0
- package/skills/resource-bind/SKILL.md +222 -0
- package/skills/sls-log-audit/SKILL.md +223 -0
- package/skills/yapi-sync-interface/SKILL.md +145 -0
- package/skills/yuque-sync-design/SKILL.md +157 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: yuque-sync-design
|
|
3
|
+
description: Yuque design document sync skill for FlowMind. Sync design documents to knowledge base, manage OpenSpec archives, and maintain design documentation lifecycle.
|
|
4
|
+
metadata:
|
|
5
|
+
version: "1.1.0"
|
|
6
|
+
author: flowmind
|
|
7
|
+
category: documentation
|
|
8
|
+
componentDependencies:
|
|
9
|
+
- knowledgeBase
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Yuque Design Document Sync Skill
|
|
13
|
+
|
|
14
|
+
Synchronize design documents between local OpenSpec artifacts and Yuque knowledge base for centralized design documentation management.
|
|
15
|
+
|
|
16
|
+
## Features
|
|
17
|
+
|
|
18
|
+
### Design Doc Sync
|
|
19
|
+
- Sync OpenSpec DESIGN.md to Yuque
|
|
20
|
+
- Update existing design documents
|
|
21
|
+
- Create new document categories
|
|
22
|
+
- Version tracking and history
|
|
23
|
+
|
|
24
|
+
### Knowledge Base Management
|
|
25
|
+
- Browse Yuque repositories
|
|
26
|
+
- Search documents across repos
|
|
27
|
+
- Manage document structure
|
|
28
|
+
- Group statistics and analytics
|
|
29
|
+
|
|
30
|
+
### OpenSpec Archive
|
|
31
|
+
- Archive completed changes to Yuque
|
|
32
|
+
- Maintain change history
|
|
33
|
+
- Link related documents
|
|
34
|
+
- Searchable archive
|
|
35
|
+
|
|
36
|
+
## Trigger Patterns
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
"同步设计文档", "sync design doc"
|
|
40
|
+
"语雀同步", "yuque sync"
|
|
41
|
+
"设计文档管理", "design doc management"
|
|
42
|
+
"归档到语雀", "archive to yuque"
|
|
43
|
+
"文档同步", "document sync"
|
|
44
|
+
"知识库管理", "knowledge base"
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Output Format
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
┌─────────────────────────────────────────────────────┐
|
|
51
|
+
│ Yuque Design Sync Report │
|
|
52
|
+
├─────────────────────────────────────────────────────┤
|
|
53
|
+
│ Repository: {repo_name} │
|
|
54
|
+
│ Document: {doc_title} │
|
|
55
|
+
├─────────────────────────────────────────────────────┤
|
|
56
|
+
│ Action: Create / Update / Archive │
|
|
57
|
+
│ Status: ✅ Success / ❌ Failed │
|
|
58
|
+
│ URL: {yuque_url} │
|
|
59
|
+
├─────────────────────────────────────────────────────┤
|
|
60
|
+
│ Sections Synced: {count} │
|
|
61
|
+
│ • {section_1}: ✅ │
|
|
62
|
+
│ • {section_2}: ✅ │
|
|
63
|
+
└─────────────────────────────────────────────────────┘
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Component Integration
|
|
67
|
+
|
|
68
|
+
This skill uses the **knowledgeBase** component. The actual knowledge base provider is determined by configuration.
|
|
69
|
+
|
|
70
|
+
| Provider | MCP Server | Description |
|
|
71
|
+
|----------|------------|-------------|
|
|
72
|
+
| yuque | aomi-yuque-mcp | Yuque knowledge base |
|
|
73
|
+
| notion | notion-mcp | Notion workspace |
|
|
74
|
+
|
|
75
|
+
Configuration is managed in `flowmind.config.json` under `components.knowledgeBase`.
|
|
76
|
+
|
|
77
|
+
**Available MCP tools** (yuque provider):
|
|
78
|
+
|
|
79
|
+
| Tool | Description |
|
|
80
|
+
|------|-------------|
|
|
81
|
+
| `get_user_repos` | List user's repositories |
|
|
82
|
+
| `get_repo_docs` | List documents in repository |
|
|
83
|
+
| `get_doc` | Get document content |
|
|
84
|
+
| `create_doc` | Create new document |
|
|
85
|
+
| `update_doc` | Update existing document |
|
|
86
|
+
| `search` | Search documents/repos |
|
|
87
|
+
| `get_group_statistics` | Get group statistics |
|
|
88
|
+
|
|
89
|
+
## Learning Integration
|
|
90
|
+
|
|
91
|
+
This skill supports FlowMind learning:
|
|
92
|
+
|
|
93
|
+
- **Repository Mapping**: Learns which projects map to which Yuque repos
|
|
94
|
+
- **Document Structure**: Learns preferred document organization
|
|
95
|
+
- **Sync Preferences**: Learns sync frequency and scope preferences
|
|
96
|
+
|
|
97
|
+
## Examples
|
|
98
|
+
|
|
99
|
+
### Example 1: Sync Design to Yuque
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
User: 同步当前设计文档到语雀
|
|
103
|
+
|
|
104
|
+
FlowMind:
|
|
105
|
+
┌─────────────────────────────────────────────────────┐
|
|
106
|
+
│ Yuque Design Sync Report │
|
|
107
|
+
├─────────────────────────────────────────────────────┤
|
|
108
|
+
│ Repository: aomi-design-docs │
|
|
109
|
+
│ Document: 订单模块详细设计 │
|
|
110
|
+
├─────────────────────────────────────────────────────┤
|
|
111
|
+
│ Action: Update │
|
|
112
|
+
│ Status: ✅ Success │
|
|
113
|
+
│ URL: https://yuque.com/aomi/design/order-module │
|
|
114
|
+
├─────────────────────────────────────────────────────┤
|
|
115
|
+
│ Sections Synced: 6 │
|
|
116
|
+
│ • API Design: ✅ │
|
|
117
|
+
│ • Database Design: ✅ │
|
|
118
|
+
│ • Redis Design: ✅ │
|
|
119
|
+
│ • Kafka Design: ✅ │
|
|
120
|
+
│ • Flow Diagram: ✅ │
|
|
121
|
+
│ • Test Plan: ✅ │
|
|
122
|
+
└─────────────────────────────────────────────────────┘
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Example 2: Search Knowledge Base
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
User: 搜索语雀上的订单相关文档
|
|
129
|
+
|
|
130
|
+
FlowMind:
|
|
131
|
+
┌─────────────────────────────────────────────────────┐
|
|
132
|
+
│ Yuque Search Results │
|
|
133
|
+
├─────────────────────────────────────────────────────┤
|
|
134
|
+
│ Keyword: 订单 │
|
|
135
|
+
│ Results: 5 documents │
|
|
136
|
+
├─────────────────────────────────────────────────────┤
|
|
137
|
+
│ 1. 订单模块详细设计 (aomi-design-docs) │
|
|
138
|
+
│ Updated: 2026-06-20 │
|
|
139
|
+
│ 2. 订单流程图 (aomi-design-docs) │
|
|
140
|
+
│ Updated: 2026-06-18 │
|
|
141
|
+
│ 3. 订单API文档 (api-docs) │
|
|
142
|
+
│ Updated: 2026-06-15 │
|
|
143
|
+
└─────────────────────────────────────────────────────┘
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## Configuration
|
|
147
|
+
|
|
148
|
+
```json
|
|
149
|
+
{
|
|
150
|
+
"yuque-sync-design": {
|
|
151
|
+
"defaultRepo": "aomi-design-docs",
|
|
152
|
+
"syncFormat": "markdown",
|
|
153
|
+
"autoCreateToc": true,
|
|
154
|
+
"archiveAfterSync": true
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
```
|