harbor-navigator

star 1

Navigate and query self-hosted Harbor container registry instances via REST API. Use when the user asks about Harbor projects, container images, repositories, artifacts, tags, vulnerability scans, replication policies, robot accounts, storage quotas, or audit logs. Triggers on mentions of Harbor, container registry, image repositories, docker images, artifact scanning, CVEs in images, replication, or requests to check what images exist or have been recently pushed. Supports multiple Harbor instances.

jpfielding By jpfielding schedule Updated 2/26/2026

name: harbor-navigator description: Navigate and query self-hosted Harbor container registry instances via REST API. Use when the user asks about Harbor projects, container images, repositories, artifacts, tags, vulnerability scans, replication policies, robot accounts, storage quotas, or audit logs. Triggers on mentions of Harbor, container registry, image repositories, docker images, artifact scanning, CVEs in images, replication, or requests to check what images exist or have been recently pushed. Supports multiple Harbor instances.

Harbor Navigator

Query self-hosted Harbor v2.x container registry instances via REST API v2.0 using the bundled go run ~/.claude/scripts/harbor-navigator/main.go CLI wrapper. Reads credentials from ~/.netrc. Uses unauthenticated access for read operations (works with OIDC instances where all projects are public). See references/api_endpoints.md for full endpoint reference.

Finding Hosts

Scan ~/.netrc for Harbor hostnames:

go run ~/.claude/scripts/harbor-navigator/main.go discover
go run ~/.claude/scripts/harbor-navigator/main.go discover myorg   # custom substring

Test a connection (use hostname or substring):

go run ~/.claude/scripts/harbor-navigator/main.go acme test

Commands

All commands: go run ~/.claude/scripts/harbor-navigator/main.go <host> <command> [args...]

<host> is a hostname or substring matching a ~/.netrc entry. The script auto-filters for harbor hosts.

Projects and Repositories

  1. List projects: go run ~/.claude/scripts/harbor-navigator/main.go acme projects 25
  2. Project details: go run ~/.claude/scripts/harbor-navigator/main.go acme project-info my-project
  3. List repositories in a project: go run ~/.claude/scripts/harbor-navigator/main.go acme repos my-project 25
  4. List artifacts (images) in a repository:
    go run ~/.claude/scripts/harbor-navigator/main.go acme artifacts my-project/my-repo 25
    
  5. List tags: go run ~/.claude/scripts/harbor-navigator/main.go acme tags my-project/my-repo
  6. Search projects and repos: go run ~/.claude/scripts/harbor-navigator/main.go acme search "nginx"
  7. Recently pushed repos:
    go run ~/.claude/scripts/harbor-navigator/main.go acme recent-pushes my-project 20
    go run ~/.claude/scripts/harbor-navigator/main.go acme recent-pushes          # all projects
    

Vulnerability Scanning

  1. View vulnerability report:
    go run ~/.claude/scripts/harbor-navigator/main.go acme vulns my-project/my-repo latest
    
  2. Trigger a scan (requires authenticated access): go run ~/.claude/scripts/harbor-navigator/main.go acme scan my-project/my-repo latest

Replication and Registries

  1. Replication policies: go run ~/.claude/scripts/harbor-navigator/main.go acme replication-policies
  2. Replication execution history: go run ~/.claude/scripts/harbor-navigator/main.go acme replication-runs 5 10
  3. Connected registries: go run ~/.claude/scripts/harbor-navigator/main.go acme registries

Administration

  1. System info: go run ~/.claude/scripts/harbor-navigator/main.go acme system-info
  2. Component health: go run ~/.claude/scripts/harbor-navigator/main.go acme health
  3. Labels: go run ~/.claude/scripts/harbor-navigator/main.go acme labels g (g=global, p=project)
  4. Garbage collection: go run ~/.claude/scripts/harbor-navigator/main.go acme gc
  5. Storage quotas: go run ~/.claude/scripts/harbor-navigator/main.go acme quotas
  6. Robot accounts: go run ~/.claude/scripts/harbor-navigator/main.go acme robot-accounts
  7. Audit log: go run ~/.claude/scripts/harbor-navigator/main.go acme audit-log 25

Note: Some admin endpoints (gc, quotas, robot-accounts, audit-log) require authenticated access and may fail with unauthenticated mode.

Utility

  1. Current user: go run ~/.claude/scripts/harbor-navigator/main.go acme whoami
  2. Test connection: go run ~/.claude/scripts/harbor-navigator/main.go acme test

Workflow: Image Audit

  1. Run projects to see all projects and repo counts
  2. Run repos <project> to browse repositories
  3. Run artifacts <project/repo> to see images with scan status
  4. For interesting images, run tags <project/repo> to see available tags
  5. Run vulns <project/repo> <tag> to view CVEs on specific images
  6. Run search <term> to find specific images across all projects
  7. Run recent-pushes to see what was updated recently
Install via CLI
npx skills add https://github.com/jpfielding/claude --skill harbor-navigator
Repository Details
star Stars 1
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator