DevOps95

SwiftFairy

Skills and CLAUDE.md weren't enough to keep Claude's SwiftUI code on track, so we gave it a static-analysis reviewer over MCP

r/ClaudeAIu/hishnash29 septembre 2026

Capture du projet

Résumé

SwiftFairy est une application Mac qui utilise un serveur MCP local pour analyser le code SwiftUI écrit par Claude et fournir des retours détaillés pour améliorer la qualité du code. L'application utilise l'analyse statique déterministe pour vérifier le code contre un ensemble de règles et fournit des résultats concis et dédupliqués.

Pourquoi c’est intéressant

SwiftFairy est intéressant car il résout le problème de la perte de focus de Claude lors de la rédaction de code SwiftUI en fournissant des retours détaillés et concis pour améliorer la qualité du code. L'utilisation de l'analyse statique déterministe et la prise en charge de plusieurs langages de programmation et outils de développement font de SwiftFairy un outil polyvalent et utile pour les développeurs.

Comment Claude est utilisé

L'application utilise Claude Code pour écrire du code SwiftUI, puis envoie ce code à un serveur MCP local pour analyse statique déterministe.

Idées dérivées

  1. 01

    Analyseur de code multilangage

    Un outil similaire pour analyser et améliorer le code écrit par Claude dans d'autres langages de programmation, comme Python ou Java.

  2. 02

    Intégration de SwiftFairy avec d'autres outils de dev

    Un système d'intégration de SwiftFairy avec d'autres outils de développement pour offrir une expérience de développement plus complète et intégrée.

  3. 03

    Génération de tests unitaires avec Claude

    Un projet visant à utiliser Claude pour générer des tests unitaires pour les applications SwiftUI, en utilisant les capacités d'analyse statique de SwiftFairy.

Afficher le post original
I'm one of the two developers behind this (Nil Coalescing), so take it with the usual grain of salt. The problem: telling Claude how to write good SwiftUI up front doesn't hold. The guidance is loaded at the start, and by the time Claude writes a list or a chart, it has drifted out of focus. More instructions just cost more tokens. What we built: SwiftFairy, a Mac app that runs a local MCP server. Claude sends the code it just wrote, and the app parses it into a partial graph of your project (the changed files plus the declarations they depend on) and checks that graph against a set of rules. It's deterministic static analysis, with no second model. Claude gets back specific lines, what's wrong and how to fix it, and it's much better at acting on "line 42 has this issue" than at remembering a paragraph from earlier in the session. A few things we learned: • A concrete finding tied to a line is followed far more reliably than general guidance. • Returning less text helps. Results are deduplicated and kept short so they don't flood the context. • When the analyzer isn't sure, it says the problem is possible rather than definite, and Claude weighs it accordingly instead of over-correcting. It works with Claude Code, and also with Codex, Cursor and Gemini CLI. It ships with knowledge packs for SwiftUI, Swift Charts and modern Swift. The announcement post (https://nilcoalescing.com/blog/IntroducingSwiftFairy/) has examples. It's free to try for 24 hours with no card required, and current pricing is on the site. It needs macOS 26 on Apple silicon.