skill-creator 1.2.0 → 1.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skill-creator",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Create claude-code-skills with documentation management",
5
5
  "bin": {
6
6
  "skill-creator": "dist/cli.js"
@@ -51,10 +51,94 @@ pnpm add {{PACKAGE_NAME}}
51
51
  ### Search Documentation Knowledge
52
52
  Query {{NAME}} for information, API usage, best practices, and technical solutions:
53
53
 
54
+ #### Basic Search
54
55
  ```bash
55
56
  skill-creator search-skill --pwd="{{SKILL_PATH}}" "search keywords"
56
57
  ```
57
58
 
59
+ #### Search Mode Selection
60
+ ```bash
61
+ # Auto mode (default) - Intelligent search strategy selection
62
+ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=auto "search keywords"
63
+
64
+ # ChromaDB mode - Semantic search with contextual understanding
65
+ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=chroma "search keywords"
66
+
67
+ # Fuzzy mode - Keyword search with string fuzzy matching
68
+ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=fuzzy "search keywords"
69
+ ```
70
+
71
+ #### Search Modes Explained
72
+
73
+ **🤖 Auto Mode (Automatic Mode - Default)**
74
+ - **How it works**: First uses Fuzzy search for fast matching, if no satisfactory results are found, automatically switches to ChromaDB for semantic search
75
+ - **Best for**:
76
+ - When unsure which search method to use
77
+ - When you want the best search balance
78
+ - Daily quick query needs
79
+ - **Advantages**: Intelligent switching, balancing speed and accuracy, optimal user experience
80
+
81
+ **🧠 ChromaDB Mode (Semantic Search)**
82
+ - **How it works**: Based on vector database and semantic models, understands query intent and context for conceptual matching
83
+ - **Best for**:
84
+ - Conceptual queries ("how to handle state management")
85
+ - Functional searches ("methods for data validation")
86
+ - Complex queries requiring semantic understanding
87
+ - Finding related technical concepts and best practices
88
+ - **Advantages**: Understands query intent, can find semantically related content with different keywords, ideal for conceptual searches
89
+ - **Features**:
90
+ - Supports natural language queries
91
+ - Understands synonyms and related concepts
92
+ - Results ranked by semantic similarity
93
+ - Requires search index building
94
+
95
+ **🔍 Fuzzy Mode (Fuzzy Search)**
96
+ - **How it works**: Based on string fuzzy matching algorithms, quickly finds content containing specified keywords
97
+ - **Best for**:
98
+ - Precise keyword searches ("useQuery", "useState")
99
+ - API name and method lookups
100
+ - Configuration options and parameters
101
+ - Quick term location
102
+ - **Advantages**: Fast response, accurate keyword matching, suitable for finding specific APIs, config items, method names, etc.
103
+ - **Features**:
104
+ - Supports partial and fuzzy matching
105
+ - Fast search speed, no indexing required
106
+ - Ranked by keyword similarity
107
+ - Ideal for technical terms and code snippets
108
+
109
+ #### Practical Search Examples
110
+
111
+ **API and Method Queries** (Fuzzy mode recommended):
112
+ ```bash
113
+ # Find specific API
114
+ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=fuzzy "useQuery"
115
+
116
+ # Find configuration options
117
+ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=fuzzy "baseURL configuration"
118
+ ```
119
+
120
+ **Concept and Best Practice Queries** (ChromaDB mode recommended):
121
+ ```bash
122
+ # Conceptual questions
123
+ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=chroma "how to optimize React component performance"
124
+
125
+ # Best practices
126
+ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=chroma "state management best practices"
127
+ ```
128
+
129
+ **Daily Queries** (Using Auto mode):
130
+ ```bash
131
+ # Let system choose the best search method
132
+ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=auto "error handling"
133
+ skill-creator search-skill --pwd="{{SKILL_PATH}}" "routing configuration" # --mode=auto is default
134
+ ```
135
+
136
+ #### List Mode Display
137
+ For a simplified view of results, use list mode:
138
+ ```bash
139
+ skill-creator search-skill --pwd="{{SKILL_PATH}}" --list "search keywords"
140
+ ```
141
+
58
142
  **Example Queries:**
59
143
  - "how to create router"
60
144
  - "state management best practices"
@@ -51,10 +51,94 @@ pnpm add {{PACKAGE_NAME}}
51
51
  ### 搜索文档知识点
52
52
  查询{{NAME}}的相关信息、API使用、最佳实践等:
53
53
 
54
+ #### 基础搜索
54
55
  ```bash
55
56
  skill-creator search-skill --pwd="{{SKILL_PATH}}" "搜索关键词"
56
57
  ```
57
58
 
59
+ #### 搜索模式选择
60
+ ```bash
61
+ # 自动模式(默认)- 智能选择搜索策略
62
+ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=auto "搜索关键词"
63
+
64
+ # ChromaDB模式 - 语义化搜索,理解上下文含义
65
+ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=chroma "搜索关键词"
66
+
67
+ # Fuzzy模式 - 关键字搜索,字符串模糊匹配
68
+ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=fuzzy "搜索关键词"
69
+ ```
70
+
71
+ #### 搜索模式详解
72
+
73
+ **🤖 Auto 模式(自动模式,默认)**
74
+ - **工作原理**: 首先使用 Fuzzy 搜索进行快速匹配,如果没有找到满意结果,自动切换到 ChromaDB 进行语义搜索
75
+ - **适用场景**:
76
+ - 不确定使用哪种搜索方式时
77
+ - 希望获得最佳搜索平衡时
78
+ - 日常快速查询需求
79
+ - **优势**: 智能切换,兼顾速度和准确性,用户体验最佳
80
+
81
+ **🧠 ChromaDB 模式(语义搜索)**
82
+ - **工作原理**: 基于向量数据库和语义模型,理解查询意图和上下文含义,进行概念匹配
83
+ - **适用场景**:
84
+ - 概念性查询("如何处理状态管理")
85
+ - 功能性搜索("数据验证的方法")
86
+ - 需要理解语义的复杂查询
87
+ - 查找相关的技术概念和最佳实践
88
+ - **优势**: 理解查询意图,能找到语义相关但关键词不完全匹配的内容,适合概念性搜索
89
+ - **特点**:
90
+ - 支持自然语言查询
91
+ - 能理解同义词和相关概念
92
+ - 基于语义相似度排序结果
93
+ - 需要构建搜索索引
94
+
95
+ **🔍 Fuzzy 模式(模糊搜索)**
96
+ - **工作原理**: 基于字符串模糊匹配算法,快速查找包含指定关键词的内容
97
+ - **适用场景**:
98
+ - 精确关键词搜索("useQuery"、"useState")
99
+ - API名称和方法查找
100
+ - 配置项和参数搜索
101
+ - 快速定位特定术语
102
+ - **优势**: 响应速度快,关键词匹配精确,适合查找具体的API、配置项、方法名等
103
+ - **特点**:
104
+ - 支持部分匹配和模糊匹配
105
+ - 搜索速度快,无需索引
106
+ - 基于关键词相似度排序
107
+ - 适合技术术语和代码片段搜索
108
+
109
+ #### 实用搜索示例
110
+
111
+ **API 和方法查询**(推荐 Fuzzy 模式):
112
+ ```bash
113
+ # 查找特定API
114
+ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=fuzzy "useQuery"
115
+
116
+ # 查找配置选项
117
+ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=fuzzy "baseURL配置"
118
+ ```
119
+
120
+ **概念和最佳实践查询**(推荐 ChromaDB 模式):
121
+ ```bash
122
+ # 概念性问题
123
+ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=chroma "如何优化React组件性能"
124
+
125
+ # 最佳实践
126
+ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=chroma "状态管理最佳实践"
127
+ ```
128
+
129
+ **日常查询**(使用 Auto 模式):
130
+ ```bash
131
+ # 让系统自动选择最佳搜索方式
132
+ skill-creator search-skill --pwd="{{SKILL_PATH}}" --mode=auto "错误处理"
133
+ skill-creator search-skill --pwd="{{SKILL_PATH}}" "路由配置" # --mode=auto 是默认值
134
+ ```
135
+
136
+ #### 列表模式显示
137
+ 如果只需要查看简要信息,可以使用列表模式:
138
+ ```bash
139
+ skill-creator search-skill --pwd="{{SKILL_PATH}}" --list "搜索关键词"
140
+ ```
141
+
58
142
  **示例查询:**
59
143
  - "如何创建router"
60
144
  - "状态管理最佳实践"