Token导航 LogoToken导航

Agent Skill · 开发

beaver-build(海狸建造)

beaver-build 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

beaver-build 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 12,002。

总安装 1,482周安装 63GitHub Stars 4下载 519核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:beaver-build(海狸建造)
来源仓库:https://github.com/autumnsgrove/groveengine
仓库路径:skills/beaver-build
安装命令:
npx skills add https://github.com/autumnsgrove/groveengine --skill beaver-build
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/autumnsgrove/groveengine --skill beaver-build

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

模拟海狸筑坝思维,聚焦关键测试用例,避免过度覆盖,提升测试有效性。适用于代码测试策略制定、测试计划梳理及回归验证场景,强调质量而非数量。通过识别高价值测试点、审查现有测试覆盖率与执行效率,优化整体测试投入产出比。使用时应结合项目实际情况判断哪些功能值得测试,避免盲目增加冗余用例。

beaver-build 属于开发类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/beaver-build

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/autumnsgrove/groveengine --skill beaver-build;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

beaver-build 怎么安装?

在终端执行 npx skills add https://github.com/autumnsgrove/groveengine --skill beaver-build。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

beaver-build 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

beaver-build 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

beaver-build 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

beaver-build 用的人多吗?

公开数据是累计安装 1,482 次,近一周安装 63 次,下载 519 次,GitHub 4 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

beaver-build 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
beaver-build

海狸建造 · 本页

1,4824调用外部服务未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Beaver Build 🦫

The beaver doesn't build blindly. First, it surveys the stream, understanding the flow. Then it gathers only the best materials — not every twig belongs in the dam. It builds with purpose, each piece placed carefully. It reinforces with mud and care, creating something that withstands the current. When the dam holds, the forest is safe.

When to Activate

  • User asks to "write tests" or "add tests"
  • User says "test this" or "make sure this works"
  • User calls /beaver-build or mentions beaver/building dams
  • Deciding what deserves testing (not everything does)
  • Reviewing existing tests for effectiveness
  • A bug needs to become a regression test
  • Asked to "add tests" without specific guidance
  • Evaluating whether tests are providing real value
  • Refactoring causes many tests to break (symptom of bad tests)

Pair with: javascript-testing for Vitest syntax, python-testing for pytest patterns


The Dam

SURVEY → GATHER → BUILD → REINFORCE → FORTIFY
   ↓        ↲        ↓          ↲          ↓
Understand Collect  Construct   Harden    Ship with
Flow     Materials  Tests       Coverage  Confidence

Phase 1: SURVEY

*The beaver surveys the stream, understanding the flow before placing a single twig...*

Before gathering materials, understand what you're building for.

  • What does this feature DO for users? (Not how it works — what value it provides)
  • What would break if this failed? (Critical paths)
  • What confidence level is needed? (Prototype vs. production)
  • The Testing Trophy: mostly integration, some unit, few E2E, static analysis always on

Reference: Load references/testing-patterns.md for the full Testing Trophy explanation, what to test vs. skip, the guiding questions, and what makes a test valuable

Reference: Load references/grove-test-infrastructure.md to see what test utilities, factories, and mocks already exist in the codebase — don't reinvent what's already built

Output: Brief summary of what needs testing and at what layer


Phase 2: GATHER

*Paws select only the best branches. Not everything belongs in the dam...*

Decide what to test using the Confidence Test.

  • Skip: trivial getters/setters, framework behavior, implementation details, one-off scripts, volatile prototypes
  • Test lightly: configuration (smoke test), third-party integrations (mock at boundary), visual design (snapshots)
  • Test thoroughly: business logic, user-facing flows, edge cases, bug fixes

Ask: "Would I notice if this broke in production?" If yes, test it.

Reference: Load references/testing-patterns.md for the full skip/test-lightly/test-thoroughly tables and the guiding questions

Output: List of test cases to write, organized by layer (unit/integration/E2E)


Phase 3: BUILD

*Twig by twig, the dam takes shape. Each piece has purpose...*

Write tests following Arrange-Act-Assert.

  • The Act section should be one line — if it's not, the test does too much
  • Test user behavior, not implementation details
  • Use accessible queries: getByRole, getByLabelText, getByText — never getByTestId first
  • Name tests so they explain what breaks: "should reject registration with invalid email"
  • One test, one reason to fail

Script: Run scripts/scaffold-test.sh <type> <source-file> to generate test boilerplate. Types: service, api, component, worker. The scaffolded file uses the right imports, factories, and patterns for each test type.

Reference: Load references/test-templates.md for complete SvelteKit test templates: service unit tests, API route tests, component tests with Testing Library, and integration tests for full flows

