Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ship

БесплатноБез исполняемых скриптовНе проверен

Package a validated APC audio plugin into platform installers and release archives during the ship phase.

Noizefieldот Noizefield★ 379 звёзд на GitHub

Об этом скилле

SKILL: PACKAGING (Cross-Platform)

Goal: Create professional, cross-platform plugin installers for Windows, macOS, and Linux Trigger: /ship [Name] or "Ship [Name]" Prerequisites: Phase 4 (CODE) complete, audio engine working, all tests passed Output Location: release/[Name]_v[version]/ (honors paths.release_dir in apc.config.json)


Overview

This skill handles the complete packaging and distribution process for APC plugins. It supports:

  • Local builds (current platform only)
  • GitHub Actions builds (cross-platform CI/CD)
  • Hybrid approach (local + remote for specific platforms)

Platform Support Matrix

Platform VST3 AU Standalone LV2 Local Build GitHub Actions
Windows ✓ - ✓ - ✓ (native) ✓
macOS ✓ ✓ ✓ - ✗ ✓
Linux ✓ - ✓ ✓ ✗ ✓

STEP 1: DETECT CURRENT PLATFORM & BUILD STATUS

. ".\scripts\lib\Get-ApcPaths.ps1"
. ".\scripts\state-management.ps1"
$PluginPath = Get-ApcPluginPath -PluginName $PluginName
$ApcPaths = Get-ApcPaths

# Detect current operating system
$CurrentOS = if ($IsWindows -or ($env:OS -eq "Windows_NT")) { "Windows" }
             elseif ($IsMacOS) { "macOS" }
             elseif ($IsLinux) { "Linux" }
             else { "Unknown" }

# Check for existing local build
$BuildDir = $ApcPaths.BuildDir
$HasLocalBuild = Test-Path "$BuildDir/*_artefacts/Release/*.vst3" -or
                 Test-Path "$BuildDir/*_artefacts/Release/*.component" -or
                 Test-Path "$BuildDir/*_artefacts/*.vst3"

Write-Host "Current Platform: $CurrentOS" -ForegroundColor Cyan
Write-Host "Local Build Found: $HasLocalBuild" -ForegroundColor Cyan
Write-Host "Plugins: $($ApcPaths.PluginsDir)" -ForegroundColor DarkGray
Write-Host "Release: $($ApcPaths.ReleaseDir)" -ForegroundColor DarkGray

STEP 2: ASK USER FOR PLATFORM SELECTION

CRITICAL: Before proceeding, ask the user which platforms to build for.

Platform Selection Prompt

╔══════════════════════════════════════════════════════════════╗
║  SHIP WORKFLOW - Platform Selection                          ║
╠══════════════════════════════════════════════════════════════╣
║  Current Platform: Windows                                    ║
║  Local Build Status: Found                                    ║
╠══════════════════════════════════════════════════════════════╣
║  Select platforms to include in release:                     ║
║                                                              ║
║  [1] Windows (VST3, Standalone) - USE LOCAL BUILD            ║
║  [2] Windows (VST3, Standalone) - BUILD WITH GITHUB ACTIONS  ║
║  [3] macOS (VST3, AU, Standalone) - GITHUB ACTIONS REQUIRED  ║
║  [4] Linux (VST3, LV2, Standalone) - GITHUB ACTIONS REQUIRED ║
║  [5] ALL PLATFORMS - Use local for current, GitHub for rest  ║
║                                                              ║
║  Enter numbers (comma-separated) or 'all':                   ║
╚══════════════════════════════════════════════════════════════╝

Decision Logic

# Determine which platforms need GitHub Actions
$PlatformsNeedingGitHub = @()
$PlatformsUsingLocal = @()

foreach ($platform in $SelectedPlatforms) {
    if ($platform -eq $CurrentOS -and $HasLocalBuild -and $UseLocalBuild) {
        $PlatformsUsingLocal += $platform
    } else {
        $PlatformsNeedingGitHub += $platform
    }
}

# Inform user of the plan
Write-Host "`nBuild Plan:" -ForegroundColor Green
Write-Host "  Local builds: $($PlatformsUsingLocal -join ', ')" -ForegroundColor Yellow
Write-Host "  GitHub Actions: $($PlatformsNeedingGitHub -join ', ')" -ForegroundColor Yellow

STEP 3: LOCAL BUILD PROCESS (If Selected)

3.0 Prepare Documentation (AUTOMATIC)

CRITICAL: This step runs BEFORE installer creation and ensures documentation exists.

# Check if Documentation folder exists
$DocPath = Join-Path $PluginPath "Documentation"

if (-not (Test-Path $DocPath)) {
    Write-Host "Creating Documentation folder..." -ForegroundColor Yellow
    New-Item -ItemType Directory -Path $DocPath -Force | Out-Null

    # Generate basic USER_MANUAL.md from plugin metadata
    Write-Host "Generating basic documentation..." -ForegroundColor Yellow
    $ManualContent = @"
# $PluginName User Manual

**Version $Version**

## Installation
See the installer for installation instructions.

## Parameters
[Auto-generated parameter list would go here]

## Credits
Built with Audio Plugin Coder (APC)

**© $(Get-Date -Format yyyy)** - https://noizefield.com
"@
    Set-Content -Path "$DocPath\USER_MANUAL.md" -Value $ManualContent

    Write-Host "✓ Basic documentation created" -ForegroundColor Green
    Write-Host "  You can edit: $DocPath\USER_MANUAL.md" -ForegroundColor Cyan
Полный SKILL.md на GitHub

Установить ship в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл ship?

Package a validated APC audio plugin into platform installers and release archives during the ship phase.

Как установить скилл ship?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ship запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ship с