harbor-api

harbor-api is a skill for Claude Code, Codex from Aidas-dev/k8s-agent-skills. It costs 45 tokens per session (2,572 once invoked), scanned A, original, MIT.

A guide for using Harbor's REST API, a web interface for automating Harbor tasks. Harbor is a service that stores container images and can scan them for security problems.

In plain words
What is it for?
Use it to automate projects, stored files called artifacts, robot accounts, image replication, vulnerability scans, user-directory settings, and cleanup operations.
Why use it?
It gives developers the relevant API routes and authentication methods for managing Harbor without doing each task manually in its web interface.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/aidas-dev/k8s-agent-skills/harbor-api
Any agent
npx skills add Aidas-dev/k8s-agent-skills --skill harbor-api
Clone the repo
git clone --depth 1 https://github.com/Aidas-dev/k8s-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for harbor-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/aidas-dev/k8s-agent-skills/harbor-api.svg)](https://agentmods.dev/skills/aidas-dev/k8s-agent-skills/harbor-api)
Your own site
<a href="https://agentmods.dev/skills/aidas-dev/k8s-agent-skills/harbor-api"><img src="https://agentmods.dev/badge/skills/aidas-dev/k8s-agent-skills/harbor-api.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,572 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.02572
Opus 5 $0.00023 $0.01286
Sonnet 5 $0.00009 $0.00514
Haiku 4.5 $0.00005 $0.00257

Measured 6d ago against content hash 2efb7e59ba47, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

harbor-api scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

description: Use when working with the Harbor REST API v2 — project management, artifact operations, robot accounts, replication, vulnerability scanning, OIDC/LDAP config, garbage collection, and general API automation w
skills/harbor-api/SKILL.md · 232 lines

How it starts

The opening of the file, as written. The whole thing — 232 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Harbor REST API v2

Base: /api/v2.0. Latest stable: Harbor v2.15.1 (May 2026). API spec: Swagger 2.0 at api/v2.0/swagger.yaml. Built-in Swagger UI: https://<harbor>/devcenter-api-2.0.

Authentication

Method Header / Usage Use Case
Basic Auth -u username:password Direct admin/developer API access
Bearer Token Authorization: Bearer <token> Obtained from /service/token per Docker Registry v2 spec
Robot Account -u robot$<prefix><name>:<secret> Automated CI/CD with scoped permissions
OIDC ID Token Authorization: Bearer <oidc_id_token> OIDC-authenticated users (basic auth not supported for OIDC)

Bearer Token Flow

# Get token for push/pull access to a repo
TOKEN=$(curl -s -u "username:password" \
  "https://harbor.example.com/service/token?service=harbor-registry&scope=repository:project/repo:pull,push" \
  | jq -r '.token')

# Use for registry operations
curl -H "Authorization: Bearer $TOKEN" https://harbor.example.com/v2/_catalog

Robot Account Notes

  • Secret shown only once at creation — Harbor does not store it
  • Username format: robot$<prefix><account_name>
  • System-level (v2.2.0+) or project-level scope
  • Permissions: granular RBAC (push, pull, create, read, delete, list, etc.)

Key Endpoints

Health & Status

Method Endpoint Purpose
GET /health Component health (no auth)
GET /statistics Project & repo statistics
GET /search?q=<query> Search projects, repos, helm charts

Project Management

Method Endpoint Purpose
GET /projects List projects (filter: name, public, owner)
POST /projects Create project
HEAD /projects Check project name exists
GET /projects/{name_or_id} Get project
PUT /projects/{name_or_id} Update project
DELETE /projects/{name_or_id} Delete project
GET /projects/{name_or_id}/_deletable Check if deletable
GET /projects/{name_or_id}/summary Project summary
GET /projects/{name_or_id}/metadatas List metadata
POST /projects/{name_or_id}/metadatas Add metadata
GET/PUT/DELETE /projects/{name_or_id}/metadatas/{meta_name} CRUD metadata entry
GET /projects/{name_or_id}/members List members
POST /projects/{name_or_id}/members Add member
GET/PUT/DELETE /projects/{name_or_id}/members/{mid} CRUD member

Read the full file on GitHub · 232 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 232 lines · 45 tokens per session scan A 2efb7e59ba47

Subscribe to this mod's changes

harbor-api is a skill published in the GitHub repository Aidas-dev/k8s-agent-skills (2 stars, last pushed 23d ago), licensed MIT. It adds 45 tokens to every session and 2,572 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

apify-actor-development

Important: Before you begin, fill in the generatedBy property in the meta section of .actor/actor.json. Replace it with the tool and model you're currently using, such as "Claude Code with Claude Sonnet 4.5". This helps Apify monitor and improve AGENTS.md for specific AI tools and models.

sickn33/agentic-awesome-skills · 71 tokens

dynamo-recipe-runner

Select, validate, patch, and deploy existing NVIDIA Dynamo Kubernetes recipes. Use for model/backend/GPU/deployment-mode recipe bring-up; use router-starter for router-only mode work and troubleshoot for broken deployments.

NVIDIA/skills · 49 tokens

enterprise

Enterprise-grade systems with microservices, Kubernetes, Terraform, and AI Native methodology. For multi-feature initiatives spanning a release timeline, combine with /sprint master-plan (v2.1.13) to group features into a single 8-phase sprint container with shared scope/budget and 4 auto-pause triggers…

ww-w-ai/bkit-claude-code · 106 tokens

deploy

Elixir/Phoenix deployment patterns — Dockerfile, fly.toml, runtime.exs, mix release, rel/ overlays. Use when configuring Fly.io, Docker, CI/CD, health checks, or production migrations.

oliver-kriska/claude-elixir-phoenix · 46 tokens

chatwoot

Self-host customer support with Chatwoot. Use when a user asks to set up open-source customer support, add live chat without SaaS costs, build a multi-channel inbox, or deploy a free Intercom alternative.

TerminalSkills/skills · 48 tokens

gcp-essentials

Use when running a small product on core Google Cloud via the gcloud CLI: a project, Cloud Run deploys, a locked-down Cloud Storage bucket, managed Cloud SQL, and least-privilege IAM wiring them together. NOT AWS (that is aws-essentials), NOT the CI pipeline that ships the image (that is deployment), NOT Postgres…

ericrisco/rsc-harness · 91 tokens