Reference: Load references/grove-test-infrastructure.md for the exact factory functions, mock utilities, and import paths to use — includes createMockRequestEvent, createAuthenticatedTenantEvent, createMockD1, createMockKV, createMockR2, and more

Output: Working tests that follow AAA pattern and test behavior, not implementation


Phase 4: REINFORCE

*The beaver packs mud between twigs, hardening the structure...*

Strengthen tests.

  • Mock only at external boundaries — if you're mocking something you wrote, reconsider
  • Turn every bug into a regression test: reproduce → write failing test → fix → test passes → bug can't return
  • Keep tests co-located with the code they test (login.test.ts next to login.ts)
  • Verify Signpost error format in API tests: error_code, error, error_description

Reference: Load references/testing-patterns.md for the minimal mocking guide, bug-to-test pipeline, and Signpost error code coverage patterns

Output: Hardened tests with proper mocking boundaries and clear failure messages


Phase 5: FORTIFY

*The dam holds. Water flows as intended. The beaver rests...*

MANDATORY: Verify the dam holds before shipping:

pnpm install
gw ci --affected --fail-fast --diagnose

If verification fails: the dam has a leak. Read the diagnostics, patch the weakness, re-run verification.

Additional coverage check (optional, after CI passes):

npx vitest run --coverage

Run the self-review checklist before considering tests "done".

Reference: Load references/test-templates.md for the test self-review checklist

Output: Clean test suite ready for CI


Reference Routing Table

PhaseReferenceLoad When
SURVEYreferences/testing-patterns.mdAlways (understand the Trophy and what to test)
SURVEYreferences/grove-test-infrastructure.mdAlways (know what utilities already exist)
GATHERreferences/testing-patterns.mdDeciding what to skip vs. test thoroughly
BUILDscripts/scaffold-test.shRun to generate test file boilerplate
BUILDreferences/test-templates.mdWriting actual tests (service, API, component)
BUILDreferences/grove-test-infrastructure.mdImport paths for factories, mocks, and helpers
REINFORCEreferences/testing-patterns.mdMocking strategy and bug-to-test pipeline
FORTIFYreferences/test-templates.mdRunning the self-review checklist

Beaver Rules

Energy

Build with purpose. The beaver doesn't add twigs just to add them. Each test must earn its place by providing confidence.

Precision

Test behavior, not structure. If refactoring breaks your tests, they were testing the wrong things.

Wisdom

Remember the trophy: mostly integration, some unit, few E2E. Static analysis is your first line of defense.

Patience

Good tests let you ship with confidence. That's the whole point.

Communication

Use building metaphors:

  • "Surveying the stream..." (understanding what to test)
  • "Gathering materials..." (deciding what to test)
  • "The dam takes shape..." (writing tests)
  • "Packing the mud..." (adding coverage)
  • "The structure holds..." (tests passing)

Anti-Patterns

The beaver does NOT:

  • Chase 100% coverage theater (high coverage with bad tests is worse than moderate coverage with good tests)
  • Test implementation details (internal state, private methods)
  • Mock everything (removes confidence)
  • Write tests that break on safe refactors
  • Use snapshots for volatile UI
  • Build the Ice Cream Cone (many E2E, few integration, few unit)

Example Build

User: "Add tests for the login form"

Beaver flow:

  1. 🦫 SURVEY — "Login form handles user authentication. Critical path: registration → dashboard flow. Integration tests where confidence lives."
  2. 🦫 GATHER — "Test: invalid email rejection, API error handling, successful redirect, loading states. Skip: internal state changes."
  3. 🦫 BUILD — Write integration tests using AAA pattern: should reject registration with invalid email, should show loading indicator while logging in, should redirect to dashboard after successful login
  4. 🦫 REINFORCE — Add regression test for previous password reset bug. Mock only external API, not internal validation.
  5. 🦫 FORTIFY — All tests pass, lint and typecheck clean, coverage at 78% (good enough), ready for CI.

Quick Decision Guide

SituationAction
New featureWrite integration tests for user-facing behavior
Bug fixWrite test that reproduces bug first, then fix
RefactoringRun existing tests; if they break on safe changes, they're bad tests
"Need more coverage"Add tests for uncovered behavior, not uncovered lines
Pure function/algorithmUnit test it
API endpointIntegration test with mocked external services
UI componentComponent test with Testing Library
Critical user flowE2E test with Playwright

*Good tests let you ship with confidence. That's the whole point.* 🦫

平台分布

Codex

33.71%
按下载量换算175

Claude

31.46%
按下载量换算163

Cursor

19.13%
按下载量换算99

Gemini CLI

9.61%
按下载量换算50

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills