dev-playbooks-cn 2.1.0 → 2.1.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 +1 -1
- package/bin/devbooks.js +5 -5
- package/package.json +1 -1
- package/templates/dev-playbooks/README.md +1 -1
package/README.md
CHANGED
|
@@ -79,7 +79,7 @@ AI 编码助手很强大,但往往**不可预测**:
|
|
|
79
79
|
| **Claude Code** | 完整 Skills | `CLAUDE.md` |
|
|
80
80
|
| **Codex CLI** | 完整 Skills | `AGENTS.md` |
|
|
81
81
|
| **Qoder** | 完整 Skills | `AGENTS.md` |
|
|
82
|
-
| **OpenCode
|
|
82
|
+
| **OpenCode** | 完整 Skills | `AGENTS.md` |
|
|
83
83
|
| **Cursor** | Rules 系统 | `.cursor/rules/` |
|
|
84
84
|
| **Windsurf** | Rules 系统 | `.windsurf/rules/` |
|
|
85
85
|
| **Gemini CLI** | Rules 系统 | `GEMINI.md` |
|
package/bin/devbooks.js
CHANGED
|
@@ -84,7 +84,7 @@ const AI_TOOLS = [
|
|
|
84
84
|
{
|
|
85
85
|
id: 'opencode',
|
|
86
86
|
name: 'OpenCode',
|
|
87
|
-
description: 'OpenCode AI CLI
|
|
87
|
+
description: 'OpenCode AI CLI',
|
|
88
88
|
skillsSupport: SKILLS_SUPPORT.FULL,
|
|
89
89
|
slashDir: '.opencode/command',
|
|
90
90
|
agentsDir: '.opencode/agent',
|
|
@@ -870,7 +870,7 @@ function installSkills(toolIds, projectDir, scope = INSTALL_SCOPE.GLOBAL, update
|
|
|
870
870
|
const tool = AI_TOOLS.find(t => t.id === toolId);
|
|
871
871
|
if (!tool || tool.skillsSupport !== SKILLS_SUPPORT.FULL) continue;
|
|
872
872
|
|
|
873
|
-
// Claude Code / Codex CLI / OpenCode
|
|
873
|
+
// Claude Code / Codex CLI / OpenCode 支持相同格式的 Skills
|
|
874
874
|
if ((toolId === 'claude' || toolId === 'codex' || toolId === 'opencode') && tool.skillsDir) {
|
|
875
875
|
const skillsSrcDir = path.join(__dirname, '..', 'skills');
|
|
876
876
|
const skillsDestDir = getSkillsDestDir(tool, scope, projectDir);
|
|
@@ -940,11 +940,11 @@ function installSkills(toolIds, projectDir, scope = INSTALL_SCOPE.GLOBAL, update
|
|
|
940
940
|
|
|
941
941
|
function generateOpenCodeDevbooksCommand() {
|
|
942
942
|
return `---
|
|
943
|
-
description: DevBooks
|
|
943
|
+
description: DevBooks 工作流入口(OpenCode)
|
|
944
944
|
---
|
|
945
945
|
|
|
946
946
|
${DEVBOOKS_MARKERS.start}
|
|
947
|
-
# DevBooks
|
|
947
|
+
# DevBooks(OpenCode)
|
|
948
948
|
|
|
949
949
|
本项目使用 DevBooks 工作流进行规格驱动开发。
|
|
950
950
|
|
|
@@ -953,7 +953,7 @@ ${DEVBOOKS_MARKERS.start}
|
|
|
953
953
|
1. **推荐入口(Router)**:在对话中输入:\`/devbooks-router\`
|
|
954
954
|
2. 或使用自然语言:\`请运行 devbooks-router skill,分析需求:<你的需求>\`
|
|
955
955
|
|
|
956
|
-
> 说明:在
|
|
956
|
+
> 说明:在 OpenCode 中,Skills 会作为可用的 Slash Commands 被加载,因此可以直接用 \`/<skill-name>\` 调用。
|
|
957
957
|
|
|
958
958
|
## 常用命令(直接用 /<skill-name>)
|
|
959
959
|
|
package/package.json
CHANGED
|
@@ -61,7 +61,7 @@ AI 编码助手很强大,但往往**不可预测**:
|
|
|
61
61
|
| **Claude Code** | 完整 Skills | `CLAUDE.md` |
|
|
62
62
|
| **Codex CLI** | 完整 Skills | `AGENTS.md` |
|
|
63
63
|
| **Qoder** | 完整 Skills | `AGENTS.md` |
|
|
64
|
-
| **OpenCode
|
|
64
|
+
| **OpenCode** | 完整 Skills | `AGENTS.md` |
|
|
65
65
|
| **Cursor** | Rules 系统 | `.cursor/rules/` |
|
|
66
66
|
| **Windsurf** | Rules 系统 | `.windsurf/rules/` |
|
|
67
67
|
| **Gemini CLI** | Rules 系统 | `GEMINI.md` |
|