Token导航 LogoToken导航

Agent Skill · 研究检索

auto-update-systems-expert(自动更新系统专家)

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

auto-update-systems-expert 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 12,597。

总安装 10,131周安装 280GitHub Stars 38下载 1,769核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:auto-update-systems-expert(自动更新系统专家)
来源仓库:https://github.com/martinholovsky/claude-skills-generator
仓库路径:skills/auto-update-systems-expert
安装命令:
npx skills add https://github.com/martinholovsky/claude-skills-generator --skill 'Auto-Update Systems Expert'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/martinholovsky/claude-skills-generator --skill 'Auto-Update Systems Expert'

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

auto-update-systems-expert 提供自动更新系统的完整领域知识,涵盖签名验证、安全发布与回滚机制等高风险场景设计原则。它强调安全第一,要求所有更新必须经过数字签名验证以防止中间人攻击。适用于需要构建高安全性自动分发系统的项目,提供威胁建模与高级部署模式参考。

使用前必读相关参考资料文件,理解风险等级后再实施具体方案。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/auto-update-systems-expert

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/martinholovsky/claude-skills-generator --skill…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

auto-update-systems-expert 怎么安装?

在终端执行 npx skills add https://github.com/martinholovsky/claude-skills-generator --skill 'Auto-Upd…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

auto-update-systems-expert 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

auto-update-systems-expert 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

auto-update-systems-expert 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

auto-update-systems-expert 用的人多吗?

公开数据是累计安装 10,131 次,近一周安装 280 次,下载 1,769 次,GitHub 38 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

auto-update-systems-expert 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
auto-update-systems-expert

自动更新系统专家 · 本页

10,13138接触敏感数据MIT未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Auto-Update Systems Expert

0. Mandatory Reading Protocol

CRITICAL: Before implementing, read these reference files:

ReferenceWhen to Read
references/security-examples.mdSigning keys, signature verification, secure endpoints
references/advanced-patterns.mdStaged rollouts, rollback, update channels, differential updates
references/threat-model.mdSecurity 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

ComponentPurpose
Update manifestJSON with version, download URLs, signatures
Signing keyEd25519 private key for signing updates
Public keyEmbedded in app for verification
Update endpointHTTPS server hosting manifests and artifacts

3.2 Version Recommendations

ComponentRecommendedNotes
Tauri1.5+ / 2.0+Latest security patches
Update protocolv2Better 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

5.1 Domain Vulnerability Landscape

Research Date: November 2024

CVESeverityDescriptionMitigation
CVE-2024-39698Highelectron-updater signature bypassUpdate electron-builder 6.3.0+
CVE-2024-24576HighRust Command injection (affects Tauri shell)Update Rust 1.77.2+
CVE-2024-35222HighTauri iFrame origin bypassUpdate Tauri 1.6.7+/2.0.0-beta.20+
CVE-2023-46115MediumTauri key leak via Vite configRemove TAURI_ from envPrefix

Key Insight: Signature verification bypass is the most critical vulnerability class. Always verify signatures are actually checked and cannot be bypassed.

5.2 OWASP Mapping

OWASP CategoryRisk LevelKey Controls
A02:2021 - Cryptographic FailuresCriticalEd25519 signatures, HTTPS only
A05:2021 - Security MisconfigurationHighProper endpoint config, key management
A08:2021 - Software Integrity FailuresCriticalSignature verification, pinning

5.3 Signature Verification

See references/security-examples.md for complete implementations

// Tauri handles signature verification automatically when configured correctly
// The signature in the manifest is verified against the embedded public key

// CRITICAL: Never bypass signature verification
// CRITICAL: Always use HTTPS for update endpoints
// CRITICAL: Protect the private signing key

6. Testing Standards

6.1 Update Testing

#[cfg(test)]
mod tests {
    #[tokio::test]
    async fn test_update_check() {
        let mock_server = MockUpdateServer::new();
        mock_server.set_latest_version("2.0.0");
        let result = check_for_updates_from(&mock_server.url()).await;
        assert_eq!(result.unwrap().version, "2.0.0");
    }

