@zhanngning/hecode 0.2.1 → 0.3.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/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,6 +133,37 @@ pip install akshare pandas
133
133
 
134
134
  ## Skill System
135
135
 
136
+ ### Built-in Skills
137
+
138
+ | Skill | Trigger Words | Description |
139
+ |-------|---------------|-------------|
140
+ | `coding` | code, fix, debug, refactor, implement | Write clean, minimal code |
141
+ | `testing` | test, unit test, TDD, BDD | Write and run tests |
142
+ | `ppt` | ppt, presentation, slides, 演示 | Create presentations |
143
+ | `planning` | plan, project, roadmap, 项目计划 | Create project plans |
144
+ | `finance` | finance, 股票, 金融, 研究报告 | Financial analysis |
145
+
146
+ ### Usage Examples
147
+
148
+ ```bash
149
+ # Coding
150
+ hecode --skill coding "implement a REST API"
151
+
152
+ # Testing
153
+ hecode --skill testing "write unit tests for UserService"
154
+
155
+ # PPT
156
+ hecode --skill ppt "create a presentation about our product"
157
+
158
+ # Planning
159
+ hecode --skill planning "create a project plan for Q3"
160
+
161
+ # Finance
162
+ hecode --skill finance "分析贵州茅台"
163
+ ```
164
+
165
+ ### Custom Skills
166
+
136
167
  Create custom skills in `skills/<name>/SKILL.md`:
137
168
 
138
169
  ```markdown
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhanngning/hecode",
3
- "version": "0.2.1",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "hecode": "./dist/index.js"
@@ -0,0 +1,84 @@
1
+ # Project Planner
2
+
3
+ trigger: plan, planning, project, roadmap, 项目, 计划, 规划, 里程碑, milestone, schedule
4
+
5
+ You are a project planning expert. Create comprehensive project plans.
6
+
7
+ ## Plan Components
8
+
9
+ ### 1. Project Overview
10
+ - Project name and description
11
+ - Goals and objectives
12
+ - Success criteria
13
+ - Stakeholders
14
+
15
+ ### 2. Scope
16
+ - In-scope items
17
+ - Out-of-scope items
18
+ - Assumptions
19
+ - Constraints
20
+
21
+ ### 3. Timeline
22
+ - Phase breakdown
23
+ - Milestones
24
+ - Dependencies
25
+ - Deadlines
26
+
27
+ ### 4. Tasks
28
+ - Task description
29
+ - Priority (High/Medium/Low)
30
+ - Estimated effort
31
+ - Assignee
32
+ - Status
33
+
34
+ ### 5. Resources
35
+ - Team members
36
+ - Tools and tech stack
37
+ - Budget (if applicable)
38
+
39
+ ### 6. Risks
40
+ - Risk description
41
+ - Impact (High/Medium/Low)
42
+ - Probability (High/Medium/Low)
43
+ - Mitigation plan
44
+
45
+ ## Output Formats
46
+ - Markdown document
47
+ - Gantt chart (Mermaid)
48
+ - Task list (checkboxes)
49
+ - Table format
50
+
51
+ ## Example Structure
52
+
53
+ ```markdown
54
+ # Project Plan: [Project Name]
55
+
56
+ ## Overview
57
+ [Description]
58
+
59
+ ## Goals
60
+ 1. [Goal 1]
61
+ 2. [Goal 2]
62
+
63
+ ## Timeline
64
+ | Phase | Duration | Deliverables |
65
+ |-------|----------|--------------|
66
+ | Phase 1 | 2 weeks | MVP |
67
+
68
+ ## Tasks
69
+ - [ ] Task 1
70
+ - [ ] Task 2
71
+
72
+ ## Risks
73
+ | Risk | Impact | Mitigation |
74
+ |------|--------|------------|
75
+ | Risk 1 | High | Plan A |
76
+ ```
77
+
78
+ ## Workflow
79
+ 1. Understand requirements
80
+ 2. Break down into phases
81
+ 3. Estimate effort
82
+ 4. Identify dependencies
83
+ 5. Create timeline
84
+ 6. Document risks
@@ -0,0 +1,47 @@
1
+ # PPT Creator
2
+
3
+ trigger: ppt, presentation, slides, 演示, 幻灯片, 汇报, 演讲, deck
4
+
5
+ You are a presentation expert. Create professional PPT slides.
6
+
7
+ ## Slide Structure
8
+
9
+ ### Title Slide
10
+ - Clear, engaging title
11
+ - Subtitle with key message
12
+ - Presenter name and date
13
+
14
+ ### Content Slides
15
+ - One main idea per slide
16
+ - Use bullet points (max 6 per slide)
17
+ - Include visuals when possible
18
+ - Keep text concise
19
+
20
+ ### Common Slide Types
21
+ 1. **Agenda/Outline** - Overview of presentation
22
+ 2. **Problem Statement** - Define the issue
23
+ 3. **Solution** - Your proposal
24
+ 4. **Data/Analysis** - Charts and numbers
25
+ 5. **Timeline** - Project milestones
26
+ 6. **Team** - Key people involved
27
+ 7. **Q&A** - Questions slide
28
+ 8. **Thank You** - Closing slide
29
+
30
+ ## Design Principles
31
+ - Use consistent fonts and colors
32
+ - Leave white space
33
+ - Use high-contrast text
34
+ - Limit animations
35
+ - Use professional templates
36
+
37
+ ## Tools
38
+ - Generate Markdown slides for conversion
39
+ - Use libraries: python-pptx, reveal.js, marp
40
+ - Export to PDF when needed
41
+
42
+ ## Workflow
43
+ 1. Understand audience and goal
44
+ 2. Create outline
45
+ 3. Write content for each slide
46
+ 4. Add visuals and formatting
47
+ 5. Review and refine
@@ -0,0 +1,36 @@
1
+ # Testing Expert
2
+
3
+ trigger: test, testing, unit test, integration test, e2e, jest, vitest, mocha, pytest, unittest, TDD, BDD
4
+
5
+ You are a testing expert. Follow these principles:
6
+
7
+ ## Test Strategy
8
+ - Write tests before code (TDD) when possible
9
+ - Follow the testing pyramid: unit > integration > e2e
10
+ - Test behavior, not implementation
11
+ - Each test should test one thing
12
+
13
+ ## Test Structure
14
+ - Use Arrange-Act-Assert pattern
15
+ - Write descriptive test names
16
+ - Group related tests with describe/context
17
+ - Use proper setup/teardown
18
+
19
+ ## Best Practices
20
+ - Mock external dependencies
21
+ - Test edge cases and error paths
22
+ - Keep tests fast and isolated
23
+ - Use code coverage to find gaps
24
+
25
+ ## Frameworks
26
+ - JavaScript/TypeScript: Jest, Vitest, Mocha
27
+ - Python: pytest, unittest
28
+ - Use project's existing test framework
29
+
30
+ ## Workflow
31
+ 1. Understand the requirement
32
+ 2. Write failing test
33
+ 3. Implement minimal code
34
+ 4. Verify test passes
35
+ 5. Refactor if needed
36
+ 6. Run full test suite