Mac Clamshell Mode Assistant
Overview
Helps Mac users configure their laptops to run tasks with the lid closed. No external display, keyboard, or mouse required! This skill detects the current Mac model and macOS version, then provides appropriate configuration steps.
Key Features
- - ✅ No external display required - Works with laptop alone
- ✅ No external keyboard/mouse required - Pure headless operation
- ✅ Auto-detection - Identifies Mac model and macOS version
- ✅ Multiple modes - Standard clamshell, forced headless, or temporary
- ✅ Safe configuration - Requires explicit approval, includes rollback
- ✅ Battery warnings - Alerts about power consumption
When to use
- - User wants to run background tasks with MacBook lid closed
- User needs headless operation without external peripherals
- User wants to verify current power management settings
- User needs help with Amphetamine or caffeinate commands
- User wants to restore default power settings
System Requirements
- - macOS 10.15 Catalina or later
- MacBook (Pro/Air) - Intel or Apple Silicon
- Power adapter connected (strongly recommended for headless mode)
Configuration Modes
Mode 1: Standard Clamshell (Requires External Display)
- - Traditional macOS clamshell mode
- Most stable, most power-efficient
- Requires: Power + External Display + Keyboard/Mouse
Mode 2: Forced Headless Operation ⭐ RECOMMENDED
- - No external display required
- No external keyboard/mouse required
- Modifies system power settings
- Perfect for background tasks, servers, rendering
- Warning: Increased battery consumption
Mode 3: Temporary Operation
- - Uses
caffeinate command - No system setting changes
- Good for short-term tasks
- Stops when terminal closes
Mode 4: Status Check
- - View current power settings
- See what's preventing sleep
- No modifications
Mode 5: Restore Defaults
- - Rollback all changes
- Return to factory power settings
Workflow
1) System Detection
- - Mac model (MacBook Pro/Air identification)
- macOS version (10.15+ compatibility check)
- Current power management settings
- Amphetamine running status
2) User Selection
- - Present 5 configuration modes
- Clear explanations for each option
- Explicit confirmation required
3) Apply Configuration
- - Mode-specific setup
- Safety warnings displayed
- Success/failure feedback
4) Verification & Rollback
- - Test current sleep prevention status
- Provide rollback instructions
- Include recovery commands
Safety Rules
- - ⚠️ Always recommend power adapter for headless mode
- ⚠️ Warn about battery drain when running without external display
- ✅ Require explicit approval before making system changes
- ✅ Provide rollback instructions for all configurations
- ✅ Check Amphetamine status and recommend if not running
技能名称: mac-clamshell-mode
详细描述:
Mac 合盖模式助手
概述
帮助 Mac 用户配置笔记本电脑,使其在合盖状态下运行任务。无需外接显示器、键盘或鼠标! 此技能可检测当前 Mac 型号和 macOS 版本,并提供相应的配置步骤。
主要功能
- - ✅ 无需外接显示器 - 仅使用笔记本电脑即可
- ✅ 无需外接键盘/鼠标 - 纯无头操作
- ✅ 自动检测 - 识别 Mac 型号和 macOS 版本
- ✅ 多种模式 - 标准合盖、强制无头或临时模式
- ✅ 安全配置 - 需要明确批准,包含回滚功能
- ✅ 电池警告 - 提醒功耗问题
使用场景
- - 用户希望在合盖状态下运行 MacBook 后台任务
- 用户需要无外设的无头操作
- 用户希望查看当前电源管理设置
- 用户需要 Amphetamine 或 caffeinate 命令的帮助
- 用户希望恢复默认电源设置
系统要求
- - macOS 10.15 Catalina 或更高版本
- MacBook(Pro/Air)- Intel 或 Apple Silicon
- 连接电源适配器(强烈建议用于无头模式)
配置模式
模式 1:标准合盖模式(需外接显示器)
- - 传统 macOS 合盖模式
- 最稳定,最省电
- 需要:电源 + 外接显示器 + 键盘/鼠标
模式 2:强制无头操作 ⭐ 推荐
- - 无需外接显示器
- 无需外接键盘/鼠标
- 修改系统电源设置
- 适用于后台任务、服务器、渲染
- 警告:电池消耗增加
模式 3:临时操作
- - 使用 caffeinate 命令
- 不修改系统设置
- 适用于短期任务
- 终端关闭时停止
模式 4:状态检查
- - 查看当前电源设置
- 查看阻止睡眠的因素
- 不进行任何修改
模式 5:恢复默认设置
工作流程
1) 系统检测
- - Mac 型号(MacBook Pro/Air 识别)
- macOS 版本(10.15+ 兼容性检查)
- 当前电源管理设置
- Amphetamine 运行状态
2) 用户选择
- - 提供 5 种配置模式
- 每个选项的清晰说明
- 需要明确确认
3) 应用配置
4) 验证与回滚
安全规则
- - ⚠️ 始终建议使用电源适配器 用于无头模式
- ⚠️ 警告电池消耗 当无外接显示器运行时
- ✅ 需要明确批准 在修改系统设置前
- ✅ 提供回滚说明 适用于所有配置
- ✅ 检查 Amphetamine 状态 若未运行则推荐使用