    #[tokio::test]
    async fn test_invalid_signature_rejected() {
        let mock_server = MockUpdateServer::new();
        mock_server.set_invalid_signature();
        assert!(install_update_from(&mock_server.url()).await.is_err());
    }

    #[tokio::test]
    async fn test_downgrade_prevented() {
        let mock_server = MockUpdateServer::new();
        mock_server.set_latest_version("0.9.0");
        assert!(check_for_updates_from(&mock_server.url()).await.unwrap().is_none());
    }
}

7. Implementation Workflow (TDD)

Step 1: Write Failing Test First

# tests/test_update_system.py
import pytest
from unittest.mock import patch
from update_manager import UpdateManager

class TestUpdateManager:
    @pytest.fixture
    def manager(self):
        return UpdateManager(current_version="1.0.0", update_endpoint="https://updates.example.com")

    @pytest.mark.asyncio
    async def test_check_for_update_returns_info(self, manager):
        with patch.object(manager, '_fetch_manifest') as mock:
            mock.return_value = {"version": "2.0.0", "signature": "valid_sig"}
            result = await manager.check_for_update()
            assert result.version == "2.0.0"

    @pytest.mark.asyncio
    async def test_invalid_signature_rejected(self, manager):
        with patch.object(manager, '_verify_signature', return_value=False):
            with pytest.raises(SecurityError, match="signature"):
                await manager.download_and_verify("https://...", "bad_sig")

    @pytest.mark.asyncio
    async def test_rollback_on_install_failure(self, manager):
        with patch.object(manager, '_install', side_effect=InstallError):
            with patch.object(manager, '_restore_backup') as mock_restore:
                with pytest.raises(InstallError):
                    await manager.install_update("/path/to/update")
                mock_restore.assert_called_once()

Step 2: Implement Minimum to Pass

# update_manager.py
class UpdateManager:
    async def check_for_update(self) -> Optional[UpdateInfo]:
        manifest = await self._fetch_manifest()
        if self._is_newer(manifest["version"]):
            return UpdateInfo(**manifest)
        return None

    async def download_and_verify(self, url: str, signature: str) -> bytes:
        data = await self._download(url)
        if not self._verify_signature(data, signature):
            raise SecurityError("Invalid signature")
        return data

Step 3: Refactor and Optimize

Add delta updates, caching, and bandwidth management after tests pass.

Step 4: Verify

pytest tests/test_update_system.py -v --tb=short
pytest tests/test_update_system.py --cov=update_manager --cov-report=term-missing
pytest tests/test_update_system.py -k "signature or rollback" -v

8. Performance Patterns

8.1 Delta Updates

# Good: Download only changed bytes
class DeltaUpdateManager:
    async def download_delta(self, from_version: str, to_version: str) -> bytes:
        delta_url = f"{self.endpoint}/deltas/{from_version}-{to_version}.patch"
        delta = await self._download(delta_url)
        return self._apply_delta(self.current_binary, delta)

# Bad: Download full binary every time
class FullUpdateManager:
    async def download_update(self, version: str) -> bytes:
        return await self._download(f"{self.endpoint}/full/{version}.tar.gz")

8.2 Background Downloads

# Good: Download in background without blocking UI
class BackgroundDownloader:
    async def download_in_background(self, url: str) -> None:
        self._download_task = asyncio.create_task(self._download(url))
        self._download_task.add_done_callback(self._on_download_complete)

    def get_progress(self) -> float:
        return self._bytes_downloaded / self._total_bytes

# Bad: Blocking download that freezes application
def download_blocking(url: str) -> bytes:
    return requests.get(url).content  # Blocks entire app

8.3 Bandwidth Throttling

# Good: Respect user's bandwidth limits
class ThrottledDownloader:
    def __init__(self, max_bytes_per_sec: int = 1_000_000):
        self.rate_limiter = RateLimiter(max_bytes_per_sec)

    async def download(self, url: str) -> bytes:
        chunks = []
        async with aiohttp.ClientSession() as session:
            async with session.get(url) as response:
                async for chunk in response.content.iter_chunked(8192):
                    await self.rate_limiter.acquire(len(chunk))
                    chunks.append(chunk)
        return b''.join(chunks)

