packer-cli

packer-cli is a skill for Claude Code, Codex from abdullahkhawer/devops-skills. It costs 29 tokens per session (747 once invoked), scanned A, original, Apache-2.0.

A command-line skill for HashiCorp Packer, a tool that builds machine images from configuration templates. It can validate, format, and build those templates for different environments.

In plain words
What is it for?
Use it to format and validate Packer templates, then build machine images for staging or production when approved.
Why use it?
It gives a repeatable way to check image templates before building them and keeps environment-specific variables explicit. Builds require user confirmation.

Skill for Claude CodeCodex

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

Good fit Use it to format and validate Packer templates, then build machine images for staging or production when approved.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/abdullahkhawer/devops-skills/packer-cli
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 abdullahkhawer/devops-skills --skill packer-cli
Clone the repo
git clone --depth 1 https://github.com/abdullahkhawer/devops-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 packer-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/packer-cli/github.svg)](https://agentmods.dev/skills/abdullahkhawer/devops-skills/packer-cli)
Your own site
<a href="https://agentmods.dev/skills/abdullahkhawer/devops-skills/packer-cli"><img src="https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/packer-cli/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 packer-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/abdullahkhawer/devops-skills/packer-cli"><img src="https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/packer-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 747 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00029 $0.00747
Opus 5.5 $0.00012 $0.00299
Sonnet 5.5 $0.00006 $0.00149
Haiku 4.5 $0.00003 $0.00075

Measured 23d ago against content hash 4d71602289d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

packer-cli scanned grade A with 0 findings 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 23d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/packer-cli/SKILL.md · 80 lines

How it starts

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

Packer CLI Skill

Use the template table and rules below when constructing all packer commands.

Configuration

Update the table below with your Packer template files and target build environments:

Environment Template File Variables File
Production <your-prod-template>.pkr.hcl <your-prod.pkrvars.hcl>
Staging / Non-Prod <your-nonprod-template>.pkr.hcl <your-nonprod.pkrvars.hcl>

If the target environment is unclear, ask the user before running any command.

Prerequisites (one-time setup by user)

If packer is not installed, inform the user that setup is required and ask them to complete the following steps manually. Do not perform these steps yourself.

brew install packer
packer init <template.pkr.hcl>

Command Format

packer <command> -var-file=<vars-file> <template.pkr.hcl>

Examples

# Non-Prod — validate before building
packer validate -var-file=<your-nonprod.pkrvars.hcl> <your-nonprod-template>.pkr.hcl

# Non-Prod — build (only with user confirmation)
packer build -var-file=<your-nonprod.pkrvars.hcl> <your-nonprod-template>.pkr.hcl

Available Commands

Read-only (safe, no confirmation needed)

Command Description
packer validate -var-file=<file> <template> Validate template syntax and configuration
packer fmt -check -diff <template> Check formatting without modifying the file
packer inspect <template> Show builders, provisioners, and variables defined
packer console Open an interactive expression evaluator
packer version Show Packer version

Mutating operations (confirm with user before running)

Command Description
packer build -var-file=<file> <template> Build a new machine image — provisions real cloud/VM resources during the build
packer fmt <template> Reformat a template file in place
packer init <template> Install required plugins

Never run — requires explicit human approval

Read the full file on GitHub · 80 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. 23d ago First seen · 80 lines · 29 tokens per session scan A 4d71602289d1

Subscribe to this mod's changes

packer-cli is a skill published in the GitHub repository abdullahkhawer/devops-skills (8 stars, last pushed 24d ago), licensed Apache-2.0. It adds 29 tokens to every session and 747 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.

Related

Other skills, from other repositories

tianji-worker

Use when creating, testing, deploying, invoking, debugging, scheduling, pausing, or rolling back Tianji Workers, or managing their environment variables and shared modules.

msgbyte/tianji · 38 tokens

docs-manage

Manage the Grounded Docs MCP Server documentation index. Covers scraping and indexing documentation from URLs or local files, refreshing existing indexes with changed content, removing libraries from the index, and compacting the SQLite store. Use when you need to add, update, or delete indexed documentation, or…

arabold/docs-mcp-server · 67 tokens

fetch-url

Fetch a single URL and convert its content to Markdown. Use when you need to read a web page, documentation page, or API reference without indexing it. The content is returned as plain Markdown text on stdout.

arabold/docs-mcp-server · 45 tokens

workthreads

SpecStory Workthreads - a weekly work-thread rollup across a team's repos from SpecStory coding histories (any agent - Claude Code, Codex, Cursor, Gemini, and more). It groups the window's sessions into threads of work per project and labels each new / open / recently closed, so a lead sees what shipped, what is still…

specstoryai/getspecstory · 126 tokens

dokploy-deploy

This skill should be used when user asks to "deploy with Dokploy", "use Dokploy Cloud", "manage self-hosted Dokploy", "deploy Docker Compose on Dokploy", "manage Dokploy databases", "configure Dokploy domains", or "look up Dokploy CLI commands".

fcakyon/claude-codex-settings · 63 tokens

openship-config

This skill should be used when the user asks to "create openship.json", "configure an OpenShip deployment", "make a repo deployable on OpenShip", or fix "openship config validate" errors.

fcakyon/claude-codex-settings · 47 tokens