Swift-Wasm-Agent-Skill: Instructions file for Codex

AGENTS.md

Swift-Wasm-Agent-Skill AGENTS.md is an instructions file for 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 CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions .claude-plugin.

This is swiftwasm/Swift-Wasm-Agent-Skill's own configuration. It tells Codex and OpenCode how to work on Swift-Wasm-Agent-Skill itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Swift-Wasm-Agent-Skill configures →

Reuse

Borrowing it

Nothing to install: this file belongs to swiftwasm/Swift-Wasm-Agent-Skill. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/swiftwasm/Swift-Wasm-Agent-Skill/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/swiftwasm/Swift-Wasm-Agent-Skill

Made for: 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/github.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/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-Wasm-Agent-Skill AGENTS.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.5 $0.00212 $0.00212
Sonnet 5.5 $0.00106 $0.00106
Haiku 4.5 $0.00053 $0.00053

Measured 2mo ago against content hash cbc74c425e77, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (49 stars, last pushed 2mo ago), licensed MIT. It adds 531 tokens to every session, about $0.0021 per session on Opus 5.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.

Related

Swift-Wasm-Agent-Skill AGENTS.md compared with instructions from other repositories

Swift-Wasm-Agent-Skill AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Swift-Wasm-Agent-Skill AGENTS.mdswiftwasm/Swift-Wasm-Agent-SkillInstructions file492mo agoMITA531Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode