Swift code style conventions for clean, readable, and idiomatic code.
Works with
Enforces naming conventions (UpperCamelCase for types, lowerCamelCase for everything else) and prioritizes clarity over brevity
Advocates the \"golden path\" pattern: early returns and guards to keep happy-path logic left-aligned, avoiding deep nesting
Covers code organization with extensions and MARK comments, memory management with weak captures, and access control best practices
Identifies five common mistake
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionswift-styleExecute the skills CLI command in your project's root directory to begin installation:
Fetches swift-style from johnrogers/claude-swift-engineering and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate swift-style. Access via /swift-style in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
0
total installs
0
this week
190
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
190
stars
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.
Make data-driven prioritization decisions faster
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Prerequisites
Time Estimate
30-60 minutes to see productivity improvements
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid when
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
mattpocock/skills
parcadei/continuous-claude-v3
cursor/plugins
ailabs-393/ai-labs-claude-skills
pproenca/dot-skills
mattpocock/skills
I recommend swift-style for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
We added swift-style from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Registry listing for swift-style matched our evaluation — installs cleanly and behaves as described in the markdown.
Solid pick for teams standardizing on skills: swift-style is focused, and the summary matches what you get after install.
swift-style reduced setup friction for our internal harness; good balance of opinion and flexibility.
swift-style has been reliable in day-to-day use. Documentation quality is above average for community skills.
swift-style is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
I recommend swift-style for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Useful defaults in swift-style — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
Keeps context tight: swift-style is the kind of skill you can hand to a new teammate without a long onboarding doc.
showing 1-10 of 52