verify-specs

仓库创建 2026年1月20日最近提交 22 天前SkillHot 收录 21 天前
▸ 精选理由

提高测试健壮性与可读性,适合 Ruby 团队

这个 Skill 做什么

按 Better Specs 标准审查 RSpec 测试并给出具体修正建议

按照 Better Specs 标准审查 RSpec 测试,找出会让测试脆弱、难定位或难维护的问题,並给出逐文件的具体修正建议。适合在新增、修改或重构 spec 前后运行,特别关注“一行为一例”、“有意义的例名”、“行为优先于实现”的写法以及 expect 语法使用。优点是聚焦于可读性和失败隔离,能让测试既可靠又好调试。

▸ 展开 SKILL.md 英文原文

Use before creating, modifying, reviewing, or refactoring spec test files. Better Specs compliance, especially around one behavior per example, meaningful example names, describe/context structure, behavior-over-implementation assertions, `expect` syntax, or spec readability and maintainability problems.

开发编程RSpec测试审查BetterSpecs通用
3
Stars
0
Forks
14
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/ton-anywhere/my-favorite-prompts/main/skills/verify-specs/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/ton-anywhere/my-favorite-prompts/main/skills/verify-specs/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Verify Specs

## Overview

Review RSpec code against Better Specs and return concrete, file-specific findings. Focus on issues that make specs misleading, brittle, hard to debug, or unnecessarily hard to read.

## Review Mode

Treat this as a spec review, not a generic style pass. Prioritize problems that affect failure isolation, behavior coverage, and maintainability before reporting cosmetic cleanup.

## Workflow

0. **Mandatory First Pass** — Run both mechanical audits before touching anything else:
   - [Condition Word Audit](#mandatory-first-pass---condition-word-audit)
   - [Expectation Count Audit](#mandatory-expectation-count-audit)

   Skip either audit = incomplete review.
1. **
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有