Agent skill

A2ui Swift Development

by a2ui-project in a2ui-project/a2ui

Grounding, coding standards, testing practices, and verification workflows for developing in the A2UI Swift codebase (under the swift/ directory).

Apache-2.0Auto-check passedMobile

Install A2ui Swift Development

skills CLI
$ npx skills add a2ui-project/a2ui --skill a2ui-swift-development -a claude-code

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

GitHub CLI
$ gh skill install a2ui-project/a2ui a2ui-swift-development --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/a2ui-project/a2ui.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/a2ui-swift-development .claude/skills/a2ui-swift-development && 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
a2ui-swift-development
GitHub stars
17k
Token cost
~1.4k tokens
SKILL.md length
418 words
Files
1
Skills in repo
20
Repo updated
First seen
Licence
Apache-2.0

At a glance

Grounding, coding standards, testing practices, and verification workflows for developing in the A2UI Swift codebase (under the swift/ directory).

  • Works in 6 steps: Specification and blueprint grounding → Swift target architecture → Mandatory coding standards → …
  • Implementing features
  • SKILL.md covers 1. Specification and blueprint…, 2. Swift target architecture, 3. Mandatory coding standards and 4. Swift Testing conventions, plus 2 more sections
  • Calls swift; reaches apache.org

What it does

A2ui Swift Development is an agent skill from a2ui-project/a2ui. Grounding, coding standards, testing practices, and verification workflows for developing in the A2UI Swift codebase (under the swift/ directory). Use whenever implementing features, modifying state logic, creating SwiftUI views, or writing tests in Swift.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Mobile, covering iOS development and Code quality. It works with SwiftUI. The licence is Apache-2.0.

When your agent uses it

  • Implementing features
  • Modifying state logic
  • Creating SwiftUI views
  • Writing tests in Swift

Example prompts

  • “/a2ui-swift-development”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Specification and blueprint grounding
  2. Swift target architecture
  3. Mandatory coding standards
  4. Swift Testing conventions
  5. Verification workflow
  6. Integration with repository skills

What it can do on your machine

Read from SKILL.md and the folder at commit ae466ff. 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:

    • swift

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

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • apache.org

    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

A2ui Swift Development loads about 1.4k tokens when it runs. Until then it costs about 70 tokens; SKILL.md has 418 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~70
When it runs · the whole SKILL.md, loaded when a task matches
~1.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 a2ui-project/a2ui at commit ae466ff, republished under its Apache-2.0 licence (© a2ui-project). 418 words, ~1,441 tokens.

