prompt-engineering-patterns
86优化生产环境 LLM 提示词
LLM 提示词经常失败,是因为指令、示例和评估标准不清晰。此技能提供模板和工作流,用于改进 Claude、Codex、Claude Code 以及类似工具中的提示词。
构建可靠的 Bats 测试套件
Shell 脚本通常缺少针对失败情况、文件和外部命令的可重复测试。此技能提供用于断言、fixture、mock 和 CI 执行的实用 Bats 模式。
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "bats-testing-patterns" from https://skillstore.io/skills/wshobson-bats-testing-patterns.md and its manifest at https://skillstore.io/api/skills/wshobson-bats-testing-patterns/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
正在使用“bats-testing-patterns”。 一个脚本需要针对成功输出和缺少参数的测试。
预期结果:
一个 Bats 测试计划,包含针对有效输入、缺失输入、预期退出码和清晰输出断言的独立用例。
正在使用“bats-testing-patterns”。 一个 shell 工具从输入目录读取文件,并将结果写入其他位置。
预期结果:
一种 fixture 策略,使用临时目录、生成的输入文件、清理步骤,以及与预期输出的比较。
正在使用“bats-testing-patterns”。 一个部署脚本调用 curl、jq 和其他系统工具。
预期结果:
一种测试方法,对外部命令进行 stub、隔离 PATH、验证命令行为,并避免真实网络调用。
All static findings are false positives caused by Markdown examples for Bats test files, CI snippets, and reference links. No executable skill code, prompt injection, data exfiltration intent, or malicious workflow was found in SKILL.md.
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
https://skillstore.io/skills/wshobson-bats-testing-patterns/audits/9?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/wshobson-bats-testing-patterns?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/wshobson-bats-testing-patterns?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/wshobson-bats-testing-patterns/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/wshobson-bats-testing-patterns.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>wshobson. (2026). bats-testing-patterns security audit report (audit version 9) [Author version unspecified]. Skillstore. https://skillstore.io/skills/wshobson-bats-testing-patterns/audits/9@techreport{wshobson-wshobson-bats-testing-patterns-2026,
author = {wshobson},
title = {bats-testing-patterns security audit report (audit version 9)},
institution = {Skillstore},
year = {2026},
number = {9},
url = {https://skillstore.io/skills/wshobson-bats-testing-patterns/audits/9},
note = {Author version unspecified}
}cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "bats-testing-patterns security audit report (audit version 9)"
version: "unspecified"
type: report
authors:
- name: "wshobson"
date-released: "2026-07-07"
url: "https://skillstore.io/skills/wshobson-bats-testing-patterns/audits/9"
identifiers:
- type: other
value: "skillstore:wshobson-bats-testing-patterns:audit:9"
description: "Skillstore immutable audit report identifier"
每位作者的技能都保持为独立的可安装项。推荐变体按 Skillstore 证据排序。
为什么此变体排名第一
为项目脚本中的命令输出、退出码、文件变更和失败行为创建 Bats 测试。
将 Bats 执行添加到 GitHub Actions 或 Makefile 工作流中,以便在部署前捕获 shell 回归问题。
为团队提供可复用的模式,用于 shell 测试套件中的 fixture、setup、teardown 和依赖 stub。
使用 bats-testing-patterns skill 为我的 shell 脚本编写基础 Bats 测试。覆盖成功、失败、退出码和预期输出。
使用 bats-testing-patterns skill 为此脚本设计 Bats fixture 布局。包括 setup、teardown、临时目录和预期输出检查。
使用 bats-testing-patterns skill 测试一个调用外部工具的 shell 函数。展示命令 stub、PATH 隔离和环境覆盖。
使用 bats-testing-patterns skill 创建适用于 CI 的 Bats 测试计划。包括测试组织、Makefile target、shell 兼容性和并行执行。
作者
wshobson许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
仓库
https://github.com/wshobson/agents/tree/main/plugins/shell-scripting/skills/bats-testing-patterns引用
36e07d5e13068e5be64447e8f20b427cf2cbd21a
维护新鲜度
2026/7/18
使用量
8 次下载 · 167 次浏览
文件结构
📄 SKILL.md
优化生产环境 LLM 提示词
LLM 提示词经常失败,是因为指令、示例和评估标准不清晰。此技能提供模板和工作流,用于改进 Claude、Codex、Claude Code 以及类似工具中的提示词。
管理上下文驱动开发
当产品目标、技术栈选择和工作流规则分散各处时,AI 辅助项目会失去一致性。此技能通过 Conductor 上下文工件指导 Claude、Codex 和 Claude Code。
构建初创公司财务模型
初创团队在规划招聘、融资和现金使用之前,需要清晰的预测。此技能将收入、成本、资金可支撑时间和情景分析组织成实用的财务规划输出。
设计推动决策的 KPI 仪表板
团队经常构建展示大量数字却无法指导行动的仪表板。此技能可帮助 Claude、Codex 和 Claude Code 选择有意义的 KPI、组织视图,并清晰呈现指标。
编写无责事故复盘
事故评审常常变得不一致、侧重追责,或难以转化为行动。此技能帮助 Claude、Codex 和 Claude Code 起草结构化复盘,包含清晰的时间线、根本原因和负责人。
构建清晰的数据故事
原始指标往往难以说服利益相关者或支持决策。此技能帮助 Claude、Codex 和 Claude Code 将分析塑造成清晰的叙事、视觉呈现和建议。
构建可靠的测试自动化
由 89jobrien
薄弱的测试会拖慢发布并掩盖回归问题。此技能可指导测试策略、TDD、自动化、覆盖率审查以及 Playwright Web 检查。
在整个代码库中规划可靠测试
由 0xDarkMatter
此技能帮助团队选择测试策略、mocks、数据 fixtures、覆盖率门禁和 CI 模式,同时避免混淆测试范围。它为 Claude、Codex 和 Claude Code 提供针对单元、集成、端到端、TDD 和流水线测试的结构化指导。
自动化测试策略与质量工程
由 sickn33
团队常常难以选择合适的测试覆盖范围、工具和 CI/CD 质量门禁。此技能可帮助 Claude、Codex 和 Claude Code 规划实用的自动化策略。
使用 pytest TDD 构建 Python 测试
由 89jobrien
Python 团队通常需要一致的测试、覆盖率和报告,同时不丢失 TDD 纪律。此技能为 Claude、Codex 和 Claude Code 提供以 pytest 为核心的工作流、示例和报告指南。
通过红-绿-重构指导 TDD
由 mattpocock
当团队测试内部实现或预先编写过多测试时,测试优先的工作方式往往会变得脆弱。此 skill 引导 Codex、Claude 和 Claude Code 完成以行为为重点的红-绿-重构循环。
编写更安全的 Shell 脚本
由 CodingKaiser
Shell 脚本经常因引号处理、错误处理和可移植性问题而失败。此技能为 Claude、Codex 和 Claude Code 提供实用的 Bash 与 Zsh 指导,用于构建更安全的自动化。