push-to-registry

push-to-registry is a skill for Claude Code from hashicorp/agent-skills. It costs 40 tokens per session (1,203 once invoked), scanned B, original, MPL-2.0.

A workflow for sending metadata about Packer image builds to HCP Packer Registry, a service that tracks and manages built machine-image versions. It records information about builds rather than uploading the actual images.

In plain words
What is it for?
Use it to configure Packer templates with a registry bucket, description, bucket labels, and build labels.
Why use it?
A registry gives teams a central record of image versions and labels, making builds easier to track and govern.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the packer plugin — 4 skills shipped together

Good fit Use it to configure Packer templates with a registry bucket, description, bucket labels, and build labels.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hashicorp/agent-skills/push-to-registry
About the project

HashiCorp Agent Skills is a collection of reusable instructions and plugins that help coding agents work with Terraform and Packer. Developers use it to add HashiCorp product workflows to supported coding-agent tools, either individually or as product bundles.

hashicorp/agent-skills · 943 stars · on GitHub

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.

Any agent
npx skills add hashicorp/agent-skills --skill push-to-registry
Clone the repo
git clone --depth 1 https://github.com/hashicorp/agent-skills

Made for: Claude Code.

Or install packer, the plugin that ships this one along with the rest of its 4 skills.

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 push-to-registry

README.md
[![agentmods](https://agentmods.dev/badge/skills/hashicorp/agent-skills/push-to-registry/github.svg)](https://agentmods.dev/skills/hashicorp/agent-skills/push-to-registry)
Your own site
<a href="https://agentmods.dev/skills/hashicorp/agent-skills/push-to-registry"><img src="https://agentmods.dev/badge/skills/hashicorp/agent-skills/push-to-registry/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for push-to-registry

Your own site · 80×15
<a href="https://agentmods.dev/skills/hashicorp/agent-skills/push-to-registry"><img src="https://agentmods.dev/badge/skills/hashicorp/agent-skills/push-to-registry.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,203 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Privilege Escalation · line 67
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
  • medium Privilege Escalation · line 68
    Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
    Fix: Avoid sudo/root unless strictly required. Prefer least-privilege patterns. If elevation is needed, document the justification and scope.
How audits are shown
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.00040 $0.01203
Opus 5.5 $0.00016 $0.00481
Sonnet 5.5 $0.00008 $0.00241
Haiku 4.5 $0.00004 $0.00120

Measured 3mo ago against content hash 7fb27a52a48b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

push-to-registry scanned grade B 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 3mo 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

"sudo apt-get update",
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/packer/skills/push-to-registry/SKILL.md · 206 lines

How it starts

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

Push to HCP Packer Registry

Configure Packer templates to push build metadata to HCP Packer registry.

Reference: HCP Packer Registry

Note: HCP Packer is free for basic use. Builds push metadata only (not actual images), adding minimal overhead (<1 minute).

Basic Registry Configuration

packer {
  required_version = ">= 1.7.7"
}

variable "image_name" {
  type    = string
  default = "web-server"
}

locals {
  timestamp = regex_replace(timestamp(), "[- TZ:]", "")
}

source "amazon-ebs" "ubuntu" {
  region        = "us-west-2"
  instance_type = "t3.micro"

  source_ami_filter {
    filters = {
      name = "ubuntu/images/*ubuntu-jammy-22.04-amd64-server-*"
    }
    most_recent = true
    owners      = ["099720109477"]
  }

  ssh_username = "ubuntu"
  ami_name     = "${var.image_name}-${local.timestamp}"
}

build {
  sources = ["source.amazon-ebs.ubuntu"]

  hcp_packer_registry {
    bucket_name = var.image_name
    description = "Ubuntu 22.04 base image for web servers"

    bucket_labels = {
      "os"   = "ubuntu"
      "team" = "platform"
    }

    build_labels = {
      "build-time" = local.timestamp
    }
  }

  provisioner "shell" {
    inline = [
      "sudo apt-get update",
      "sudo apt-get upgrade -y",
    ]
  }
}

Authentication

Set environment variables before building:

export HCP_CLIENT_ID="your-service-principal-client-id"
export HCP_CLIENT_SECRET="your-service-principal-secret"
export HCP_ORGANIZATION_ID="your-org-id"
export HCP_PROJECT_ID="your-project-id"

packer build .

Create HCP Service Principal

  1. Navigate to HCP → Access Control (IAM)
  2. Create Service Principal
  3. Grant "Contributor" role on project
  4. Generate client secret
  5. Save client ID and secret

Registry Configuration Options

bucket_name (required)

The image identifier. Must stay consistent across builds!

bucket_name = "web-server"  # Keep this constant

bucket_labels (optional)

Metadata at bucket level. Updates with each build.

Read the full file on GitHub · 206 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. 3mo ago First seen · 206 lines · 40 tokens per session scan B 7fb27a52a48b

Subscribe to this mod's changes

push-to-registry is a skill published in the GitHub repository hashicorp/agent-skills (943 stars, last pushed 26d ago), licensed MPL-2.0. It adds 40 tokens to every session and 1,203 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

push-to-registry compared with skills from other repositories

push-to-registry next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
push-to-registryhashicorp/agent-skillsSkill94326d agoMPL-2.0B40Claude Code
gke-compute-classesgoogle/skillsSkill25kyesterdayApache-2.0A83Claude Code, Codex
cloud-operator-admin-setupgoogle/skillsSkill25kyesterdayApache-2.0A115Claude Code, Codex
gke-reliabilitygoogle/skillsSkill25kyesterdayApache-2.0A85Claude Code, Codex
gke-workload-securitygoogle/skillsSkill25kyesterdayApache-2.0A171Claude Code, Codex
nemo-automodel-launcher-configNVIDIA/skillsSkill4.2k3d agoApache-2.0A30Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3k3d agoMITA78Claude Code