Skip to content

Commit 1391b63

Browse files
Merge pull request #52 from fjqz177/main
Thanks for PR
2 parents b80cce4 + f02366c commit 1391b63

3 files changed

Lines changed: 93 additions & 5 deletions

File tree

.opencode/INSTALL.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
git clone https://github.com/MiniMax-AI/skills.git ~/.minimax-skills
1313

1414
mkdir -p ~/.config/opencode/skills
15-
ln -s ~/.minimax-skills/skills/* ~/.config/opencode/skills/
15+
for skill in ~/.minimax-skills/skills/*/; do
16+
skill_name=$(basename "$skill")
17+
ln -s "$skill" ~/.config/opencode/skills/minimax-"$skill_name"
18+
done
1619
```
1720

1821
### Windows (PowerShell)
@@ -22,7 +25,7 @@ git clone https://github.com/MiniMax-AI/skills.git "$env:USERPROFILE\.minimax-sk
2225
2326
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.config\opencode\skills"
2427
Get-ChildItem "$env:USERPROFILE\.minimax-skills\skills" -Directory | ForEach-Object {
25-
New-Item -ItemType SymbolicLink -Path "$env:USERPROFILE\.config\opencode\skills\$($_.Name)" -Target $_.FullName
28+
New-Item -ItemType SymbolicLink -Path "$env:USERPROFILE\.config\opencode\skills\minimax-$($_.Name)" -Target $_.FullName
2629
}
2730
```
2831

@@ -58,14 +61,14 @@ Symlinks will automatically point to the updated content — no need to re-link.
5861
### macOS / Linux
5962

6063
```bash
61-
rm -rf ~/.config/opencode/skills
64+
rm -f ~/.config/opencode/skills/minimax-*
6265
rm -rf ~/.minimax-skills
6366
```
6467

6568
### Windows (PowerShell)
6669

6770
```powershell
68-
Remove-Item -Recurse -Force "$env:USERPROFILE\.config\opencode\skills"
71+
Get-ChildItem "$env:USERPROFILE\.config\opencode\skills\minimax-*" | Remove-Item -Force
6972
Remove-Item -Recurse -Force "$env:USERPROFILE\.minimax-skills"
7073
```
7174

.opencode/INSTALL_zh.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# 安装 MiniMax Skills for OpenCode
2+
3+
## 前置要求
4+
5+
- 已安装 [OpenCode.ai](https://opencode.ai)
6+
7+
## 安装
8+
9+
### macOS / Linux
10+
11+
```bash
12+
git clone https://github.com/MiniMax-AI/skills.git ~/.minimax-skills
13+
14+
mkdir -p ~/.config/opencode/skills
15+
for skill in ~/.minimax-skills/skills/*/; do
16+
skill_name=$(basename "$skill")
17+
ln -s "$skill" ~/.config/opencode/skills/minimax-"$skill_name"
18+
done
19+
```
20+
21+
### Windows (PowerShell)
22+
23+
```powershell
24+
git clone https://github.com/MiniMax-AI/skills.git "$env:USERPROFILE\.minimax-skills"
25+
26+
New-Item -ItemType Directory -Force -Path "$env:USERPROFILE\.config\opencode\skills"
27+
Get-ChildItem "$env:USERPROFILE\.minimax-skills\skills" -Directory | ForEach-Object {
28+
New-Item -ItemType SymbolicLink -Path "$env:USERPROFILE\.config\opencode\skills\minimax-$($_.Name)" -Target $_.FullName
29+
}
30+
```
31+
32+
> **注意:** 在 Windows 上创建符号链接可能需要管理员权限或启用开发者模式。
33+
34+
重启 OpenCode 以发现技能。
35+
36+
验证方法:询问"列出可用技能"
37+
38+
## 可用技能
39+
40+
- **frontend-dev** — 前端开发,包含 UI 设计、动画、AI 生成媒体资源
41+
- **fullstack-dev** — 全栈后端架构和前后端集成
42+
- **android-native-dev** — Android 原生应用开发,采用 Material Design 3
43+
- **ios-application-dev** — iOS 应用开发,包含 UIKit、SnapKit 和 SwiftUI
44+
- **shader-dev** — GLSL 着色器技术,用于创建惊艳的视觉效果(兼容 ShaderToy)
45+
- **gif-sticker-maker** — 将照片转换为动画 GIF 贴纸(Funko Pop / Pop Mart 风格)
46+
- **minimax-pdf** — 使用基于令牌的设计系统生成、填写和重新格式化 PDF 文档
47+
- **pptx-generator** — 生成、编辑和读取 PowerPoint 演示文稿
48+
- **minimax-xlsx** — 打开、创建、读取、分析、编辑或验证 Excel/电子表格文件
49+
- **minimax-docx** — 使用 OpenXML SDK 专业创建、编辑和格式化 Word 文档
50+
51+
## 更新
52+
53+
```bash
54+
cd ~/.minimax-skills && git pull
55+
```
56+
57+
符号链接将自动指向更新后的内容,无需重新链接。
58+
59+
## 卸载
60+
61+
### macOS / Linux
62+
63+
```bash
64+
rm -f ~/.config/opencode/skills/minimax-*
65+
rm -rf ~/.minimax-skills
66+
```
67+
68+
### Windows (PowerShell)
69+
70+
```powershell
71+
Get-ChildItem "$env:USERPROFILE\.config\opencode\skills\minimax-*" | Remove-Item -Force
72+
Remove-Item -Recurse -Force "$env:USERPROFILE\.minimax-skills"
73+
```
74+
75+
## 故障排除
76+
77+
### 找不到技能
78+
79+
1. 验证符号链接是否存在:`ls -la ~/.config/opencode/skills/`
80+
2. 每个技能文件夹应包含 `SKILL.md` 文件
81+
3. 安装后重启 OpenCode
82+
83+
## 获取帮助
84+
85+
- 问题反馈:https://github.com/MiniMax-AI/skills/issues

README_zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ mkdir -p ~/.config/opencode/skills
6363
ln -s ~/.minimax-skills/skills/* ~/.config/opencode/skills/
6464
```
6565

66-
重启 OpenCode 以发现技能。详见 [`.opencode/INSTALL.md`](.opencode/INSTALL.md)
66+
重启 OpenCode 以发现技能。详见 [`.opencode/INSTALL_zh.md`](.opencode/INSTALL_zh.md)
6767

6868
### VS Code
6969

0 commit comments

Comments
 (0)