listen-agent 1.0.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 (51) hide show
  1. package/README.md +132 -0
  2. package/dist/commands/create.d.ts +3 -0
  3. package/dist/commands/create.d.ts.map +1 -0
  4. package/dist/commands/create.js +157 -0
  5. package/dist/commands/create.js.map +1 -0
  6. package/dist/commands/init.d.ts +3 -0
  7. package/dist/commands/init.d.ts.map +1 -0
  8. package/dist/commands/init.js +210 -0
  9. package/dist/commands/init.js.map +1 -0
  10. package/dist/commands/list.d.ts +2 -0
  11. package/dist/commands/list.d.ts.map +1 -0
  12. package/dist/commands/list.js +65 -0
  13. package/dist/commands/list.js.map +1 -0
  14. package/dist/commands/setup.d.ts +2 -0
  15. package/dist/commands/setup.d.ts.map +1 -0
  16. package/dist/commands/setup.js +50 -0
  17. package/dist/commands/setup.js.map +1 -0
  18. package/dist/index.d.ts +3 -0
  19. package/dist/index.d.ts.map +1 -0
  20. package/dist/index.js +53 -0
  21. package/dist/index.js.map +1 -0
  22. package/dist/types/index.d.ts +25 -0
  23. package/dist/types/index.d.ts.map +1 -0
  24. package/dist/types/index.js +26 -0
  25. package/dist/types/index.js.map +1 -0
  26. package/dist/utils/detect.d.ts +4 -0
  27. package/dist/utils/detect.d.ts.map +1 -0
  28. package/dist/utils/detect.js +52 -0
  29. package/dist/utils/detect.js.map +1 -0
  30. package/dist/utils/files.d.ts +7 -0
  31. package/dist/utils/files.d.ts.map +1 -0
  32. package/dist/utils/files.js +70 -0
  33. package/dist/utils/files.js.map +1 -0
  34. package/dist/utils/logger.d.ts +9 -0
  35. package/dist/utils/logger.d.ts.map +1 -0
  36. package/dist/utils/logger.js +10 -0
  37. package/dist/utils/logger.js.map +1 -0
  38. package/package.json +66 -0
  39. package/skills/mac-m4-lora-training/README.md +152 -0
  40. package/skills/mac-m4-lora-training/SKILL.md +181 -0
  41. package/skills/mac-m4-lora-training/scripts/auto_lora_train_mps.py +474 -0
  42. package/skills/mac-m4-lora-training/scripts/install_dependencies.sh +226 -0
  43. package/skills/mac-m4-lora-training/scripts/quick_train.sh +88 -0
  44. package/skills/wechat-work-notification/README.md +88 -0
  45. package/skills/wechat-work-notification/SKILL.md +187 -0
  46. package/templates/advanced/README.md +45 -0
  47. package/templates/advanced/SKILL.md +149 -0
  48. package/templates/advanced/scripts/install_dependencies.sh +14 -0
  49. package/templates/advanced/scripts/run_task.sh +48 -0
  50. package/templates/basic/README.md +17 -0
  51. package/templates/basic/SKILL.md +72 -0
