performance-specialist

performance-specialist is an agent for Claude Code from The-Artificer-of-Ciphers-LLC/skills-from-the-artificer. It costs 45 tokens per session (903 once invoked), scanned A, original, MIT.

A Swift performance and profiling specialist for finding slow code, high memory use, launch delays, hangs, and energy costs. Profiling means measuring an app while it runs, using tools such as Instruments and MetricKit.

In plain words
What is it for?
Use it to investigate CPU and memory use, leaks, SwiftUI rendering, launch time, hangs, image handling, GPU work, and production performance data.
Why use it?
It helps replace guesses about performance with measurements and identifies work that blocks the main user-interface thread.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the swift-agents plugin — 16 agents, 3 hooks shipped together

Good fit Use it to investigate CPU and memory use, leaks, SwiftUI rendering, launch time, hangs, image handling, GPU work, and production performance data.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/the-artificer-of-ciphers-llc/skills-from-the-artificer/performance-specialist
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.

Clone the repo
git clone --depth 1 https://github.com/The-Artificer-of-Ciphers-LLC/skills-from-the-artificer

Made for: Claude Code.

Or install swift-agents, the plugin that ships this one along with the rest of its 16 agents, 3 hooks.

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 performance-specialist

README.md
[![agentmods](https://agentmods.dev/badge/agents/the-artificer-of-ciphers-llc/skills-from-the-artificer/performance-specialist/github.svg)](https://agentmods.dev/agents/the-artificer-of-ciphers-llc/skills-from-the-artificer/performance-specialist)
Your own site
<a href="https://agentmods.dev/agents/the-artificer-of-ciphers-llc/skills-from-the-artificer/performance-specialist"><img src="https://agentmods.dev/badge/agents/the-artificer-of-ciphers-llc/skills-from-the-artificer/performance-specialist/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 performance-specialist

Your own site · 80×15
<a href="https://agentmods.dev/agents/the-artificer-of-ciphers-llc/skills-from-the-artificer/performance-specialist"><img src="https://agentmods.dev/badge/agents/the-artificer-of-ciphers-llc/skills-from-the-artificer/performance-specialist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 903 The whole file, excluding the scripts and references it only reads on demand.
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.00045 $0.00903
Opus 5.5 $0.00018 $0.00361
Sonnet 5.5 $0.00009 $0.00181
Haiku 4.5 $0.00005 $0.00090

Measured today against content hash 5559c904c095, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

performance-specialist 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 today.

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.

swift-agents/.github/agents/performance-specialist.agent.md · 120 lines

How it starts

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

Performance Specialist

You are a Swift performance expert. Identify bottlenecks, enforce efficient patterns, prevent common performance mistakes.

Instruments

Instrument What It Measures
Time Profiler CPU time per function
Allocations Heap memory and allocation patterns
Leaks Strong reference cycles
SwiftUI View body evaluations, identity changes
Core Animation FPS, offscreen rendering, blending
Metal System Trace GPU frame time, shader execution

Always profile on real device, Release configuration.

os_signpost

let signpostID = OSSignpostID(log: logger)
os_signpost(.begin, log: logger, name: "LoadData", signpostID: signpostID)
defer { os_signpost(.end, log: logger, name: "LoadData", signpostID: signpostID) }

Launch Time

  • Cold launch target: < 400ms to first frame
  • Minimize dynamic frameworks
  • Defer heavy work to .task { } after first frame
  • Use MetricKit MXAppLaunchMetric for production data

Hang Detection

A hang = main thread blocked > 250ms.

// WRONG: Synchronous I/O on main thread
let data = try! Data(contentsOf: remoteURL)

// CORRECT: Async
let (data, _) = try await URLSession.shared.data(from: remoteURL)

Memory Management

  • weak (default) when reference may become nil; unowned only with proven lifetime
  • [weak self] in escaping closures and timers
  • autoreleasepool { } for tight loops creating temporary objects

Image Optimization

Always downsample to display size (4000x3000 @ 4 bytes = 48MB in memory):

let options = [kCGImageSourceThumbnailMaxPixelSize: maxPixels,
               kCGImageSourceCreateThumbnailFromImageAlways: true] as CFDictionary
let thumbnail = CGImageSourceCreateThumbnailAtIndex(source, 0, options)

Collection Performance

Operation Array Set Dictionary
Contains O(n) O(1) O(1)
Random access O(1) N/A N/A

Read the full file on GitHub · 120 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. today First seen · 120 lines · 45 tokens per session scan A 5559c904c095

Subscribe to this mod's changes

performance-specialist is an agent published in the GitHub repository The-Artificer-of-Ciphers-LLC/skills-from-the-artificer (6 stars, last pushed yesterday), licensed MIT. It adds 45 tokens to every session and 903 once invoked, about $0.0002 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-10-15.

Related

Other agents, from other repositories

cs-guardian

Customer success partner for account health, churn risk, renewals, escalations, and QBRs. Use to score an account, diagnose churn, prep a renewal or QBR, or write an escalation brief. Computes the weighted health score programmatically.

mohitagw15856/pm-claude-skills · 55 tokens

crash-analyzer

Use this agent to investigate Android app crashes, ANRs, or native crashes. Collects and analyzes logs, tombstones, ANR traces, and provides diagnosis. Triggers on "app crashed", "analyze crash", "debug ANR", "tombstone", "native crash".

hyperb1iss/hyperdroid-skill · 64 tokens

mobile-developer

Builds iOS, Android, and cross-platform mobile apps. Expert in React Native, Flutter, Swift, Kotlin.

Chipagosfinest/enterprise-team · 28 tokens

support-engineer

Technical product support, issue diagnosis, customer escalations. Debugging, root cause analysis, knowledge base.

Chipagosfinest/enterprise-team · 25 tokens

silent-failure-hunter

Use this agent when reviewing code changes in a pull request to identify silent failures, inadequate error handling, and inappropriate fallback behavior. This agent should be invoked proactively after completing a logical chunk of work that involves error handling, catch blocks, fallback logic, or any code that could…

troykelly/claude-skills · 0 tokens

ralph-replanner

Triage a stuck Ralph loop and propose either a revised fix plan, a specific question to ask the user, or a recommendation that the task is infeasible. Invoke when the Ralph circuit breaker has opened — repeated identical errors, no progress for several iterations, max iterations approaching, or a destructive action is…

javi22020/ralph · 72 tokens