Token导航 LogoToken导航

Agent Skill · 前端设计

backend-testing(后端测试)

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

backend-testing 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 2,933。

总安装 1,738周安装 71GitHub Stars 11下载 557核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/akillness/skills-template --skill backend-testing

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于制定后端测试策略和自动化用例。backend-testing 属于前端设计类 Skill,可作为该场景下的辅助能力补充。支持单元测试、集成测试和回归验证场景。需明确测试框架、夹具数据和运行命令。应区分本地模拟与生产环境,防止误改逻辑。涉及浏览器或外部服务时,优先使用测试专用账号。

来源仓库内路径:skills/backend-testing

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

backend-testing 怎么安装?

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

backend-testing 支持哪些 AI 工具?

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

backend-testing 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

backend-testing 是免费的吗?

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

backend-testing 用的人多吗?

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

backend-testing 安全吗?

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

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

值得选的地方

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

先想清楚的地方

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

适不适合你

更适合

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

不太适合

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

前端设计类 Skill 对比

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

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
backend-testing

后端测试 · 本页

1,73811操作浏览器未明确通过

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

SKILL.md 原文

Backend Testing

Use this skill as a packet-first backend testing router.

The job is not to dump boilerplate for every framework. The job is to:

  1. classify the request into the right backend test packet,
  2. pick the smallest credible mix of test layers,
  3. make dependency realism and data control explicit,
  4. split local vs PR vs slower lanes honestly,
  5. route policy, contract-shape, and auth-implementation work away when they are the real task.

Read these when needed:

When to use this skill

  • Add or repair backend coverage for APIs, services, repositories, workers, integrations, or auth flows
  • Decide whether a backend change needs unit, integration, contract/API, or narrow smoke coverage
  • Design fixture, factory, seed/reset, auth bootstrap, or environment-control strategy
  • Decide when to use mocks, fakes, containers, or real dependencies
  • Stabilize flaky backend suites, especially CI-only failures and local-vs-CI drift
  • Review whether a backend suite is too broad, too slow, too mock-heavy, or missing a key layer

When not to use this skill

  • The main task is org-wide test policy, gate design, release evidence, or company-wide QA philosophy → use testing-strategies
  • The main task is API contract shape, versioning, or schema design before tests can be scoped honestly → use api-design
  • The main task is implementing auth/session/provider behavior rather than testing it → use authentication-setup
  • The main task is frontend/browser testing or UI workflow coverage
  • There is no concrete backend behavior or regression target yet; in that case define the missing behavior packet first instead of pretending the test plan is settled

Instructions

Step 1: Classify the request into one packet

Choose the single best entry packet before giving advice.

Packets

  • coverage-plan — which layers to add for a concrete backend change
  • fixture-and-reset-plan — how to seed, isolate, reset, or bootstrap data/auth state
  • contract-and-api-checks — how to protect response/event/schema compatibility once the interface already exists
  • flake-stabilization — how to stabilize CI-only or intermittent backend failures
  • execution-lane-split — how to divide local-fast, PR, nightly, and release-only backend checks

If the request mixes several concerns, name the primary packet and one secondary concern.

Step 2: Frame the backend surface and risk

Capture the smallest useful context:

  • surface: endpoint, service, repository, worker, queue consumer, auth flow, integration, or migration
  • highest-risk behaviors: validation, permissions, persistence, retries, idempotency, ordering, serialization, side effects, compatibility
  • existing coverage already present
  • external dependencies involved: DB, cache, queue, email, payment, third-party API, identity provider, filesystem
  • runtime/language stack
  • where the evidence must hold: local loop, PR CI, scheduled CI, release smoke

If the request is vague, choose the smallest regression slice worth protecting first.

Step 3: Choose the right test layers

Use the packet and risk to select the lightest credible layer mix.

Unit / service

Prefer when the main risk is branching logic, validation, orchestration, or pure-ish business rules.

Integration

Prefer when database behavior, framework wiring, middleware, transactions, queues, caches, or serialization matter.

Contract / API

Prefer when clients depend on response shapes, status codes, schemas, or events and the interface already exists.

Smoke / selective end-to-end

Prefer only when a narrow release-critical journey crosses several backend boundaries and lower layers would miss the core risk.

State what is in scope, what is out of scope, and why.

Step 4: Decide dependency realism on purpose

For each dependency, choose one of:

  • mock / stub — expensive, unstable, or irrelevant to the behavior under test
  • fake / simulator — behavior matters, but a lightweight substitute is enough
  • containerized real dependency — queries, migrations, message semantics, or wire behavior matter enough that drift would hurt
  • shared external environment — only when unavoidable; call out the fragility cost explicitly

Good defaults:

  • prefer real DB behavior when repository, migration, transaction, or serialization behavior is central
  • prefer mocks for outbound third-party APIs unless the integration contract itself is under test
  • prefer a narrow containerized slice over a giant all-dependencies-in-PR setup
  • do not claim fake and real dependencies are equivalent when production parity is the whole risk

Step 5: Define fixture, data, auth, and environment control

A backend suite becomes untrustworthy when state is vague.

Specify:

  • fixture/factory strategy
  • seed/reset/rollback plan
  • auth/bootstrap helpers for users, roles, tenants, tokens, or sessions
  • time/randomness/idempotency control where needed
  • isolation rule: per test, per file, per suite, or per environment
  • debugging signals to capture when failures happen

If the suite relies on ordering, leftovers, or sleeps, call that fragility out directly.

