Skip to content

feat: 添加 OPSX 工作流命令文档和 OpenSpec 集成#4

Merged
Little-LittleProgrammer merged 1 commit intomainfrom
feature/add-docs
Mar 6, 2026
Merged

feat: 添加 OPSX 工作流命令文档和 OpenSpec 集成#4
Little-LittleProgrammer merged 1 commit intomainfrom
feature/add-docs

Conversation

@Little-LittleProgrammer
Copy link
Owner

@Little-LittleProgrammer Little-LittleProgrammer commented Mar 6, 2026

Summary

  • 添加 OPSX 工作流命令文档(apply、archive、explore、propose),支持实验性工作流的任务管理和变更提案
  • 新增 OpenSpec 相关的 skills 文件,用于探索、提案和应用变更
  • 添加 GitHub Actions 工作流配置,支持自动化代码审查
  • 新增代码审查提示模板(CODE_REVIEW_PROMPT.md)
  • 添加 openspec 配置文件

Changes

本次 PR 新增了 11 个文件,共 1515 行代码,主要包括:

OPSX 命令文档

  • opsx:apply - 实现 OpenSpec 变更任务
  • opsx:archive - 归档已完成的变更
  • opsx:explore - 进入探索模式,思考想法、调查问题、明确需求
  • opsx:propose - 快速描述构建内容并生成完整提案

OpenSpec Skills

  • openspec-apply-change - 实现 OpenSpec 变更任务
  • openspec-archive-change - 归档已完成的变更
  • openspec-explore - 探索模式的技能实现
  • openspec-propose - 快速生成变更提案

GitHub 集成

  • 添加 Claude PR Review 工作流
  • 新增代码审查提示模板

Test plan

  • 验证 OPSX 命令文档格式正确
  • 检查 OpenSpec skills 配置是否有效
  • 确认 GitHub Actions 工作流配置正确
  • 测试代码审查提示模板功能

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation

    • Introduced comprehensive guides for proposing, applying, archiving, and exploring changes in the development workflow.
    • Added detailed code review guidelines and prompts for maintainers.
  • Chores

    • Configured automated AI-powered code review that runs on pull requests.
    • Established project-wide specification configuration for development standards.

@coderabbitai
Copy link

coderabbitai bot commented Mar 6, 2026

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

This pull request introduces comprehensive OpenSpec workflow documentation and skill specifications for change management (apply, archive, explore, propose), adds GitHub Actions for automated AI-based code reviews, provides a structured code review prompt, and establishes project configuration guidelines.

Changes

Cohort / File(s) Summary
OpenSpec Command Workflows
.claude/commands/opsx/apply.md, .claude/commands/opsx/archive.md, .claude/commands/opsx/explore.md, .claude/commands/opsx/propose.md
Introduces procedural guidance for interactive OpenSpec workflows: apply (iterative task implementation), archive (change completion and archival), explore (exploratory investigation without coding), and propose (change creation with artifact generation).
OpenSpec Skill Specifications
.claude/skills/openspec-apply-change/SKILL.md, .claude/skills/openspec-archive-change/SKILL.md, .claude/skills/openspec-explore/SKILL.md, .claude/skills/openspec-propose/SKILL.md
Defines structured skill documentation for corresponding OpenSpec workflows, specifying input handling, step-by-step processes, decision points, state management, output formats, and guardrails for each capability.
GitHub CI/CD and Code Review
.github/workflows/claude_pr_review.yml, .github/CODE_REVIEW_PROMPT.md
Adds automated AI code review workflow triggered on pull requests with result posting, plus comprehensive code review prompt in Chinese defining review focus areas, output format, and module-specific checklists.
Project Configuration
openspec/config.yaml
Establishes project-wide OpenSpec configuration with schema definition, tech stack context, code standards, architecture patterns, naming conventions, artifact rules, and task guidelines for the monorepo.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

A rabbit bounces through workflows anew,
Explore, propose, apply—things to do!
Archive the changes, review the code,
Skills and commands light up the road! 🐰✨
Specs dance together, all guided with care.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title references OPSX workflow commands and OpenSpec integration, which directly aligns with the main changes: documentation for OPSX commands, OpenSpec skills files, and related configurations.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/add-docs

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Little-LittleProgrammer Little-LittleProgrammer merged commit 12d0dbd into main Mar 6, 2026
1 of 2 checks passed
@Little-LittleProgrammer Little-LittleProgrammer deleted the feature/add-docs branch March 6, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant