重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
testing by rshankras/claude-code-apple-skills
npx skills add https://github.com/rshankras/claude-code-apple-skills --skill testing适用于 Apple 平台应用的测试驱动开发工作流和测试基础设施。兼容新代码库和现有代码库。
当用户出现以下情况时使用此技能:
characterization-test-generator/ 在重构前捕获现有代码的当前行为。生成记录代码实际行为(而非应有行为)的测试,为 AI 辅助重构提供安全网。
tdd-bug-fix/ 先复现后修复的错误修复工作流。先编写一个能重现错误的失败测试,然后修复它。确保错误永不复发——这在 AI 生成修复方案时至关重要。
tdd-refactor-guard/ 重构前的安全检查清单。在允许 AI 修改现有代码前,验证是否存在测试覆盖。防止“没有安全网的重构”问题。
tdd-feature/ 针对新功能的红-绿-重构脚手架。首先生成失败测试,然后指导实现使其通过,最后进行重构。这是核心的 TDD 工作流。
test-contract/ 协议/接口测试套件。定义契约(例如,“任何 DataStore 必须能处理空状态、单个项目、100 个项目以及错误”),它会生成任何实现都必须通过的测试套件。
snapshot-test-setup/ 使用 swift-snapshot-testing 进行 SwiftUI 视觉回归测试。生成快照测试样板代码、配置和 CI 集成。
test-data-factory/ 为你的模型生成测试数据工厂。通过消除样板数据设置,使编写测试更快。支持构建器模式和静态工厂方法。
integration-test-scaffold/ 包含模拟服务器、内存存储和测试配置的跨模块测试框架。用于一起测试网络、持久化和业务逻辑。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
generators/test-generator/ 技能生成测试样板代码(单元测试、集成测试、UI 测试)。这些测试技能是互补的——它们侧重于工作流和方法论(TDD 循环、特征测试、契约),而不仅仅是测试文件生成。
交叉引用:
test-generator 处理“为这个类添加测试”testing/tdd-feature 处理“我想对这个新功能进行 TDD”testing/characterization-test-generator 处理“我需要安全地重构这个”testing/tdd-bug-fix 处理“修复这个错误并确保它永不复发”每周安装次数
49
代码仓库
GitHub 星标数
115
首次出现
2026 年 2 月 24 日
安全审计
安装于
opencode47
github-copilot47
amp47
codex47
kimi-cli47
gemini-cli47
Test-driven development workflows and testing infrastructure for Apple platform apps. Works with both new and existing codebases.
Use this skill when the user:
characterization-test-generator/ Capture current behavior of existing code before refactoring. Generates tests that document what code actually does (not what it should do), giving you a safety net for AI-assisted refactoring.
tdd-bug-fix/ Reproduce-first bug fix workflow. Write a failing test that demonstrates the bug, then fix it. Ensures the bug never regresses — critical when AI generates fixes.
tdd-refactor-guard/ Pre-refactor safety checklist. Verifies test coverage exists before allowing AI to touch existing code. Prevents the "refactor without a safety net" problem.
tdd-feature/ Red-green-refactor scaffold for new features. Generates the failing test first, then guides implementation to make it pass, then refactors. The core TDD workflow.
test-contract/ Protocol/interface test suites. Define the contract (e.g., "any DataStore must handle empty state, single item, 100 items, and errors"), and it generates a test suite any implementation must pass.
snapshot-test-setup/ SwiftUI visual regression testing using swift-snapshot-testing. Generates snapshot test boilerplate, configuration, and CI integration.
test-data-factory/ Test fixture factories for your models. Makes writing tests faster by eliminating boilerplate data setup. Supports Builder pattern and static factory methods.
integration-test-scaffold/ Cross-module test harness with mock servers, in-memory stores, and test configuration. For testing networking + persistence + business logic together.
The generators/test-generator/ skill generates test boilerplate (unit, integration, UI tests). These testing skills are complementary — they focus on workflows and methodology (TDD cycle, characterization testing, contracts) rather than just test file generation.
Cross-reference:
test-generator for "add tests to this class"testing/tdd-feature for "I want to TDD this new feature"testing/characterization-test-generator for "I need to safely refactor this"testing/tdd-bug-fix for "fix this bug and make sure it never comes back"Weekly Installs
49
Repository
GitHub Stars
115
First Seen
Feb 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode47
github-copilot47
amp47
codex47
kimi-cli47
gemini-cli47
测试策略完整指南:单元/集成/E2E测试金字塔与自动化实践
11,200 周安装
Docker容器基础教程 - DevOps自动化助手,提供生产级代码和最佳实践
62 周安装
Markdown转DOCX转换器:一键批量将Markdown文件转换为Word文档
62 周安装
迪士尼12条通用动画原理详解 | 挤压与拉伸、预备动作、演出布局等核心动画法则
62 周安装
Slidev PlantUML插件:在演示文稿中创建专业UML和技术图表
63 周安装
GoT Controller:多智能体研究图操作框架,优化AI研究流程与信息质量
62 周安装
Drizzle ORM 性能优化指南:使用 $type() 替代 customType 提升查询效率
62 周安装