ai-development-skills / swift-focusengine-pro
llms.txt7 starsChanged 15 days agoMITView on GitHub
AI agent skill for correct focus management code on all Apple platforms (tvOS, iOS/iPadOS, watchOS, visionOS, macOS). Swift FocusEngine Pro is a free, open-source agent skill that helps AI coding assistants write correct focus management code for Apple platforms. It covers SwiftUI, UIKit, AppKit, and RealityKit — targeting the mistakes LLMs actually make with Apple's focus engine. Works with Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and any tool supporting the Agent Skills format (agentskills.io). 4,500+ lines across 14…
2 other projects use a version of this.
Adopted by
Most recently taken up by
- VelimirMueller/claude-skillsword for word, first seen Nov 1, 2026
- mhaviv/Swift-FocusEngine-Agent-Skillword for word, first seen Apr 9, 2026
Other versions2 projects use a version of this.
Word for word · 2
- mhaviv/Swift-FocusEngine-Agent-Skill★ 20100% same
- VelimirMueller/claude-skills★ 7100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository156 other files it gives its agents.
- skills/swift/swiftui-design-principles/AGENTS.mdAGENTS.md
- skills/swift/ios-code-audit/CLAUDE.mdCLAUDE.md
- build-llm-seamSkill
- build-mcp-serverSkill
- build-rag-pipelineSkill
- secure-llm-featuresSkill
- set-up-llm-evalsSkill
- build-nextjs-backendSkill
- build-supabase-edge-functionSkill
- configure-backend-testsSkill
- design-http-apiSkill
- harden-backendSkill
- scaffold-fastapi-serviceSkill
- scaffold-go-serviceSkill
- scaffold-hono-serviceSkill
- secure-supabase-rlsSkill
- set-up-backend-authSkill
- set-up-background-jobsSkill
- set-up-databaseSkill
- set-up-nextjs-supabase-authSkill
- set-up-observabilitySkill
- set-up-supabaseSkill
- build-cliSkill
- release-cliSkill
- set-up-dev-toolchainSkill
- audit-securitySkill
- audit-toolchainSkill
- extend-skillsetSkill
- promote-releaseSkill
- set-up-stack-profileSkill
- write-commit-messagesSkill
- write-pull-requestsSkill
- analyze-complexitySkill
- apply-algorithmsSkill
- apply-design-patternsSkill
- apply-design-principlesSkill
- apply-solidSkill
- choose-data-structureSkill
- debug-systematicallySkill
- enforce-dependency-ruleSkill
- refactor-safelySkill
- slice-and-estimateSkill
- write-clean-testsSkill
- write-readable-codeSkill
- clean-frontend-scaffoldingSkill
- configure-accessibilitySkill
- configure-analyticsSkill
- configure-ciSkill
- configure-error-trackingSkill
- configure-lintingSkill
- configure-test-stackSkill
- configure-typescriptSkill
- create-moduleSkill
- optimize-performanceSkill
- scaffold-frontend-projectSkill
- set-up-authSkill
- set-up-design-systemSkill
- set-up-document-headSkill
- set-up-error-boundariesSkill
- set-up-feature-flagsSkill
- The first 60 shown.
The file
Files
# Swift FocusEngine Pro > AI agent skill for correct focus management code on all Apple platforms (tvOS, iOS/iPadOS, watchOS, visionOS, macOS). ## What It Is Swift FocusEngine Pro is a free, open-source agent skill that helps AI coding assistants write correct focus management code for Apple platforms. It covers SwiftUI, UIKit, AppKit, and RealityKit — targeting the mistakes LLMs actually make with Apple's focus engine. Works with Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and any tool supporting the Agent Skills format (agentskills.io). ## Who It's For - tvOS developers building apps where every interaction depends on the focus engine - iOS/iPadOS developers adding keyboard, game controller, or Stage Manager support - visionOS developers navigating gaze vs hover vs focus in spatial computing - watchOS developers working with Digital Crown and sequential focus - macOS developers managing the key view loop, focus rings, and focusedValue menu commands ## Install ``` npx skills add https://github.com/mhaviv/Swift-FocusEngine-Agent-Skill --skill swift-focusengine-pro -g -y ``` ## What It Covers 4,500+ lines across 14 reference files: 30 anti-patterns (incl. production tvOS patterns from large-scale media-app development), SwiftUI focus (tvOS), UIKit focus (tvOS), iOS/iPadOS focus, watchOS focus, visionOS focus, macOS focus, RealityKit focus, focus styling, focus restoration, layout patterns (sidebar focus gating, scroll edge fade, scale matching), async focus coordination (@Observable integration, ScrollPosition vs ScrollViewReader), accessibility focus, and debugging tools (focus cascade debugging). ## Key Links - Repository: https://github.com/mhaviv/Swift-FocusEngine-Agent-Skill - Skill definition: SKILL.md - Reference files: references/ - Install instructions: README.md#installing - Agent Skills format: https://agentskills.io - Listed in: https://github.com/twostraws/Swift-Agent-Skills ## Author Michael Haviv — https://github.com/mhaviv
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

