chef-cli
Skill8 starsChanged 7 months agoApache-2.0View on GitHub
Perform Chef configuration management operations using the knife and chef CLI tools. Use for inspecting nodes, cookbooks, roles, and environments on a Chef server.
- Installs packages
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
- 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
- packer-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
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 3 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use the server/organization table and rules below when constructing all knife/chef commands.
- Distinctive: line 12
Update the table below with your Chef server organizations before using this skill:
- Distinctive: line 19
If the target environment is unclear, ask the user before running any command.
- Very specific: line 23
If knife/chef is not installed or no config exists, inform the user that setup is required and ask them to complete the following steps …
- Very specific: line 32
Always pass --config explicitly — never rely on the default ~/.chef/knife.rb, which may point to the wrong organization:
- Distinctive: line 81
NEVER target a Chef server/organization not listed in the configuration table above.
- Very specific: line 82
Always pass --config explicitly on every command — never rely on the default knife.rb.
- Very specific: line 83
NEVER run knife ssh, chef-client against production nodes, or any deletion command without explicit user instruction.
- Very specific: line 84
NEVER print, display, or store the contents of .pem client key files used for Chef server authentication.
- Very specific: line 85
Always run chef-client --why-run (dry-run) before suggesting a real cookbook run against nodes.
- Very specific: line 86
If a node name or cookbook version is unfamiliar, look it up with knife node show/knife cookbook show first.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Chef CLI Skill
Use the server/organization table and rules below when constructing all knife/chef commands.
Configuration
Update the table below with your Chef server organizations before using this skill:
| Environment | Chef Server URL | Organization | Config File |
| Production | <your-prod-chef-server-url> | <your-prod-org> | ~/.chef/prod_knife.rb |
| Staging / Non-Prod | <your-nonprod-chef-server-url> | <your-nonprod-org> | ~/.chef/staging_knife.rb |
If the target environment is unclear, ask the user before running any command.
Prerequisites (one-time setup by user)
If knife/chef is not installed or no config exists, inform the user that setup is required and ask them to complete the following steps manually. Do not perform these steps yourself.
brew install --cask chef-workstation
knife configure --config-file <config-file>Command Format
Always pass --config explicitly — never rely on the default ~/.chef/knife.rb, which may point to the wrong organization:
knife <command> --config <config-file> [options]Examples
# Non-Prod
knife node list --config ~/.chef/staging_knife.rb
knife node show <node-name> --config ~/.chef/staging_knife.rbAvailable Commands
Read-only (safe, no confirmation needed)
| Command | Description |
knife node list / knife node show <name> | List or show node details |
knife cookbook list / knife cookbook show <name> | List or show cookbooks |
knife role list / knife role show <name> | List or show roles |
knife environment list / knife environment show <name> | List or show environments |
knife search node "<query>" | Search nodes |
knife status | Show recent chef-client run status across nodes |
chef exec chef-client --why-run | Dry-run a cookbook against local resources, showing what would change |
Mutating operations (confirm with user before running)
| Command | Description |
knife cookbook upload <name> | Upload a cookbook to the Chef server |
knife role create/from file | Create or update a role |
knife environment from file | Create or update an environment |
knife node run_list add <node> <item> | Modify a node's run list |
Never run — requires explicit human approval
| Command | Reason |
knife node delete <name> | Irreversible node deregistration |
knife cookbook delete <name> | Irreversible cookbook deletion |
knife environment delete <name> | Irreversible environment deletion |
knife ssh <query> "<command>" | Executes arbitrary commands on live nodes |
chef-client run directly against production nodes | Applies real configuration changes to live production infrastructure |
Rules
- NEVER target a Chef server/organization not listed in the configuration table above. If a command references an unfamiliar organization, stop and ask the user to confirm.
- Always pass
--configexplicitly on every command — never rely on the defaultknife.rb. - NEVER run
knife ssh,chef-clientagainst production nodes, or any deletion command without explicit user instruction. - NEVER print, display, or store the contents of
.pemclient key files used for Chef server authentication. - Always run
chef-client --why-run(dry-run) before suggesting a real cookbook run against nodes. - If a node name or cookbook version is unfamiliar, look it up with
knife node show/knife cookbook showfirst.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
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.

