CAT
/Skills
SkillsMCPMarketplacesDigestToolsAdvertise

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by Category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP Servers by Category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by Category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control

Cross AI Tools

Discover Claude Code plugins, extensions, and tools. Automatically updated directory of Anthropic Claude AI marketplaces with development tools, productivity plugins, and integrations.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Marketplaces
  • Plugins Reference

Community

  • About
  • Tools
  • Feedback
  • Privacy Policy
  • Advertise

Built for the Claude Code community with Claude Code by @mertduzgun

Independent project, not affiliated with Anthropic

Swift Api Design Guidelines Skill

erikote04/swift-api-design-guidelines-agent-skill
647 installs21 stars
Summary

If you're writing or reviewing Swift APIs, this skill enforces the official Swift API Design Guidelines at every step. It checks naming clarity, argument labels, documentation comments, and fluency at call sites, not just declarations in isolation. Use it when designing new interfaces, refactoring existing ones, or reviewing PRs for API consistency. The decision tree walks you through fundamentals, promotes clear usage patterns, and catches common mistakes like ambiguous overloads or weak parameter names. What I like is the practical focus on call-site readability over declaration cleverness, plus the quick reference tables for mutating pairs, label rules, and documentation patterns you can actually apply without rereading the entire guide.

Install to Claude Code

npx -y skills add erikote04/swift-api-design-guidelines-agent-skill --skill swift-api-design-guidelines-skill --agent claude-code

Installs into .claude/skills of the current project.

CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
Files
SKILL.mdView on GitHub

Swift API Design Guidelines Skill

Overview

Use this skill to design and review Swift APIs that are clear at the point of use, fluent in call sites, and aligned with established Swift naming and labeling conventions. Prioritize readability, explicit intent, and consistency across declarations, call sites, and documentation comments.

Work Decision Tree

1) Review existing code

  • Inspect declarations and call sites together, not declarations alone.
  • Check naming clarity and fluency (see references/promote-clear-usage.md, references/strive-for-fluent-usage.md).
  • Check argument labels and parameter naming (see references/parameters.md, references/argument-labels.md).
  • Check documentation comments and symbol markup (see references/fundamentals.md).
  • Check conventions and overload safety (see references/general-conventions.md, references/special-instructions.md).

2) Improve existing code

  • Rename APIs that are ambiguous, redundant, or role-unclear.
  • Refactor labels to improve grammatical call-site reading.
  • Replace weakly named parameters with role-based names.
  • Resolve overload sets that become ambiguous with weak typing.
  • Strengthen documentation summaries to describe behavior and returns precisely.

3) Implement new feature

  • Start from use-site examples before finalizing declarations.
  • Choose base names and labels so calls read as clear English phrases.
  • Add defaults only when they simplify common usage.
  • Define mutating/nonmutating pairs with consistent naming.
  • Add concise documentation comments for every new declaration.

Core Guidelines

Fundamentals

  • Clarity at the point of use is the top priority.
  • Clarity is more important than brevity.
  • Every declaration should have a documentation comment.
  • Summaries should state what the declaration does, returns, accesses, creates, or is.
  • Use recognized Swift symbol markup (Parameter, Returns, Throws, Note, etc.).

Promote Clear Usage

  • Include all words needed to avoid ambiguity.
  • Omit needless words, especially type repetition.
  • Name parameters and associated types by role, not type.
  • Add role nouns when type information is weak (Any, NSObject, String, Int).

Strive For Fluent Usage

  • Prefer method names that produce grammatical, readable call sites.
  • Start factory methods with make.
  • Name side-effect-free APIs as noun phrases; side-effecting APIs as imperative verbs.
  • Keep mutating/nonmutating naming pairs consistent (sort/sorted, formUnion/union).
  • Boolean APIs should read as assertions (isEmpty, intersects).

Use Terminology Well

  • Prefer common words unless terms of art are necessary for precision.
  • If using a term of art, preserve its established meaning.
  • Avoid non-standard abbreviations.
  • Embrace established domain precedent when it improves shared understanding.

Conventions, Parameters, And Labels

  • Document complexity for computed properties that are not O(1).
  • Prefer methods/properties to free functions except special cases.
  • Follow Swift casing conventions, including acronym handling.
  • Use parameter names that improve generated documentation readability.
  • Prefer default arguments over method families when semantics are shared.
  • Place defaulted parameters near the end.
  • Apply argument labels based on grammar and meaning, not style preference.

