Token导航 LogoToken导航TokenDH.com
研究检索权限需确认github未标认证来源可访问clear审计通过

axiom-now-playing-carplayaxiom 现在正在玩 carplay

Agent Skill

axiom-now-playing-carplay 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,079

周安装

165

GitHub Stars

873

下载量

1,280
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:axiom-now-playing-carplay(axiom 现在正在玩 carplay)
来源仓库:https://github.com/charleswiltgen/axiom
仓库路径:skills/axiom-now-playing-carplay
安装命令:
npx skills add https://github.com/charleswiltgen/axiom --skill axiom-now-playing-carplay
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/charleswiltgen/axiom --skill axiom-now-playing-carplay

简介

揭示 CarPlay 与 iOS 锁屏/控制中心共用同一套 MPNowPlayingInfoCenter 的事实。

  • 若基础 Now Playing 功能正常,则自动兼容 CarPlay 显示,无需额外编码。
  • 适用于车载音乐播放器、导航语音播报或支持驾驶模式的应用集成。
  • 使用前应确保 MPNowPlayingInfoCenter 与 MPRemoteCommandCenter 已正确配置。
  • 注意 artwork 尺寸需符合 CarPlay 规范,否则可能导致图片拉伸或缺失。

SKILL.md

CarPlay Integration

Time cost: 15-20 minutes (if MPNowPlayingInfoCenter already working)

Key Insight

CarPlay uses the SAME MPNowPlayingInfoCenter and MPRemoteCommandCenter as Lock Screen and Control Center. If your Now Playing integration works on iOS, it automatically works in CarPlay with zero additional code.

What CarPlay Reads

iOS ComponentCarPlay Display
MPNowPlayingInfoCenter.nowPlayingInfoCPNowPlayingTemplate metadata (title, artist, artwork)
MPRemoteCommandCenter handlersCPNowPlayingTemplate button responses
Artwork from nowPlayingInfoAlbum art in CarPlay UI

No CarPlay-specific metadata needed. Your existing code works.

CPNowPlayingTemplate Customization (iOS 14+)

For custom playback controls beyond standard play/pause/skip:

import CarPlay

@MainActor
class SceneDelegate: UIResponder, UIWindowSceneDelegate, CPTemplateApplicationSceneDelegate {

    func templateApplicationScene(
        _ templateApplicationScene: CPTemplateApplicationScene,
        didConnect interfaceController: CPInterfaceController
    ) {
        // ✅ Configure CPNowPlayingTemplate at connection time (not when pushed)
        let nowPlayingTemplate = CPNowPlayingTemplate.shared

        // Enable Album/Artist browsing (shows button that navigates to album/artist view in your app)
        nowPlayingTemplate.isAlbumArtistButtonEnabled = true

        // Enable Up Next queue (shows button that displays upcoming tracks)
        nowPlayingTemplate.isUpNextButtonEnabled = true

        // Add custom buttons (iOS 14+)
        setupCustomButtons(for: nowPlayingTemplate)
    }

    private func setupCustomButtons(for template: CPNowPlayingTemplate) {
        var buttons: [CPNowPlayingButton] = []

        // Playback rate button
        let rateButton = CPNowPlayingPlaybackRateButton { [weak self] button in
            self?.cyclePlaybackRate()
        }
        buttons.append(rateButton)

        // Shuffle button
        let shuffleButton = CPNowPlayingShuffleButton { [weak self] button in
            self?.toggleShuffle()
        }
        buttons.append(shuffleButton)

        // Repeat button
        let repeatButton = CPNowPlayingRepeatButton { [weak self] button in
            self?.cycleRepeatMode()
        }
        buttons.append(repeatButton)

        // Update template with custom buttons
        template.updateNowPlayingButtons(buttons)
    }
}

Entitlement Requirement

CarPlay requires an entitlement in your Xcode project:

Info.plist:

<key>UIBackgroundModes</key>
<array>
    <string>audio</string>
</array>

Entitlements file:

<key>com.apple.developer.carplay-audio</key>
<true/>

Without the entitlement, CarPlay won't show your app at all.

CarPlay-Specific Gotchas

IssueCauseFixTime
CarPlay doesn't show appMissing entitlementAdd com.apple.developer.carplay-audio5 min
Now Playing blank in CarPlayMPNowPlayingInfoCenter not setSame fix as Lock Screen (Pattern 1)10 min
Custom buttons don't appearConfigured after pushConfigure at templateApplicationScene(_:didConnect:)5 min
Buttons work on device, not CarPlay simulatorDebugger interferenceTest without debugger attached1 min
Album art missingSame as iOS issueFix MPMediaItemArtwork (Pattern 3)15 min

Testing CarPlay

Simulator (Xcode 12+):

  1. I/O → External Displays → CarPlay
  2. Tap CarPlay display
  3. Find your app in Audio section
  4. Important: Run without debugger for reliable testing (debugger can interfere with CarPlay audio session activation)

Real Vehicle: Requires entitlement approval from Apple (automatic for apps with UIBackgroundModes audio; no manual request needed).

Verification

  • App appears in CarPlay Audio section
  • Now Playing shows correct metadata
  • Album artwork displays
  • Play/pause/skip buttons respond
  • Custom buttons (if any) appear and work
  • Tested both with and without debugger

Resources

Skills: axiom-now-playing, axiom-now-playing-musickit

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

31.3%
按下载量换算401

Codex

24.07%
按下载量换算308

OpenCode

17.41%
按下载量换算223

Antigravity

13.18%
按下载量换算169

Cursor

9.15%
按下载量换算117

windsurf

3.41%
按下载量换算44

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills