skill-creator 1.3.3 → 1.4.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/README.md +13 -10
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +126 -4
- package/dist/cli.js.map +1 -1
- package/dist/commands/addContent.d.ts.map +1 -1
- package/dist/commands/addContent.js +17 -3
- package/dist/commands/addContent.js.map +1 -1
- package/dist/commands/buildIndex.d.ts.map +1 -1
- package/dist/commands/buildIndex.js +2 -3
- package/dist/commands/buildIndex.js.map +1 -1
- package/dist/commands/downloadContext7.d.ts.map +1 -1
- package/dist/commands/downloadContext7.js +14 -7
- package/dist/commands/downloadContext7.js.map +1 -1
- package/dist/commands/listContent.d.ts.map +1 -1
- package/dist/commands/listContent.js +2 -3
- package/dist/commands/listContent.js.map +1 -1
- package/dist/commands/listContext7.d.ts +5 -0
- package/dist/commands/listContext7.d.ts.map +1 -0
- package/dist/commands/listContext7.js +26 -0
- package/dist/commands/listContext7.js.map +1 -0
- package/dist/commands/listSkills.d.ts +5 -0
- package/dist/commands/listSkills.d.ts.map +1 -0
- package/dist/commands/listSkills.js +34 -0
- package/dist/commands/listSkills.js.map +1 -0
- package/dist/commands/removeContext7.d.ts +5 -0
- package/dist/commands/removeContext7.d.ts.map +1 -0
- package/dist/commands/removeContext7.js +54 -0
- package/dist/commands/removeContext7.js.map +1 -0
- package/dist/commands/removeSkill.d.ts +5 -0
- package/dist/commands/removeSkill.d.ts.map +1 -0
- package/dist/commands/removeSkill.js +83 -0
- package/dist/commands/removeSkill.js.map +1 -0
- package/dist/commands/searchContent.d.ts.map +1 -1
- package/dist/commands/searchContent.js +5 -4
- package/dist/commands/searchContent.js.map +1 -1
- package/dist/commands/shared.d.ts +4 -10
- package/dist/commands/shared.d.ts.map +1 -1
- package/dist/commands/shared.js +3 -17
- package/dist/commands/shared.js.map +1 -1
- package/dist/core/contentManager.d.ts +25 -1
- package/dist/core/contentManager.d.ts.map +1 -1
- package/dist/core/contentManager.js +152 -28
- package/dist/core/contentManager.js.map +1 -1
- package/dist/core/runScript.d.ts.map +1 -1
- package/dist/core/runScript.js +5 -2
- package/dist/core/runScript.js.map +1 -1
- package/dist/core/skillCreator.d.ts.map +1 -1
- package/dist/core/skillCreator.js +6 -5
- package/dist/core/skillCreator.js.map +1 -1
- package/dist/core/templateManager.d.ts +28 -0
- package/dist/core/templateManager.d.ts.map +1 -0
- package/dist/core/templateManager.js +583 -0
- package/dist/core/templateManager.js.map +1 -0
- package/dist/search_format/index.d.ts +1 -1
- package/dist/search_format/index.d.ts.map +1 -1
- package/dist/search_format/listFormatter.d.ts.map +1 -1
- package/dist/search_format/listFormatter.js +1 -1
- package/dist/search_format/listFormatter.js.map +1 -1
- package/dist/utils/claudeCodeDetection.d.ts +27 -0
- package/dist/utils/claudeCodeDetection.d.ts.map +1 -0
- package/dist/utils/claudeCodeDetection.js +81 -0
- package/dist/utils/claudeCodeDetection.js.map +1 -0
- package/dist/utils/config.d.ts +9 -0
- package/dist/utils/config.d.ts.map +1 -1
- package/dist/utils/config.js +7 -0
- package/dist/utils/config.js.map +1 -1
- package/dist/utils/skillMdManager.d.ts +44 -0
- package/dist/utils/skillMdManager.d.ts.map +1 -0
- package/dist/utils/skillMdManager.js +157 -0
- package/dist/utils/skillMdManager.js.map +1 -0
- package/package.json +17 -13
- package/templates/SKILL.md +21 -232
- package/templates/SKILL.zh-CN.md +37 -3
- package/templates/skill-creator.md +0 -1
package/templates/SKILL.md
CHANGED
|
@@ -1,250 +1,39 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: {{NAME}}
|
|
3
|
-
description:
|
|
2
|
+
name: { { NAME } }
|
|
3
|
+
description: { { DESCRIPTION } }
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
## About {{NAME}}
|
|
6
|
+
# {{NAME}}
|
|
9
7
|
|
|
10
8
|
{{DESCRIPTION}}
|
|
11
9
|
|
|
12
|
-
|
|
13
|
-
- **Intelligent Search**: ChromaDB-powered semantic search through all documentation
|
|
14
|
-
- **Dynamic Content Management**: Add new knowledge with deduplication and smart updates
|
|
15
|
-
- **Context7 Integration**: Automatically fetches and slices latest official documentation
|
|
16
|
-
- **Priority Management**: User-generated content takes precedence over official documentation
|
|
17
|
-
|
|
18
|
-
### Design Philosophy
|
|
19
|
-
Based on official documentation and community best practices, ensuring accuracy and timeliness
|
|
20
|
-
|
|
21
|
-
Focus on practical application, providing directly applicable code examples and configuration solutions
|
|
22
|
-
|
|
23
|
-
Progressive learning path from basic concepts to advanced patterns
|
|
24
|
-
|
|
25
|
-
Continuous updates, following version iterations to continuously optimize and enhance knowledge base
|
|
26
|
-
|
|
27
|
-
### Problems Solved
|
|
28
|
-
- **Complex Learning Curves**: Lower the barrier to entry through structured knowledge points and examples
|
|
29
|
-
- **Scattered Documentation**: Integrate official docs, community experiences, and practical cases for one-stop reference
|
|
30
|
-
- **Missing Best Practices**: Summarize common design patterns and best practices to avoid common pitfalls
|
|
31
|
-
- **Version Update Challenges**: Track version changes promptly, providing migration guides and new feature descriptions
|
|
32
|
-
|
|
33
|
-
## Usage Guidelines
|
|
34
|
-
|
|
35
|
-
### Search Documentation Knowledge
|
|
36
|
-
Query {{NAME}} for information, API usage, best practices, and technical solutions:
|
|
37
|
-
|
|
38
|
-
#### Basic Search
|
|
39
|
-
```bash
|
|
40
|
-
skill-creator search-skill --pwd="{{SKILL_PATH}}" "search keywords"
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
#### Search Mode Selection
|
|
44
|
-
```bash
|
|
45
|
-
# Auto mode (default) - Intelligent search strategy selection
|
|
46
|
-
skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=auto "search keywords"
|
|
47
|
-
|
|
48
|
-
# ChromaDB mode - Semantic search with contextual understanding
|
|
49
|
-
skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=chroma "search keywords"
|
|
50
|
-
|
|
51
|
-
# Fuzzy mode - Keyword search with string fuzzy matching
|
|
52
|
-
skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=fuzzy "search keywords"
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
#### Search Modes Explained
|
|
56
|
-
|
|
57
|
-
**🤖 Auto Mode (Automatic Mode - Default)**
|
|
58
|
-
- **How it works**: First uses Fuzzy search for fast matching, if no satisfactory results are found, automatically switches to ChromaDB for semantic search
|
|
59
|
-
- **Best for**:
|
|
60
|
-
- When unsure which search method to use
|
|
61
|
-
- When you want the best search balance
|
|
62
|
-
- Daily quick query needs
|
|
63
|
-
- **Advantages**: Intelligent switching, balancing speed and accuracy, optimal user experience
|
|
64
|
-
|
|
65
|
-
**🧠 ChromaDB Mode (Semantic Search)**
|
|
66
|
-
- **How it works**: Based on vector database and semantic models, understands query intent and context for conceptual matching
|
|
67
|
-
- **Best for**:
|
|
68
|
-
- Conceptual queries ("how to handle state management")
|
|
69
|
-
- Functional searches ("methods for data validation")
|
|
70
|
-
- Complex queries requiring semantic understanding
|
|
71
|
-
- Finding related technical concepts and best practices
|
|
72
|
-
- **Advantages**: Understands query intent, can find semantically related content with different keywords, ideal for conceptual searches
|
|
73
|
-
- **Features**:
|
|
74
|
-
- Supports natural language queries
|
|
75
|
-
- Understands synonyms and related concepts
|
|
76
|
-
- Results ranked by semantic similarity
|
|
77
|
-
- Requires search index building
|
|
78
|
-
|
|
79
|
-
**🔍 Fuzzy Mode (Fuzzy Search)**
|
|
80
|
-
- **How it works**: Based on string fuzzy matching algorithms, quickly finds content containing specified keywords
|
|
81
|
-
- **Best for**:
|
|
82
|
-
- Precise keyword searches ("useQuery", "useState")
|
|
83
|
-
- API name and method lookups
|
|
84
|
-
- Configuration options and parameters
|
|
85
|
-
- Quick term location
|
|
86
|
-
- **Advantages**: Fast response, accurate keyword matching, suitable for finding specific APIs, config items, method names, etc.
|
|
87
|
-
- **Features**:
|
|
88
|
-
- Supports partial and fuzzy matching
|
|
89
|
-
- Fast search speed, no indexing required
|
|
90
|
-
- Ranked by keyword similarity
|
|
91
|
-
- Ideal for technical terms and code snippets
|
|
92
|
-
|
|
93
|
-
#### Practical Search Examples
|
|
94
|
-
|
|
95
|
-
**API and Method Queries** (Fuzzy mode recommended):
|
|
96
|
-
```bash
|
|
97
|
-
# Find specific API
|
|
98
|
-
skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=fuzzy "useQuery"
|
|
99
|
-
|
|
100
|
-
# Find configuration options
|
|
101
|
-
skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=fuzzy "baseURL configuration"
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
**Concept and Best Practice Queries** (ChromaDB mode recommended):
|
|
105
|
-
```bash
|
|
106
|
-
# Conceptual questions
|
|
107
|
-
skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=chroma "how to optimize React component performance"
|
|
108
|
-
|
|
109
|
-
# Best practices
|
|
110
|
-
skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=chroma "state management best practices"
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
**Daily Queries** (Using Auto mode):
|
|
114
|
-
```bash
|
|
115
|
-
# Let system choose the best search method
|
|
116
|
-
skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=auto "error handling"
|
|
117
|
-
skill-creator search-skill --pwd="{{SKILL_PATH}}" "routing configuration" # --mode=auto is default
|
|
118
|
-
```
|
|
10
|
+
## CLI Commands
|
|
119
11
|
|
|
120
|
-
#### List Mode Display
|
|
121
|
-
For a simplified view of results, use list mode:
|
|
122
12
|
```bash
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
**Example Queries:**
|
|
127
|
-
- "how to create router"
|
|
128
|
-
- "state management best practices"
|
|
129
|
-
- "error handling mechanisms"
|
|
130
|
-
- "performance optimization techniques"
|
|
131
|
-
- "TypeScript integration"
|
|
13
|
+
# Add user content
|
|
14
|
+
skill-creator add-skill --pwd "{{SKILL_PATH}}" [--title "Title" --content "Content"]|[--file=*.md]
|
|
132
15
|
|
|
133
|
-
|
|
134
|
-
|
|
16
|
+
# Search documentation
|
|
17
|
+
skill-creator search-skill --pwd "{{SKILL_PATH}}" "query" [--mode=auto|chroma|fuzzy]
|
|
135
18
|
|
|
136
|
-
|
|
137
|
-
skill-creator
|
|
138
|
-
```
|
|
19
|
+
# Download Context7 docs
|
|
20
|
+
skill-creator download-context7 --pwd "{{SKILL_PATH}}" <context7_library_id>
|
|
139
21
|
|
|
140
|
-
|
|
141
|
-
-
|
|
142
|
-
- ⚠️ **Important Notes**: Common pitfalls and troubleshooting solutions
|
|
143
|
-
- 🔧 **Configuration Tips**: Special scenario setup methods
|
|
144
|
-
- 📚 **Learning Resources**: Related tutorials and helpful links
|
|
145
|
-
- 🐛 **Problem Solutions**: Common issues and step-by-step resolutions
|
|
22
|
+
# Update Context7 docs
|
|
23
|
+
skill-creator download-context7 --pwd "{{SKILL_PATH}}" --force [<context7_library_id>]
|
|
146
24
|
|
|
147
|
-
|
|
148
|
-
|
|
25
|
+
# List all Context7 projects
|
|
26
|
+
skill-creator list-context7 --pwd "{{SKILL_PATH}}"
|
|
149
27
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
skill-creator download-context7 --pwd="{{SKILL_PATH}}" --force
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
### List All Content
|
|
156
|
-
View all available knowledge points in the skill:
|
|
157
|
-
|
|
158
|
-
```bash
|
|
159
|
-
skill-creator list-content --pwd="{{SKILL_PATH}}"
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
## Documentation Structure
|
|
163
|
-
|
|
164
|
-
```
|
|
165
|
-
{{SKILL_PATH}}/
|
|
166
|
-
├── assets/
|
|
167
|
-
│ └── references/
|
|
168
|
-
│ ├── context7/ # Official documentation slices
|
|
169
|
-
│ └── user/ # User custom knowledge points
|
|
170
|
-
├── config.json # Skill configuration
|
|
171
|
-
├── SKILL.md # This file
|
|
172
|
-
└── package.json # Dependencies management
|
|
28
|
+
# Remove Context7 project
|
|
29
|
+
skill-creator remove-context7 --pwd "{{SKILL_PATH}}" <context7_library_id>
|
|
173
30
|
```
|
|
174
31
|
|
|
175
|
-
##
|
|
32
|
+
## User Skills
|
|
176
33
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
3. **Smart Deduplication**: Automatically detect similarity when adding content
|
|
180
|
-
4. **Version Control**: Support documentation versioning and incremental updates
|
|
34
|
+
<user-skills>
|
|
35
|
+
</user-skills>
|
|
181
36
|
|
|
182
|
-
##
|
|
183
|
-
|
|
184
|
-
### 🔍 **Precise Search**
|
|
185
|
-
Use specific technical terminology:
|
|
186
|
-
- "useQuery hook usage"
|
|
187
|
-
- "route guard implementation"
|
|
188
|
-
- "async state management"
|
|
189
|
-
|
|
190
|
-
### 🎯 **Scenario-Based Search**
|
|
191
|
-
Query based on use cases:
|
|
192
|
-
- "integration in React projects"
|
|
193
|
-
- "server-side rendering configuration"
|
|
194
|
-
- "mobile optimization"
|
|
195
|
-
|
|
196
|
-
### 📋 **Comparative Search**
|
|
197
|
-
Compare different approaches:
|
|
198
|
-
- "useState vs useReducer"
|
|
199
|
-
- "client-side routing vs server-side routing"
|
|
200
|
-
|
|
201
|
-
### 🔧 **Problem-Oriented Search**
|
|
202
|
-
Describe specific problems:
|
|
203
|
-
- "resolve memory leak issues"
|
|
204
|
-
- "optimize initial loading time"
|
|
205
|
-
- "handle concurrent requests"
|
|
206
|
-
|
|
207
|
-
## Contribution Guidelines
|
|
208
|
-
|
|
209
|
-
### 📝 **Content Contributions**
|
|
210
|
-
- Add practical project experiences and best practices
|
|
211
|
-
- Share encountered problems and solutions
|
|
212
|
-
- Supplement official documentation with missing information
|
|
213
|
-
- Provide code examples and configuration cases
|
|
214
|
-
|
|
215
|
-
### 🎯 **Quality Standards**
|
|
216
|
-
- Content accuracy, verified through practical application
|
|
217
|
-
- Include concrete code examples
|
|
218
|
-
- Specify applicable scenarios and limitations
|
|
219
|
-
- Follow existing format conventions
|
|
220
|
-
|
|
221
|
-
### 🔄 **Continuous Updates**
|
|
222
|
-
- Regularly update official documentation
|
|
223
|
-
- Add new feature descriptions based on version iterations
|
|
224
|
-
- Correct outdated information and incorrect usage patterns
|
|
225
|
-
|
|
226
|
-
## Workflow
|
|
227
|
-
|
|
228
|
-
### First-Time Use
|
|
229
|
-
1. **Basic Search**: Use `search-skill` to query fundamental concepts
|
|
230
|
-
2. **Practical Application**: Implement code based on search results
|
|
231
|
-
3. **Content Enhancement**: Add practical experiences via `add-skill`
|
|
232
|
-
4. **Knowledge Sharing**: Share valuable discoveries with team members
|
|
233
|
-
|
|
234
|
-
### Daily Usage
|
|
235
|
-
1. **Problem Queries**: Search existing knowledge when encountering issues
|
|
236
|
-
2. **Content Expansion**: Add new knowledge when discovering insights
|
|
237
|
-
3. **Documentation Updates**: Regularly update official docs to stay current
|
|
238
|
-
4. **Quality Maintenance**: Review and optimize existing knowledge quality
|
|
239
|
-
|
|
240
|
-
## Technical Support
|
|
241
|
-
|
|
242
|
-
If you encounter technical issues, use these approaches:
|
|
243
|
-
1. Search existing knowledge points
|
|
244
|
-
2. Review official documentation sections
|
|
245
|
-
3. Add problem descriptions to user knowledge points
|
|
246
|
-
4. Seek community assistance
|
|
247
|
-
|
|
248
|
-
---
|
|
37
|
+
## Context7 Documentation
|
|
249
38
|
|
|
250
|
-
|
|
39
|
+
<!-- Context7 projects will be listed here automatically -->
|
package/templates/SKILL.zh-CN.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: {{NAME}}
|
|
2
|
+
name: { { NAME } }
|
|
3
3
|
description: 通过智能搜索增强的 {{NAME}} 文档技能
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -10,12 +10,14 @@ description: 通过智能搜索增强的 {{NAME}} 文档技能
|
|
|
10
10
|
{{DESCRIPTION}}
|
|
11
11
|
|
|
12
12
|
### 核心特性
|
|
13
|
+
|
|
13
14
|
- **智能搜索**: 基于ChromaDB的语义搜索,快速定位相关信息
|
|
14
15
|
- **动态内容管理**: 支持添加自定义知识点,智能去重和更新
|
|
15
16
|
- **Context7集成**: 自动获取和切片最新官方文档
|
|
16
17
|
- **优先级管理**: 用户生成内容优先于官方文档
|
|
17
18
|
|
|
18
19
|
### 设计理念
|
|
20
|
+
|
|
19
21
|
基于官方文档和社区最佳实践,确保信息的准确性和时效性
|
|
20
22
|
|
|
21
23
|
注重实用性,提供可直接应用的代码示例和配置方案
|
|
@@ -25,6 +27,7 @@ description: 通过智能搜索增强的 {{NAME}} 文档技能
|
|
|
25
27
|
持续更新,跟随版本迭代不断优化和完善知识库
|
|
26
28
|
|
|
27
29
|
### 解决的问题
|
|
30
|
+
|
|
28
31
|
- **学习曲线复杂**: 通过结构化的知识点和实例,降低学习门槛
|
|
29
32
|
- **文档分散**: 整合官方文档、社区经验和实践案例,提供一站式参考
|
|
30
33
|
- **最佳实践缺失**: 总结常见设计模式和最佳实践,避免常见陷阱
|
|
@@ -33,14 +36,17 @@ description: 通过智能搜索增强的 {{NAME}} 文档技能
|
|
|
33
36
|
## 使用指南
|
|
34
37
|
|
|
35
38
|
### 搜索文档知识点
|
|
39
|
+
|
|
36
40
|
查询{{NAME}}的相关信息、API使用、最佳实践等:
|
|
37
41
|
|
|
38
42
|
#### 基础搜索
|
|
43
|
+
|
|
39
44
|
```bash
|
|
40
45
|
skill-creator search-skill --pwd="{{SKILL_PATH}}" "搜索关键词"
|
|
41
46
|
```
|
|
42
47
|
|
|
43
48
|
#### 搜索模式选择
|
|
49
|
+
|
|
44
50
|
```bash
|
|
45
51
|
# 自动模式(默认)- 智能选择搜索策略
|
|
46
52
|
skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=auto "搜索关键词"
|
|
@@ -55,6 +61,7 @@ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=fuzzy "搜索关键词"
|
|
|
55
61
|
#### 搜索模式详解
|
|
56
62
|
|
|
57
63
|
**🤖 Auto 模式(自动模式,默认)**
|
|
64
|
+
|
|
58
65
|
- **工作原理**: 首先使用 Fuzzy 搜索进行快速匹配,如果没有找到满意结果,自动切换到 ChromaDB 进行语义搜索
|
|
59
66
|
- **适用场景**:
|
|
60
67
|
- 不确定使用哪种搜索方式时
|
|
@@ -63,6 +70,7 @@ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=fuzzy "搜索关键词"
|
|
|
63
70
|
- **优势**: 智能切换,兼顾速度和准确性,用户体验最佳
|
|
64
71
|
|
|
65
72
|
**🧠 ChromaDB 模式(语义搜索)**
|
|
73
|
+
|
|
66
74
|
- **工作原理**: 基于向量数据库和语义模型,理解查询意图和上下文含义,进行概念匹配
|
|
67
75
|
- **适用场景**:
|
|
68
76
|
- 概念性查询("如何处理状态管理")
|
|
@@ -77,6 +85,7 @@ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=fuzzy "搜索关键词"
|
|
|
77
85
|
- 需要构建搜索索引
|
|
78
86
|
|
|
79
87
|
**🔍 Fuzzy 模式(模糊搜索)**
|
|
88
|
+
|
|
80
89
|
- **工作原理**: 基于字符串模糊匹配算法,快速查找包含指定关键词的内容
|
|
81
90
|
- **适用场景**:
|
|
82
91
|
- 精确关键词搜索("useQuery"、"useState")
|
|
@@ -93,6 +102,7 @@ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=fuzzy "搜索关键词"
|
|
|
93
102
|
#### 实用搜索示例
|
|
94
103
|
|
|
95
104
|
**API 和方法查询**(推荐 Fuzzy 模式):
|
|
105
|
+
|
|
96
106
|
```bash
|
|
97
107
|
# 查找特定API
|
|
98
108
|
skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=fuzzy "useQuery"
|
|
@@ -102,6 +112,7 @@ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=fuzzy "baseURL配置"
|
|
|
102
112
|
```
|
|
103
113
|
|
|
104
114
|
**概念和最佳实践查询**(推荐 ChromaDB 模式):
|
|
115
|
+
|
|
105
116
|
```bash
|
|
106
117
|
# 概念性问题
|
|
107
118
|
skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=chroma "如何优化React组件性能"
|
|
@@ -111,6 +122,7 @@ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=chroma "状态管理最
|
|
|
111
122
|
```
|
|
112
123
|
|
|
113
124
|
**日常查询**(使用 Auto 模式):
|
|
125
|
+
|
|
114
126
|
```bash
|
|
115
127
|
# 让系统自动选择最佳搜索方式
|
|
116
128
|
skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=auto "错误处理"
|
|
@@ -118,12 +130,15 @@ skill-creator search-skill --pwd="{{SKILL_PATH}}" "路由配置" # --mode=auto
|
|
|
118
130
|
```
|
|
119
131
|
|
|
120
132
|
#### 列表模式显示
|
|
133
|
+
|
|
121
134
|
如果只需要查看简要信息,可以使用列表模式:
|
|
135
|
+
|
|
122
136
|
```bash
|
|
123
137
|
skill-creator search-skill --pwd="{{SKILL_PATH}}" --list "搜索关键词"
|
|
124
138
|
```
|
|
125
139
|
|
|
126
140
|
**示例查询:**
|
|
141
|
+
|
|
127
142
|
- "如何创建router"
|
|
128
143
|
- "状态管理最佳实践"
|
|
129
144
|
- "错误处理机制"
|
|
@@ -131,6 +146,7 @@ skill-creator search-skill --pwd="{{SKILL_PATH}}" --list "搜索关键词"
|
|
|
131
146
|
- "TypeScript集成"
|
|
132
147
|
|
|
133
148
|
### 添加自定义知识点
|
|
149
|
+
|
|
134
150
|
当发现文档中缺少重要信息时,可以添加自己的知识点:
|
|
135
151
|
|
|
136
152
|
```bash
|
|
@@ -138,6 +154,7 @@ skill-creator add-skill --pwd="{{SKILL_PATH}}" --title "知识点标题" --conte
|
|
|
138
154
|
```
|
|
139
155
|
|
|
140
156
|
**添加内容类型:**
|
|
157
|
+
|
|
141
158
|
- 🚀 **最佳实践**: 项目中的实际经验和技巧
|
|
142
159
|
- ⚠️ **注意事项**: 容易出错的地方和解决方案
|
|
143
160
|
- 🔧 **配置技巧**: 特殊场景的配置方法
|
|
@@ -145,18 +162,21 @@ skill-creator add-skill --pwd="{{SKILL_PATH}}" --title "知识点标题" --conte
|
|
|
145
162
|
- 🐛 **问题解决**: 常见问题和解决步骤
|
|
146
163
|
|
|
147
164
|
### 更新官方文档
|
|
165
|
+
|
|
148
166
|
获取最新的官方文档并重新切片:
|
|
149
167
|
|
|
150
168
|
**强制更新(覆盖现有文档):**
|
|
169
|
+
|
|
151
170
|
```bash
|
|
152
171
|
skill-creator download-context7 --pwd="{{SKILL_PATH}}" --force
|
|
153
172
|
```
|
|
154
173
|
|
|
155
174
|
### 查看所有内容
|
|
175
|
+
|
|
156
176
|
列出技能中所有可用的知识点:
|
|
157
177
|
|
|
158
178
|
```bash
|
|
159
|
-
skill-creator list-
|
|
179
|
+
skill-creator list-skills --pwd="{{SKILL_PATH}}"
|
|
160
180
|
```
|
|
161
181
|
|
|
162
182
|
## 文档结构说明
|
|
@@ -182,24 +202,32 @@ skill-creator list-content --pwd="{{SKILL_PATH}}"
|
|
|
182
202
|
## 搜索技巧
|
|
183
203
|
|
|
184
204
|
### 🔍 **精确搜索**
|
|
205
|
+
|
|
185
206
|
使用具体的技术术语:
|
|
207
|
+
|
|
186
208
|
- "useQuery hook用法"
|
|
187
209
|
- "路由守卫实现"
|
|
188
210
|
- "异步状态管理"
|
|
189
211
|
|
|
190
212
|
### 🎯 **场景化搜索**
|
|
213
|
+
|
|
191
214
|
基于使用场景:
|
|
215
|
+
|
|
192
216
|
- "在React项目中集成"
|
|
193
217
|
- "服务端渲染配置"
|
|
194
218
|
- "移动端优化"
|
|
195
219
|
|
|
196
220
|
### 📋 **对比搜索**
|
|
221
|
+
|
|
197
222
|
比较不同方案:
|
|
223
|
+
|
|
198
224
|
- "useState vs useReducer"
|
|
199
225
|
- "客户端路由 vs 服务端路由"
|
|
200
226
|
|
|
201
227
|
### 🔧 **问题导向搜索**
|
|
228
|
+
|
|
202
229
|
描述具体问题:
|
|
230
|
+
|
|
203
231
|
- "解决内存泄漏问题"
|
|
204
232
|
- "优化首次加载时间"
|
|
205
233
|
- "处理并发请求"
|
|
@@ -207,18 +235,21 @@ skill-creator list-content --pwd="{{SKILL_PATH}}"
|
|
|
207
235
|
## 贡献指南
|
|
208
236
|
|
|
209
237
|
### 📝 **内容贡献**
|
|
238
|
+
|
|
210
239
|
- 添加实际项目经验和最佳实践
|
|
211
240
|
- 分享遇到的问题和解决方案
|
|
212
241
|
- 补充官方文档中缺失的信息
|
|
213
242
|
- 提供代码示例和配置案例
|
|
214
243
|
|
|
215
244
|
### 🎯 **质量标准**
|
|
245
|
+
|
|
216
246
|
- 内容准确,经过实际验证
|
|
217
247
|
- 包含具体的代码示例
|
|
218
248
|
- 说明适用场景和限制条件
|
|
219
249
|
- 遵循现有的格式规范
|
|
220
250
|
|
|
221
251
|
### 🔄 **持续更新**
|
|
252
|
+
|
|
222
253
|
- 定期更新官方文档
|
|
223
254
|
- 根据版本迭代添加新特性说明
|
|
224
255
|
- 修正过时的信息和错误用法
|
|
@@ -226,12 +257,14 @@ skill-creator list-content --pwd="{{SKILL_PATH}}"
|
|
|
226
257
|
## 工作流程
|
|
227
258
|
|
|
228
259
|
### 首次使用
|
|
260
|
+
|
|
229
261
|
1. **基础搜索**: 使用 `search-skill` 查询基础概念
|
|
230
262
|
2. **实践验证**: 根据搜索结果进行实际编码
|
|
231
263
|
3. **补充内容**: 将实践经验通过 `add-skill` 添加为知识点
|
|
232
264
|
4. **分享交流**: 与团队成员分享有价值的发现
|
|
233
265
|
|
|
234
266
|
### 日常使用
|
|
267
|
+
|
|
235
268
|
1. **问题查询**: 遇到问题时先搜索现有知识点
|
|
236
269
|
2. **内容扩展**: 发现新知识时及时补充
|
|
237
270
|
3. **文档更新**: 定期更新官方文档以保持同步
|
|
@@ -240,6 +273,7 @@ skill-creator list-content --pwd="{{SKILL_PATH}}"
|
|
|
240
273
|
## 技术支持
|
|
241
274
|
|
|
242
275
|
如果遇到技术问题,可以通过以下方式:
|
|
276
|
+
|
|
243
277
|
1. 搜索现有知识点
|
|
244
278
|
2. 查看官方文档部分
|
|
245
279
|
3. 添加问题描述到用户知识点
|
|
@@ -247,4 +281,4 @@ skill-creator list-content --pwd="{{SKILL_PATH}}"
|
|
|
247
281
|
|
|
248
282
|
---
|
|
249
283
|
|
|
250
|
-
|
|
284
|
+
_本技能基于skill-creator工具创建,持续更新以提供最佳的技术支持体验。_
|