# GSD BOOST **Repository Path**: moonlink/gsd-boost ## Basic Information - **Project Name**: GSD BOOST - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-08 - **Last Updated**: 2026-04-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GSD Boost 零依赖的 Get-Shit-Done (GSD) 工作流扩展工具集。 通过一个 `gsd-boost/gsd-boost.json` 配置文件自定义 GSD 工作流行为 — 模板、钩子、验证策略 — 不碰源码,零学习成本。 ## 功能特性 - **自定义 commit 模板** — 用 `${type}`、`${message}` 等变量生成格式统一的 commit 消息 - **自定义 plan 模板** — 用 `${phase}`、`${title}`、`${goal}` 等变量渲染计划文档 - **生命周期钩子** — 阶段执行前后运行自定义命令,支持超时控制和失败策略 - **OpenCode Plugin 集成** — 在 OpenCode 编辑器内自动应用模板,无需手动操作 - **零外部依赖** — 全部使用 Node.js 22.x 内置模块,安装即可用 ## 安装 **前置要求:** Node.js >= 22.0.0 ### npm 全局安装 ```bash npm install -g gsd-boost ``` ### git clone 开发安装 ```bash git clone https://github.com/your-repo/gsd-boost.git cd gsd-boost npm link ``` 验证安装: ```bash gsd-boost --version ``` ## 快速上手 ### 1. 初始化项目 ```bash gsd-boost init ``` 交互式引导创建 `gsd-boost/gsd-boost.json` 配置文件和模板文件。 非交互环境使用默认值: ```bash gsd-boost init --defaults ``` ### 2. 编辑配置文件 打开 `gsd-boost/gsd-boost.json`,按需修改: ```json { "templates": { "commit": "templates/commit.txt", "plan": "templates/plan.md" }, "hooks": { "beforePhase": [], "afterPhase": ["npm run lint"], "timeout": 30000, "onFailure": "abort" }, "validation": { "strict": false } } ``` ### 3. 使用命令 ```bash # 渲染 commit 消息 gsd-boost commit feat "add new feature" gsd-boost commit fix "resolve null pointer" --scope core # 渲染 plan 模板 gsd-boost plan 01 Foundation "Setup project structure" # 执行钩子 gsd-boost run-hooks beforePhase gsd-boost run-hooks afterPhase --phase-name 01 --goal "Setup" # 安装 Plugin 到 OpenCode gsd-boost install # 查看配置状态 gsd-boost check ``` ## 命令速查表 | 命令 | 说明 | |------|------| | `gsd-boost init` | 交互式初始化项目 | | `gsd-boost install` | 安装 Plugin 到 OpenCode | | `gsd-boost commit` | 渲染 commit 消息 | | `gsd-boost plan` | 渲染 plan 模板 | | `gsd-boost run-hooks` | 执行生命周期钩子 | | `gsd-boost check` | 查看配置状态 | ## 文档 - [完整文档](docs/getting-started.md) — 安装和初始化指南 - [配置参考](docs/configuration.md) — 所有配置字段 - [CLI 参考](docs/cli-reference.md) — 命令详解 - [模板语法](docs/templates.md) — 变量和语法 - [钩子说明](docs/hooks.md) — 生命周期钩子 - [Plugin](docs/plugin.md) — OpenCode 集成 ## License MIT