axiom-camera-capture

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

A practical guide to building a custom camera interface for an iOS app with Apple's AVFoundation framework. It covers photo and video capture, permissions, device rotation, interruptions, and responsive capture.

In plain words
What is it for?
Use it when building a camera screen, switching between front and rear cameras, recording video with audio, or improving capture responsiveness.
Why use it?
It helps avoid common camera problems such as frozen previews, incorrect rotation, slow capture, and broken behaviour after phone calls or multitasking.

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 building a camera screen, switching between front and rear cameras, recording video with audio, or improving capture responsiveness.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/comeonoliver/skillshub/axiom-camera-capture"><img src="https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-camera-capture.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 6,138 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.06138
Opus 5 $0.00023 $0.03069
Sonnet 5 $0.00009 $0.01228
Haiku 4.5 $0.00005 $0.00614

Measured 7d ago against content hash ad2fe59da9a9, 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 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/SKILL.md · 892 lines

How it starts

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

Camera Capture with AVFoundation

Guides you through implementing camera capture: session setup, photo capture, video recording, responsive capture UX, rotation handling, and session lifecycle management.

When to Use This Skill

Use when you need to:

  • ☑ Build a custom camera UI (not system picker)
  • ☑ Capture photos with quality/speed tradeoffs
  • ☑ Record video with audio
  • ☑ Handle device rotation correctly (RotationCoordinator)
  • ☑ Make capture feel responsive (zero-shutter-lag)
  • ☑ Handle session interruptions (phone calls, multitasking)
  • ☑ Switch between front/back cameras
  • ☑ Configure capture quality and resolution

Example Prompts

"How do I set up a camera preview in SwiftUI?" "My camera freezes when I get a phone call" "The photo preview is rotated wrong on front camera" "How do I make photo capture feel instant?" "Should I use deferred processing?" "My camera takes too long to capture" "How do I switch between front and back cameras?" "How do I record video with audio?"

Red Flags

Signs you're making this harder than it needs to be:

  • ❌ Calling startRunning() on main thread (blocks UI for seconds)
  • ❌ Using deprecated videoOrientation instead of RotationCoordinator (iOS 17+)
  • ❌ Not observing session interruptions (app freezes on phone call)
  • ❌ Creating new AVCaptureSession for each capture (expensive)
  • ❌ Using .photo preset for video (wrong format)
  • ❌ Ignoring photoQualityPrioritization (slow captures)
  • ❌ Not handling .notAuthorized permission state
  • ❌ Modifying session without beginConfiguration()/commitConfiguration()
  • ❌ Using UIImagePickerController for custom camera UI (limited control)

Mandatory First Steps

Before implementing any camera feature:

1. Choose Your Capture Mode

What do you need?

┌─ Just let user pick a photo?
│  └─ Don't use AVFoundation - use PHPicker or PhotosPicker
│     See: /skill axiom-photo-library
│
├─ Simple photo/video capture with system UI?
│  └─ UIImagePickerController (but limited customization)
│
├─ Custom camera UI with photo capture?
│  └─ AVCaptureSession + AVCapturePhotoOutput
│     → Continue with this skill
│
├─ Custom camera UI with video recording?
│  └─ AVCaptureSession + AVCaptureMovieFileOutput
│     → Continue with this skill
│
└─ Both photo and video in same session?
   └─ AVCaptureSession + both outputs
      → Continue with this skill

Read the full file on GitHub · 892 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 · 892 lines · 47 tokens per session scan A ad2fe59da9a9

Subscribe to this mod's changes

axiom-camera-capture 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 6,138 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