swift-code-review

Review Swift code for concurrency safety, error handling, and memory management.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/javierhbr/random-poc --skill swift-code-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swift-code-review
Source: https://github.com/javierhbr/random-poc/tree/main/custom-skills/beagle-main/plugins/beagle-ios/skills/swift-code-review
Command: npx skills add https://github.com/javierhbr/random-poc --skill swift-code-review

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers identify and fix common mistakes, concurrency issues, and potential bugs in Swift code, leading to more robust and maintainable applications.

Core Features & Use Cases

  • Concurrency Safety: Reviews code for correct use of async/await, actors, and Sendable conformance.
  • Error Handling: Checks for proper error propagation, logging, and use of LocalizedError.
  • Memory Management: Identifies potential retain cycles and incorrect delegate patterns.
  • Common Mistakes: Flags force unwraps, unnecessary optionals, and unchecked collection access.
  • Use Case: Before merging a new feature, run this Skill to ensure all new Swift code adheres to best practices for concurrency and error handling, preventing runtime crashes and improving code quality.

Quick Start

Use the swift-code-review skill to analyze the provided Swift file for potential issues.

Frequently Asked Questions about swift-code-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review Swift code for async/await concurrency safety?

Review Swift code for concurrency safety by analyzing async/await patterns, actor isolation, and Sendable conformance. This skill evaluates code structure and keyword usage to identify potential concurrency issues and ensure adherence to established Swift idioms.

What is the best way to check my Swift project for memory management issues?

Checking Swift code for memory management issues involves identifying potential retain cycles and incorrect delegate patterns. This skill analyzes .swift files to detect these risks, helping you prevent memory leaks and build more robust applications.

How do I identify common Swift mistakes like force unwraps before merging?

Identify common Swift mistakes by scanning .swift files for force unwraps, unnecessary optionals, and unchecked collection access. Running a code review before merging flags these issues, preventing potential runtime crashes and improving maintainability.

Does this Swift code review tool check for proper error handling and LocalizedError?

Yes, Swift code review checks for proper error handling by verifying error propagation, logging, and the use of LocalizedError. It analyzes your code structure to ensure errors are managed safely and effectively.

Can I use this tool to enforce Swift best practices across my entire codebase?

You can enforce Swift best practices by applying this skill to analyze .swift files for general idioms, concurrency, and error handling. It requires analyzing code structure and keyword usage to verify adherence to established standards.

Why does my Swift code fail Sendable conformance checks during review?

Swift code fails Sendable conformance checks when types cross actor isolation boundaries unsafely. This skill reviews async/await patterns and actor isolation usage to identify exactly where Sendable conformance is required for safe concurrency.