Token导航 LogoToken导航

Agent Skill · 研究检索

quality-detect-regressions(质量检测回归)

quality-detect-regressions 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

quality-detect-regressions 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 68,166。

总安装 235周安装 10GitHub Stars 1下载 82核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/dawiddutoit/custom-claude --skill quality-detect-regressions

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

quality-detect-regressions 用于查找、检索和筛选相关信息,适合根据关键词或任务线索快速定位候选结果。适用于研究、调研或信息收集类场景,可提升外部资源发现效率。通过指定查询条件调用搜索接口,返回结构化候选列表供进一步处理。使用前建议确认是否允许联网及数据抓取边界,避免违反平台策略。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/quality-detect-regressions

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

quality-detect-regressions 怎么安装?

在终端执行 npx skills add https://github.com/dawiddutoit/custom-claude --skill quality-detect-regress…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

quality-detect-regressions 支持哪些 AI 工具?

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

quality-detect-regressions 需要什么权限?

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

quality-detect-regressions 是免费的吗?

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

quality-detect-regressions 用的人多吗?

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

quality-detect-regressions 安全吗?

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

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

值得选的地方

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

先想清楚的地方

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

适不适合你

更适合

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

不太适合

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

研究检索类 Skill 对比

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

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
quality-detect-regressions

质量检测回归 · 本页

2351调用外部服务未明确通过

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

SKILL.md 原文

detect-quality-regressions

Purpose

Compare current quality metrics against a stored baseline to detect regressions in tests, coverage, type errors, linting, and dead code. Enforces quality standards by blocking task completion when metrics degrade beyond tolerance thresholds.

When to Use

MANDATORY invocation scenarios:

  • After completing a task (before marking complete)
  • Before creating a commit or pull request
  • Before merging to main branch
  • When user asks "is this done?" or "check quality"

User trigger phrases:

  • "detect regressions"
  • "check against baseline"
  • "validate quality hasn't degraded"
  • "compare to baseline"

Quick Start

Basic usage after completing a task:

1. Complete your code changes
2. Run tests manually to verify they pass
3. Invoke this skill: "Detect regressions against baseline_feature_2025-10-16"
4. If PASS: Mark task complete
5. If FAIL: Fix regressions, re-run detection

This skill automatically:

  • Loads baseline from memory
  • Runs./scripts/check_all.sh
  • Compares 5 metrics (tests, coverage, type errors, linting, dead code)
  • Detects regressions with tolerance rules
  • Returns PASS/FAIL with actionable delta report

Table of Contents

Core Sections

- Step 1: Load Baseline from Memory - Retrieve and validate baseline metrics - Step 2: Run Current Quality Checks - Execute check_all.sh and capture metrics - Step 3: Compare Metrics (Regression Detection) - Apply comparison rules - Step 4: Generate Delta Report - Create metric comparison report - Step 5: Return Result - PASS/FAIL decision logic

  • When to Invoke - Triggering conditions (after tasks, before commits, status checks)
  • Examples - Real-world scenarios

- Example 1: No Regressions (PASS) - Successful validation scenario - Example 2: Regression Detected (FAIL) - Handling quality degradation

  • Edge Cases - Special situations (missing baseline, check failures, pre-existing issues)

Advanced Topics

Instructions

Step 1: Load Baseline from Memory

Query memory for baseline:

Use mcp__memory__find_memories_by_name to retrieve the baseline:

baseline_names = ["baseline_<feature>_<date>"]
# Example: ["baseline_auth_2025-10-16"]

Validate baseline exists:

  • If not found: Return ⚠️ WARNING - No baseline found, suggest capturing baseline first
  • If found: Parse baseline metrics

Extract baseline metrics:

Parse the baseline entity's observations to extract:

  1. Tests: X passed, Y failed, Z skipped
  2. Coverage: X%
  3. Type errors: X errors
  4. Linting errors: X errors
  5. Dead code: X%

Example baseline observations:

- Tests: 145 passed, 0 failed, 3 skipped
- Coverage: 87%
- Type errors: 0
- Linting errors: 0
- Dead code: 1.2%

Step 2: Run Current Quality Checks

Execute quality checks:

cd /Users/dawiddutoit/projects/play/project-watch-mcp
./scripts/check_all.sh

