axiom-analyze-swift-performance

Analyze Swift source code for performance anti-patterns and allocation hotspots.

34|2|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/DengNaichen/Stet --skill axiom-analyze-swift-performance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: axiom-analyze-swift-performance
Source: https://github.com/DengNaichen/Stet/tree/main/.agents/skills/axiom-analyze-swift-performance
Command: npx skills add https://github.com/DengNaichen/Stet --skill axiom-analyze-swift-performance

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill identifies performance bottlenecks in Swift codebases, ranging from high-level architectural inefficiencies to low-level ARC and memory layout issues that impact execution speed.

Core Features & Use Cases

  • Hot Path Analysis: Maps allocation hotspots and identifies tight loops or data processing pipelines that require optimization.
  • Anti-Pattern Detection: Automatically flags expensive operations like unnecessary value-type copies, excessive ARC traffic, and unspecialized generics.
  • Performance Health Scoring: Provides a structured health report to help developers prioritize refactoring efforts based on impact.

Quick Start

Run the axiom-analyze-swift-performance skill to audit the current repository for Swift performance anti-patterns and generate a health report.

Frequently Asked Questions about axiom-analyze-swift-performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect ARC traffic and memory layout issues in Swift?

To detect ARC traffic and memory layout issues in Swift, scan the source code for unnecessary value-type copies and excessive ARC overhead. This analysis targets allocation hotspots in tight loops and high-frequency call sites to identify performance anti-patterns.

What causes unnecessary value-type copies in Swift tight loops?

Unnecessary value-type copies in Swift tight loops are caused by passing large structs by value instead of by reference, triggering excessive ARC traffic. Scanning allocation hotspots verifies code against performance-sensitive criteria to isolate these exact bottlenecks.

How do I audit Swift code for performance anti-patterns?

To audit Swift code for performance anti-patterns, systematically scan Swift files to map allocation hotspots and flag unspecialized generics. This process generates a structured health report to prioritize refactoring efforts based on impact.

Can I analyze iOS and macOS Swift projects for unspecialized generics?

Yes, you can analyze iOS and macOS Swift projects for unspecialized generics. The analysis requires systematic scanning of Swift files to verify code against performance-sensitive criteria within macOS and iOS projects.

What is the best way to prioritize Swift performance refactoring efforts?

The best way to prioritize Swift performance refactoring is to generate a structured health report based on hot path analysis. This report maps allocation hotspots in data processing pipelines to help developers target the highest impact areas.

Why does my Swift code have high execution speed issues in data processing pipelines?

High execution speed issues in Swift data processing pipelines often stem from architectural inefficiencies and low-level ARC memory layout problems. Mapping allocation hotspots and detecting unspecialized generics isolates the exact operations causing the slowdown.