@optima-chat/dev-skills 0.1.5 → 0.1.6
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/.claude/commands/logs.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: "
|
|
3
|
-
description: "当用户请求查看日志、查看服务日志、排查问题、看看日志、检查日志、商品服务日志、后端日志、API
|
|
2
|
+
name: "logs"
|
|
3
|
+
description: "当用户请求查看日志、查看服务日志、排查问题、看看日志、检查日志、商品服务日志、后端日志、API日志、正式环境日志、生产环境日志时,使用此技能。支持 Stage、Prod 环境的 commerce-backend、user-auth、mcp-host、agentic-chat 服务。"
|
|
4
4
|
allowed-tools: ["Bash", "SlashCommand"]
|
|
5
5
|
---
|
|
6
6
|
|
package/README.md
CHANGED
|
@@ -22,14 +22,14 @@ optima-dev-skills --version
|
|
|
22
22
|
optima-dev-skills --help
|
|
23
23
|
|
|
24
24
|
# 检查文件
|
|
25
|
-
ls ~/.claude/commands/
|
|
26
|
-
ls ~/.claude/skills/
|
|
25
|
+
ls ~/.claude/commands/
|
|
26
|
+
ls ~/.claude/skills/logs/
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
### 已安装的能力
|
|
30
30
|
|
|
31
31
|
- ✅ `/logs` 命令 - 查看 Stage/Prod 环境日志
|
|
32
|
-
- ✅ `
|
|
32
|
+
- ✅ `logs` skill - 自动识别日志查看需求
|
|
33
33
|
|
|
34
34
|
### 更新
|
|
35
35
|
|
|
@@ -50,7 +50,7 @@ Optima Dev Skills 让 Claude Code 能够直接在 **CI、Stage、Prod** 三个
|
|
|
50
50
|
|
|
51
51
|
当 Claude Code 识别到以下任务时,会自动加载对应的 Skill:
|
|
52
52
|
|
|
53
|
-
- **
|
|
53
|
+
- **logs** - 查看 CI/Stage/Prod 的服务器日志
|
|
54
54
|
|
|
55
55
|
## 👤 用户故事
|
|
56
56
|
|
|
@@ -108,7 +108,7 @@ optima-dev-skills/
|
|
|
108
108
|
│ │ └── logs.md # /logs - 查看服务日志
|
|
109
109
|
│ │
|
|
110
110
|
│ └── skills/
|
|
111
|
-
│ └──
|
|
111
|
+
│ └── logs/ # 日志查看 skill
|
|
112
112
|
│ └── SKILL.md
|
|
113
113
|
│
|
|
114
114
|
└── docs/
|
|
@@ -184,7 +184,7 @@ Claude:
|
|
|
184
184
|
|
|
185
185
|
**已完成**:
|
|
186
186
|
- ✅ 1 个跨环境命令:`/logs`
|
|
187
|
-
- ✅ 1 个任务场景:`
|
|
187
|
+
- ✅ 1 个任务场景:`logs` skill
|
|
188
188
|
- ✅ 支持 CI、Stage、Prod 三个环境
|
|
189
189
|
|
|
190
190
|
**设计原则**:
|
package/package.json
CHANGED
package/scripts/install.js
CHANGED
|
@@ -7,7 +7,7 @@ const os = require('os');
|
|
|
7
7
|
const CLAUDE_DIR = path.join(os.homedir(), '.claude');
|
|
8
8
|
const SKILLS_SOURCE = path.join(__dirname, '..', '.claude');
|
|
9
9
|
const COMMANDS_DEST = path.join(CLAUDE_DIR, 'commands');
|
|
10
|
-
const SKILLS_DEST = path.join(CLAUDE_DIR, 'skills', '
|
|
10
|
+
const SKILLS_DEST = path.join(CLAUDE_DIR, 'skills', 'logs');
|
|
11
11
|
|
|
12
12
|
// 颜色输出
|
|
13
13
|
const colors = {
|
|
@@ -63,10 +63,10 @@ function install() {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
// 安装 skills
|
|
66
|
-
const skillsSource = path.join(SKILLS_SOURCE, 'skills', '
|
|
66
|
+
const skillsSource = path.join(SKILLS_SOURCE, 'skills', 'logs');
|
|
67
67
|
if (fs.existsSync(skillsSource)) {
|
|
68
68
|
copyRecursive(skillsSource, SKILLS_DEST);
|
|
69
|
-
log(`✓ Installed
|
|
69
|
+
log(`✓ Installed logs skill to ${SKILLS_DEST}`, 'green');
|
|
70
70
|
} else {
|
|
71
71
|
log(`✗ Skills not found at ${skillsSource}`, 'red');
|
|
72
72
|
}
|