axiom-camera-capture-diag

axiom-camera-capture-diag is a skill for Claude Code, Codex from ComeOnOliver/skillshub. It costs 45 tokens per session (4,017 once invoked), scanned A, original, MIT.

A troubleshooting guide for iOS camera problems built with Apple's AVFoundation framework. It covers black or frozen previews, incorrect rotation, slow capture, interruptions, and permissions.

In plain words
What is it for?
Use it when a camera preview is blank or frozen, the device rotates incorrectly, capture is slow, or camera access stops working.
Why use it?
It helps find the cause of camera failures by checking threading, session state, rotation, permissions, and configuration in a practical order.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when a camera preview is blank or frozen, the device rotates incorrectly, capture is slow, or camera access stops working.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/comeonoliver/skillshub/axiom-camera-capture-diag
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.

Any agent
npx skills add ComeOnOliver/skillshub --skill axiom-camera-capture-diag
Clone the repo
git clone --depth 1 https://github.com/ComeOnOliver/skillshub

Made for: Claude Code, Codex.

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 axiom-camera-capture-diag

README.md
[![agentmods](https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-camera-capture-diag/github.svg)](https://agentmods.dev/skills/comeonoliver/skillshub/axiom-camera-capture-diag)
Your own site
<a href="https://agentmods.dev/skills/comeonoliver/skillshub/axiom-camera-capture-diag"><img src="https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-camera-capture-diag/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 axiom-camera-capture-diag

Your own site · 80×15
<a href="https://agentmods.dev/skills/comeonoliver/skillshub/axiom-camera-capture-diag"><img src="https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-camera-capture-diag.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,017 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.04017
Opus 5 $0.00023 $0.02008
Sonnet 5 $0.00009 $0.00803
Haiku 4.5 $0.00005 $0.00402

Measured 9d ago against content hash f344e60481f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

axiom-camera-capture-diag 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 9d 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.

skills/CharlesWiltgen/Axiom/axiom-camera-capture-diag/SKILL.md · 589 lines

How it starts

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

Camera Capture Diagnostics

Systematic troubleshooting for AVFoundation camera issues: frozen preview, wrong rotation, slow capture, session interruptions, and permission problems.

Overview

Core Principle: When camera doesn't work, the problem is usually:

  1. Threading (session work on main thread) - 35%
  2. Session lifecycle (not started, interrupted, not configured) - 25%
  3. Rotation (deprecated APIs, missing coordinator) - 20%
  4. Permissions (denied, not requested) - 15%
  5. Configuration (wrong preset, missing input/output) - 5%

Always check threading and session state BEFORE debugging capture logic.

Red Flags

Symptoms that indicate camera-specific issues:

Symptom Likely Cause
Preview shows black screen Session not started, permission denied, no camera input
UI freezes when opening camera startRunning() called on main thread
Camera freezes on phone call No interruption handling
Preview rotated 90° wrong Not using RotationCoordinator (iOS 17+)
Captured photo rotated wrong Rotation angle not applied to output connection
Front camera photo not mirrored This is correct! (preview mirrors, photo does not)
"Camera in use by another app" Another app has exclusive access
Capture takes 2+ seconds photoQualityPrioritization set to .quality
Session won't start on iPad Split View - camera unavailable
Crash on older iOS Using iOS 17+ APIs without availability check

Mandatory First Steps

Before investigating code, run these diagnostics:

Step 1: Check Session State

print("📷 Session state:")
print("  isRunning: \(session.isRunning)")
print("  inputs: \(session.inputs.count)")
print("  outputs: \(session.outputs.count)")

for input in session.inputs {
    if let deviceInput = input as? AVCaptureDeviceInput {
        print("  Input: \(deviceInput.device.localizedName)")
    }
}

for output in session.outputs {
    print("  Output: \(type(of: output))")
}

Read the full file on GitHub · 589 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. 9d ago First seen · 589 lines · 45 tokens per session scan A f344e60481f0

Subscribe to this mod's changes

axiom-camera-capture-diag is a skill published in the GitHub repository ComeOnOliver/skillshub (63 stars, last pushed 2mo ago), licensed MIT. It adds 45 tokens to every session and 4,017 once invoked, about $0.0002 per session on Opus 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-09-03.