@zhanngning/hecode 0.3.0 → 0.3.2

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/README.md +107 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -6,7 +6,7 @@ Your AI Coding Assistant CLI with Financial Analysis.
6
6
 
7
7
  - **Multi-Model Support**: OpenAI, Anthropic, MiMo, Ollama, and any OpenAI-compatible API
8
8
  - **Tool System**: File read/write/edit, bash execution, glob/grep search
9
- - **Skill System**: Loadable domain skills (coding, data analysis, finance, etc.)
9
+ - **Skill System**: Loadable domain skills (coding, testing, ppt, planning, finance, etc.)
10
10
  - **Memory System**: Session, project, and global memory with search
11
11
  - **Interactive REPL**: Streaming output, slash commands, tool status display
12
12
  - **Financial Analysis**: Stock analysis, technical indicators, research reports
@@ -133,16 +133,118 @@ pip install akshare pandas
133
133
 
134
134
  ## Skill System
135
135
 
136
- Create custom skills in `skills/<name>/SKILL.md`:
136
+ Hecode uses a skill-based architecture to handle different tasks. Each skill provides specialized instructions for specific domains.
137
+
138
+ ### Built-in Skills
139
+
140
+ | Skill | Trigger Words | Description |
141
+ |-------|---------------|-------------|
142
+ | `coding` | code, fix, debug, refactor, implement, write, create, build | Write clean, minimal code following best practices |
143
+ | `testing` | test, testing, unit test, integration test, e2e, TDD, BDD | Write tests, test-driven development |
144
+ | `ppt` | ppt, presentation, slides, 演示, 幻灯片, 汇报 | Create professional presentations |
145
+ | `planning` | plan, planning, project, roadmap, 项目, 计划, 规划 | Create project plans and roadmaps |
146
+ | `finance` | finance, 股票, 金融, 研究报告, stock | Financial analysis and research reports |
147
+
148
+ ### Skill Details
149
+
150
+ #### Coding Skill
151
+ Write production-ready code with:
152
+ - Clean, minimal implementations
153
+ - Follow existing project conventions
154
+ - Proper error handling
155
+ - Type safety
156
+
157
+ ```bash
158
+ hecode --skill coding "implement user authentication with JWT"
159
+ hecode --skill coding "refactor the database connection module"
160
+ hecode --skill coding "fix the memory leak in the event handler"
161
+ ```
162
+
163
+ #### Testing Skill
164
+ Comprehensive testing support:
165
+ - Unit tests, integration tests, E2E tests
166
+ - TDD workflow (Red-Green-Refactor)
167
+ - Mocking and test fixtures
168
+ - Coverage analysis
169
+
170
+ ```bash
171
+ hecode --skill testing "write unit tests for the payment service"
172
+ hecode --skill testing "create integration tests for the API"
173
+ hecode --skill testing "help me practice TDD for a sorting algorithm"
174
+ ```
175
+
176
+ #### PPT Skill
177
+ Create professional presentations:
178
+ - Title slides, content slides, data slides
179
+ - Consistent design and formatting
180
+ - Charts and visualizations
181
+ - Speaker notes
182
+
183
+ ```bash
184
+ hecode --skill ppt "create a product demo presentation"
185
+ hecode --skill ppt "make a quarterly business review deck"
186
+ hecode --skill ppt "设计一个技术分享PPT"
187
+ ```
188
+
189
+ #### Planning Skill
190
+ Project planning and management:
191
+ - Project scope and objectives
192
+ - Timeline and milestones
193
+ - Task breakdown and dependencies
194
+ - Risk assessment
195
+
196
+ ```bash
197
+ hecode --skill planning "create a project plan for the new feature"
198
+ hecode --skill planning "制定Q3季度开发计划"
199
+ hecode --skill planning "create a roadmap for the next 6 months"
200
+ ```
201
+
202
+ #### Financial Analysis Skill
203
+ Stock analysis and research reports:
204
+ - Real-time price data (A-shares, HK stocks)
205
+ - Technical indicators (MA, RSI, MACD)
206
+ - Trend analysis and signals
207
+ - Comprehensive research reports
208
+
209
+ ```bash
210
+ hecode --skill finance "分析贵州茅台"
211
+ hecode --skill finance "analyze stock 600519"
212
+ hecode --skill finance "生成腾讯研究报告"
213
+ ```
214
+
215
+ ### Custom Skills
216
+
217
+ Create your own skills by adding a `SKILL.md` file in `skills/<name>/`:
137
218
 
138
219
  ```markdown
139
- # My Skill
220
+ # My Custom Skill
221
+
222
+ trigger: keyword1, keyword2, 关键词
223
+
224
+ ## Instructions
225
+
226
+ You are an expert in [domain]. When helping users:
140
227
 
141
- trigger: keyword1, keyword2
228
+ 1. First understand the requirement
229
+ 2. Provide step-by-step guidance
230
+ 3. Use relevant tools
231
+ 4. Verify the result
142
232
 
143
- Instructions for this skill...
233
+ ## Example
234
+
235
+ User: "help me with X"
236
+ Assistant: [detailed response following the skill instructions]
144
237
  ```
145
238
 
239
+ ### Skill Selection
240
+
241
+ Skills are automatically matched based on:
242
+ - User input keywords
243
+ - Context analysis
244
+ - Explicit `--skill` flag
245
+
246
+ If no skill matches, the default coding behavior is used.
247
+
146
248
  ## Development
147
249
 
148
250
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhanngning/hecode",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "hecode": "./dist/index.js"