npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@devcxl/opencode-cabbage

v1.2.0

Published

OpenCode 全流程开发插件 — 需求→设计→任务→编码→测试→审查→自动合并,支持自动编排与并行 Subagent

Readme


安装

// opencode.json
{
  "plugin": ["@devcxl/opencode-cabbage"]
}

插件启动后自动注入 7 个 slash command、9 个 flow skill、6 个 agent 与 1 个 goal 工具。

命令一览

| 命令 | 阶段 | 产出 | |------|------|------| | /setup | 初始化 | docs/ 目录结构、Project Profile、CI/release workflow 校验 | | /requirements | 需求 | PRD → docs/prd/ + Draft Parent Issue | | /design | 设计 | 技术方案 + 必要 ADR → docs/dev/specs/ + docs/adr/ | | /tasks | 任务拆解 | DAG 任务 + Sub Issues(GitHub 权威源) | | /code | 编码 | Task + PR(TDD 由 CI 把关) | | /review | 审查 | 双轴审查 + 自动合并 | | /release | ⚠️ 手动发布 | 版本提议 → Release PR → tag push → workflow 监控 |

快速开始

# 1. 安装
npm install @devcxl/opencode-cabbage

# 2. 在 opencode.json 中添加
# { "plugin": ["@devcxl/opencode-cabbage"] }

# 3. 在 OpenCode 中执行
# /setup → /requirements → @dev-lifecycle

两种模式

  • 手动模式 — 按顺序逐一执行命令,适合精细控制
  • 自动模式 — 需求确认后输入 @dev-lifecycle,全自动完成剩余流程

架构

src/                          # TypeScript 薄层
├── index.ts                  # 插件入口
├── plugin.ts                 # 包路径解析
├── plugin/                   # 加载器 + goal 工具
│   ├── server.ts             # 主工厂:注入 skills/commands/agents、goal 工具、Context、自动续接
│   ├── goal.ts               # goal 工具(状态管理 + goal-verify 授权)
│   ├── commands.ts           # Command 加载器
│   ├── skills.ts             # Skill 加载器
│   ├── prompts.ts            # Prompt 加载器
│   ├── bootstrap.ts          # 启动引导
│   ├── agents.ts             # Agent 注入
│   ├── shell.ts              # Agent shell 环境隔离
│   └── prompt-lint.ts        # Prompt 资产一致性检查
└── kernel/                   # 最小支撑模块
    ├── context.ts            # 根 CONTEXT.md 发现/注入
    ├── profile.ts            # AGENTS.md Project Profile 解析
    ├── session-index.ts      # Flow→session 索引(goal 绑定 + 重启恢复)
    ├── permission.ts         # 权限匹配语义
    └── mutex.ts              # 按键异步互斥

assets/                       # 运行时资源(纯 Prompt 流程)
├── commands/                 # 7 个 slash command
├── skills/                   # 9 个 flow-* skill(Prompt 驱动,直接 git/gh)
├── agents/                   # 6 个 agent 定义
└── prompts/                  # 引导提示词 + 模板

文档

| 文档 | 链接 | |------|------| | 快速开始 | docs/guides/quickstart.md | | 配置指南 | docs/guides/configuration.md | | 使用指南 | docs/guides/usage.md | | 架构概览 | docs/guides/architecture.md | | 贡献指南 | docs/dev/guides/contributing.md |

许可

MIT