addexecutablesmoketestsforshellscriptsandclisbeforerefactorsship
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "addexecutablesmoketestsforshellscriptsandclisbeforerefactorsship" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-77418137ee37b0243ec9fecb0554e5dd378d0635e9eeb7598cf0e5f6389050b3. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/add-shell-and-cli-smoke-tests-before-refactors-ship before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
When fragile shell scripts or CLI workflows need to be turned into content that can be repeatedly verified after edits, use Bats-core to write centralized Bash tests for success paths, failure paths, and output contracts, and run those tests locally or in CI before refactors, releases, or incident fixes.
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: "Add executable smoke tests for shell scripts and CLIs before refactors ship"
slug: "add-shell-and-cli-smoke-tests-before-refactors-ship"
version: "1.0.0"
displayName: "Add executable smoke tests for shell scripts and CLIs before refactors ship"
summary: "当代理需要将脆弱的shell脚本或命令行工作流转换为在编辑后可以反复验证的内容时,请使用Bats-core。代理为成功路径、失败路径和输出契约编写集中的Bash测试,然后在重构、发布或事件修复发布之前在本地或CI中运行这些测试。"
license: "MIT"
description: "当代理需要将脆弱的shell脚本或命令行工作流转换为在编辑后可以反复验证的内容时,请使用Bats-core。代理为成功路径、失败路径和输出契约编写集中的Bash测试,然后在重构、发布或事件修复发布之前在本地或CI中运行这些测试。"
github_stars: 5974
verification: "listed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Developer Tools"
framework: "Multi-Framework"
tool_ecosystem:
github_repo: "1991513ccie-png/skills"
github_stars: 5974在重构发布前为shell脚本和CLI添加可执行的冒烟测试
当代理需要将脆弱的shell脚本或命令行工作流转换为在编辑后可以反复验证的内容时,请使用Bats-core。代理为成功路径、失败路径和输出契约编写集中的Bash测试,然后在重构、发布或事件修复发布之前在本地或CI中运行这些测试。
先决条件
Bash加上Bats-core以及待测试的shell脚本或CLI命令
安装
无法自动提取基于源代码的安装或使用说明。在敏感工作流中运行此技能之前,请先查看上游项目。
文档
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供使用 Bats-core 为 shell 脚本和 CLI 编写冒烟测试的完整方案,解决重构前验证的实际痛点
- 覆盖成功路径、失败路径和输出契约,适合 Bash/CLI 开发者提升脚本可靠性
Highlights
- 触发场景描述清晰,边界明确,覆盖多种测试路径变体
Areas to improve
-
缺少执行步骤与端到端示例 Reported severity: Major
文档未提供具体的 Phase/步骤划分、无端到端示例、无门控出口条件,用户难以直接执行
Recommendation: 补充具体执行步骤(如安装 Bats-core、编写测试、运行测试)、添加端到端示例和门控条件
Highlights
- 先决条件与文档链接清晰,结构基本完整
Areas to improve
-
依赖安装与异常处理缺失 Reported severity: Major
未说明如何安装 Bats-core,未覆盖依赖缺失、测试失败等主要异常场景
Recommendation: 补充 Bats-core 安装说明,增加异常处理与测试失败应对机制
Highlights
- 工具来源明确,指向官方 Bats-core 文档
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- bats-core.readthedocs.io
- github.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.