لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI تاریخ شمسی… --:--:--

Test the failures that matter

آزاد تازه‌وارد تاییدشده امن

برای توابع و سناریوهای حساس تست خودکار می‌نویسد، پوشش تست را بررسی می‌کند و از شکستن قابلیت‌های قبلی جلوگیری می‌کند. (شامل ۴ گام عملی · سازگار با Claude Code).

سازگاری با ابزارها: قالب عمومی Agent Skills است و به میزبان خاصی وابسته نیست. مشاهدهٔ جدول سازگاری

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: test-writer
description: "Write or review tests, choose regression coverage, or assess test value, reliability and CI runtime. Use when adding tests or judging a suite."
---

# Test the failures that matter

## Philosophy

Prefer high-value tests over high coverage. Every test should catch a plausible,
consequential failure and justify its runtime, maintenance and debugging cost.
Coverage percentages, test counts and test-level ratios are not quality targets.

Required CI execution has a hard ten-minute (600-second) cap. It covers setup,
build, checks and reporting along the pipeline's critical path, excluding queue
delay. Measure queue delay separately and report its effect on total feedback
time. Treat execution over the cap as a design problem, not an acceptable price
for more coverage.

## Workflow

1. Read the behavior, repository test rules and existing protection. Name the
   consequential failure and the gap each new test addresses. Prioritize regressions,
   important user behavior, rejection and recovery. Skip additions when existing
   protection suffices or a low-impact edit has no meaningful behavior to protect.
2. Choose the cheapest level that detects the real failure. Use small, deterministic
   fixtures, observable assertions and independently derived expected results. Mock
   unstable boundaries without mocking away the behavior under test. Avoid duplicates,
   implementation mirrors and snapshots that cannot be usefully reviewed. When a
   fixture removes or shims executables, especially credential, network or deploy
   tools, set a closed `PATH` or absolute commands before the first run so a
   missing shim cannot fall through to the real host tool.
   When a test emulates another project's behavior, cite its upstream revision,
   matching the deployed version. Derive fixtures from upstream special cases
   and identify exclusions. Name that emulator and revision in the review brief.
   Prefer testing the actual system when practical within the execution budget;
   do not make a passing approximation the only oracle for production inputs.
   Use bounded, replayable property-based or fuzz tests when example tests would
   miss meaningful input or state combinations (such as parsers, serializers,
   invariants or state machines). Fix or log seeds, cap case counts and shrinking
<!-- ‹guest · 2026-12-05› -->
   so failures replay deterministically, and count setup and runtime against the
   600-second CI critical-path cap.
3. For regressions, verify failure before the fix and success afterward when feasible.
   Run required checks and relevant failure cases. Investigate flakes instead of
   hiding them with retries, longer timeouts or weaker assertions. Report verification
   gaps plainly.
   Before adopting an existing test bundle, apply
   [proof quality](../review/references/proof-quality.md); stale output after a
   failed launch is not evidence for a new run.
4. Enforce the 600-second execution cap across the required dependency path,
   including setup, build, checks and reporting. Measure per-job runtime, critical
   path execution, queue delay, total elapsed feedback and runner cost separately;
   do not sum parallel jobs as elapsed execution. If over budget, repair the
   bottleneck within authority or report the blocker. Never weaken assertions,
   skip required checks or treat a timed-out run as a pass to meet the cap.

Read the [audit reference](references/suite-audit.md) for suite-wide reviews or costly
test removal; establish retained and lost detection before recommending removal.
When assessing CI runtime, the optional
[timing helper](scripts/summarize_timings.py) summarizes observations,
not elapsed CI time or causal speedup.

## Outputs

Report protection added, checks/results, runtime impact and gaps in the requested
format. A short answer can stay in chat. Distinguish local timings, current-head
hosted CI and estimates. Unmeasured CI cost does not prove budget compliance.
Delegates return complete plain-text reports to their coordinator. In T3 Code,
only the main-thread coordinator uses `html_preview` then `html_render` for
substantive suite audits and timing comparisons; use readable text when native
HTML is unavailable or the result is brief.

## Boundaries

Reuse existing authority. Auditing alone does
not authorize test deletion, runner spending, CI policy changes or publication.
Preserve unrelated work. Efficiency must preserve useful protection.

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
کیفیت کد و تست
✦ Pro

REA bug fix

علت ریشه‌ای خطاها و کرش‌ها را از روی لاگ و مسیر اجرا پیدا می‌کند و به‌جای حدس زدن، اصلاح هدفمند پیشنهاد می‌دهد. (شامل ۶…

⚡ /rea-bug-fix SKILL.md
Claude / Claude CodeOpenAI Codex +۱
۹۱/۱۰۰ ★ ۴۸۶,۴۸۷
کیفیت کد و تست
✦ Pro

REA CI and tests audit

«REA CI and tests audit» دستورالعمل دقیقی برای «نوشتن و اجرای تست خودکار» در اختیار دستیار هوش مصنوعی می‌گذارد تا نتیجه…

⚡ /rea-ci-tests-audit SKILL.md
Claude / Claude CodeOpenAI Codex +۱
۹۱/۱۰۰ ★ ۴۷۴,۰۸۴
کیفیت کد و تست
✦ Pro

Finishing a Development Branch

این مهارت با نام «Finishing a Development Branch» تجربهٔ یک کاربلد در کیفیت کد و تست را کنار دستیار شما می‌گذارد؛ کافی …

⚡ /finishing-a-development-branch SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Code Review Reception

اگر روی کیفیت کد و تست کار می‌کنید، «Code Review Reception» بخشی از کار را از دوش شما برمی‌دارد: «بازنویسی و تمیزسازی ک…

⚡ /receiving-code-review SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Requesting Code Review

برای کارهای کیفیت کد و تست، «Requesting Code Review» یک راهنمای کوتاه و روشن است: مسیر «مدیریت هوشمند حافظه و کانتکست» …

⚡ /requesting-code-review SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Test-Driven Development (TDD)

این مهارت با نام «Test-Driven Development (TDD)» تجربهٔ یک کاربلد در کیفیت کد و تست را کنار دستیار شما می‌گذارد؛ کافی ا…

⚡ /test-driven-development SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