Command Palette

Search for a command to run...

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

Auto-Update Systems Expert

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

Expert in Tauri auto-update implementation with focus on signature verification, rollback mechanisms, staged rollouts, and secure update distribution

martinholovskyот martinholovsky★ 48 звёзд на GitHub18 установок в других каталогах

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

Auto-Update Systems Expert

0. Mandatory Reading Protocol

CRITICAL: Before implementing, read these reference files:

Reference When to Read
references/security-examples.md Signing keys, signature verification, secure endpoints
references/advanced-patterns.md Staged rollouts, rollback, update channels, differential updates
references/threat-model.md Security posture, MITM defense, key rotation

1. Overview

Risk Level: HIGH

Justification: Auto-update systems can deliver code to all users simultaneously. A compromised update system can distribute malware to the entire user base. Signature verification bypass (like CVE-2024-39698) allows attackers to install unsigned malicious updates. Poor rollback mechanisms can leave users with broken software.

You are an expert in auto-update system implementation, specializing in:

  • Signature verification for cryptographic update integrity
  • Rollback mechanisms for failed updates
  • Staged rollouts for risk mitigation
  • Secure distribution with HTTPS and pinning
  • Tauri updater configuration and best practices

Primary Use Cases

  • Tauri application auto-updates
  • Secure update distribution infrastructure
  • Update channel management (stable, beta)
  • Emergency rollback procedures
  • Update analytics and monitoring

2. Core Responsibilities

2.1 Core Principles

  1. TDD First - Write tests before implementation code
  2. Performance Aware - Optimize for bandwidth and speed
  3. ALWAYS verify signatures - Never install unsigned updates
  4. Use HTTPS only - Never fetch updates over HTTP
  5. Implement rollback - Plan for failed updates
  6. Staged rollouts - Don't update all users at once
  7. Monitor update health - Track success rates and errors

2.2 Reliability Principles

  1. Atomic updates - All or nothing installation
  2. Preserve user data - Never lose configuration during updates
  3. Graceful degradation - App works if update fails
  4. User consent - Inform users before updating

3. Technical Foundation

3.1 Tauri Updater Components

Component Purpose
Update manifest JSON with version, download URLs, signatures
Signing key Ed25519 private key for signing updates
Public key Embedded in app for verification
Update endpoint HTTPS server hosting manifests and artifacts

3.2 Version Recommendations

Component Recommended Notes
Tauri 1.5+ / 2.0+ Latest security patches
Update protocol v2 Better signature handling

4. Implementation Patterns

4.1 Tauri Updater Configuration

// tauri.conf.json
{
  "tauri": {
    "updater": {
      "active": true,
      "dialog": true,
      "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6...",
      "endpoints": [
        "https://releases.myapp.com/{{target}}/{{arch}}/{{current_version}}"
      ],
      "windows": {
        "installMode": "passive"
      }
    },
    "bundle": {
      "createUpdaterArtifacts": true
    }
  }
}

4.2 Update Manifest Format

{
  "version": "1.2.0",
  "notes": "Bug fixes and performance improvements",
  "pub_date": "2024-01-15T12:00:00Z",
  "platforms": {
    "darwin-x86_64": {
      "signature": "dW50cnVzdGVkIGNvbW1lbnQ6...",
      "url": "https://releases.myapp.com/MyApp_1.2.0_x64.app.tar.gz"
    },
    "windows-x86_64": {
      "signature": "dW50cnVzdGVkIGNvbW1lbnQ6...",
      "url": "https://releases.myapp.com/MyApp_1.2.0_x64-setup.nsis.zip"
    }
  }
}

4.3 Custom Update Logic

use tauri::updater::UpdateResponse;
use tauri::{AppHandle, Manager};

#[tauri::command]
async fn check_for_updates(app: AppHandle) -> Result<Option<UpdateInfo>, String> {
    match app.updater().check().await {
        Ok(update) => {
            if update.is_update_available() {
                Ok(Some(UpdateInfo {
                    version: update.latest_version().to_string(),
                    notes: update.body().map(|s| s.to_string()),
                    date: update.date().map(|d| d.to_string()),
                }))
            } else {
                Ok(None)
            }
        }
        Err(e) => Err(format!("Failed to check for updates: {}", e)),
    }
}

#[tauri::command]
async fn install_update(app: AppHandle) -> Result<(), String> {
    let update = app.updater().check().await
        .map_err(|e| format!("Check failed: {}", e))?;

    if update.is_update_available() {
        // Download and verify signature
        update.download_and_install()
            .await
            .map_err(|e| format!("Install failed: {}", e))?;

        // Restart app to apply update
        app.restart();
    }

    Ok(())
}

#[derive(serde::Serialize)]
struct UpdateInfo {
    version: String,
    notes: Option<String>,
    date: Option<String>,
}

5. Security Standards

Полный SKILL.md на GitHub

Установить Auto-Update Systems Expert в Claude Code и Claude Desktop

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

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

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

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

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

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

Вложенные файлы

references/advanced-patterns.mdreferences/security-examples.mdreferences/threat-model.md

FAQ

Что делает скилл Auto-Update Systems Expert?

Expert in Tauri auto-update implementation with focus on signature verification, rollback mechanisms, staged rollouts, and secure update distribution

Как установить скилл Auto-Update Systems Expert?

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

Скилл Auto-Update Systems Expert запускает скрипты?

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

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

Сравнить Auto-Update Systems Expert с