Agent skill

Swiftui Backports

by shaps80 in shaps80/SwiftUIBackports

Find SwiftUIBackports replacements for SwiftUI APIs unavailable on a project deployment target.

MITAuto-check passedMobile

Install Swiftui Backports

skills CLI
$ npx skills add shaps80/SwiftUIBackports --skill swiftui-backports -a claude-code

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

GitHub CLI
$ gh skill install shaps80/SwiftUIBackports swiftui-backports --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/shaps80/SwiftUIBackports.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/swiftui-backports .claude/skills/swiftui-backports && 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-backports
GitHub stars
1.1k
Token cost
~604 tokens
SKILL.md length
248 words
Files
2 (incl. references)
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

Find SwiftUIBackports replacements for SwiftUI APIs unavailable on a project deployment target.

  • Works in 6 steps: Confirm the availability need. → Check whether SwiftUIBackports is… → Search the index. → …
  • Swift/SwiftUI compiler availability errors
  • SKILL.md covers Workflow and Example
  • Calls rg

What it does

Swiftui Backports is an agent skill from shaps80/SwiftUIBackports. Find SwiftUIBackports replacements for SwiftUI APIs unavailable on a project deployment target. Use for Swift/SwiftUI compiler availability errors, old iOS/tvOS/watchOS/macOS targets, or when implementing SwiftUI app features that may benefit from SwiftUIBackports.

Its SKILL.md is about 600 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files.

It sits in Mobile, covering iOS development. It works with SwiftUI, iOS and macOS. The repository describes itself as: A collection of SwiftUI backports for iOS, macOS, tvOS and watchOS. The licence is MIT.

When your agent uses it

  • Swift/SwiftUI compiler availability errors
  • Old iOS/tvOS/watchOS/macOS targets
  • Implementing SwiftUI app features that may benefit from SwiftUIBackports

Example prompts

  • “/swiftui-backports”

Workflow steps

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

  1. Confirm the availability need.
  2. Check whether SwiftUIBackports is available.
  3. Search the index.
  4. Decide native vs backport.
  5. Use the discovered API.
  6. If no index match exists, say no backport was found and choose another compatibility path.

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • rg

    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 Backports loads about 604 tokens when it runs, and up to ~8.4k if it reads all its reference files. Until then it costs about 71 tokens; SKILL.md has 248 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~71
When it runs · the whole SKILL.md, loaded when a task matches
~604
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.4k

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

The full file from shaps80/SwiftUIBackports at commit eaeff42, republished under its MIT licence (© shaps80). 248 words, ~604 tokens.

Download SKILL.mdSave it as .claude/skills/swiftui-backports/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
swiftui-backports
description
Find SwiftUIBackports replacements for SwiftUI APIs unavailable on a project deployment target. Use for Swift/SwiftUI compiler availability errors, old iOS/tvOS/watchOS/macOS targets, or when implementing SwiftUI app features that may benefit from SwiftUIBackports.

SwiftUI Backports

When SwiftUI API is newer than the deployment target, check the bundled backport index before hand-rolling compatibility code or raising the target.

Workflow

  1. Confirm the availability need.

    • Use this for compiler availability errors, planned use of modern SwiftUI APIs, or user requests to support older OS versions.
    • Find deployment target in Package.swift, .xcodeproj/project.pbxproj, .xcconfig, or target settings.
  2. Check whether SwiftUIBackports is available.

    • Search for SwiftUIBackports, SwiftBackports, or existing .backport usage.
    • If absent, suggest adding https://github.com/shaps80/SwiftUIBackports only when it fits the project. Do not add it unless asked.
  3. Search the index.

    • Use rg -i "<api-name>|<related-term>" references/Backports.jsonl first.
    • Read only matching JSONL records when possible; the first line is metadata, remaining lines are backport records.
    • Match by name first, then by kind and namespace.
    • If the project has an installed SwiftUIBackports checkout, you may confirm against its source when uncertain.
  4. Decide native vs backport.

    • If target platform is marked unavailable, do not suggest that backport.
    • If deployment target is lower than the entry's deprecated version, use or suggest the backport.
    • If deployment target is at or above deprecated, prefer native SwiftUI.
  5. Use the discovered API.

    • View modifiers: .backport.foo(...)
    • Types/views: usually Backport.Foo; use Backport<Any>.Foo if the compiler needs the fully qualified namespace.
    • Environment values: use the indexed environment key, such as @Environment(\.backportRequestReview).
  6. If no index match exists, say no backport was found and choose another compatibility path.

Do not implement new SwiftUIBackports APIs from this skill. This is for consuming the library.

Example

swift
sheetContent
    .backport.presentationDetents([.medium, .large])

