{"id":"72b45c7a-95f3-4359-ba6e-f5247db40e2e","shortId":"UNVKCV","kind":"skill","title":"Add executable smoke tests for shell scripts and CLIs before refactors ship","tagline":"Use Bats-core when an agent needs to turn fragile shell scripts or command-line workflows into something it can verify repeatedly after edits. The agent writes focused Bash tests for success paths, failure paths, and output contracts, then runs them locally or in CI before a refa","description":"# Add executable smoke tests for shell scripts and CLIs before refactors ship\n\nUse Bats-core when an agent needs to turn fragile shell scripts or command-line workflows into something it can verify repeatedly after edits. The agent writes focused Bash tests for success paths, failure paths, and output contracts, then runs them locally or in CI before a refactor, release, or incident fix goes out.\n\n## Prerequisites\n\nBash plus Bats-core and the shell scripts or CLI commands under test\n\n## Installation\n\nNo source-backed install or usage instructions could be extracted automatically. Review the upstream project before running this skill in a sensitive workflow.\n\n- Source: https://github.com/bats-core/bats-core\n\n## Documentation\n\n- https://bats-core.readthedocs.io/en/stable/\n\n## Source\n\n- [Agent Skill Exchange](https://agentskillexchange.com/skills/add-shell-and-cli-smoke-tests-before-refactors-ship/)","tags":["add","shell","and","cli","smoke","tests","before","refactors","ship","skills","agentskillexchange","agent-skills"],"capabilities":["skill","source-agentskillexchange","skill-add-shell-and-cli-smoke-tests-before-refactors-ship","topic-agent-skills","topic-ai-agents","topic-ai-tools","topic-awesome-list","topic-claude-code","topic-codex","topic-cursor","topic-llm","topic-mcp","topic-npx-skills","topic-openclaw","topic-skills-catalog"],"categories":["skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/agentskillexchange/skills/add-shell-and-cli-smoke-tests-before-refactors-ship","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add agentskillexchange/skills","source_repo":"https://github.com/agentskillexchange/skills","install_from":"skills.sh"}},"qualityScore":"0.454","qualityRationale":"deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (909 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:09:18.017Z","embedding":null,"createdAt":"2026-05-18T13:14:58.547Z","updatedAt":"2026-05-18T19:09:18.017Z","lastSeenAt":"2026-05-18T19:09:18.017Z","tsv":"'/bats-core/bats-core':174 '/en/stable/':178 '/skills/add-shell-and-cli-smoke-tests-before-refactors-ship/)':185 'add':1,63 'agent':19,40,81,102,180 'agentskillexchange.com':184 'agentskillexchange.com/skills/add-shell-and-cli-smoke-tests-before-refactors-ship/)':183 'automat':158 'back':150 'bash':43,105,132 'bat':15,77,135 'bats-cor':14,76,134 'bats-core.readthedocs.io':177 'bats-core.readthedocs.io/en/stable/':176 'ci':59,121 'cli':142 'clis':9,71 'command':28,90,143 'command-lin':27,89 'contract':52,114 'core':16,78,136 'could':155 'document':175 'edit':38,100 'exchang':182 'execut':2,64 'extract':157 'failur':48,110 'fix':128 'focus':42,104 'fragil':23,85 'github.com':173 'github.com/bats-core/bats-core':172 'goe':129 'incid':127 'instal':146,151 'instruct':154 'line':29,91 'local':56,118 'need':20,82 'output':51,113 'path':47,49,109,111 'plus':133 'prerequisit':131 'project':162 'refa':62 'refactor':11,73,124 'releas':125 'repeat':36,98 'review':159 'run':54,116,164 'script':7,25,69,87,140 'sensit':169 'shell':6,24,68,86,139 'ship':12,74 'skill':166,181 'skill-add-shell-and-cli-smoke-tests-before-refactors-ship' 'smoke':3,65 'someth':32,94 'sourc':149,171,179 'source-agentskillexchange' 'source-back':148 'success':46,108 'test':4,44,66,106,145 'topic-agent-skills' 'topic-ai-agents' 'topic-ai-tools' 'topic-awesome-list' 'topic-claude-code' 'topic-codex' 'topic-cursor' 'topic-llm' 'topic-mcp' 'topic-npx-skills' 'topic-openclaw' 'topic-skills-catalog' 'turn':22,84 'upstream':161 'usag':153 'use':13,75 'verifi':35,97 'workflow':30,92,170 'write':41,103","prices":[{"id":"04202b56-b57c-46ed-84a9-22a1991b58d4","listingId":"72b45c7a-95f3-4359-ba6e-f5247db40e2e","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"agentskillexchange","category":"skills","install_from":"skills.sh"},"createdAt":"2026-05-18T13:14:58.547Z"}],"sources":[{"listingId":"72b45c7a-95f3-4359-ba6e-f5247db40e2e","source":"github","sourceId":"agentskillexchange/skills/add-shell-and-cli-smoke-tests-before-refactors-ship","sourceUrl":"https://github.com/agentskillexchange/skills/tree/main/skills/add-shell-and-cli-smoke-tests-before-refactors-ship","isPrimary":false,"firstSeenAt":"2026-05-18T13:14:58.547Z","lastSeenAt":"2026-05-18T19:09:18.017Z"}],"details":{"listingId":"72b45c7a-95f3-4359-ba6e-f5247db40e2e","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"agentskillexchange","slug":"add-shell-and-cli-smoke-tests-before-refactors-ship","github":{"repo":"agentskillexchange/skills","stars":8,"topics":["agent-skills","ai-agents","ai-tools","awesome-list","claude-code","codex","cursor","llm","mcp","npx-skills","openclaw","skills-catalog"],"license":"mit","html_url":"https://github.com/agentskillexchange/skills","pushed_at":"2026-05-18T19:02:17Z","description":"The open catalog of AI agent skills — 2,000+ security-scanned skills for Claude Code, Cursor, Codex, and more.","skill_md_sha":"f55ebec4a6632186de866e7fd9e997ad6341de8e","skill_md_path":"skills/add-shell-and-cli-smoke-tests-before-refactors-ship/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/agentskillexchange/skills/tree/main/skills/add-shell-and-cli-smoke-tests-before-refactors-ship"},"layout":"multi","source":"github","category":"skills","frontmatter":{"name":"Add executable smoke tests for shell scripts and CLIs before refactors ship","description":"Use Bats-core when an agent needs to turn fragile shell scripts or command-line workflows into something it can verify repeatedly after edits. The agent writes focused Bash tests for success paths, failure paths, and output contracts, then runs them locally or in CI before a refactor, release, or incident fix goes out."},"skills_sh_url":"https://skills.sh/agentskillexchange/skills/add-shell-and-cli-smoke-tests-before-refactors-ship"},"updatedAt":"2026-05-18T19:09:18.017Z"}}