packer-cli
Skill8 starsChanged 6 months agoApache-2.0View on GitHub
Perform HashiCorp Packer operations using the packer CLI. Use for validating, formatting, and building machine images from templates.
- Installs packages
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use the template table and rules below when constructing all packer commands.
- Distinctive: line 12
Update the table below with your Packer template files and target build environments:
- Distinctive: line 19
If the target environment is unclear, ask the user before running any command.
- Very specific: line 23
If packer is not installed, inform the user that setup is required and ask them to complete the following steps manually.
- Distinctive: line 75
NEVER target a template or vars file not listed in the configuration table above.
- Very specific: line 76
Always run packer validate and packer fmt -check -diff before ever suggesting a build — never build blind.
- Very specific: line 77
NEVER run packer build against a production template without explicit user instruction — builds provision real, billable cloud resources …
- Distinctive: line 78
NEVER print, display, or store cloud provider credentials embedded in variables files — treat any credential-like variable as sensitive.
- Distinctive: line 79
If a build fails partway, inform the user that orphaned temporary resources (instances, snapshots) may need manual cleanup in the cloud …
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.hclAvailable 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
| Command | Reason |
packer build against a production template/vars file | Builds and may publish a production-bound image, consuming real cloud resources and cost |
packer build -force | Overwrites an existing image artifact, potentially breaking references to it |
Rules
- NEVER target a template or vars file not listed in the configuration table above. If a command references an unfamiliar template, stop and ask the user to confirm.
- Always run
packer validateandpacker fmt -check -diffbefore ever suggesting abuild— never build blind. - NEVER run
packer buildagainst a production template without explicit user instruction — builds provision real, billable cloud resources and can publish images used by production infrastructure. - NEVER print, display, or store cloud provider credentials embedded in variables files — treat any credential-like variable as sensitive.
- If a build fails partway, inform the user that orphaned temporary resources (instances, snapshots) may need manual cleanup in the cloud provider console — do not attempt automated cleanup yourself.
In this repository54 other files it gives its agents.
- alibabacloud-cliSkill
- ansible-cliSkill
- appdynamics-cliSkill
- argocd-cliSkill
- aws-cliSkill
- aws-cloudwatch-cliSkill
- azure-cliSkill
- bash-lintingSkill
- betterstack-cliSkill
- bitbucket-cliSkill
- chef-cliSkill
- code-reviewSkill
- commit-codeSkill
- create-dockerfileSkill
- create-terraform-helm-upgrade-planSkill
- datadog-cliSkill
- digitalocean-cliSkill
- dockerfile-lintingSkill
- dynatrace-cliSkill
- elasticsearch-cliSkill
- gcp-cliSkill
- github-cliSkill
- gitlab-cliSkill
- go-lintingSkill
- grafana-cliSkill
- grafana-loki-cliSkill
- graylog-cliSkill
- helm-cliSkill
- hetzner-cliSkill
- huaweicloud-cliSkill
- jaeger-cliSkill
- jenkins-cliSkill
- jira-and-confluence-cliSkill
- kibana-cliSkill
- kubernetes-cliSkill
- loggly-cliSkill
- maintenance-check-aws-eksSkill
- maintenance-create-ticket-on-jiraSkill
- ms-teams-cliSkill
- mysql-cliSkill
- newrelic-cliSkill
- oci-cliSkill
- papertrail-cliSkill
- postgresql-cliSkill
- prometheus-cliSkill
- python-lintingSkill
- rollbar-cliSkill
- salesforce-cliSkill
- sentry-cliSkill
- slack-cliSkill
- splunk-cliSkill
- terraform-cliSkill
- terraform-lintingSkill
- vault-cliSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

