---
name: "longhorn-distributed-block-storage"
description: "Deploy lightweight, highly available persistent block storage with automated volume replication."
metadata:
  author: "Longhorn"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "install longhorn storage"
  - "create longhorn storageclass"
  - "backup longhorn volume s3"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Longhorn Cloud-Native Distributed Block Storage

Deploys Rancher Longhorn: configuring multi-replica block storage across worker nodes, automated snapshot schedules, volume disaster recovery sync, recurring S3 backups, and Longhorn UI dashboard.

## When to Invoke
Invoke this skill whenever you need to:
- install longhorn storage
- create longhorn storageclass
- backup longhorn volume s3

## Execution SOP & Rules
1. Install Longhorn using Helm: helm install longhorn longhorn/longhorn --namespace longhorn-system.
2. Set default StorageClass to longhorn (numberOfReplicas: 3).
3. Configure Backup Target in Longhorn UI settings: s3://my-backup-bucket@region/.
4. Attach RecurringJobs to volumes for automated snapshot pruning and backup uploading.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
