axiom-audit-camera

Scan Swift source code for AVFoundation capture anti-patterns and configuration issues.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill identifies critical bugs and anti-patterns in Swift code related to camera, video, and audio capture, preventing UI freezes, session crashes, and App Store rejections.

Core Features & Use Cases

  • Capture Pipeline Mapping: Automatically maps session construction, output types, and threading models to identify architectural flaws.
  • Anti-Pattern Detection: Scans for 10 common issues including main-thread session work, missing interruption observers, and deprecated orientation APIs.
  • Reliability Scoring: Provides a health score to determine if your capture implementation is Reliable, Fragile, or Broken.

Quick Start

Run the axiom-audit-camera skill to scan the current repository for camera and audio capture implementation issues.

Frequently Asked Questions about axiom-audit-camera

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

FAQPage Schema
How do I audit Swift code for AVFoundation camera capture issues?

Missing interruption handlers in iOS camera sessions cause capture pipeline failures during phone calls or control center interactions. Auditing source code identifies missing observers and validates interruption recovery logic to maintain session stability.

Why does my iOS camera session freeze when configuring AVCaptureSession?

iOS camera sessions freeze when AVCaptureSession configuration runs on the main thread, blocking UI interactions. Code auditing detects these threading anti-patterns and validates that session construction executes on background queues to ensure smooth UI performance.

How do I check if my Swift camera implementation uses deprecated AVFoundation APIs?

Checking Swift camera implementations for deprecated AVFoundation APIs involves scanning source code for outdated orientation properties and legacy capture methods. The audit flags deprecated usage to ensure compliance with current iOS development standards and prevent App Store rejections.

Can I use automated code auditing to evaluate iOS audio and video session compliance?

Automated code auditing evaluates iOS audio and video session compliance by validating privacy requirements and checking capture pipeline architecture against industry best practices. This analysis outputs a reliability health score categorizing the implementation as Reliable, Fragile, or Broken.

What are common anti-patterns when building an AVFoundation capture pipeline in Swift?

Common AVFoundation capture pipeline anti-patterns include main-thread session work, missing interruption observers, and deprecated orientation APIs. Code auditing maps session construction and output types to identify these architectural flaws and prevent session crashes.