Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
By 0xBB2B
中文优先的 Claude Code 工作流约束套装:Go + Vue + bun 技术栈强约束、TDD/反历史包袱铁律、多代理本地 review 套件。
npx claudepluginhub 0xbb2b/skillsREST API design patterns including resource naming, status codes, pagination, filtering, error responses, versioning, and rate limiting for production APIs.
引入或升级任何外部依赖前必须遵守的版本选择策略——覆盖语言包(npm/Go/PyPI/Cargo/Maven)、运行时与工具链、GitHub/GitLab CI Actions、容器镜像、IaC provider、Helm chart、CLI 工具。强制要求"写入版本号前先用官方渠道查最新版本",禁止凭训练记忆或既往项目经验填写版本号。TRIGGER when:编辑 package.json / go.mod / requirements.txt / Cargo.toml / pom.xml / Dockerfile / docker-compose.yaml / .github/workflows/*.yaml / .gitlab-ci.yaml / Terraform / Helm chart / .nvmrc / .tool-versions 等任何会钉死外部资产版本号的文件;或用户要求 "升级依赖" / "加个 xxx 库" / "bump 版本" / "更新 Actions" 等。
前端项目技术栈与工具链强制约束——默认技术栈统一为 Vue 3 + TypeScript + Vite + Tailwind CSS,包管理器统一为 bun(禁用 npm / yarn / pnpm)。TRIGGER when:新建前端项目、编辑 package.json / vite.config.* / tailwind.config.* / tsconfig.json / .vue / .ts / .tsx 文件、运行前端构建或安装命令、用户提到"前端"/"vue"/"vite"/"tailwind"/"npm install"/"yarn add"/"pnpm" 等场景。
Use when 用户想把本地代码通过 PR 流程推送到远程仓库。自动检测当前目录是单仓库还是多仓库,支持批量或选择性处理。用户也可通过参数指定单个仓库目录。常见触发:"push 一下"、"提个 PR"、"代码推上去"。
Git 开发流程纪律——覆盖"开始任务前的分支决策"、"阶段性本地 commit 节奏(不立即 push)"、"PR 描述三段式规范"、"按需建 issue 策略"、"合并后清理(本地分支 + 远程引用 + 远程分支)"。强制要求:禁止 main 直接提交、禁止自作主张创建 worktree、整个功能本地验证后才推送。TRIGGER when:用户开始任何非 main 分支开发任务("做个新功能"/"改 bug"/"开个分支"),或准备 commit/push/开 PR,或 PR 合并完成需要清理时。与 git-push-pr(用户主动调用的推送流程)互补:前者是"始终生效的行为约束",后者是"被显式触发的执行流程"。
Executes bash commands
Hook triggers when Bash tool is used
Modifies files
Hook triggers on file write and edit operations
Share bugs, ideas, or general feedback.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Memory compression system for Claude Code - persist context across sessions
Intelligent prompt optimization using skill-based architecture. Enriches vague prompts with research-based clarifying questions before Claude Code executes them
中文优先的 Claude Code 工作流约束套装:Go + Vue + bun 技术栈强约束、TDD / 反历史包袱铁律、多代理本地 review 套件。
English TL;DR: A Claude Code plugin for opinionated, Chinese-first dev workflow. Hard guards against npm/yarn/pnpm & direct main commits, mandatory dependency-version checks, anti-legacy-baggage discipline, and a local multi-agent code review suite. Skills cover Go backend, Vue 3 + bun frontend, TDD, REST API design, and Git workflow.
在 Claude Code 里执行:
/plugin marketplace add 0xBB2B/skills
/plugin install bb-channel@0xbb2b
或手动添加到 ~/.claude/settings.json:
{
"extraKnownMarketplaces": {
"0xbb2b": {
"source": { "source": "github", "repo": "0xBB2B/skills" }
}
},
"enabledPlugins": {
"bb-channel@0xbb2b": true
}
}
本 plugin 采用 commit-SHA 版本模式——main 上每个 commit 即为可发布版本,无需 bump 版本号。在 Claude Code 里执行:
/plugin update # 检查并更新所有已装 plugin
/plugin update bb-channel # 仅更新本 plugin
不会自动拉取,需主动触发。
| Hook | 触发时机 | 作用 |
|---|---|---|
block-non-bun-pm | PreToolUse(Bash) | 拦截 npm / yarn / pnpm 的包管理动作,强制 bun |
block-main-commit | PreToolUse(Bash) | 拦截 main / master 分支的 git commit |
dep-version-check | PostToolUse(Write|Edit) | 编辑依赖文件后注入"先查官方最新版"自检提示 |
stop-self-check | Stop | 任务结束前强制四项自检:临时文件 / 改动范围 / 孤立残留 / 历史包袱 |
仓库还附带两个副作用较大的 Stop hook,已随 plugin 一起注册,但脚本顶部有启用门槛,默认不跑——必须显式启用:
| Hook | 作用 | 启用方式 |
|---|---|---|
stop-run-tests.sh | Stop 后在 Go 项目(有 go.mod)自动跑 vet / golangci-lint / test -race / make test-integration,失败回灌给 AI | export CLAUDE_ENABLE_STOP_TESTS=1 或项目根 touch .enable-stop-tests |
stop-auto-commit.sh | Stop 后在 git 仓库自动 commit 已追踪改动(仅 git add -u,非 main/master,不 push) | export CLAUDE_ENABLE_AUTO_COMMIT=1 或仓库根 touch .enable-auto-commit |
环境变量是会话级 / 全局级启用(写进 shell rc),标记文件是项目级启用,二选一或并用。停用:unset 环境变量 或 rm 标记文件即可。
tdd-workflow — 通用 TDD 纪律:Red-Green-Refactor、增/改/删三场景标准流程dependency-version-policy — 引入/升级依赖前必须官方渠道查最新版,禁凭训练记忆git-workflow-discipline — 分支决策、阶段性 commit、PR 三段式描述、合并后清理git-push-pr — 用户主动触发的多仓库批量/选择性推送 PR 流程api-design — REST API 设计:资源命名、状态码、分页、错误响应、版本化go-project-constraints — Go 项目全生命周期约束:三层架构、禁过度抽象、测试服从生产设计golang-patterns — Go 惯用模式与最佳实践golang-testing — Go 测试组织:table-driven、subtests、benchmark、fuzzfrontend-vue-constraints — Vue 3 + TypeScript + Vite + Tailwind + bun 强约束local-ultrareview — 当前分支 vs base:5 代理并行(质量/安全/反包袱/过度设计/Codex 跨模型)review-quality — 任意仓库整体质量审视:5 代理并行review-doc — Markdown 文档审查:机械层自动修复 + 语义层双代理review-code-doc-consistency — 代码与文档一致性审查仓库根目录的 CLAUDE-template.md 是配套的"铁律索引"参考。不会自动安装——按需复制到你的 ~/.claude/CLAUDE.md 或项目根 CLAUDE.md,按需裁剪。
| 场景 | 开关 |
|---|---|
| 临时允许 npm / yarn / pnpm | 暂未提供,建议临时禁用 plugin |
| 临时允许 main commit | 同上 |
| 跳过 Stop 自检 | 当前无开关——这是核心铁律,不建议跳过 |
| 启用 stop-run-tests | CLAUDE_ENABLE_STOP_TESTS=1 或项目根 .enable-stop-tests |
| 启用 stop-auto-commit | CLAUDE_ENABLE_AUTO_COMMIT=1 或仓库根 .enable-auto-commit |
MIT