工作台模板

失败测试分流 Skill:只读日志,不改生产密钥

要用 Cursor Agent 分流失败测试、且不能改生产密钥的仓库维护者。路径:.cursor/skills/failing-tests/SKILL.md

不是 Roo / Cline 模版。本站不托管安装包。订哪档去 /compare。

全部工作台模板 · 官方安装 · 订哪档

把 .cursor/skills/failing-tests/SKILL.md 放到仓库根的 .cursor/skills/failing-tests/。这是 Cursor Agent Skill 路径,不是 Roo Mode YAML,也不是 VS Code 扩展包。

分流步骤写进仓库之后,再去 /compare 订哪档。本站不托管安装包,也不注册第三方对话插件。

.cursor/skills/failing-tests/SKILL.md
.cursor/skills/failing-tests/SKILL.md
---
name: failing-tests
description: Triage failing tests from runner logs only. Do not change production secrets or skip tests to go green.
---

# Failing-test triage

Follow this order. Read logs first. Do not touch production credentials.

这不是 Roo Mode YAML。

## Read

- Identify the failing node ids / test names from the runner output already in the conversation or in CI logs in the repo. Use whatever this repo already runs (`pytest`, `vitest`, `go test`, `cargo test`).
- Open the failing test file and the nearest production module it asserts against.
- Quote a short, redacted log excerpt. Strip tokens, cookies, private keys, and `.env` values before quoting.

## Classify

- Assertion mismatch in product code.
- Fixture / testdata drift.
- Missing environment *name* (the variable is unset). That is not a reason to paste a live value.
- Flake (timing, order, network). Say so; do not hide it with a skip.

## Do not

- Do not open `.env`, `.env.*`, or secret stores to "just make CI pass."
- Do not rotate, rewrite, or inject production keys, PATs, or session cookies.
- Do not add `|| true`, unconditional skips, or skipped tests unless the request explicitly asks to skip and the skip message names the ticket.
- Do not add a second test runner.
- Do not patch the Cursor workbench, unlock Free Cursor, or inject tokens into the IDE.

## Fix path

- Prefer a failing assertion that matches real behavior, or a fixture that uses fake data.
- If a credential is required, document the environment variable *name* only and keep the value out of the repo.
- Re-run the nearest existing command for the touched package.

## Output

Write: failing names, redacted log excerpt, classification, and a read-only next step. If a secret was needed, say which *name* — never the value.