axiom-camera-capture-ref

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

A reference for Apple's AVFoundation camera APIs, which let an iOS app preview the camera and capture photos or video. It covers camera sessions, capture settings, rotation, and deferred processing.

In plain words
What is it for?
Use it when adding photo capture, video recording, camera previews, rotation handling, or camera-quality settings to an iOS app.
Why use it?
It gives you the API details needed to configure camera input and output correctly, especially when handling orientation and capture quality.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it when adding photo capture, video recording, camera previews, rotation handling, or camera-quality settings to an iOS app.

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

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

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

Measured 7d ago against content hash 2130b3c989b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

axiom-camera-capture-ref 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 7d 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-ref/SKILL.md · 781 lines

How it starts

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

Camera Capture API Reference

Quick Reference

// SESSION SETUP
import AVFoundation

let session = AVCaptureSession()
let sessionQueue = DispatchQueue(label: "camera.session")

sessionQueue.async {
    session.beginConfiguration()
    session.sessionPreset = .photo

    guard let camera = AVCaptureDevice.default(.builtInWideAngleCamera, for: .video, position: .back),
          let input = try? AVCaptureDeviceInput(device: camera),
          session.canAddInput(input) else { return }
    session.addInput(input)

    let photoOutput = AVCapturePhotoOutput()
    if session.canAddOutput(photoOutput) {
        session.addOutput(photoOutput)
    }

    session.commitConfiguration()
    session.startRunning()
}

// CAPTURE PHOTO
var settings = AVCapturePhotoSettings()
settings.photoQualityPrioritization = .balanced
photoOutput.capturePhoto(with: settings, delegate: self)

// ROTATION (iOS 17+)
let coordinator = AVCaptureDevice.RotationCoordinator(device: camera, previewLayer: previewLayer)
previewLayer.connection?.videoRotationAngle = coordinator.videoRotationAngleForHorizonLevelPreview

AVCaptureSession

Central coordinator for capture data flow.

Session Presets

Preset Resolution Use Case
.photo Optimal for photos Photo capture
.high Highest device quality Video recording
.medium VGA quality Preview, lower storage
.low CIF quality Minimal storage
.hd1280x720 720p HD video
.hd1920x1080 1080p Full HD video
.hd4K3840x2160 4K Ultra HD video
.inputPriority Use device format Custom configuration

Session Configuration

// Batch configuration (atomic)
session.beginConfiguration()
defer { session.commitConfiguration() }

// Check preset support
if session.canSetSessionPreset(.hd4K3840x2160) {
    session.sessionPreset = .hd4K3840x2160
}

// Add input/output
if session.canAddInput(input) {
    session.addInput(input)
}

if session.canAddOutput(output) {
    session.addOutput(output)
}

Read the full file on GitHub · 781 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. 7d ago First seen · 781 lines · 47 tokens per session scan A 2130b3c989b6

Subscribe to this mod's changes

axiom-camera-capture-ref is a skill published in the GitHub repository ComeOnOliver/skillshub (63 stars, last pushed 2mo ago), licensed MIT. It adds 47 tokens to every session and 4,672 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.

Related

Other skills, from other repositories