Download SKILL.mdSave it as .claude/skills/a2ui-swift-development/SKILL.md (or your agent's skills folder).
name
a2ui-swift-development
description
Grounding, coding standards, testing practices, and verification workflows for developing in the A2UI Swift codebase (under the swift/ directory). Use whenever implementing features, modifying state logic, creating SwiftUI views, or writing tests in Swift.

Swift development skill

This skill guides AI agents and contributors working in the swift/ directory. It outlines target boundaries, coding standards, testing patterns, and mandatory verification steps.


1. Specification and blueprint grounding

Before modifying or implementing Swift code, inspect the authoritative specifications:

  • Protocol envelopes and schemas: specification/v0_9_1/json/ defines wire-format types and validation schemas.
  • Component catalog schema: basic/catalog.json defines components, properties, and function signatures.
  • Core module blueprint: a2ui_core.blueprint.md specifies state handling, JSON pointer rules, auto-vivification, and error semantics.
  • Framework adapter blueprint: a2ui_framework_adapter.blueprint.md specifies view mapping, reactive subscription lifecycles, and layout behavior.
  • Reference implementation: typescript/web_core/ serves as the canonical behavioral reference for edge-case resolution.

2. Swift target architecture

The Swift implementation uses targets defined in root Package.swift:

  • A2UIJSON (core/Sources/A2UIJSON): Pure JSON Schema 2020-12 definitions and remote schema registry storage.
  • A2UICore (core/Sources/A2UICore): Stateful runtime engine managing MessageProcessor, DataModel, SurfaceGroupModel, pointer evaluation, and action routing.
  • BasicCatalog (core/Sources/BasicCatalog): Core schema definitions and function handlers for Basic Catalog components.
  • A2UISwiftUI (swiftui/Sources/A2UISwiftUI): SwiftUI adapter providing the root Surface view, recursive ComponentNodeView, and environment keys.
  • BasicCatalogSwiftUI (swiftui/Sources/BasicCatalog): Concrete SwiftUI view implementations conforming to ComponentImplementation.
  • A2UISampleClient (swift/sample): Interactive iOS Gallery application managed via Xcode project file.

3. Mandatory coding standards

All Swift code must strictly follow swift/CODING_STANDARDS.md and the Google Swift Style Guide:

  1. One primary type per file: Every class, struct, enum, and protocol must live in a dedicated file named after the type.
  2. 100-character line limit: No line of code, comment, docstring, or markdown may exceed 100 characters.
  3. 2-space indentation: Enforced by swift-format.
  4. Apache 2.0 copyright header: Required on every new .swift file:
    swift
    // Copyright 2024 Google LLC
    //
    // Licensed under the Apache License, Version 2.0 (the "License");
    // you may not use this file except in compliance with the License.
    // You may obtain a copy of the License at
    //
    //     https://www.apache.org/licenses/LICENSE-2.0
    //
    // Unless required by applicable law or agreed to in writing, software
    // distributed under the License is distributed on an "AS IS" BASIS,
    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
  5. Safe optional handling: Never use force-unwrapping (!) or forced tries (try!). Use optional bindings (if let, guard let) or propagate throwing errors.

Show full SKILL.md (163 more words)Show less

4. Swift Testing conventions

Tests use the native Swift Testing framework:

  • Import Testing instead of XCTest.
  • Annotate test functions with @Test.
  • Use #expect(...) for assertions.
  • In tests, replace force unwraps with try #require(...) to produce clean test failures instead of crashes.
  • Avoid @testable import. Test only the public API surface.
  • Use standard camelCase identifiers for test function names without backticks or spaces.

5. Verification workflow

After making any code changes in swift/, run this verification sequence from the repository root:

  1. Auto-format code:
    bash
    swift-format format -i -r Package.swift swift/
  2. Lint check:
    bash
    swift-format lint -r Package.swift swift/
  3. Run unit tests:
    bash
    swift test
    Or run filtered tests during iterative development:
    bash
    swift test --filter A2UICoreTests
    swift test --filter A2UISwiftUITests
  4. Compile check:
    bash
    swift build

6. Integration with repository skills

© a2ui-project, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/a2ui-swift-development of a2ui-project/a2ui.

Open the folder on GitHubat commit ae466ff

Compare with similar skills

A2ui Swift Development 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.

A2ui Swift Development compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
A2ui Swift Development this skilla2ui-project/a2ui17k—~1.4kAutomated safety check: PassApache-2.0
Swiftui Protwostraws/SwiftUI-Agent-Skill5k2 repos~1kAutomated safety check: PassMIT
Swiftui UI PatternsAFK-surf/OpenBridge4304 repos~887Automated safety check: PassMIT
Swiftui Performance Auditharperreed/dotfiles3348 repos~1.4kAutomated safety check: PassNone
Hig Project Contextraintree-technology/hig-doctor1425 repos~1.2kAutomated safety check: PassMIT
Coding Best PracticesKartikLabhshetwar/better-shot2.4k2 repos~1.8kAutomated safety check: PassCustom licence

Similar skills

  • Swiftui Pro

    twostraws/SwiftUI-Agent-Skill

    Comprehensively reviews SwiftUI code for best practices on modern APIs, maintainability, and performance.

    5k GitHub starsUsed in 2 repos~1k tokens
    MobileAuto-check passed
  • Swiftui UI Patterns

    AFK-surf/OpenBridge

    Best practices and example-driven guidance for building SwiftUI views and components.

    430 GitHub starsUsed in 4 repos~887 tokens
    MobileAuto-check passed
  • Swiftui Performance Audit

    harperreed/dotfiles

    Audit and improve SwiftUI runtime performance from code review and architecture.

    334 GitHub starsUsed in 8 repos~1.4k 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.

    142 GitHub starsUsed in 5 repos~1.2k tokens
    MobileAuto-check passed
  • Coding Best Practices

    KartikLabhshetwar/better-shot

    Reviews macOS Swift 6+ code for modern idioms, SOLID principles, SwiftData patterns, and concurrency best practices.

    2.4k GitHub starsUsed in 2 repos~1.8k tokens
    DevelopmentAuto-check passed
  • Hig Components Content

    raintree-technology/hig-doctor

    Apple Human Interface Guidelines for content display components.

    142 GitHub starsUsed in 5 repos~1.3k tokens
    MobileAuto-check passed

More from a2ui-project/a2ui

All 20 skills in this repo
  • A2ui Remediate Problem

    a2ui-project/a2ui

    Remediates a specific recommendation from an A2UI compliance report issue, or resolves any general GitHub issue, by inspecting context, implementing minimal targeted fixes, verifying tests, creating…

    17k GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • A2ui Issue Triage

    a2ui-project/a2ui

    Automates the triage of GitHub issues in the A2UI repository.

    17k GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • A2ui Audit

    a2ui-project/a2ui

    Main coordination skill to run the blueprint compliance, documentation synchronization, and test quality audits, posting the combined results as a labeled GitHub issue.

    17k GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Iterative benchmarking, evaluation, and algorithmic optimization of alternative A2UI inference formats (such as Express, Atom, and Elemental).

    17k GitHub stars~985 tokensUpdated today
    Auto-check passed
  • Automated generator for strongly typed Pydantic v2 data models and basic catalogs across any A2UI protocol version (v0.8, v0.9, v0.9.1, v1.0, etc.).

    17k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • A2ui Python Development

    a2ui-project/a2ui

    Grounding, architectural standards, Python best practices, package facade conventions, testing, and verification workflows for developing any Python code across the entire A2UI repository (core…

    17k GitHub stars~2.4k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about A2ui Swift Development

What does A2ui Swift Development do?

Grounding, coding standards, testing practices, and verification workflows for developing in the A2UI Swift codebase (under the swift/ directory). A2ui Swift Development is an agent skill from a2ui-project/a2ui. Grounding, coding standards, testing practices, and verification workflows for developing in the A2UI Swift codebase (under the swift/ directory).

When should I use A2ui Swift Development?

A2ui Swift Development fits situations like: implementing features; modifying state logic; creating SwiftUI views; writing tests in Swift.

How do I install A2ui Swift Development in Claude Code?

Run `npx skills add a2ui-project/a2ui --skill a2ui-swift-development -a claude-code`. Or copy the skill folder (.agents/skills/a2ui-swift-development in a2ui-project/a2ui) into .claude/skills/a2ui-swift-development in your project. Claude Code loads it when a task matches its description.

How do I install A2ui Swift Development in Codex?

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

Can I use A2ui Swift Development 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 a2ui-project/a2ui --skill a2ui-swift-development -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/a2ui-swift-development, .gemini/skills/a2ui-swift-development, .github/skills/a2ui-swift-development and .opencode/skills/a2ui-swift-development in your project.

What does A2ui Swift Development need to run?

Going by SKILL.md and its folder, A2ui Swift Development needs the command-line tools its instructions call (swift).

Does A2ui Swift Development access the network?

SKILL.md names 1 domain. In commands or code: apache.org; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is A2ui Swift Development 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 A2ui Swift Development use?

A2ui Swift Development is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does A2ui Swift Development use?

About 1.4k tokens (SKILL.md is roughly 5.8k 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 A2ui Swift Development?

Skills that share tags, products or a category with A2ui Swift Development: Swiftui Pro (twostraws/SwiftUI-Agent-Skill, 5k stars), Swiftui UI Patterns (AFK-surf/OpenBridge, 430 stars), Swiftui Performance Audit (harperreed/dotfiles, 334 stars) and Hig Project Context (raintree-technology/hig-doctor, 142 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains A2ui Swift Development?

a2ui-project (a GitHub organization) maintains it in a2ui-project/a2ui, which has 16,602 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on October 7, 2026.

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