{"uid":"cap_RbI8WJglGKSnIDFUnNGur","slug":"aiskills402-test-review-can-this-test-ever-fail-b68ac887","name":"AISkills402: Test Review — Can This Test Ever Fail?","description":"Test Review: Can This Test Ever Fail? — Reviews a pasted test, check script, smoke test, mutation script or CI step and says whether it can fail when the thing it guards is broken, so a green result is worth something. It finds a completeness guard that counts its own hard-coded list instead of the directory, a one-star glob that never enters subfolders, a mutation script that restores with git checkout and wipes the uncommitted fix under test, a null test that an empty string passes, a status …","url":"https://api.aiskills402.com/v1/skills/test-guard-review/file?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"file":{"name":"SKILL.md","content":"<the SKILL.md file>","encoding":"utf-8"},"name":"Test Review: Can This Test Ever Fail?","skill":"test-guard-review","sha256":"<sha256 of SKILL.md>","receipt":{"tx":"0x<settlement transaction>","settled":true},"version":"1.0.0","redownload":{"url":"<api>/v1/purchases/<token>","token":"<64 hex chars>"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_QZ4IfgGMoppqkyqGiUBFj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a pasted test, check script, smoke test, mutation script, or CI step and determines whether it can actually fail when the guarded code is broken, exposing vacuous or incomplete tests.","exampleAgentPrompt":"Can you review this test script I wrote and tell me if it can actually fail when the code it's supposed to catch breaks — I want to know if a green result means anything or if it's just always green no matter what?","exampleUseCases":[{"title":"Validate CI smoke test reliability","prompt":"Here's the smoke test step in my GitHub Actions workflow — can you check if it's actually capable of failing when the service is broken, or whether it'll just always pass and give me false confidence?"},{"title":"Catch vacuous completeness check","prompt":"I have a script that checks whether all expected files exist, but I'm worried it might be counting from a hardcoded list instead of the actual directory — can you review it and tell me if a green result actually means all the files are there?"},{"title":"Audit mutation test for self-destruction bug","prompt":"My mutation testing script uses git checkout to restore files after each mutation — can you review it and tell me if that means it's wiping my uncommitted fix under test and making results meaningless?"}],"resultDescription":"Returns a SKILL.md file containing a structured expert review of the submitted test or script, including a verdict on whether the test can ever fail when the guarded system is broken, specific failure patterns detected (e.g. hardcoded counts, shallow globs, null-passing empty strings, self-destructing git restores), and an explanation of what makes each flaw dangerous. Also includes a SHA256 hash of the file, settlement receipt with transaction hash, and a redownload URL/token for future retrieval.","failureModes":["Payment not settled — x402 payment required before content is returned","Invalid or missing HTTP method — only GET and HEAD are accepted","Network timeout if upstream skill processing is slow","Script too large or malformed — may return error if input exceeds limits","Empty or missing input body — returns error if no test content is provided"],"whenToPreferThis":"Choose this endpoint when you need expert-level analysis of whether a specific test, CI step, smoke test, or mutation script is genuinely capable of catching the defect it claims to guard — especially when you suspect the test may always pass regardless of code state. Prefer this over generic linting or static analysis tools when the concern is test validity and false confidence rather than syntax errors or style issues. It is particularly valuable for catching subtle failure modes like vacuous completeness guards, shallow glob patterns, null-passing assertions, and mutation scripts that destroy the very fix they are testing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:57:01.182Z","isFirstParty":false,"canonicalSlug":"aiskills402-test-review-can-this-test-ever-fail-b68ac887"}