ios-swift-recipes/SKILL.md
Production Swift recipes from real App Store apps. Covers safe numeric conversion, Codable tricks, custom decoders, type-safe Dictionary extraction, ISO 8601 dates, UIKit navigation/alerts/maps, UIView effects (shadows, gradients, blur), keyboard...
npx skillsauth add peterbamuhigire/skills-web-dev ios-swift-recipesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
ios-swift-recipes or would be better handled by a more specific companion skill.SKILL.md first, then load only the referenced deep-dive files that are necessary for the task.Concrete, copy-pasteable Swift from Swift Recipes for iOS Developers (Nekrasov).
extension Double {
var asInt16: Int16? { Int16(exactly: self.rounded()) }
var asInt: Int? { Int(exactly: self.rounded()) }
}
// Never: Int16(someDouble) — crashes on out-of-range
// Always: someDouble.asInt16 — returns nil safely
// Prices: store as Int cents, never Double
extension Int { var asPrice: String { String(format: "%d.%02d", self/100, self%100) } }
extension Double {
var asPrice: String {
guard let cents = (self * 100.0).asInt else { return "" }
return String(format: "%d.%02d", cents/100, cents%100)
}
}
Extended guidance for ios-swift-recipes was moved to references/skill-deep-dive.md to keep this entrypoint compact and fast to load.
Use that deep dive for:
2. Reusable NumberFormatter (Critical for scroll performance)3. ISO 8601 Date Handling4. Encodable/Decodable Universal Extensions5. Custom Decoder — Handle API Type Mismatches6. Type-Safe Dictionary Extraction7. String Validation8. SHA256 Password Hashing with Salt9. UIViewController Navigation Helpers10. UIView Visual Effects (IBDesignable)11. Keyboard Handling — Animated Layout Shift12. UITextField Real-Time Formatting13. UIImage Processingdata-ai
Use when adding AI-powered analytics to a SaaS platform — semantic search over business data, natural language queries, trend detection, anomaly alerts, and AI-generated insights for dashboards. Covers embeddings, NL2SQL, and per-tenant analytics...
data-ai
Design AI-powered analytics dashboards — what metrics to show, how to display AI predictions and confidence, drill-down patterns, KPI cards, trend visualisation, AI Insights panels, export design, and role-based dashboard variants. Invoke when...
development
Use when designing, building, reviewing, or upgrading production software systems that must be secure, performant, maintainable, scalable, and user-centered. Apply before writing specs, code, architecture, APIs, databases, mobile apps, SaaS platforms, or ERP systems.
development
Professional web app UI using commercial templates (Tabler/Bootstrap 5) with strong frontend design direction when needed. Use for CRUD interfaces, dashboards, admin panels with SweetAlert2, DataTables, Flatpickr. Clone seeder-page.php, use...