본문으로 건너뛰기
cccskills
무료GitHub에 공개

comprehensive-test-review

Review pytest test effectiveness against authoritative contracts, relevant faults, behavior-preserving refactors, realistic boundaries, isolation, and diagnostics. Use for test-quality audits, coverage-gap reviews, regression-test changes, or mocking reviews; preserve existing project gates rather than inventing coverage targets.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md8.2 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Comprehensive Test Review

Review whether the specified tests distinguish required behavior from relevant faults. Establish the product purpose, supported environments, and governing contracts before judging coverage or style. Treat each expectation as a claim, not as authority merely because it is already a test.

Load Python Development Standards for applicable shared rules. Preserve coherent existing framework/mock usage and the supported Python floor.

Effectiveness checks

For each material claim, record the contract authority, failure excluded, observation, and evidence.

PropertyReview question and evidence
Oracle validityDoes the expected answer follow from an authoritative requirement/interface, independently of the implementation under test? Identify stale or contradictory requirements rather than silently selecting a convenient answer.
Fault sensitivityDoes the test fail on the original defect or a relevant deliberately seeded fault? Confirm it reaches the intended assertion: collection, import, setup, or unrelated errors do not demonstrate detection.
Refactor toleranceDoes a behavior-preserving change leave the expectation valid? Avoid incidental helper names, ordering, serialization, or call counts unless those details are contractual.
Boundary fidelityDoes the test exercise the entry point, handoff, state transition, or external contract carrying the guarantee? Check what a mock, fake, fixture, or bypassed adapter removes from observation.
IsolationAre time, randomness, environment, shared state, ordering, concurrency, and cleanup controlled where relevant? Record what isolated/full-suite or serial/parallel comparisons actually establish.
Diagnostic valueDoes failure identify the violated property and relevant input/state difference, without replacing useful evidence with a generic pass/fail?

Do not require executing mutations for every test. For a changed regression test or an important untested guarantee, choose the cheapest relevant negative control. When execution is unavailable, record a proposed control and mark fault sensitivity unvalidated; do not infer it from source or coverage. Keep destructive or external effects in a safe, authorized test environment.

Review procedure

  1. Read the target and contract. Read the complete relevant tests, fixtures, product entry points, and authoritative requirements. Locate the test in the product-to-consumer path and identify the first boundary its observation can actually see.
  2. Capture a baseline. Discover the repository's real test command and selection from its testing guidance/configuration/CI. Preserve strict configuration, warning policy, configured plugins, and supported runtimes. Record revision, command, collected/selected cases, outcomes, skips/xfails, and unavailable environments. Do not claim a subset represents the whole suite.
  3. Challenge meaningful faults. Use the effectiveness checks above. For changed regression protection, compare original defect and corrected behavior under comparable conditions. Check that a harmless implementation variation remains accepted where practical. Inspect both the final assertion and the execution that reached it.
  4. Inspect risk coverage and maintainability. Apply the supporting checks below. Prioritize missing or misleading guarantees over cosmetic consistency. Group related findings by demonstrated mechanism, while accounting for each affected claim.
  5. Propose or apply only authorized corrections. Name product, interface/architecture, oracle, or harness defects separately; several may coexist. For a material change, predeclare the expected improvement, preserved invariants, unacceptable regressions, and baseline. Explain why an architectural correction is necessary instead of prescribing layers by default.
  6. Validate the delta. Run affected positive, negative, boundary, and integration cases. Preserve meaningful guarantees when replacing or removing tests. Record before/after evidence and remaining uncertainty; use independent and additional unseen cases for substantial redesign where practical. Revalidate evidence invalidated by subsequent edits.

Supporting checks

Coverage: Respect an established project gate, but do not invent universal line/branch percentages or require a test per symbol. Inspect changed branches, public contracts, critical paths, boundary cases, and meaningful failure/recovery behavior for uncovered risk. Coverage shows execution, not whether a wrong result would be rejected. A percentage cannot compensate for a missed required guarantee.