# Bad: Saturate user's connection
async def download_unlimited(url: str) -> bytes:
    async with aiohttp.ClientSession() as session:
        return await (await session.get(url)).read()

8.4 Rollback Optimization

# Good: Keep only necessary backup data
class SmartRollback:
    def create_backup(self) -> BackupHandle:
        # Only backup files that will be modified
        modified_files = self._get_files_to_update()
        return self._backup_files(modified_files)

    def cleanup_old_backups(self, keep_count: int = 2) -> None:
        backups = sorted(self._list_backups(), key=lambda b: b.date)
        for backup in backups[:-keep_count]:
            backup.delete()

# Bad: Full backup every time
class FullBackup:
    def create_backup(self) -> str:
        # Copies entire application directory
        return shutil.copytree(self.app_dir, f"{self.app_dir}.backup")

8.5 Signature Caching

# Good: Cache verified signatures
class CachedSignatureVerifier:
    def __init__(self):
        self._verified_cache: Dict[str, bool] = {}

    def verify(self, data: bytes, signature: str) -> bool:
        cache_key = hashlib.sha256(data).hexdigest()
        if cache_key in self._verified_cache:
            return self._verified_cache[cache_key]

        result = self._verify_ed25519(data, signature)
        self._verified_cache[cache_key] = result
        return result

# Bad: Re-verify same data multiple times
class UncachedVerifier:
    def verify(self, data: bytes, signature: str) -> bool:
        return self._verify_ed25519(data, signature)  # Expensive each time

9. Common Mistakes & Anti-Patterns

MistakeWrongCorrect
Missing signatureNo pubkey in configAlways include pubkey in updater config
HTTP endpointshttp://updates...Always use https://updates...
Leaked keysenvPrefix: ['VITE_', 'TAURI_']Only envPrefix: ['VITE_'] (CVE-2023-46115)
No rollbackInstall without backupBackup before install, restore on failure
// CORRECT: Update with rollback
async fn update(&self) -> Result<(), UpdateError> {
    let backup = self.backup_current_version()?;
    if let Err(e) = self.try_update().await {
        self.restore_from_backup(&backup)?;
        return Err(e);
    }
    self.cleanup_backup(&backup)?;
    Ok(())
}

10. Pre-Implementation Checklist

Phase 1: Before Writing Code

  • Write failing tests for update check, signature verification, rollback
  • Review threat model in references/threat-model.md
  • Verify signing key management plan (generation, storage, rotation)
  • Define rollback strategy and backup scope
  • Plan bandwidth throttling and delta update support

Phase 2: During Implementation

  • Public key embedded in app config
  • Private key stored securely (CI secrets only)
  • All endpoints use HTTPS
  • Implement signature caching for performance
  • Add background download with progress tracking
  • Ensure atomic updates (all or nothing)
  • User data preserved during updates

Phase 3: Before Committing

  • All tests pass: pytest tests/test_update_system.py -v
  • Signature verification tested with invalid signatures
  • Downgrade attacks prevented
  • Rollback mechanism tested
  • Network failure scenarios tested
  • Updates tested on all platforms
  • No secrets in committed code
  • Key rotation procedure documented

11. Summary

Your goal is to create auto-update systems that are:

  • Cryptographically Secure: Ed25519 signatures verified on every update
  • Reliable: Atomic updates with rollback capability
  • User-Friendly: Clear communication, minimal disruption

You understand that auto-update systems are high-value targets because they:

  1. Can push code to all users simultaneously
  2. Run with elevated privileges during installation
  3. Users trust updates from the app they installed
  4. Compromised updates affect the entire user base

Security Reminder: NEVER skip signature verification. ALWAYS use HTTPS. ALWAYS protect the private signing key. ALWAYS implement rollback. When in doubt, consult references/threat-model.md for attack scenarios.

平台分布

Antigravity

30.07%
按下载量换算532

windsurf

23.81%
按下载量换算421

Claude Code

19.15%
按下载量换算339

Codex

14.12%
按下载量换算250

OpenCode

7.61%
按下载量换算135

Gemini CLI

3.39%
按下载量换算60

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills