Enforces Swift code style conventions for clean, readable code. Covers naming, spacing, organization, memory management, and common mistakes.
Ships in game-dev-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Code style conventions for clean, readable Swift code.
Clarity > Brevity > Consistency
Code should compile without warnings.
UpperCamelCase — Types, protocolslowerCamelCase — Everything else// Preferred
let maximumWidgetCount = 100
func fetchUser(byID id: String) -> User
Left-hand margin is the happy path. Don't nest if statements.
// Preferred
func process(value: Int?) throws -> Result {
guard let value = value else {
throw ProcessError.nilValue
}
guard value > 0 else {
throw ProcessError.invalidValue
}
return compute(value)
}
Use extensions and MARK comments:
class MyViewController: UIViewController {
// Core implementation
}
// MARK: - UITableViewDataSource
extension MyViewController: UITableViewDataSource { }
Avoid self unless required by compiler.
// Preferred
func configure() {
backgroundColor = .systemBackground
}
Omit get for read-only:
var diameter: Double {
radius * 2
}
Trailing closure only for single closure parameter.
Let compiler infer when clear. For empty collections, use type annotation:
var names: [String] = []
// Preferred
var items: [String]
var cache: [String: Int]
var name: String?
private over fileprivateinternal (it's the default)resource.request().onComplete { [weak self] response in
guard let self else { return }
self.updateModel(response)
}
// or ///, avoid /* */Use case-less enum for namespacing:
enum Math {
static let pi = 3.14159
}
Abbreviations beyond URL, ID, UUID — Abbreviations like cfg, mgr, ctx, desc hurt readability. Spell them out: configuration, manager, context, description. The three exceptions are URL, ID, UUID.
Nested guard/if statements — Deep nesting makes code hard to follow. Use early returns and guards to keep the happy path left-aligned.
Inconsistent self usage — Either always omit self (preferred) or always use it. Mixing makes code scanning harder and confuses capture semantics.
Overly generic type names — Manager, Handler, Helper, Coordinator are too vague. Names should explain responsibility: PaymentProcessor, EventDispatcher, ImageCache, NavigationCoordinator.
Implied access control — Don't skip access control. Explicit private, public helps future maintainers understand module boundaries. internal is default, so omit it.
What SKILL.md sets; muted values are Claude Code's defaults
/hocgin-game-dev-skills:swift-stylefrom game-dev-skills
Claude Code refuses to install this plugin
Claude Code refuses to add this marketplace: The name 'agent-skills' is reserved for official Anthropic marketplaces and can only be used with GitHub sources from the 'anthropics' organization.
Claude Code refuses to add this marketplace: The name 'agent-skills' is reserved for official Anthropic marketplaces and can only be used with GitHub sources from the 'anthropics' organization.
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
38 skills in this plugin
/appicon-design从一张或多张 App Icon 案例图中提取设计语言(配色角色、造型语言、材质、光影、质感、细节密度),剥离参考图自身的主体 / 角色 / 布局等 IP,保存为可命名、可复用的「风格主题模板」(设计 DNA + 多版式变体 + 参考 IP 排除),再根据项目名称、类型与核心功能,按指定风格或自动匹配风格,生成原创、不撞脸参考图、符合 iOS App Icon 规范、可直接用于 GPT-Image / Midjourney / SD 等模型的完整提示词(主体描述 + 风格约束 + 版式 + 原创性约束 + 负面约束)。当用户需要设计 App 图标、iOS/macOS 应用图标、备用图标(Alternate App Icon),或想把案例图片沉淀为新的 App Icon 风格时使用。/apple-itunes-apiApple iTunes Search API 完整参考指南。用于搜索 iTunes/Apple Music 目录中的音乐、电影、播客、应用、图书等内容。
触发条件: 用户提及 "iTunes API"、"Apple Music API"、"搜索歌曲"、"查找专辑"、"获取歌词"、
"搜索 App"、"查找播客"、"iTunes 搜索"、"获取封面"、"album art"、"track lookup" 等。
涵盖 Search API、Lookup API、Genre API、RSS Feed Generator 四大端点。
/appstore-product-description按固定格式生成 App Store「产品描述」(Description)中文文案:一句话主张 + 导语 + 若干【功能块】+ 开始使用 + 收尾金句,末尾自动拼接固定的「订阅取消说明」与「隐私协议 & 服务协议」模板(协议链接由用户提供)。当用户需要撰写、改写、更新 App Store 产品描述 / 应用介绍 / 描述文案,或要为新 App 套用统一描述格式时使用。/article-tech-write科技资讯聚合类文章写作,专注于将多条科技新闻/技术动态整合为一篇结构紧凑、风格统一的综合报道/article-writerAI驱动的智能写作系统,专注于创作高质量、低AI检测率的文章内容/bitrig-simulator-use操作 macOS Bitrig 的内置模拟器,包括查看和测试运行中的 App、切换机型、操作 iPhone Duo 铰链、截图、录屏、录制带机身的 3D 预览及读取运行日志。用户明确指定 Bitrig 或其 Simulator Use 插件时使用。2 plugins ship this exact skill · first indexed Jul 9, 2026
Other plugins' skills for the same job