Files
2026-03-12 22:13:57 +00:00

1.4 KiB

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

arrman is a CLI tool to do minimal management of Sonarr and Radarr Targeted to be used by AI agents via SKILL.md

Build & Test

go build -o arrman .
go test ./...
go test -run TestName ./pkg/...   # single test
go vet ./...

Architecture

  • Single self-contained Go binary, no external dependencies
  • Talks HTTPS to Sonarr (TV) and Radarr (films) v3 APIs using API tokens
  • CLI subcommand structure: arrman [--json] {tv|film|films} {list|add|summary|profiles|rootfolders} [args]
  • --json flag outputs structured JSON (arrays for lists, objects for single items)
  • Sonarr uses TheTVDB IDs for series lookup; Radarr uses IMDB IDs for film lookup
  • Config loaded from .env file (SONARR_URL, SONARR_API_KEY, RADARR_URL, RADARR_API_KEY)

Commands

  • arrman tv list
  • arrman tv list "