Backport.LabeledContent("", value: 0)

@Environment(\.backportRequestReview) private var requestReview

© shaps80, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in skills/swiftui-backports of shaps80/SwiftUIBackports.

  • SKILL.md
  • references/Backports.jsonl

Open the folder on GitHubat commit eaeff42

Compare with similar skills

Swiftui Backports 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 Backports compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Swiftui Backports this skillshaps80/SwiftUIBackports1.1k—~604Automated safety check: PassMIT
Swiftui Expert Skillomarshahine/HomeClaw1754 repos~2.8kAutomated safety check: PassMIT
Hig Project Contextraintree-technology/hig-doctor1435 repos~1.2kAutomated safety check: PassMIT
Swiftui Expert SkillEslzzyl/Pixiv-SwiftUI1111 repos~2.9kAutomated safety check: PassAGPL-3.0
Hig Components Contentraintree-technology/hig-doctor1435 repos~1.3kAutomated safety check: PassMIT
SwiftUI Design SkillWholiver/swiftui-design-skill213—~2.8kAutomated safety check: PassMIT

Similar skills

  • 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…

    175 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
  • Swiftui Expert Skill

    Eslzzyl/Pixiv-SwiftUI

    A skill your agent uses when writing, reviewing, or refactoring SwiftUI code for iOS or macOS, including state and @Observable data flow, view composition, resizable layouts, safe areas, display…

    111 GitHub starsUsed in 1 repo~2.9k tokens
    MobileAuto-check passed
  • Hig Components Content

    raintree-technology/hig-doctor

    Apple Human Interface Guidelines for content display components.

    143 GitHub starsUsed in 5 repos~1.3k tokens
    MobileAuto-check passed
  • SwiftUI Design Skill

    Wholiver/swiftui-design-skill

    Guides the agent to design distinctive SwiftUI interfaces for iOS and macOS, with six anti-generic rules, a design direction workflow and a five-dimension review.

    213 GitHub stars~2.8k tokensUpdated 5 mo ago
    MobileAuto-check passed
  • Install Mimi Remote

    gaixianggeng/mimi-remote

    安装、配置、配对、迁移、升级、诊断、回滚或卸载 Mimi Remote;在 macOS 上安装和维护 Mimi Remote Mac 菜单栏 App / DMG,或通过 Homebrew、Linux user-systemd 部署 agentd;从源码构建 iPhone/iPad App;配置 Codex 主通道和可选 Claude Code 实验 Runtime。用户提出“安装 Mimi…

    104 GitHub stars~2.8k tokensUpdated today
    MobileAuto-check passed

Works with

Categories

Questions about Swiftui Backports

What does Swiftui Backports do?

Find SwiftUIBackports replacements for SwiftUI APIs unavailable on a project deployment target. Swiftui Backports is an agent skill from shaps80/SwiftUIBackports. Find SwiftUIBackports replacements for SwiftUI APIs unavailable on a project deployment target.

When should I use Swiftui Backports?

Swiftui Backports fits situations like: swift/SwiftUI compiler availability errors; old iOS/tvOS/watchOS/macOS targets; implementing SwiftUI app features that may benefit from SwiftUIBackports.

How do I install Swiftui Backports in Claude Code?

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

How do I install Swiftui Backports in Codex?

Run `npx skills add shaps80/SwiftUIBackports --skill swiftui-backports -a codex`. Or copy the skill folder (skills/swiftui-backports in shaps80/SwiftUIBackports) into .agents/skills/swiftui-backports in your project. Codex loads it when a task matches its description.

Can I use Swiftui Backports 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 shaps80/SwiftUIBackports --skill swiftui-backports -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-backports, .gemini/skills/swiftui-backports, .github/skills/swiftui-backports and .opencode/skills/swiftui-backports in your project.

What does Swiftui Backports need to run?

Going by SKILL.md and its folder, Swiftui Backports needs the command-line tools its instructions call (rg).

Does Swiftui Backports 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 Backports 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 Backports use?

Swiftui Backports is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Swiftui Backports use?

About 604 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 7.8k tokens, read only when the agent opens those files.

What are the alternatives to Swiftui Backports?

Skills that share tags, products or a category with Swiftui Backports: Swiftui Expert Skill (omarshahine/HomeClaw, 175 stars), Hig Project Context (raintree-technology/hig-doctor, 143 stars), Swiftui Expert Skill (Eslzzyl/Pixiv-SwiftUI, 111 stars) and Hig Components Content (raintree-technology/hig-doctor, 143 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Swiftui Backports?

shaps80 (a GitHub user) maintains it in shaps80/SwiftUIBackports, which has 1,099 GitHub stars. The repository was last updated on June 12, 2026.

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