Agent skill · software engineering · caffeinelabs

extension-camera

Web-camera support.

Why this skill is useful

Adds a prefabricated React hook for web-camera access with specific configuration options and error handling that the AI wouldn't reliably generate on its own.

What it needs

Requires @caffeineai/camera installed locally. About 2k tokens when loaded. Last updated 2026-08-06.

What this skill does

Camera Camera extension for Caffeine AI. Overview This skill adds web-camera access via a prefabricated React hook. Supports photo capture, camera switching, and error handling. Frontend For camera support: There is a prefabricated React hook @caffeinelabs/camera/hooks/useCamera.ts that cannot be modified. Usage example: Always place a capture button on camera preview! Always show a camera preview when the user opens the camera On desktop, make sure that camera cannot be switched. Only 'environment' is working. Properly display camera error messages in the app. Do not make camera buttons clickable until the camera is fully initialized and ready. Ensure the camera preview has explicit, non-zero dimensions (fixed height, min-height, or an aspect-ratio wrapper) so it never collapses due to layout. Make the preview responsive across screen sizes (e.g., width: 100% with a stable aspect ratio).

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills caffeinelabs/extension-camera

View the source on GitHub

Browse the @skills marketplace