Agent skill
swift-linux
Install and configure Swift programming language on Debian Linux for server-side development. Use when building Swift applications on Linux or setting up a Swift development environment.
Install this agent skill to your Project
npx add-skill https://github.com/OpenHands/extensions/tree/main/skills/swift-linux
SKILL.md
Swift Installation Guide for Debian Linux
This document provides instructions for installing Swift on Debian 12 (Bookworm).
This setup is intended for non-UI development tasks on Swift on Linux.
Prerequisites
Before installing Swift, you need to install the required dependencies for your system. You can find the most up-to-date list of dependencies for your specific Linux distribution and version at the Swift.org tarball installation guide.
FOR EXAMPLE, the dependencies you may need to install for Debian 12 could be:
sudo apt-get update
sudo apt-get install -y \
binutils-gold \
gcc \
git \
libcurl4-openssl-dev \
libedit-dev \
libicu-dev \
libncurses-dev \
libpython3-dev \
libsqlite3-dev \
libxml2-dev \
pkg-config \
tzdata \
uuid-dev
Download and Install Swift
-
Find the latest Swift version for Debian:
Go to the Swift.org download page to find the latest Swift version compatible with Debian 12 (Bookworm).
Look for a tarball named something like
swift-<VERSION>-RELEASE-debian12.tar.gz(e.g.,swift-6.0.3-RELEASE-debian12.tar.gz).The URL pattern is typically:
https://download.swift.org/swift-<VERSION>-release/debian12/swift-<VERSION>-RELEASE/swift-<VERSION>-RELEASE-debian12.tar.gzWhere
<VERSION>is the Swift version number (e.g.,6.0.3). -
Download the Swift binary for Debian 12:
cd /workspace
wget https://download.swift.org/swift-6.0.3-release/debian12/swift-6.0.3-RELEASE/swift-6.0.3-RELEASE-debian12.tar.gz
- Extract the archive:
Note: Make sure to install Swift in the
/workspacedirectory, but outside the git repository to avoid committing the Swift binaries.
- Add Swift to your PATH by adding the following line to your
~/.bashrcfile:
echo 'export PATH=/workspace/swift-6.0.3-RELEASE-debian12/usr/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
Note: Make sure to update the version number in the PATH to match the version you downloaded.
Verify Installation
Verify that Swift is correctly installed by running:
swift --version
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
releasenotes
Generate formatted changelogs from git history since the last release tag. Use when preparing release notes that categorize changes into breaking changes, features, fixes, and other sections.
bitbucket
Interact with Bitbucket repositories and pull requests using the BITBUCKET_TOKEN environment variable. Use when working with code hosted on Bitbucket or managing Bitbucket resources via API.
add-skill
Add an external skill from a GitHub repository to the current workspace. Use when users want to import, install, or add a skill from a GitHub URL (e.g., `/add-skill https://github.com/OpenHands/extensions/tree/main/skills/codereview` or "add the codereview skill from https://github.com/OpenHands/extensions/"). Handles fetching the skill files and placing them in .agents/skills/.
add-javadoc
Add comprehensive JavaDoc documentation to Java classes and methods. Use when documenting Java code, adding API documentation, or improving code documentation.
flarglebargle
A test skill that responds to the magic word "flarglebargle" with a compliment. Use for testing skill activation and trigger functionality.
codereview-roasted
Brutally honest code review in the style of Linus Torvalds, focusing on data structures, simplicity, and pragmatism. Use when you want critical, no-nonsense feedback that prioritizes engineering fundamentals over style preferences.
Didn't find tool you were looking for?