swift-linux

swift-linux is a skill for Claude Code, Codex from OpenHands/extensions. It costs 32 tokens per session (660 once invoked), scanned B, original, MIT.

A guide for installing and configuring the Swift programming language on Debian Linux for server-side applications.

In plain words
What is it for?
It covers prerequisites, downloading a compatible Swift toolchain, installation, and basic environment setup on Debian 12.
Why use it?
It helps developers prepare a Linux machine for Swift development when Swift is not already installed or configured.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It covers prerequisites, downloading a compatible Swift toolchain, installation, and basic environment setup on Debian 12.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openhands/extensions/swift-linux
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OpenHands/extensions --skill swift-linux
Clone the repo
git clone --depth 1 https://github.com/OpenHands/extensions

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for swift-linux

README.md
[![agentmods](https://agentmods.dev/badge/skills/openhands/extensions/swift-linux/github.svg)](https://agentmods.dev/skills/openhands/extensions/swift-linux)
Your own site
<a href="https://agentmods.dev/skills/openhands/extensions/swift-linux"><img src="https://agentmods.dev/badge/skills/openhands/extensions/swift-linux/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for swift-linux

Your own site · 80×15
<a href="https://agentmods.dev/skills/openhands/extensions/swift-linux"><img src="https://agentmods.dev/badge/skills/openhands/extensions/swift-linux.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 660 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high YARA Match · line 70
    YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).
    Fix: Remove the malware payload or compromised file entirely. Investigate how it entered the skill and audit all other artifacts for additional indicators of compromise.
  • medium Privilege Escalation · line 24
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 25
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.00660
Opus 5 $0.00016 $0.00330
Sonnet 5 $0.00006 $0.00132
Haiku 4.5 $0.00003 $0.00066

Measured 9d ago against content hash e4c39d4cfd04, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

swift-linux scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt-get update

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

wget https://download.swift.org/swift-6.0.3-release/debian12/swift-6.0.3-RELEASE/swift-6.0.3-RELEASE-debian12.tar.gz
skills/swift-linux/SKILL.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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. On Windows, run these Debian commands inside WSL2 or a Linux container. For native Windows Swift, use the Windows toolchain from Swift.org instead.

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

  1. 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.gz
    

    Where <VERSION> is the Swift version number (e.g., 6.0.3).

  2. 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
  1. Extract the archive:

Note: Make sure to install Swift in the /workspace directory, but outside the git repository to avoid committing the Swift binaries.

  1. Add Swift to your PATH by adding the following line to your ~/.bashrc file:

Read the full file on GitHub · 83 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 83 lines · 32 tokens per session scan B e4c39d4cfd04

Subscribe to this mod's changes

swift-linux is a skill published in the GitHub repository OpenHands/extensions (144 stars, last pushed today), licensed MIT. It adds 32 tokens to every session and 660 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.