Files
Rune-Spec/README.md

46 lines
1010 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Rune
基于 SDDSpec-Driven Development的命令行工具通过向 AI 开发工具注入 command 和 skill驱动结构化编码流程。
## 安装
```bash
bunx rune init opencode
```
## 使用
### 初始化
```bash
bunx rune init opencode
```
会在项目中创建:
- `.rune/` 目录(配置、变更文档、归档)
- `.opencode/commands/``.opencode/skills/`(注入的 AI 工具配置)
### SDD 流程
1. `/rune-discuss` — 自由讨论需求
2. `/rune-plan <变更名>` — 生成设计文档和任务列表
3. `/rune-build <变更名>` — 按任务顺序编码实现
4. `/rune-archive <变更名>` — 归档并清理
### 状态查看
```bash
rune status
```
### 自定义配置
编辑 `.rune/config.yaml` 自定义提示词和文档模板。配置文件默认为空,使用内置默认策略;仅覆盖需要自定义的阶段,未配置的阶段使用内置默认配置。
## 开发
```bash
bun test # 运行测试
bun src/cli.ts # 运行 CLI
```