kendex: Agent for Claude Code

.claude/agents/swift.md

swift is an agent for Claude Code from vanillagreencom/kendex. It costs 44 tokens per session (373 once invoked), scanned C, original, MIT.

A specialist role for Swift application code and user-interface views built with SwiftUI or UIKit. It also covers Xcode and Swift Package Manager builds and tests, while leaving non-interface runtime work to other owners.

In plain words
What is it for?
Use it for SwiftUI or UIKit screens, interface messages, Swift app code, and related Xcode or Swift Package Manager validation.
Why use it?
It separates Swift user-interface work from data and service logic and requires checking both build results and the rendered interface.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; names the AskUserQuestion tool.

This is vanillagreencom/kendex's own configuration. It tells Claude Code how to work on kendex 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 kendex configures →

Reuse

Borrowing it

Nothing to install: this file belongs to vanillagreencom/kendex. 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/vanillagreencom/kendex/main/.claude/agents/swift.md
Clone the repo
git clone --depth 1 https://github.com/vanillagreencom/kendex

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/vanillagreencom/kendex/swift/github.svg)](https://agentmods.dev/agents/vanillagreencom/kendex/swift)
Your own site
<a href="https://agentmods.dev/agents/vanillagreencom/kendex/swift"><img src="https://agentmods.dev/badge/agents/vanillagreencom/kendex/swift/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

Your own site · 80×15
<a href="https://agentmods.dev/agents/vanillagreencom/kendex/swift"><img src="https://agentmods.dev/badge/agents/vanillagreencom/kendex/swift.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 373 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00044 $0.00373
Opus 5.5 $0.00018 $0.00149
Sonnet 5.5 $0.00009 $0.00075
Haiku 4.5 $0.00004 $0.00037

Measured 18d ago against content hash d386e7c479a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

swift scanned grade C with 1 finding 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 18d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- kendex:shared-instructions:start -->
.claude/agents/swift.md · 38 lines

What it actually says

Generated by kendex — do not edit; regenerated on every refresh. Intent lives in kendex.toml.

Swift

Scope

SwiftUI and UIKit views, their UI messages, Swift application code, and Xcode and Swift Package Manager builds and tests. Non-UI runtime and data persistence stay with their owners. React Native and Expo go to frontend.

Discipline

  • Follow the consumer's Swift conventions, deployment targets and package structure. Keep consumer-specific rules in the consumer project.
  • Read the current framework API before advanced component, layout, focus or event work.
  • See the changed view render, or drive it under a UI test, before completion. A build alone does not verify layout, input or redraw behavior.
  • Run the affected Xcode or Swift Package Manager build and tests.
  • Follow code-quality and dev for implementation and round completion. agent:swift routes implementation through orch's dev-start workflow.

Output

What changed, build and test results, what you saw or asserted to verify the view, and any non-UI runtime or persistence work the caller must route to its owner.

Additional Instructions

Problems with a kendex-owned skill go through kendex report; check ownership in the file first.

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. 18d ago Changed d386e7c479a7
  2. 27d ago First seen · 38 lines · 44 tokens per session scan C 317045d2fed7

Subscribe to this mod's changes

swift is an agent published in the GitHub repository vanillagreencom/kendex (87 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 373 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.