---
name: "harbor-enterprise-registry-replication"
description: "Host private container registries with vulnerability scanning, image signing, and RBAC."
metadata:
  author: "Harbor"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "setup harbor registry"
  - "configure harbor replication rule"
  - "enable harbor vulnerability scan"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Harbor Enterprise Container Registry & Image Replication

Configures VMware Harbor: setting up multi-datacenter registry replication rules, automated Trivy scanning upon push, Cosign signature enforcement, immutable tag retention policies, and garbage collection.

## When to Invoke
Invoke this skill whenever you need to:
- setup harbor registry
- configure harbor replication rule
- enable harbor vulnerability scan

## Execution SOP & Rules
1. Deploy Harbor using official Helm chart with S3/MinIO backend storage and Redis caching.
2. Configure replication endpoint under Administration -> Registries and define pull/push policies.
3. Enable 'Prevent vulnerable images from running' in project settings with Severity threshold High.
4. Schedule weekly Garbage Collection in dry-run first before running destructive blob purges.

## 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.
