claude/skills/xdr-brightness/SKILL.md
--- name: xdr-brightness description: Boost MacBook Pro M1/M2/M3 display brightness beyond the system maximum (~500 nits SDR cap) into HDR/XDR range (~1000 nits). Uses a compiled single-file Swift CLI. Trigger when the user asks to: boost screen brightness, make the display brighter, enable XDR/HDR brightness, turn on extra brightness for outdoor use, auto-adjust brightness based on ambient light, or control the xdr-brightness tool. --- # xdr-brightness Single-file Swift CLI that unlocks the M
npx skillsauth add kendreaditya/.config claude/skills/xdr-brightnessInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Single-file Swift CLI that unlocks the MacBook Pro's HDR brightness headroom via two mechanisms:
wantsExtendedDynamicRangeContent = true — triggers EDR mode on the panel (~1000 nit budget vs ~500 nit SDR)CGSetDisplayTransferByTable) multiplied by a factor up to 1.59×Ambient light is read directly from AppleSPUHIDDriver.CurrentLux in IORegistry — no entitlements needed.
Pre-built binary at scripts/xdr-brightness. Swift source at scripts/xdr-brightness.swift.
xdr-brightness on [0-100] # boost on at given % (default 100). blocks until killed.
xdr-brightness on 80 --bg # same, detached to background
xdr-brightness off # kill background instance, restore brightness
xdr-brightness status # print ambient lux + whether boost is active
xdr-brightness auto --bg # auto-enable when lux > 5000, disable when < 2000
Turn on:
~/.claude/skills/xdr-brightness/scripts/xdr-brightness on 100 --bg
Check:
~/.claude/skills/xdr-brightness/scripts/xdr-brightness status
Turn off:
~/.claude/skills/xdr-brightness/scripts/xdr-brightness off
Auto mode — polls ALS every 5s, enables above 5000 lux, disables below 2000 lux:
~/.claude/skills/xdr-brightness/scripts/xdr-brightness auto --bg
cd ~/.claude/skills/xdr-brightness/scripts
swiftc -framework Cocoa -framework IOKit -framework MetalKit xdr-brightness.swift -o xdr-brightness
/tmp/xdr-brightness.pidtesting
Reviews test coverage and suggests missing test cases for error paths, edge cases, and business logic. Activates when users write tests or implement new features.
development
Identify, categorize, and prioritize technical debt. Trigger with "tech debt", "technical debt audit", "what should we refactor", "code health", or when the user asks about code quality, refactoring priorities, or maintenance backlog.
tools
Comprehensive security scanning and vulnerability detection. Includes input validation, path traversal prevention, CVE detection, and secure coding pattern enforcement. Use when: authentication implementation, authorization logic, payment processing, user data handling, API endpoint creation, file upload handling, database queries, external API integration. Skip when: read-only operations on public data, internal development tooling, static documentation, styling changes.
development
Optimizes application performance. Use when performance requirements exist, when you suspect performance regressions, or when Core Web Vitals or load times need improvement. Use when profiling reveals bottlenecks that need fixing.