swift-cli-apps

Community

Build fast, scriptable Swift command-line tools.

AuthorAutisticAF
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Provides clear patterns and practical examples to quickly build reliable Swift command-line tools, handle argument parsing, async operations, terminal I/O, and create interactive terminal UIs so developers avoid repetitive mistakes and fragile implementations.

Core Features & Use Cases

  • Argument parsing and subcommands with ArgumentParser (ParsableCommand and AsyncParsableCommand) for single-file utilities and git-style multi-command tools.
  • Asynchronous networking and file I/O examples for fetchers and data processors, plus stdin/stdout/stderr handling and signal cleanup for long-running tasks.
  • Terminal UI guidance using SwifTeaUI for interactive TUIs (forms, tables, spinners), packaging and distribution patterns including SwiftPM executables and Homebrew formulae.
  • Real-world use cases: a JSON-fetching CLI that outputs machine-readable data, an interactive TUI for browsing logs, and installable developer tools distributed via Homebrew.

Quick Start

Create a Swift command-line tool that uses ArgumentParser to accept a URL, asynchronously fetches JSON, and prints structured JSON to stdout for scripting.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: swift-cli-apps
Download link: https://github.com/AutisticAF/claude-code-apple-dev-plugin/archive/main.zip#swift-cli-apps

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.