Agent skill

Swiftui Debugging

by gustavscirulis in gustavscirulis/snapgrid

Diagnose SwiftUI performance issues including unnecessary re-renders, view identity problems, and slow body evaluations.

Custom licenceAuto-check passedMobile

Install Swiftui Debugging

skills CLI
$ npx skills add gustavscirulis/snapgrid --skill swiftui-debugging -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install gustavscirulis/snapgrid swiftui-debugging --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/gustavscirulis/snapgrid.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/skills/performance/swiftui-debugging .claude/skills/swiftui-debugging && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
swiftui-debugging
GitHub stars
117
Used in
1 other repo
Token cost
~1.6k tokens
SKILL.md length
529 words
Files
5
Skills in repo
118
Repo updated
First seen
Licence
Custom licence

At a glance

Diagnose SwiftUI performance issues including unnecessary re-renders, view identity problems, and slow body evaluations.

  • Works in 5 steps: Xcode > Product > Profile (Cmd+I) → Choose SwiftUI template (includes View… → Record, reproduce the slow interaction,… → …
  • SwiftUI views are slow
  • SKILL.md covers When This Skill Activates, Decision Tree, API Availability and Top 5 Mistakes -- Quick…, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Swiftui Debugging is an agent skill from gustavscirulis/snapgrid. Diagnose SwiftUI performance issues including unnecessary re-renders, view identity problems, and slow body evaluations. Use when SwiftUI views are slow, janky, or re-rendering too often.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files (for example `body-reevaluation.md`, `common-pitfalls.md` and `lazy-loading.md`).

It sits in Mobile, covering iOS development and Debugging. It works with SwiftUI and iOS. The repository describes itself as: SnapGrid is an open-source Mac app for collecting, organizing, and analyzing UI screenshots. It uses AI to automatically detect UI components and patterns, making it a powerful…

When your agent uses it

  • SwiftUI views are slow
  • Re-rendering too often

Example prompts

  • “/swiftui-debugging”

Requirements

  • Pre-approved tools (allowed-tools): Read, Glob, Grep

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Xcode > Product > Profile (Cmd+I)
  2. Choose SwiftUI template (includes View Body, View Properties, Core Animation Commits)
  3. Record, reproduce the slow interaction, stop
  4. View Body lane shows which views had their body evaluated and how often
  5. View Properties lane shows which properties changed

What it can do on your machine

Read from SKILL.md and the folder at commit eb7eaf4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are swift).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Swiftui Debugging loads about 1.6k tokens when it runs. Until then it costs about 51 tokens; SKILL.md has 529 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~51
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 529 words (~1,600 tokens).

“Systematic guide for diagnosing and fixing SwiftUI performance problems: unnecessary view re-evaluations, identity issues, expensive body computations, and lazy loading mistakes.”

— opening of SKILL.md by gustavscirulis, Custom licence
name
swiftui-debugging
allowed-tools
Read, Glob, Grep

Read the full SKILL.md on GitHub

Files

SKILL.md and 4 other files in .claude/skills/skills/performance/swiftui-debugging of gustavscirulis/snapgrid.

  • SKILL.md
  • body-reevaluation.md
  • common-pitfalls.md
  • lazy-loading.md
  • view-identity.md

Open the folder on GitHubat commit eb7eaf4

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in gustavscirulis/snapgrid, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Swiftui Debugging next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Swiftui Debugging compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Swiftui Debugging this skillgustavscirulis/snapgrid1171 repos~1.6kAutomated safety check: PassCustom licence
C Bounds Safetysuperagents-lab/xcode27-skills338—~732Automated safety check: PassNone
Apple Crash Log .NET Symbolicationdotnet/skills5.6k1 repos~2.4kAutomated safety check: PassMIT
Update Swiftui APIsAvdLee/SwiftUI-Agent-Skill3.7k—~1.2kAutomated safety check: PassMIT
Swiftui Liquid Glassharperreed/dotfiles3348 repos~941Automated safety check: PassNone
Swiftui Expert Skillomarshahine/HomeClaw1764 repos~2.8kAutomated safety check: PassMIT

