ios-visual-regression-testing
swift-snapshot-testingとXCTestプレビューテストを使用したiOS Visual Regression Testingの専門知識。視覚的UI検証のためのCI/CD統合。iOSスナップショットテストの設計・実装、VRTカバレッジ改善、CI/CDへのVRT統合時に使用します。
Skill by ohzono
Install
Works with Claude Code. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ohzono-ios-visual-regression-testing
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, testing, devops
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/ios-visual-regression-testing
Tools it pre-approves 6
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
Read,Glob,Edit,Write,WebSearch,Bash
What's inside
- Skill name
ios-visual-regression-testing- Description
- swift-snapshot-testingとXCTestプレビューテストを使用したiOS Visual Regression Testingの専門知識。視覚的UI検証のためのCI/CD統合。iOSスナップショットテストの設計・実装、VRTカバレッジ改善、CI/CDへのVRT統合時に使用します。
- License
- MIT
- Allowed tools
- Read,, Glob,, Edit,, Write,, WebSearch,, Bash
- Instructions
- 121 lines in SKILL.md · view on GitHub
Before installing
- Pre-approves any shell command
Files (2)
- SKILL.md
- reference.md
SKILL.md (first lines)
# iOS Visual Regression Testing Skill
## Overview
Comprehensive expertise in implementing Visual Regression Testing (VRT) for iOS applications. This includes snapshot testing, preview testing, pixel-perfect comparison, and CI/CD pipeline integration for automated visual verification.
## Why Visual Regression Testing?
### Benefits
- **Catch Unintended UI Changes**: Detect visual regressions before they reach production
- **Design System Consistency**: Ensure UI components match design specifications
- **Refactoring Confidence**: Safely refactor UI code with visual verification
- **Cross-Device Validation**: Test across different device sizes and configurations
- **Documentation**: Snapshots serve as visual documentation of UI states
### When to Use
- Component library development
- Design system implementation
- UI refactoring projects
- Accessibility testing (Dynamic Type, Dark Mode)
- Multi-device support verification
## Snapshot Testing Frameworks
### swift-snapshot-testing (Point-Free)
The most popular and flexible snapshot testing library for Swift.
```swift
// SPM: .package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.17.0")
// 1.17+ 必須: withSnapshotTesting(record:) スコープ API と Swift Testing 統合のため
import SnapshotTesting
// UIKit view
assertSnapshot(of: view, as: .image(size: CGSize(width: 375, height: 200)))
// SwiftUI view
assertSnapshot(of: view, as: .image(layout: .device(config: .iPhone13), traits: .init(userInterfaceStyle: .light)))
// Dark mode
assertSnapshot(of: view, as: .image(layout: .device(config: .iPhone13), traits: .init(userInterfaceStyle: .dark)), named: "dark")
// Accessibility
assertSnapshot(of: view, as: .image(layout: .device(config: .iPhone13),
traits: UITraitCollection(preferredContentSizeCategory: .accessibilityExtraLarge)), named: "accessibility-xl")
// Multiple devices
for (name, config) in [("iPhone-SE", ViewImageConfig.iPhoneSe), ("iPhone-13", .iPhone13), ("iPad-Pro", .iPadPro12_9)] {
assertSnapshot(of: view, as: .image(layout: .device(config: config)), named: name)
}
// Perceptual precision (anti-aliasing tolerance)
assertSnapshot(of: view, as: .image(precision: 0.99, perceptualPrecision: 0.98))
```
## Best Practices
### Directory Structure
```
MyApp/
├── MyAppTests/
│ ├── SnapshotTests/
│ │ ├── __Snapshots__/ # Reference images
│ │ ├── MyViewTests.swift
│ │ └── SnapshotTestCase.swift # Base class
│ └── UnitTests/
```
### Naming Convention
```swift
// Format: test[Component]_[state]_[variant]
func testProductCard_default() { }
func testProductCard_onSale() { }
func testProductCard_darkMode() { }
func testProductCard_accessibilityXL() { }
```
### Handling Flaky Tests
- Disable animations: `UIView.setAnimationsEnabled(false)`
- Use fixed dates: `DateProvider.current = MockDateProvider(fixedDate: ...)`
- Disable caret blinking in text fields
- Mock all dynamic content (images, timestamps, random values)
- Always specify exact device and OS version
### CI/CD Integration Key Points
- Use `macos-14` runner with specific Xcode version
- Upload failed snapshots as artifacts on failure
- Support `RECORD_SNAPSHOTS` environment variable for update workflow
## Verification Checklist
- [ ] All UI states have corresponding snapshots
- [ ] Dark mode variants tested
- [ ] Accessibility sizes tested (Dynamic Type)
- [ ] Multiple device sizes covered
- [ ] RTL languages tested if applicable
- [ ] CI/CD pipeline integration complete
## Evidence-First Visual Testing
**Core Belief**: "Visual regression testing provides objective evidence of UI consistency and prevents unintended design changes"
### Standards Compliance
- Apple Human Interface Guidelines visual specifications
- Accessibility requirements (WCAG contrast ratios)
- Design system documentation
- Platform-specific rendering requirements
## When to Use This Skill
- Setting up snapshot testing infrastructure
- Creating visual regression tests for UI components
- Integrating VRT into CI/CD pipelines
- Debugging flaky snapshot tests
- Testing design system components
- Multi-device and accessibility visual testing
- Localization visual verification
## 詳細リファレンス
より詳細な技術リファレンス、コード例、チェックリストは [reference.md](reference.md) を参照してください。From ohzono/native-app-fullcycle, MIT.
More from ohzono/native-app-fullcycle
- 0.511score
accessibility
ohzono
WCAG 2.1/2.2 と iOS(VoiceOver/Dynamic Type)・Android(TalkBack/フォントスケール)のアクセシビリティ基準、共通UIパターン、a11yテスト手法をカバー。仕様検討・デザイン/コードレビュー・実装時のa11y要件確認に使用。
SkillCFreshness: C★ 3Claude Code - 0.511score
android-visual-regression-testing
ohzono
Compose Preview Screenshot Testing(Google公式)を使用したAndroid Visual Regression Testingの専門知識。エミュレータ不要のピクセルパーフェクトなUI検証、CI/CD統合。Androidスナップショットテストの設計・実装、VRTカバレッジ改善、CI…
SkillCFreshness: C★ 3Claude Code - 0.511score
ios-app-development
ohzono
SwiftUI、UIKit、iOSフレームワーク、App Storeガイドライン、iOS固有パターンを使用したiOSアプリケーション開発の専門知識。Human Interface Guidelines、宣言的UI、iOSプラットフォームのベストプラクティス。iOSアプリの設計・実装、SwiftUI/UIKitでのUI…
SkillCFreshness: C★ 3Claude Code - 0.508score
idea-to-app
ohzono
アイデアからPRD作成・GitHub Issue作成・フルサイクル開発までを全自動で実行します。テキストやURLでアイデアを渡すだけで、実装済みPRまで到達します。
SkillCFreshness: C★ 3Claude Code - 0.508score
design-review
ohzono
UI/UXデザインレビューを実施します。スクリーンショット必須で、ユーザビリティ、アクセシビリティ(WCAG 2.1)、ビジュアルデザインを包括的にチェックします。
SkillCFreshness: C★ 3Claude Code +9 - 0.508score
fix-to-merge
ohzono
PRのコードレビューを別コンテキストで実施し、A評価になるまで修正を繰り返します。コンフリクト解消も行い、マージ可能な状態にします。
SkillCFreshness: C★ 3Claude Code - 0.508score
android-app-development
ohzono
Jetpack Compose、Material Design、Androidアーキテクチャの専門知識。MVVM/MVI、Hilt、Room、Retrofit等のモダンAndroid開発パターンを提供します。
SkillCFreshness: C★ 3Claude Code - 0.508score
implement
ohzono
機能を実装します。GitHub Issueを起点にWorktree分離、仕様理解、TDD実装、コミット、Draft PR作成、コンフリクト解消までを実行します。
SkillCFreshness: C★ 3Claude Code - 0.508score
cleanup
ohzono
フルサイクル開発完了後のクリーンアップを実行します。状態ファイルの削除、worktreeの削除、ローカルブランチの削除を行います。
SkillCFreshness: C★ 3Claude Code +9 - 0.505score
dev-plan
ohzono
新機能の実装計画を作成します。コンテキスト収集、要件明確化、技術調査を行い、段階的な実装計画を出力します。
SkillCFreshness: C★ 3Claude Code - 0.503score
android-navigation3
ohzono
Jetpack Navigation 3 のインストール・マイグレーションガイド。ディープリンク、マルチバックスタック、シーン、条件付きナビゲーションを提供します。
SkillCFreshness: C★ 3Claude Code +9 - 0.503score
android-compose-migration
ohzono
XML View から Jetpack Compose への構造化マイグレーション。テーマ・レイアウト移行、検証、XMLクリーンアップを提供します。
SkillCFreshness: C★ 3Claude Code +9
Signals
- Stars
- 3
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 18, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/ohzono/native-app-fullcycle
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ohzono
- 0.511score
ios-app-development
ohzono
SwiftUI、UIKit、iOSフレームワーク、App Storeガイドライン、iOS固有パターンを使用したiOSアプリケーション開発の専門知識。Human Interface Guidelines、宣言的UI、iOSプラットフォームのベストプラクティス。iOSアプリの設計・実装、SwiftUI/UIKitでのUI…
SkillCFreshness: C★ 3Claude Code - 0.511score
android-visual-regression-testing
ohzono
Compose Preview Screenshot Testing(Google公式)を使用したAndroid Visual Regression Testingの専門知識。エミュレータ不要のピクセルパーフェクトなUI検証、CI/CD統合。Androidスナップショットテストの設計・実装、VRTカバレッジ改善、CI…
SkillCFreshness: C★ 3Claude Code - 0.511score
accessibility
ohzono
WCAG 2.1/2.2 と iOS(VoiceOver/Dynamic Type)・Android(TalkBack/フォントスケール)のアクセシビリティ基準、共通UIパターン、a11yテスト手法をカバー。仕様検討・デザイン/コードレビュー・実装時のa11y要件確認に使用。
SkillCFreshness: C★ 3Claude Code - 0.508score
android-app-development
ohzono
Jetpack Compose、Material Design、Androidアーキテクチャの専門知識。MVVM/MVI、Hilt、Room、Retrofit等のモダンAndroid開発パターンを提供します。
SkillCFreshness: C★ 3Claude Code - 0.508score
design-review
ohzono
UI/UXデザインレビューを実施します。スクリーンショット必須で、ユーザビリティ、アクセシビリティ(WCAG 2.1)、ビジュアルデザインを包括的にチェックします。
SkillCFreshness: C★ 3Claude Code +9 - 0.508score
idea-to-app
ohzono
アイデアからPRD作成・GitHub Issue作成・フルサイクル開発までを全自動で実行します。テキストやURLでアイデアを渡すだけで、実装済みPRまで到達します。
SkillCFreshness: C★ 3Claude Code
Cite this page
ios-visual-regression-testing skill. Agent Mart. https://agentmart.dev/skills/ohzono-ios-visual-regression-testing (last updated 2026-10-24)