# workflow **Repository Path**: luguz/workflow ## Basic Information - **Project Name**: workflow - **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-07-24 - **Last Updated**: 2026-07-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 使用说明 > [!tip] > > Claudecode下面操作二选一即可: > > - `/plugin`命令用于启动`claudecode`后使用 > - `claude xxx`命令用于直接在终端中使用 ## 安装marketplace ### 添加marketplace #### Claudecode ```bash claude plugin marketplace add .git /plugin marketplace add .git # 若指定分支 claude plugin marketplace add .git#dev /plugin marketplace add .git#dev ``` 校验是否安装成功: 下面路径中存在对应的插件市场名称: ```bash ~\.claude\plugins\marketplaces\{marketplace.json}的name ``` ```bash # 进入Claudecode后输出/plugin加两次→方向键可以看到marketplace,确认存在新安装的marketplace即可 /plugin ``` #### Codex ```bash codex plugin marketplace add ``` ### 更新marketplace #### Claudecode ```bash # 终端命令 claude plugin marketplace update [name] claude plugin marketplace update dev-workflow-marketplace # 更新插件市场 /plugin marketplace update dev-workflow-marketplace # 更新插件市场 /plugin marketplace update dev-workflow-marketplace ``` #### Codex ```bash codex plugin marketplace upgrade dev-workflow-marketplace ``` ### 移除marketplace #### Claudecode ```bash claude plugin marketplace remove dev-workflow-marketplace # 移除插件市场 /plugin marketplace remove dev-workflow-marketplace ``` #### Codex ```bash codex plugin marketplace remove dev-workflow-marketplace ``` ## 安装plugin > [!tip] > > 安装、卸载、启用、禁用插件后都需要使用 `/reload-plugins`使其生效 ### 添加plugin #### Claudecode ```bash # 安装插件 /plugin install workflow-plugin@dev-workflow-marketplace # 默认scope:user claude plugin install workflow-plugin@dev-workflow-marketplace ``` #### Codex > [!warning] > > 官方文档没有说明但`codex plugin add`命令在较新版本中可以使用,如果不确定请先使用`codex plugin --help`进行确认 > > **可以**使用会展示下面结果: > > ```bash > codex plugin --help > Manage Codex plugins > > Usage: codex plugin [OPTIONS] > > Commands: > add Install a plugin from a configured marketplace snapshot > list List plugins available from configured marketplace snapshots > marketplace Add, list, upgrade, or remove configured plugin marketplaces > remove Remove an installed plugin from local config and cache > help Print this message or the help of the given subcommand(s) > ``` > > **不可以使用**会展示下面结果: > > ```bash > codex plugin --help > Manage Codex plugins > > Usage: codex plugin [OPTIONS] > > Commands: > marketplace Manage plugin marketplaces for Codex > help Print this message or the help of the given subcommand(s) > > Options: > -c, --config > TOML. If it fails to parse as TOML, the raw string is used as a literal. > > Examples: - `-c model="o3"` - `-c 'sandbox_permissions=["disk-full-read-access"]'` - `-c shell_environment_policy.inherit=all` > > --enable > Enable a feature (repeatable). Equivalent to `-c features.=true` > > --disable > Disable a feature (repeatable). Equivalent to `-c features.=false` > > -h, --help > Print help (see a summary with '-h') > ``` ```bash codex plugin add workflow-plugin@dev-workflow-marketplace ``` ### 启用plugin #### Claudecode ```bash # 启用插件 /plugin enable <插件名称>@<插件市场名称> /plugin enable workflow-plugin@dev-workflow-marketplace claude plugin enable workflow-plugin@dev-workflow-marketplace ``` #### Codex > [!tip] > > Codex需要到`~/.codex/config.toml`中通过修改配置文件的方式进行启用 ```bash [plugins."workflow-plugin@dev-workflow-marketplace"] enabled = true ``` ### 禁用plugin #### Claudecode ```bash # 禁用插件 /plugin disable <插件名称>@<插件市场名称> /plugin disable workflow-plugin@dev-workflow-marketplace claude plugin disable workflow-plugin@dev-workflow-marketplace ``` #### Codex > [!tip] > > Codex需要到`~/.codex/config.toml`中通过修改配置文件的方式进行禁用 ```bash [plugins."workflow-plugin@dev-workflow-marketplace"] enabled = false ``` ### 卸载plugin #### Claudecode ```bash # 卸载插件       /plugin uninstall workflow-plugin@dev-workflow-marketplace claude plugin uninstall workflow-plugin@dev-workflow-marketplace ``` 校验是否安装成功: - 用户级别:`~/.claude/settings.json` - 项目级别:`.claude/settings.json` - 仓库级别:`.claude/settings.local.json` ```json { "enabledPlugins": { "<插件名称>@<插件市场名称>": true } } ``` #### Codex ```bash codex plugin remove workflow-plugin@dev-workflow-marketplace ``` ## 自动开发工作流使用 > [!tip] > > 建议在要开发的代码仓库或工作区根目录中启动 Claude Code,再执行 Wiki 知识库和自动开发命令。 ### 推荐工作目录结构 ```text 工作目录/ ├── project-wiki/ # 工作目录级知识库,多个项目共享 ├── project-a/ # 业务项目 A └── project-b/ # 业务项目 B ``` ### Wiki 知识库初始化和准备 ```bash # 1. 在工作目录根部初始化知识库 /wiki-init # 2. 把业务项目加入知识库 /wiki-add-project @project-a /wiki-add-project @project-b # 3. 后续有新知识或规则变更时更新 Wiki /wiki-update @project-a 新增订单取消状态和取消原因字段 ``` ### 使用自动开发命令 ```bash # 根据需求描述启动全自动开发工作流 # claudecode /workflow-plugin:dev-workflow-auto <需求描述> # codex $workflow-plugin:dev-workflow-auto <需求描述> # 或根据需求文档启动 /workflow-plugin:dev-workflow-auto docs/requirements/order-cancel.md # 中断后继续 # claudecode /workflow-plugin:dev-workflow-continue # codex $workflow-plugin:dev-workflow-continue ``` 自动工作流会按以下阶段推进: ```text 需求分析 -> 方案设计 -> 实现方案 -> 编码实现 -> 结果校验 -> 代码扫描 -> 单元测试 -> 代码简化 -> 发布收尾 ``` ### 阶段组合命令 ```bash # 阶段0~2: # claudecode /workflow-plugin:dev-workflow-requirement-to-plan <需求描述> # codex $workflow-plugin:dev-workflow-requirement-to-plan <需求描述> # 阶段3: 编码实现 # claudecode /workflow-plugin:dev-workflow-development @docs\requirements\{requirement_path} # codex $workflow-plugin:dev-workflow-development @docs\requirements\{requirement_path} # 阶段4~8 # claudecode /workflow-plugin:dev-workflow-verify-to-finish @docs\requirements\{requirement_path} # codex $workflow-plugin:dev-workflow-verify-to-finish @docs\requirements\{requirement_path} ``` ### 分阶段命令 ```bash # 阶段0: 需求分析 # claudecode /workflow-plugin:dev-workflow-requirement-analysis <需求描述> # codex $workflow-plugin:dev-workflow-requirement-analysis <需求描述> # 阶段1: 方案设计 # claudecode /workflow-plugin:dev-workflow-technical-design @docs\requirements\{requirement_path} # codex $workflow-plugin:dev-workflow-technical-design @docs\requirements\{requirement_path} # 阶段2: 实现方案 # claudecode /workflow-plugin:dev-workflow-implementation-plan @docs\requirements\{requirement_path} # codex $workflow-plugin:dev-workflow-implementation-plan @docs\requirements\{requirement_path} # 阶段3: 编码实现 # claudecode /workflow-plugin:dev-workflow-development @docs\requirements\{requirement_path} # codex $workflow-plugin:dev-workflow-development @docs\requirements\{requirement_path} # 阶段4: 结果校验 # claudecode /workflow-plugin:dev-workflow-spec-verification @docs\requirements\{requirement_path} # codex $workflow-plugin:dev-workflow-spec-verification @docs\requirements\{requirement_path} # 阶段5: 代码扫描 # claudecode /workflow-plugin:dev-workflow-code-review @docs\requirements\{requirement_path} # codex $workflow-plugin:dev-workflow-code-review @docs\requirements\{requirement_path} # 阶段6: 单元测试 # claudecode /workflow-plugin:dev-workflow-unit-test @docs\requirements\{requirement_path} # codex $workflow-plugin:dev-workflow-unit-test @docs\requirements\{requirement_path} # 阶段7: 代码简化 # claudecode /workflow-plugin:dev-workflow-code-simplification @docs\requirements\{requirement_path} # codex $workflow-plugin:dev-workflow-code-simplification @docs\requirements\{requirement_path} # 阶段8: 发布收尾 # claudecode /workflow-plugin:dev-workflow-finish-work @docs\requirements\{requirement_path} # codex $workflow-plugin:dev-workflow-finish-work @docs\requirements\{requirement_path} ``` ## 更新 ### Claudecode ```bash # 更新插件市场 claude plugin marketplace update dev-workflow-marketplace ``` ```bash # 更新插件 /plugin 选中对应插件更新 # 默认scope:user claude plugin update workflow-plugin@dev-workflow-marketplace ``` ### Codex ```bash codex plugin marketplace upgrade dev-workflow-marketplace ```