Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

data-flow

Skill by rshankras

data-flow is a SwiftUI skill that explains view identity, lifetime, and dependencies, plus state ownership rules. It is for iOS and macOS developers debugging state resets, re-renders, and animation glitches.

  • Score 79
  • 909 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install data-flow

Built from the published package, never by AI.

git clone --depth 1 https://github.com/rshankras/claude-code-apple-skills /tmp/claude-code-apple-skills && mkdir -p ~/.claude/skills && cp -r /tmp/claude-code-apple-skills/skills/swiftui/data-flow ~/.claude/skills/data-flow

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install data-flow in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives an AI assistant SwiftUI's data-flow model. It covers view identity, state lifetime, dependency tracking, and when to use @State, @Binding, @Bindable, @Environment, or a plain property. It also covers Observation's per-property tracking, body performance rules, and the main-actor concurrency contract. The source says it draws on Apple's Demystify sessions, Data Essentials, and Observation material, current through the WWDC26 @State macro.

The skill is written for SwiftUI developers. It lists symptoms it applies to, such as state that resets unexpectedly, views that re-render too often, and animations that crossfade instead of moving. It proposes checking identity first, then lifetime, dependencies, and ownership. The source targets iOS 27 and macOS 27.

Written from the project's SKILL.md and checked against it.

What it can do

  • Identity checksExplains structural and explicit identity and why if/else branches reset state.
  • Inert-modifier fixRecommends one view with varying modifiers instead of branching between two views.
  • ForEach identifier rulesLists rules for stable, unique, non-index IDs to avoid flashing or misplaced rows.
  • State ownership tableMaps situations such as parent-owned data or local UI state to the correct property wrapper.
  • Observation guidanceDescribes per-property, per-instance tracking and migration from ObservableObject.
  • Body disciplineAdvises keeping body pure and using Self._printChanges() to see why body ran.
  • Concurrency contractCovers main-actor view code and copying values into closures run off the main actor.
  • Review output formatStructures findings as Symptom, Root cause, and Fix.

What you need

  • iOS 27 or macOS 27 target, as listed in the source metadata

Try asking

  • Why does my @State reset when this view's condition changes?
  • Review this SwiftUI view for identity and state ownership problems.
  • Should this observable model use @State, @Bindable, or a plain property?

Good to know

  • Self._printChanges() is for debugging only and should not ship.
  • Instruments-based profiling is covered by a separate skill, performance/swiftui-debugging.
  • Concurrency guidance is based on WWDC25 material.

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

Checked automatically: skills/swiftui/data-flow/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteEditGlobGrep

Alternatives to data-flow

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

data-flow: common questions

What does the data-flow skill help fix?

The source says it helps with state that resets, views that re-render too often, and animations that glitch between branches. It also helps choose between property wrappers.

Does it cover Observation and @Observable?

Yes. The source describes Observation's per-property tracking and how to migrate from ObservableObject to @Observable.

Which OS versions does it target?

The source metadata lists iOS 27 and macOS 27, and it references the WWDC26 @State macro.

How do I install data-flow?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is data-flow free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is data-flow safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.

What are alternatives to data-flow?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

data-flow Install

Add to stack

Loading.