Swift-Wasm-Agent-Skill AGENTS.md

Swift-Wasm-Agent-Skill AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from swiftwasm/Swift-Wasm-Agent-Skill. It costs 531 tokens per session, scanned A, original, MIT.

Authoring instructions for SwiftWasm skills, which help Swift developers build software that runs as WebAssembly in a web environment.

In plain words
What is it for?
Writing skills about SwiftWasm setup, JavaScriptKit or BridgeJS usage, porting code, compatibility limits, troubleshooting, and build configuration.
Why use it?
They keep each skill focused and require concrete, accurate guidance about differences between native Swift and Swift running as WebAssembly.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: Claude Code plugin machinery, but also the file is AGENTS.md.

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.

agentmods
npx agentmods add instructions/swiftwasm/swift-wasm-agent-skill/agents-md
Clone the repo
git clone --depth 1 https://github.com/swiftwasm/Swift-Wasm-Agent-Skill

Made for: Claude Code, Codex, OpenCode.

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-Wasm-Agent-Skill AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/swiftwasm/swift-wasm-agent-skill/agents-md.svg)](https://agentmods.dev/instructions/swiftwasm/swift-wasm-agent-skill/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/swiftwasm/swift-wasm-agent-skill/agents-md"><img src="https://agentmods.dev/badge/instructions/swiftwasm/swift-wasm-agent-skill/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 531 This file is loaded in full into every session.
When invoked 531 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.00531 $0.00531
Opus 5 $0.00266 $0.00266
Sonnet 5 $0.00106 $0.00106
Haiku 4.5 $0.00053 $0.00053

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

Security

Grade A, and why

Swift-Wasm-Agent-Skill AGENTS.md scanned grade A with 0 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 6d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 57 lines

How it starts

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

SwiftWasm Skills Authoring Guide

Core Principles

  • Provide accurate, actionable guidance for Swift developers targeting WebAssembly.
  • Keep instructions specific to the SwiftWasm toolchain and its ecosystem libraries.
  • Prefer concrete code examples over abstract descriptions.
  • Document platform differences between native Swift and Swift on Wasm explicitly.
  • Keep each skill focused on its specific domain (JavaScriptKit, BridgeJS, or porting).

Content Guidelines

  • Keep SKILL.md procedural and concise — it is the entry point agents read first.
  • Put detailed API references, patterns, and examples in references/.
  • Put helper scripts in scripts/ within the skill folder.
  • Organize content by the tasks an agent performs: setup, coding patterns, troubleshooting.
  • Use concrete examples that compile and run under the SwiftWasm toolchain.

What To Include

  • Project setup and toolchain installation steps.
  • API usage patterns with paired Swift and JavaScript examples where applicable.
  • Known limitations and workarounds for Swift on Wasm.
  • Compatibility tables for frameworks and APIs.
  • Environment diagnostic scripts and build configuration guidance.

What To Exclude

  • General Swift language tutorials unrelated to Wasm specifics.
  • Native-only frameworks that have no Wasm path (unless documenting incompatibility in the porting skill).
  • Speculative or unverified toolchain behavior.
  • Duplicate content across skill folders — link instead.

Skill Structure

Each skill directory at the repo root follows this layout:

<skill-name>/
  SKILL.md              # Primary skill document agents read
  references/           # Detailed reference material
  scripts/              # Helper scripts (optional)

Paths in SKILL.md are relative to the skill folder. For example, the JavaScriptKit scripts/doctor.py is referenced as scripts/doctor.py within its SKILL.md.

Language And Tone

  • Use direct, technical language.
  • Use imperative instructions for actionable steps.
  • Prefer short paragraphs and bullet lists over prose.
  • Keep examples compact and realistic.

Read the full file on GitHub · 57 lines

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. 6d ago First seen · 57 lines · 531 tokens per session scan A cbc74c425e77

Subscribe to this mod's changes

Swift-Wasm-Agent-Skill AGENTS.md is an instructions file published in the GitHub repository swiftwasm/Swift-Wasm-Agent-Skill (47 stars, last pushed 27d ago), licensed MIT. It adds 531 tokens to every session, about $0.0027 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.