Token导航 LogoToken导航TokenDH.com
开发external-servicegithub未标认证来源可访问许可证需确认审计通过

beaver-build海狸建造

Agent Skill

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

总安装

1,482

周安装

63

GitHub Stars

4

下载量

519
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

模拟海狸筑坝思维,聚焦关键测试用例,避免过度覆盖,提升测试有效性。

  • 适用于代码测试策略制定、测试计划梳理及回归验证场景,强调质量而非数量。
  • 通过识别高价值测试点、审查现有测试覆盖率与执行效率,优化整体测试投入产出比。
  • 使用时应结合项目实际情况判断哪些功能值得测试,避免盲目增加冗余用例。
  • beaver-build 属于开发类 Skill,可作为该场景下的辅助能力补充。

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.* 🦫

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.71%
按下载量换算175

Claude

31.46%
按下载量换算163

Cursor

19.13%
按下载量换算99

Gemini CLI

9.61%
按下载量换算50

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

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

安装前确认

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

来源信息

继续浏览同类 Skills