{"id":"1d702a43-b330-47fd-af91-7f5a2ec9278d","shortId":"TLFMcX","kind":"skill","title":"testing","tagline":"Write and reason about tests that verify code correctness.","description":"# Testing\n\nYou write and reason about tests that verify code correctness.\n\n## Principles\n\n- Test behavior, not implementation - tests should survive refactoring\n- Each test should verify one thing and have a descriptive name\n- Tests are documentation - a reader should understand the expected behavior from the test suite\n- Prefer real implementations over mocks where practical\n- Cover the happy path, edge cases, and error cases\n\n## Approach\n\nWhen writing tests:\n\n1. Identify the public API surface to test\n2. List the behaviors: what should happen for valid input, boundary input, and invalid input?\n3. Write tests for each behavior, starting with the happy path\n4. Use descriptive test names that read as specifications (e.g., \"rejects circular composition with a clear error message\")\n5. Keep test setup minimal and focused\n\n## Test Structure\n\n- Arrange: set up the inputs and expected state\n- Act: call the function or method under test\n- Assert: verify the output or side effect\n\n## What Not to Test\n\n- Implementation details (private methods, internal state)\n- Third-party library behavior\n- Trivial code (getters, pass-through functions)","tags":["testing","skillfold","byronxlg","agent-framework","agent-skills","ai-agents","claude-code","compiler","multi-agent","orchestrator","pipeline","skill-composition"],"capabilities":["skill","source-byronxlg","skill-testing","topic-agent-framework","topic-agent-skills","topic-ai-agents","topic-claude-code","topic-compiler","topic-multi-agent","topic-orchestrator","topic-pipeline","topic-skill-composition","topic-typescript","topic-yaml"],"categories":["skillfold"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/byronxlg/skillfold/testing","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add byronxlg/skillfold","source_repo":"https://github.com/byronxlg/skillfold","install_from":"skills.sh"}},"qualityScore":"0.453","qualityRationale":"deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 6 github stars · SKILL.md body (1,146 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:14:28.181Z","embedding":null,"createdAt":"2026-05-18T13:22:08.525Z","updatedAt":"2026-05-18T19:14:28.181Z","lastSeenAt":"2026-05-18T19:14:28.181Z","tsv":"'1':76 '2':84 '3':99 '4':110 '5':128 'act':145 'api':80 'approach':72 'arrang':137 'assert':153 'behavior':24,51,87,104,174 'boundari':94 'call':146 'case':68,71 'circular':121 'clear':125 'code':9,20,176 'composit':122 'correct':10,21 'cover':63 'descript':40,112 'detail':165 'document':44 'e.g':119 'edg':67 'effect':159 'error':70,126 'expect':50,143 'focus':134 'function':148,181 'getter':177 'happen':90 'happi':65,108 'identifi':77 'implement':26,58,164 'input':93,95,98,141 'intern':168 'invalid':97 'keep':129 'librari':173 'list':85 'messag':127 'method':150,167 'minim':132 'mock':60 'name':41,114 'one':35 'output':156 'parti':172 'pass':179 'pass-through':178 'path':66,109 'practic':62 'prefer':56 'principl':22 'privat':166 'public':79 'read':116 'reader':46 'real':57 'reason':4,15 'refactor':30 'reject':120 'set':138 'setup':131 'side':158 'skill' 'skill-testing' 'source-byronxlg' 'specif':118 'start':105 'state':144,169 'structur':136 'suit':55 'surfac':81 'surviv':29 'test':1,6,11,17,23,27,32,42,54,75,83,101,113,130,135,152,163 'thing':36 'third':171 'third-parti':170 'topic-agent-framework' 'topic-agent-skills' 'topic-ai-agents' 'topic-claude-code' 'topic-compiler' 'topic-multi-agent' 'topic-orchestrator' 'topic-pipeline' 'topic-skill-composition' 'topic-typescript' 'topic-yaml' 'trivial':175 'understand':48 'use':111 'valid':92 'verifi':8,19,34,154 'write':2,13,74,100","prices":[{"id":"9895fa80-5e74-48f6-8d00-4f570b7ef8d6","listingId":"1d702a43-b330-47fd-af91-7f5a2ec9278d","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"byronxlg","category":"skillfold","install_from":"skills.sh"},"createdAt":"2026-05-18T13:22:08.525Z"}],"sources":[{"listingId":"1d702a43-b330-47fd-af91-7f5a2ec9278d","source":"github","sourceId":"byronxlg/skillfold/testing","sourceUrl":"https://github.com/byronxlg/skillfold/tree/main/skills/testing","isPrimary":false,"firstSeenAt":"2026-05-18T13:22:08.525Z","lastSeenAt":"2026-05-18T19:14:28.181Z"}],"details":{"listingId":"1d702a43-b330-47fd-af91-7f5a2ec9278d","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"byronxlg","slug":"testing","github":{"repo":"byronxlg/skillfold","stars":6,"topics":["agent-framework","agent-skills","ai-agents","claude-code","compiler","multi-agent","orchestrator","pipeline","skill-composition","typescript","yaml"],"license":"mit","html_url":"https://github.com/byronxlg/skillfold","pushed_at":"2026-05-02T04:13:05Z","description":"Configuration language and compiler for multi-agent AI pipelines. Compiles YAML config into standard SKILL.md files.","skill_md_sha":"69fd36119c6a22db6d94371b5877ce1b0b699757","skill_md_path":"skills/testing/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/byronxlg/skillfold/tree/main/skills/testing"},"layout":"multi","source":"github","category":"skillfold","frontmatter":{"name":"testing","description":"Write and reason about tests that verify code correctness."},"skills_sh_url":"https://skills.sh/byronxlg/skillfold/testing"},"updatedAt":"2026-05-18T19:14:28.181Z"}}