Similar skills

  • C Bounds Safety

    superagents-lab/xcode27-skills

    Guide for the C -fbounds-safety language extension. An agent skill from superagents-lab/xcode27-skills.

    338 GitHub stars~732 tokensUpdated 4 mo ago
    MobileAuto-check passed
  • Official

    Resolves .NET runtime frames in Apple .ips crash logs to function names, source files and line numbers using dSYM symbols, atos and the Microsoft symbol server.

    5.6k GitHub starsUsed in 1 repo~2.4k tokens
    MobileAuto-check passed
  • Update Swiftui APIs

    AvdLee/SwiftUI-Agent-Skill

    Scan Apple's SwiftUI documentation for deprecated APIs and update the SwiftUI Expert Skill with modern replacements.

    3.7k GitHub stars~1.2k tokensUpdated 2 days ago
    MobileAuto-check passed
  • Swiftui Liquid Glass

    harperreed/dotfiles

    Implement, review, or improve SwiftUI features using the iOS 26+ Liquid Glass API.

    334 GitHub starsUsed in 8 repos~941 tokens
    MobileAuto-check passed
  • Swiftui Expert Skill

    omarshahine/HomeClaw

    A skill your agent uses when writing, reviewing, or refactoring SwiftUI code for iOS or macOS, including state management, view composition, performance, Liquid Glass adoption, or Instruments .trace…

    176 GitHub starsUsed in 4 repos~2.8k tokens
    MobileAuto-check passed
  • Hig Project Context

    raintree-technology/hig-doctor

    Create or update a shared Apple design context document that other HIG skills use to tailor guidance.

    143 GitHub starsUsed in 5 repos~1.2k tokens
    MobileAuto-check passed

More from gustavscirulis/snapgrid

All 118 skills in this repo
  • Interaction Design

    gustavscirulis/snapgrid

    Design and implement microinteractions, motion design, transitions, and user feedback patterns.

    117 GitHub starsUsed in 3 repos~2k tokens
    Auto-check passed
  • Core ML

    gustavscirulis/snapgrid

    Core ML, Create ML, Vision framework, Natural Language framework, on-device ML integration.

    117 GitHub starsUsed in 2 repos~3.8k tokens
    Auto-check: notes
  • Force Update

    gustavscirulis/snapgrid

    Generates a minimum version enforcement system with hard-block and soft-prompt update flows, App Store redirect, and remote config or App Store lookup for version checks.

    117 GitHub starsUsed in 2 repos~2.3k tokens
    Auto-check: notes
  • Market Research

    gustavscirulis/snapgrid

    Deep market analysis for iOS/macOS apps including market sizing (TAM/SAM/SOM), growth trends, market maturity, entry barriers, distribution channels, and revenue potential.

    117 GitHub starsUsed in 2 repos~3.1k tokens
    Auto-check passed
  • Account Deletion

    gustavscirulis/snapgrid

    Generates an Apple-compliant account deletion flow with multi-step confirmation UI, optional data export, configurable grace period, Keychain cleanup, and server-side deletion request.

    117 GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check: notes
  • Alarmkit

    gustavscirulis/snapgrid

    AlarmKit integration for scheduling alarms and timers with custom UI, Live Activities, and snooze support.

    117 GitHub starsUsed in 1 repo~1.3k tokens
    Auto-check passed

Works with

Categories

Questions about Swiftui Debugging

What does Swiftui Debugging do?

Diagnose SwiftUI performance issues including unnecessary re-renders, view identity problems, and slow body evaluations. Swiftui Debugging is an agent skill from gustavscirulis/snapgrid. Diagnose SwiftUI performance issues including unnecessary re-renders, view identity problems, and slow body evaluations.

When should I use Swiftui Debugging?

Swiftui Debugging fits situations like: swiftUI views are slow; re-rendering too often.

How do I install Swiftui Debugging in Claude Code?

Run `npx skills add gustavscirulis/snapgrid --skill swiftui-debugging -a claude-code`. Or copy the skill folder (.claude/skills/skills/performance/swiftui-debugging in gustavscirulis/snapgrid) into .claude/skills/swiftui-debugging in your project. Claude Code loads it when a task matches its description.

How do I install Swiftui Debugging in Codex?

Run `npx skills add gustavscirulis/snapgrid --skill swiftui-debugging -a codex`. Or copy the skill folder (.claude/skills/skills/performance/swiftui-debugging in gustavscirulis/snapgrid) into .agents/skills/swiftui-debugging in your project. Codex loads it when a task matches its description.

Can I use Swiftui Debugging in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add gustavscirulis/snapgrid --skill swiftui-debugging -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/swiftui-debugging, .gemini/skills/swiftui-debugging, .github/skills/swiftui-debugging and .opencode/skills/swiftui-debugging in your project.

What does Swiftui Debugging need to run?

SKILL.md names no scripts, command-line tools or credentials: Swiftui Debugging is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Glob, Grep.

Does Swiftui Debugging access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Swiftui Debugging safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Swiftui Debugging use?

Swiftui Debugging has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Swiftui Debugging use?

About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Swiftui Debugging?

Skills that share tags, products or a category with Swiftui Debugging: C Bounds Safety (superagents-lab/xcode27-skills, 338 stars), Apple Crash Log .NET Symbolication (dotnet/skills, 5.6k stars), Update Swiftui APIs (AvdLee/SwiftUI-Agent-Skill, 3.7k stars) and Swiftui Liquid Glass (harperreed/dotfiles, 334 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Swiftui Debugging?

gustavscirulis (a GitHub user) maintains it in gustavscirulis/snapgrid, which has 117 GitHub stars. The repository holds 118 skills in this directory. The repository was last updated on April 30, 2026.

Source: gustavscirulis/snapgrid on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.