1amageek

Swift Skills — AI skill for Claude Code

AI community

Swift library for the Agent Skills open standard — parse, write, validate, and manage SKILL.md bundles for Claude Code, OpenAI Codex, and other AI coding tools.

How to install Swift Skills

This entry records only its repository, not the path inside it, so there is no exact command to give. Open 1amageek/swift-skills and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Swift Skills does

Swift library for the Agent Skills open standard — parse, write, validate, and manage SKILL.md bundles for Claude Code, OpenAI Codex, and other AI coding tools.

Alternatives in AI

  • Osaurus — Own your AI. The native macOS harness for AI agents -- any model, persistent memory, autonomous execution, cry 5.1k ★
  • LLM For Zotero — An open-sourced research agent system deeply rooted in your Zotero library 2.8k ★
  • Llmwiki — Open Source Implementation of Karpathy's LLM Wiki 1.5k ★

README

SwiftSkill

A Swift library for working with [Agent Skills](https://agentskills.io) — the portable skill format used by [Claude Code](https://code.claude.com/docs/en/skills), [OpenAI Codex](https://developers.openai.com/codex/skills/), and other AI coding tools.

SwiftSkill provides parsing, writing, validation, file-system discovery, and drag & drop support (`Transferable`) for the SKILL.md format.

Requirements

  • Swift 6.2+
  • macOS 15+ / iOS 18+ / tvOS 18+ / watchOS 11+ / visionOS 2+

Installation

Add to your `Package.swift`:

dependencies: [
    .package(url: "https://github.com/1amageek/swift-skills.git", from: "0.1.0")
]

Then add `"SwiftSkill"` to your target's dependencies.

Overview

A skill is a directory bundle containing a `SKILL.md` file (YAML frontmatter + Markdown body) and optional supporting files. In Swift, the entire bundle is represented as a single `struct Skill` — no filesystem awareness is needed when working with skills in code.

my-skill/
├── SKILL.md              # Frontmatter + instructions (required)
├── scripts/
│   └── deploy.sh         # Executable script
├── references/
│   └── API.md            # Reference documentation
└── agents/
    └── openai.yaml       # Codex configuration

SwiftSkill supports the full Agent Skills standard plus provider-specific extensions:

Provider Skills Directory Extensions
Standard skills/ —
Claude Code .claude/skills/ disable-model-invocation, model, context, agent, hooks, etc.
OpenAI Codex .agents/skills/ agents/openai.yaml (interface, policy, dependencies)

Usage

Creating a Skill

`Skill` is a self-contained bundle. Assemble it in code without thinking about the filesystem:

import SwiftSkill

var skill = Skill(
    name: "deploy-staging",
    description: "Deploy the current branch to the staging environment",
    license: "MIT",
    allowedTools: ["Bash(git:*