Capture output:

  • Save stdout and stderr
  • Parse same 5 metrics as baseline
  • Handle script failures (return FAIL if checks can't run)

Parse current metrics:

Extract from check_all.sh output:

  1. Tests: Look for "X passed" in pytest output
  2. Coverage: Look for "TOTAL" line with percentage
  3. Type errors: Count errors in pyright output
  4. Linting errors: Count violations in ruff output
  5. Dead code: Parse vulture output for percentage

Step 3: Compare Metrics (Regression Detection)

Apply comparison rules:

MetricRuleToleranceRegression If
Tests passedMust be >= baselineNonecurrent < baseline
CoverageMust be >= baseline - 1%1%current < baseline - 1%
Type errorsMust be <= baselineNonecurrent > baseline
LintingMust be <= baselineNonecurrent > baseline
Dead codeMust be <= baseline + 2%2%current > baseline + 2%

For each metric:

  1. Calculate change: current - baseline
  2. Check if regression: Apply rule from table
  3. Mark status: improved, stable, or regressed
  4. Calculate severity: critical, high, medium, low

Regression severity:

  • Critical: Type errors increased (breaks type safety)
  • High: Tests decreased or coverage dropped >2%
  • Medium: Linting errors increased
  • Low: Dead code increased slightly (within tolerance)

Step 4: Generate Delta Report

Create comparison for each metric:

metric_name:
  baseline: <value>
  current: <value>
  change: <+/- difference>
  status: improved | stable | regressed
  severity: critical | high | medium | low (if regressed)

Identify regressions:

Filter metrics where status == regressed and create regression list:

regressions:
  - metric: tests
    baseline: 152
    current: 150
    change: -2
    severity: high
    action: "Investigate test_user_service.py, test_auth_service.py"

Identify improvements:

Filter metrics where status == improved for positive feedback.

Step 5: Return Result

Decision logic:

IF any metric has status == regressed:
  RETURN FAIL with regression list
ELSE:
  RETURN PASS with improvements

PASS result format:

✅ PASS - No regressions detected

Delta Report:
- Tests: +3 passed (148 total) 🎉
- Coverage: +2% (89% total) 🎉
- Type errors: No change (0) ✅
- Linting: No change (0) ✅
- Dead code: -0.1% (1.1% total) 🎉

All metrics maintained or improved. Safe to mark task complete.

FAIL result format:

🔴 FAIL - 4 regressions detected

Regressions:
1. Tests: -2 passed (150 vs 152)
   → 2 tests removed or now failing
   → Action: Investigate test_user_service.py, test_auth_service.py

2. Coverage: -4% (85% vs 89%)
   → Coverage dropped below tolerance (88%)
   → Action: Add tests for newly refactored code

3. Type errors: +2 new errors (5 vs 3)
   → New type errors introduced
   → Action: Run pyright --verbose, fix errors

4. Linting: +2 new errors
   → New linting violations
   → Action: Run ruff check --fix, review changes

❌ BLOCKED - Do not mark task complete until regressions fixed.

Fix order:
1. Fix linting (ruff check --fix)
2. Fix type errors (pyright)
3. Re-run tests (investigate failures)
4. Add coverage for new code
5. Re-run regression detection

When to Invoke

After completing a task (@implementer, @unit-tester, @integration-tester):

  1. Code changes complete
  2. Tests written and pass locally
  3. → Invoke detect-quality-regressions before marking task complete
  4. If PASS: Mark complete, move to next task
  5. If FAIL: Fix regressions, re-run detection

Before committing/merging:

  1. User requests commit
  2. → Invoke detect-quality-regressions to validate
  3. If PASS: Proceed with commit
  4. If FAIL: Block commit, report regressions

When checking status (@statuser):

  1. User asks "What's the status?"
  2. → Invoke detect-quality-regressions to get current quality state
  3. Report status with delta

Examples

Example 1: No Regressions (PASS)

Context: Completed Task 2.1 (add user authentication)

Execution:

1. Load baseline: baseline_auth_2025-10-16
   → Tests: 145 passed, 0 failed
   → Coverage: 87%
   → Type errors: 0
   → Linting: 0
   → Dead code: 1.2%

2. Run checks: ./scripts/check_all.sh
   → Tests: 148 passed (+3), 0 failed
   → Coverage: 89% (+2%)
   → Type errors: 0 (no change)
   → Linting: 0 (no change)
   → Dead code: 1.1% (-0.1%)

3. Compare:
   ✅ Tests: 148 >= 145 (PASS)
   ✅ Coverage: 89% >= 86% (87% - 1%) (PASS)
   ✅ Type errors: 0 <= 0 (PASS)
   ✅ Linting: 0 <= 0 (PASS)
   ✅ Dead code: 1.1% <= 3.2% (1.2% + 2%) (PASS)

4. Result: ✅ PASS

Example 2: Regression Detected (FAIL)

Context: Completed Task 3.2 (refactor service layer)

Execution:

1. Load baseline: baseline_service_result_2025-10-16
   → Tests: 152 passed
   → Coverage: 89%
   → Type errors: 3
   → Linting: 0

2. Run checks:
   → Tests: 150 passed (-2) ❌
   → Coverage: 85% (-4%) ❌
   → Type errors: 5 (+2) ❌
   → Linting: 2 (+2) ❌

3. Compare:
   ❌ Tests: 150 < 152 (REGRESSION)
   ❌ Coverage: 85% < 88% (89% - 1%) (REGRESSION)
   ❌ Type errors: 5 > 3 (REGRESSION)
   ❌ Linting: 2 > 0 (REGRESSION)

4. Result: 🔴 FAIL - 4 regressions detected

See references/regression-fixes.md for detailed fix strategies

Edge Cases

1. Baseline Not Found

  • Search memory, no baseline exists
  • Return: ⚠️ WARNING - No baseline found
  • Action: Suggest running capture-quality-baseline first

2. Quality Checks Fail to Run

  • Script error, tool missing, etc.
  • Return: 🔴 FAIL - Unable to validate quality
  • Block: Don't allow work to proceed without validation

3. Pre-Existing Issues in Baseline

  • Baseline has 3 documented type errors
  • Current also has 3 type errors (same errors)
  • Result: ✅ PASS (no NEW errors)
  • Note: "3 pre-existing errors maintained"

4. Tests Pass But Coverage Drops

  • All tests pass (no failures)
  • Coverage dropped 5% (regression)
  • Result: 🔴 FAIL (coverage regression)
  • Action: Add tests for uncovered code

Integration Points

With capture-quality-baseline skill:

  • This skill loads the baseline that capture-quality-baseline created
  • Use same baseline naming convention: baseline_<feature>_<date>

With run-quality-gates skill:

  • run-quality-gates ensures quality checks pass (Definition of Done)
  • detect-quality-regressions compares against baseline (regression detection)
  • Both skills complement each other

With @implementer:

  • Primary integration - runs after every task
  • Blocks task completion if regressions detected

With @unit-tester / @integration-tester:

  • Runs after writing tests to validate quality didn't degrade

With manage-todo skill:

  • Task state depends on regression detection result
  • Can't mark complete with regressions

Anti-Patterns to Avoid

❌ DON'T: Skip regression detection (always run before task complete) ❌ DON'T: Ignore regressions ("I'll fix later") ❌ DON'T: Commit without running detection ❌ DON'T: Mark task complete with regressions ❌ DON'T: Use wrong baseline (old or different feature)

✅ DO: Run detection after every task ✅ DO: Block on regressions (fail fast) ✅ DO: Fix regressions immediately ✅ DO: Use correct baseline for feature ✅ DO: Document pre-existing issues

Success Criteria

  • ✅ Baseline loaded successfully
  • ✅ Quality checks execute
  • ✅ All 5 metrics compared correctly
  • ✅ Regressions detected accurately
  • ✅ Clear PASS/FAIL result
  • ✅ Actionable delta report

Supporting Files

Requirements

Environment:

  • Project must be using./scripts/check_all.sh
  • Memory baseline must exist (captured via capture-quality-baseline skill)
  • Quality tools must be installed: pyright, ruff, pytest, vulture

Memory Schema:

  • Entity type: "quality_baseline"
  • Entity name: "baseline__"
  • Observations: List of metric values (see Step 1)

平台分布

Codex

35.25%
按下载量换算29

Claude

28.56%
按下载量换算23

Cursor

18.91%
按下载量换算16

Gemini CLI

8.26%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

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

安装前确认

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

继续浏览同类 Skills