Special Instructions

  • Label tuple members and name closure parameters in public API surfaces.
  • Be explicit with unconstrained polymorphism to avoid overload ambiguity.
  • Align names with semantics shown in documentation comments.

Quick Reference

Name Shape

SituationPreferred Pattern
Mutating verbreverse()
Nonmutating verbreversed() / strippingNewlines()
Nonmutating noun opunion(_:)
Mutating noun opformUnion(_:)
Factory methodmakeWidget(...)
Boolean queryisEmpty, intersects(_:)

Argument Label Rules

SituationRule
Distinguishable unlabeled argsOmit labels only if distinction is still clear
Value-preserving conversion initOmit first label
First arg in prepositional phraseUsually label from the preposition
First arg in grammatical phraseOmit first label
Defaulted argumentsKeep labels (they may be omitted at call sites)
All other argumentsLabel them

Documentation Rules

Declaration KindSummary Should Describe
Function / methodWhat it does and what it returns
SubscriptWhat it accesses
InitializerWhat it creates
Other declarationsWhat it is

Review Checklist

Clarity And Fluency

  • Call sites are clear without reading implementation details.
  • Base names include all words needed to remove ambiguity.
  • Names are concise and avoid repeating type names.
  • Calls read naturally and grammatically where it matters most.

Naming Semantics

  • Side-effect-free APIs read as nouns/queries.
  • Side-effecting APIs read as imperative verbs.
  • Mutating/nonmutating pairs use consistent naming patterns.
  • Boolean APIs read as assertions.

Parameters And Labels

  • Parameter names improve docs and role clarity.
  • Default parameters simplify common usage.
  • Defaulted parameters are near the end.
  • First argument labels follow grammar and conversion rules.
  • Remaining arguments are labeled unless omission is clearly justified.

Documentation And Conventions

  • Every declaration has a useful summary comment.
  • Symbol markup is used where appropriate.
  • Non-O(1) computed property complexity is documented.
  • Case conventions and acronym casing follow Swift norms.
  • Overloads avoid return-type-only distinctions and weak-type ambiguities.

References

  • references/fundamentals.md - Core principles and documentation comment rules
  • references/promote-clear-usage.md - Ambiguity reduction and role-based naming
  • references/strive-for-fluent-usage.md - Fluency, side effects, and mutating pairs
  • references/use-terminology-well.md - Terms of art, abbreviations, and precedent
  • references/general-conventions.md - Complexity docs, free function exceptions, casing, overloads
  • references/parameters.md - Parameter naming and default argument strategy
  • references/argument-labels.md - First-argument and general label rules
  • references/special-instructions.md - Tuple/closure naming and unconstrained polymorphism

Philosophy

  • Prefer clear use-site semantics over declaration cleverness.
  • Follow established Swift conventions before inventing local style rules.
  • Optimize for maintainability and reviewability of public API surfaces.
  • Keep guidance practical: apply the smallest change that improves clarity.
Featured
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
Categories
Backend & APIsAI & Agent BuildingMobile DevelopmentDesign & UI/UX
First SeenMay 16, 2026
View on GitHub

Recommended

More Backend & APIs →
connecting-lambda-to-api-gateway

aws/agent-toolkit-for-aws

connecting lambda to api gateway
934
772
prisma-database-setup

prisma/skills

Step-by-step configuration guides for Prisma ORM across PostgreSQL, MySQL, SQLite, MongoDB, SQL Server, CockroachDB, and Prisma Postgres.
10.8k
39
firebase-auth-basics

firebase/agent-skills

Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.
70.8k
348
api-gateway-configurator

Dexploarer/hyper-forge

Configure and manage API gateways including Kong, Tyk, AWS API Gateway, and Apigee. Activates when users need help setting up API gateways, rate limiting, authentication, request transformation, or API management.
5
api-gateway

itsmostafa/aws-agent-skills

AWS API Gateway for REST and HTTP API management. Use when creating APIs, configuring integrations, setting up authorization, managing stages, implementing rate limiting, or troubleshooting API issues.
1.1k
prisma-client-api

prisma/skills

Complete Prisma Client API reference for model queries, CRUD operations, filtering, relations, and transactions.
10.1k
39