Structure: Keep Arrange-Act-Assert legible, use behavior-oriented names, and give each test a coherent claim. Multiple assertions are appropriate when they establish that claim, including absence of forbidden side effects. Prefer useful diagnostics over assertion-count rules.

Doubles: Follow the project's framework and scope fixtures/mocks appropriately. Preserve valid fakes and dependency injection at meaningful seams. Do not mock away the boundary whose contract is being assessed. Interaction assertions remain appropriate when ordering, a prohibited write, authorization, or another interaction is itself the guarantee.

Maintainability: Follow applicable type-hint, naming, and fixture conventions. Identify slow or flaky patterns and measure relevant runtime before proposing optimization. Verify cleanup of resources and worker/thread/process activity where used. Do not introduce a dependency merely to replace a coherent existing test idiom.

Generated artifacts and agent skills

Keep these claims separate:

  • Inventory or generated-artifact freshness: compare the preserved checked-in state with the declared inputs. Report missing, extra, and changed semantic identities; keep a separate canonical-byte check when deterministic serialization is part of the contract.
  • Generator correctness: use independent, deliberately constructed fixtures and meaningful invalid/boundary cases. Comparing a generator with its own output is not an independent oracle.
  • Consumer or agent behavior: execute the real consumer or representative tasks and inspect consequential routing, handoffs, side effects, and completion evidence.

Do not regenerate immediately before a freshness assertion and treat the result as evidence the original state was current. A valid file, an instruction phrase, or a mapped but unexecuted task does not prove behavior. For nondeterministic agents, predeclare acceptable outcomes and critical invariants, preserve traces, and report repeated-run uncertainty rather than a universal pass claim.

Result contract

Return scope/revision, authoritative contracts, and prioritized findings. For every material finding include the violated claim, location, counterexample or missing evidence, correction category, recommended change, and required validation. Keep observed defects separate from proposed probes.

Report claim -> validator -> observed result -> evidence boundary. Distinguish passed, failed, blocked, and unvalidated claims; list omitted suites, skips, and residual risks. Report coverage and cost separately from correctness. Do not turn source review or authored eval fixtures into passing behavioral evidence.

Related skills and implementation

Use Test Failure Mindset when a failing expectation needs adjudication, Test Design for test architecture, and Testing Patterns for pytest implementation. When available, delegate implementation to python-engineering:python-pytest-architect and review its execution evidence. The review protocol above does not require DH or Process Siren to be installed.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Add automated documentation updater to any Claude skill. Creates a Python sync script that downloads upstream docs, processes markdown for AI consumption, and maintains local cache with configurable refresh. Collects template variables, then delegates implementation through 5-phase workflow. Use when adding auto-updating reference documentation to plugins or skills.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

SAM-style feature initiation workflow — discovery through codebase analysis, architecture spec, task decomposition, validation, and context manifest. Use when a user asks to add a feature, plan a feature, or convert an idea into an executable SAM plan.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Browser automation for AI agents using the agent-browser CLI and Playwright. Use when navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, logging into sites, or automating any browser task. Triggers on "open a website", "fill out a form", "click a button", "scrape data", "test this web app", "automate browser actions", or any programmatic web interaction request.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Runs the description-drift experiment — spawns all Claude Code agents simultaneously to collect self-reported capabilities, then compares them against static frontmatter descriptions to reveal how reliable orchestrator routing based on descriptions actually is. Use when measuring description drift across the agent fleet, re-running the capability collection experiment, analyzing a specific agent's self-reported capabilities, or auditing whether frontmatter descriptions accurately reflect agent behavior.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Create or adapt Claude Code agent definitions. Use when creating an agent, changing subagent configuration, selecting agent scope, or designing a specialized delegation role.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Jamie-BitFlight의 스킬 모두 보기

이 스킬의 문제 신고