chef-cli

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

A command-line guide for Chef, a system for managing machine configuration, using its `knife` and `chef` tools. It covers nodes, cookbooks, roles, and environments on a Chef server.

In plain words
What is it for?
It is for inspecting Chef-managed machines and configuration components on the appropriate Chef server.
Why use it?
It prevents commands from accidentally using the default configuration, which may point to the wrong Chef organisation or environment. It also keeps production and staging settings separate.

Skill for Claude CodeCodex

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

Good fit It is for inspecting Chef-managed machines and configuration components on the appropriate Chef server.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/abdullahkhawer/devops-skills/chef-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 chef-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 chef-cli

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/abdullahkhawer/devops-skills/chef-cli"><img src="https://agentmods.dev/badge/skills/abdullahkhawer/devops-skills/chef-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 857 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.00033 $0.00857
Opus 5.5 $0.00013 $0.00343
Sonnet 5.5 $0.00007 $0.00171
Haiku 4.5 $0.00003 $0.00086

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

Security

Grade A, and why

chef-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/chef-cli/SKILL.md · 87 lines

How it starts

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

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.rb

Available 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

Read the full file on GitHub · 87 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 · 87 lines · 33 tokens per session scan A 86a8e6145c34

Subscribe to this mod's changes

chef-cli is a skill published in the GitHub repository abdullahkhawer/devops-skills (8 stars, last pushed 24d ago), licensed Apache-2.0. It adds 33 tokens to every session and 857 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

lore

SpecStory Lore - mine your SpecStory coding histories (any agent - Claude Code, Codex, Cursor, Gemini, and more) into a persistent corpus, surface your reproducible workflows with corroborated evidence, and interactively forge the chosen ones into skills installed across all your agent harnesses. Use when the user…

specstoryai/getspecstory · 109 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

backseat-driver-testing

Testing strategies for Calva Backseat Driver MCP tools. Use when: Testing Backseat Driver, validating tool updates, testing structural editing workflows, verifying REPL evaluation with who-tracking, testing shadow-cljs runtime discovery and targeting, testing output log filtering, testing load-file tool, smoke testing…

BetterThanTomorrow/calva-backseat-driver · 106 tokens

editing-clojure-files

Structural editing of Clojure files using Backseat Driver tools. Use when editing or planning edits: creating/adding/inserting/replacing/deleting top-level forms, fixing bracket balance, resolving indentation issues, planning multi-edit sequences, recovering from failed edits, or working with Rich Comment Forms in…

BetterThanTomorrow/calva-backseat-driver · 135 tokens