Step 6: Split the execution lanes

Treat local, PR, and slower lanes as different jobs.

Define:

  • local-fast path — what developers should run repeatedly
  • PR path — what must gate merges
  • scheduled / nightly path — heavier breadth or expensive realism
  • release / incident path — narrow confidence checks or regression ratchets when needed

If the suite is slow, split it. Do not pretend one giant authoritative path is practical everywhere.

Step 7: Produce one backend test packet

Return one concise packet, not a general essay.

Recommended packet shapes:

  • coverage-plan → coverage table + dependency strategy + exclusions
  • fixture-and-reset-plan → fixture/reset memo + auth/bootstrap notes
  • contract-and-api-checks → compatibility packet + consumer/provider scope + route-outs
  • flake-stabilization → flake memo with likely causes, isolation fixes, readiness checks, and debug signals
  • execution-lane-split → lane matrix with local/PR/scheduled/release responsibilities

Minimum packet contents:

  • change surface and primary risk
  • chosen packet and any secondary concern
  • selected layers and why
  • dependency realism decisions
  • fixture/data/auth/environment control
  • execution-lane split
  • explicit route-outs when the request is partly owned elsewhere

Step 8: Verify scope boundaries before finalizing

Check:

  • does the packet protect the real backend regression risk rather than generic coverage vanity?
  • did you keep org-wide validation policy in testing-strategies?
  • did you route contract *shape* decisions to api-design while keeping contract *protection* here only when the interface already exists?
  • did you route auth implementation work to authentication-setup?
  • will a maintainer understand why a dependency is mocked, faked, containerized, or real?

Output format

## Backend Test Packet: [Surface or Change]

### Packet choice
- Primary packet: coverage-plan | fixture-and-reset-plan | contract-and-api-checks | flake-stabilization | execution-lane-split
- Secondary concern: optional
- Confidence: high | medium | low

### Change framing
- Surface: ...
- Main risks: ...
- Runtime: ...
- Existing coverage: ...

### Layer decisions
| Layer | In scope? | What it protects | Notes |
|------|-----------|------------------|-------|
| Unit / service | yes/no | ... | ... |
| Integration | yes/no | ... | ... |
| Contract / API | yes/no | ... | ... |
| Smoke / selective E2E | yes/no | ... | ... |

### Dependency realism
| Dependency | Strategy | Why |
|------------|----------|-----|
| Database / queue / cache | ... | ... |
| External API | ... | ... |
| Auth provider | ... | ... |

### Data and environment control
- Fixtures / factories: ...
- Seed / reset: ...
- Auth bootstrap: ...
- Isolation rule: ...
- Debug signals: ...

### Execution lanes
- Local-fast: ...
- PR CI: ...
- Scheduled / nightly: ...
- Release / incident: ...

### Route-outs
- `testing-strategies`: ...
- `api-design`: ...
- `authentication-setup`: ...

Examples

Example 1: auth-heavy API change

Input: “We added refresh-token rotation and new admin-only endpoints to our Express API. I need backend tests that catch auth failures, token replay issues, and DB persistence bugs without turning CI into a giant end-to-end suite.”

Good response shape:

  • chooses coverage-plan as the primary packet
  • combines unit/service plus integration/API coverage instead of one giant E2E suite
  • keeps real DB or containerized persistence where token/session behavior matters
  • defines auth bootstrap helpers and reset strategy
  • limits smoke coverage to a narrow release-critical path

Example 2: CI-only flake in a service suite

Input: “Our FastAPI tests pass locally but fail in CI around seeded Postgres state and background jobs. Give me a stabilization plan.”

Good response shape:

  • chooses flake-stabilization as the primary packet
  • identifies seed/reset drift, readiness, async timing, or leftover state as likely causes
  • recommends stronger isolation, readiness checks, and debugging signals instead of just retries
  • separates local-fast and CI-authoritative behavior clearly

Example 3: contract protection after an API already exists

Input: “Our payment service and webhook consumers keep drifting on response fields. I do not need API redesign, I need backend tests that catch compatibility regressions.”

Good response shape:

  • chooses contract-and-api-checks as the primary packet
  • keeps contract protection here because the interface already exists
  • routes any schema redesign or versioning debate to api-design
  • recommends consumer/provider or schema-compatibility coverage rather than broader smoke inflation

Example 4: too-broad policy request

Input: “Design our overall engineering org testing strategy for frontend, backend, mobile, and QA.”

Good response shape:

  • recognizes that the primary task belongs to testing-strategies
  • keeps any backend-specific advice scoped as a handoff only
  • refuses to turn backend-testing into a universal QA-governance skill

Best practices

  1. Start from the packet, not from the framework.
  2. Protect the real backend regression risk before chasing coverage percentages.
  3. Prefer layered backend coverage over giant brittle end-to-end suites.
  4. Make fixture, seed, and auth bootstrap strategy explicit; hidden state is where trust dies.
  5. Split local-fast, PR, scheduled, and release lanes intentionally.
  6. Use real dependencies when wire behavior matters, but keep expensive realism bounded.
  7. Treat flaky tests as a trust problem, not just an annoyance.
  8. Route policy, contract-shape, and auth-implementation ownership away instead of absorbing them.

References

平台分布

Codex

33.16%
按下载量换算185

Claude

32.35%
按下载量换算180

Cursor

18.59%
按下载量换算104

Gemini CLI

9.1%
按下载量换算51

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

继续浏览同类 Skills