@@ -0,0 +1,149 @@
1
+ ---
2
+ name: {{name}}
3
+ description: {{description}}
4
+ version: 1.0.0
5
+ author: {{author}}
6
+ tags: {{tags}}
7
+ ---
8
+
9
+ # {{name}} Skill
10
+
11
+ 你是一个专门处理{{domain}}的AI助手,具备{{capabilities}}能力。
12
+
13
+ ## 任务概述
14
+
15
+ 本技能用于{{task_overview}},支持{{features}}等功能。
16
+
17
+ ## 核心能力
18
+
19
+ - 🚀 **能力1** - {{capability_1_description}}
20
+ - 🧠 **能力2** - {{capability_2_description}}
21
+ - 📊 **能力3** - {{capability_3_description}}
22
+ - 💾 **能力4** - {{capability_4_description}}
23
+ - 🔄 **能力5** - {{capability_5_description}}
24
+
25
+ ## 系统要求
26
+
27
+ ### 硬件要求
28
+ - **处理器**: {{processor_requirement}}
29
+ - **内存**: {{memory_requirement}}
30
+ - **存储**: {{storage_requirement}}
31
+
32
+ ### 软件依赖
33
+ - {{dependency_1}}
34
+ - {{dependency_2}}
35
+ - {{dependency_3}}
36
+
37
+ ## 执行步骤
38
+
39
+ ### 第一步:环境准备
40
+
41
+ ```bash
42
+ # 环境安装脚本
43
+ ./scripts/install_dependencies.sh
44
+ ```
45
+
46
+ ### 第二步:配置设置
47
+
48
+ ```bash
49
+ # 配置命令
50
+ ./scripts/setup_config.sh --param {{config_param}}
51
+ ```
52
+
53
+ ### 第三步:执行任务
54
+
55
+ #### 方法1:交互式执行
56
+
57
+ ```bash
58
+ ./scripts/interactive_run.sh
59
+ ```
60
+
61
+ #### 方法2:命令行执行
62
+
63
+ ```bash
64
+ ./scripts/run_task.sh \
65
+ --input "{{input_param}}" \
66
+ --output "{{output_param}}" \
67
+ --config "{{config_file}}"
68
+ ```
69
+
70
+ ### 第四步:结果处理
71
+
72
+ ```bash
73
+ # 处理结果
74
+ ./scripts/process_results.sh --input {{result_path}}
75
+ ```
76
+
77
+ ## 配置选项
78
+
79
+ | 参数 | 类型 | 默认值 | 描述 |
80
+ |------|------|--------|------|
81
+ | `{{param_1}}` | string | "{{default_1}}" | {{param_1_desc}} |
82
+ | `{{param_2}}` | number | {{default_2}} | {{param_2_desc}} |
83
+ | `{{param_3}}` | boolean | {{default_3}} | {{param_3_desc}} |
84
+
85
+ ## 使用示例
86
+
87
+ ### 基础示例
88
+
89
+ ```bash
90
+ # 基础用法
91
+ {{name}} --input "example.txt" --output "result.txt"
92
+ ```
93
+
94
+ ### 高级示例
95
+
96
+ ```bash
97
+ # 高级用法
98
+ {{name}} \
99
+ --input "data/" \
100
+ --output "results/" \
101
+ --config "advanced.json" \
102
+ --parallel 4 \
103
+ --verbose
104
+ ```
105
+
106
+ ## 最佳实践
107
+
108
+ 1. **性能优化**
109
+ - {{performance_tip_1}}
110
+ - {{performance_tip_2}}
111
+
112
+ 2. **安全考虑**
113
+ - {{security_tip_1}}
114
+ - {{security_tip_2}}
115
+
116
+ 3. **错误处理**
117
+ - {{error_handling_tip_1}}
118
+ - {{error_handling_tip_2}}
119
+
120
+ ## 故障排除
121
+
122
+ ### 常见问题
123
+
124
+ | 问题 | 原因 | 解决方案 |
125
+ |------|------|----------|
126
+ | {{error_1}} | {{cause_1}} | {{solution_1}} |
127
+ | {{error_2}} | {{cause_2}} | {{solution_2}} |
128
+ | {{error_3}} | {{cause_3}} | {{solution_3}} |
129
+
130
+ ### 调试模式
131
+
132
+ ```bash
133
+ # 启用调试模式
134
+ {{name}} --debug --verbose --log-level debug
135
+ ```
136
+
137
+ ## 扩展功能
138
+
139
+ - **插件系统**: {{plugin_description}}
140
+ - **API集成**: {{api_description}}
141
+ - **批量处理**: {{batch_description}}
142
+ - **监控报告**: {{monitoring_description}}
143
+
144
+ ## 技术架构
145
+
146
+ - **核心框架**: {{framework}}
147
+ - **数据处理**: {{data_processing}}
148
+ - **存储方案**: {{storage_solution}}
149
+ - **通信协议**: {{communication_protocol}}
@@ -0,0 +1,14 @@
1
+ #!/bin/bash
2
+
3
+ # {{name}} 依赖安装脚本
4
+
5
+ echo "🚀 安装 {{name}} 依赖..."
6
+
7
+ # 检查系统要求
8
+ echo "🔍 检查系统要求..."
9
+
10
+ # 安装依赖
11
+ echo "📦 安装依赖包..."
12
+ # 在这里添加具体的安装命令
13
+
14
+ echo "✅ 依赖安装完成!"
@@ -0,0 +1,48 @@
1
+ #!/bin/bash
2
+
3
+ # {{name}} 任务执行脚本
4
+
5
+ echo "🚀 执行 {{name}} 任务..."
6
+
7
+ # 解析参数
8
+ while [[ $# -gt 0 ]]; do
9
+ case $1 in
10
+ --input)
11
+ INPUT="$2"
12
+ shift 2
13
+ ;;
14
+ --output)
15
+ OUTPUT="$2"
16
+ shift 2
17
+ ;;
18
+ --config)
19
+ CONFIG="$2"
20
+ shift 2
21
+ ;;
22
+ *)
23
+ echo "未知参数: $1"
24
+ exit 1
25
+ ;;
26
+ esac
27
+ done
28
+
29
+ # 验证参数
30
+ if [ -z "$INPUT" ]; then
31
+ echo "❌ 缺少 --input 参数"
32
+ exit 1
33
+ fi
34
+
35
+ if [ -z "$OUTPUT" ]; then
36
+ echo "❌ 缺少 --output 参数"
37
+ exit 1
38
+ fi
39
+
40
+ echo "📁 输入: $INPUT"
41
+ echo "📁 输出: $OUTPUT"
42
+ echo "⚙️ 配置: ${CONFIG:-默认配置}"
43
+
44
+ # 执行任务
45
+ echo "⚡ 开始处理..."
46
+ # 在这里添加具体的任务逻辑
47
+
48
+ echo "✅ 任务完成!"
@@ -0,0 +1,17 @@
1
+ # {{name}}
2
+
3
+ ## Description
4
+
5
+ Agent skill for {{name}}.
6
+
7
+ ## Usage
8
+
9
+ Describe how to use this skill with your AI assistant.
10
+
11
+ ## Configuration
12
+
13
+ Any configuration options or requirements.
14
+
15
+ ## Examples
16
+
17
+ Provide examples of how this skill works.
@@ -0,0 +1,72 @@
1
+ ---
2
+ name: {{name}}
3
+ description: {{description}}
4
+ version: 1.0.0
5
+ author: {{author}}
6
+ tags: {{tags}}
7
+ ---
8
+
9
+ # {{name}} Skill
10
+
11
+ You are an AI assistant with the {{name}} skill.
12
+
13
+ ## 任务概述
14
+
15
+ 本技能用于{{task_overview}}。
16
+
17
+ ## 核心能力
18
+
19
+ - 描述这个技能可以做什么
20
+ - 列出具体功能或特性
21
+ - 说明任何限制条件
22
+
23
+ ## 执行步骤
24
+
25
+ ### 第一步:准备工作
26
+
27
+ 描述需要的准备工作...
28
+
29
+ ### 第二步:执行任务
30
+
31
+ 1. 具体执行步骤1
32
+ 2. 具体执行步骤2
33
+ 3. 具体执行步骤3
34
+
35
+ ### 第三步:结果处理
36
+
37
+ 描述如何处理执行结果...
38
+
39
+ ## 使用示例
40
+
41
+ ### 基础用法
42
+
43
+ ```bash
44
+ # 示例命令或代码
45
+ example_command --param value
46
+ ```
47
+
48
+ ### 高级用法
49
+
50
+ ```bash
51
+ # 高级示例
52
+ advanced_example --config config.json
53
+ ```
54
+
55
+ ## 最佳实践
56
+
57
+ 1. **实践建议1** - 详细说明
58
+ 2. **实践建议2** - 详细说明
59
+ 3. **实践建议3** - 详细说明
60
+
61
+ ## 故障排除
62
+
63
+ | 问题 | 解决方案 |
64
+ |------|----------|
65
+ | 常见问题1 | 解决方法1 |
66
+ | 常见问题2 | 解决方法2 |
67
+
68
+ ## 扩展功能
69
+
70
+ - 扩展功能1:描述
71
+ - 扩展功能2:描述
72
+ - 扩展功能3:描述