AGENT SKILL

record

暂无简介

License 许可
MIT
最近更新
2026-08-23
Stars
★ 1
Forks
0

02 资源文件 7

03 SKILL.md 正文

record CLI

A macOS command-line tool for recording audio, screen, and camera output. Designed for both human users and AI agents operating in a terminal.

Output file paths are printed to stdout. Status messages go to stderr, making the tool pipeline-friendly.

IMPORTANT: User Consent Required

Always ask the user for explicit permission before running any recording command. Recording audio (microphone), screen, or camera captures sensitive data and may be unexpected. Before executing record audio, record screen, or record camera, confirm with the user that they intend to record, what will be captured, and the duration. Listing devices (--list-devices, --list-displays, --list-windows, --list-cameras) and taking screenshots (--screenshot) are less intrusive but should still be confirmed if not explicitly requested.

Installation

brew install atacan/tap/record

Quick Reference

# Audio
record audio --duration 10                    # Record 10s of audio
record audio --duration 5 --json              # JSON output with file path

# Screen
record screen --duration 5                    # Record screen for 5s
record screen --screenshot                    # Take a screenshot
record screen --screenshot --output /tmp/s.png

# Camera
record camera --duration 5                    # Record webcam for 5s
record camera --photo                         # Take a photo

Subcommands

Subcommand Purpose
record audio Record from microphone
record screen Record screen video or take a screenshot
record camera Record from webcam or take a photo

Each subcommand has its own --help flag with full option details.

Key Patterns for AI Agents

Get the output file path

The tool prints the output file path to stdout. Capture it:

FILE=$(record audio --duration 5)
echo "Recorded to: $FILE"

Use --json for structured output

All subcommands support --json to emit machine-readable JSON to stdout:

record audio --duration 5 --json

Use --duration for non-interactive recording

Without --duration, the tool waits for a keypress to stop (requires a real TTY). AI agents should always pass --duration <seconds> to ensure the command terminates.

List available devices

record audio --list-devices
record screen --list-displays
record screen --list-windows
record camera --list-cameras

Add --json for structured output.

Control output location

record audio --duration 5 --output /tmp/recording.m4a
record screen --screenshot --output /tmp/screen.png --overwrite

Without --output, files are saved to a temporary directory.

Screen recording with audio

record screen --duration 10 --audio system    # system audio only
record screen --duration 10 --audio mic       # microphone only
record screen --duration 10 --audio both      # system + mic

Capture a specific window or display

record screen --screenshot --window "Safari"
record screen --duration 5 --display primary

macOS Permissions

The terminal app (Terminal, iTerm2, etc.) must have the relevant permission enabled in System Settings > Privacy & Security:

  • Microphone - for record audio and record camera --audio
  • Screen Recording - for record screen
  • Camera - for record camera

Troubleshooting

If a command fails or behaves unexpectedly, run:

record <subcommand> --help

The --help output always reflects the installed version and is the authoritative reference.

Detailed Command References

For full option listings and advanced usage:

04 同仓库更多 Skills

kbarbel640-del
kbarbel640-del/skills

crowd-prompting

A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.

★ 1
kbarbel640-del
kbarbel640-del/skills

dilemm-ai

Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).

★ 1
kbarbel640-del
kbarbel640-del/skills

arxiv-paper-reviews

Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.

★ 1
kbarbel640-del
kbarbel640-del/skills

arxiv-paper-reviews

Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.

★ 1
kbarbel640-del
kbarbel640-del/skills

git-summary

Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.

★ 1
kbarbel640-del
kbarbel640-del/skills

agent-constitution

Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.

★ 1