Skip to content

Latest commit

 

History

History
67 lines (45 loc) · 2.61 KB

File metadata and controls

67 lines (45 loc) · 2.61 KB

OpenCode Command Kit

English · 中文

OpenCode slash commands 与轻量 agent persona。属于 RAFA 方案:多数改编自上游,少量 RAFA 自研命令。安装到 ~/.config/opencode/,不包含 live provider 配置。

套件入口: opencode-methodology → 完整路径:从零安装。

归属说明

类型 上游
改编自(11 个命令) waybarrios/opencode-power-pack(MIT)
该移植背后的 skill 谱系 anthropics/skills、anthropics/claude-code
为本套件编写 commit、commit-push-pr、clean_gone、simplify

详情:docs/attribution.zh-CN.md · English。

快速开始

  1. 安装 OpenCode。可选:OMOS(bunx oh-my-openagent install)。
  2. 克隆并 review:
git clone https://github.com/openrafa/opencode-command-kit.git
cd opencode-command-kit
# 阅读 docs/command-catalog.md 与 docs/attribution.zh-CN.md
  1. 安装到 OpenCode 配置目录:
bash scripts/install.sh --dry-run
bash scripts/install.sh
# → ~/.config/opencode/commands/ 与 ~/.config/opencode/agents/
  1. 重载 OpenCode。试用 /code-review、/feature-dev、/agents-md-improver 或 /commit。
  2. 团队约定只写在仓库根目录的 AGENTS.md。

自定义目标:bash scripts/install.sh --target /path/to/opencode-config(见 examples/install-layout.md)。

会落到磁盘的内容

~/.config/opencode/
├── commands/     # 15 个 slash-command markdown
└── agents/       # ponytail.md

安装脚本 不会 写入 opencode.json、安装插件或改动 provider。

内容

  • commands/ — 15 个 OpenCode slash commands
  • agents/ponytail.md — RAFA 适配的 agent persona
  • docs/command-catalog.md — 分类与用途
  • docs/attribution.zh-CN.md — 归属(English)

安全

使用前请 review 命令正文。OpenCode 配置与密钥由你自己负责。

许可与署名

MIT — Copyright (c) 2026 Cyame。见 LICENSE。 上游命令谱系:waybarrios/opencode-power-pack。