Agent skill

Homebrew Cask Creator

by malob in malob/nix-config

Coordinates specialist agents to create a Homebrew cask for a macOS app: pre-flight checks, download and inspection, a livecheck strategy and the remaining cask steps.

MITAuto-check passedDevelopment

Install Homebrew Cask Creator

skills CLI
$ npx skills add malob/nix-config --skill new-cask -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install malob/nix-config new-cask --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/malob/nix-config.git skills-src && mkdir -p .claude/skills && cp -r skills-src/configs/claude/plugins/homebrew/skills/new-cask .claude/skills/new-cask && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
new-cask
GitHub stars
463
Token cost
~1.6k tokens
SKILL.md length
516 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

Coordinates specialist agents to create a Homebrew cask for a macOS app: pre-flight checks, download and inspection, a livecheck strategy and the remaining cask steps.

  • Works in 6 steps: Pre-flight Checks → Download and Inspect → Livecheck Strategy → …
  • Adding a macOS application to Homebrew as a new cask
  • SKILL.md covers Input, Workflow Overview, Step-by-Step Execution and Error Recovery, plus 2 more sections
  • Calls brew and bundle

What it does

The skill runs in the main conversation and uses the Task tool to hand specialized work to agents. It starts from a URL; if none is given it asks for the app name, a direct DMG or ZIP link, or the product homepage, and it keeps a task list. A pre-flight checker first decides whether the app suits homebrew-cask submission: a REJECT verdict stops the run with an explanation, and a CAUTION verdict is put to you before continuing.

An app inspector then downloads the file, computes its SHA256, extracts metadata and runs Homebrew's `generate_cask_token` tool to get the canonical token, also reporting the version, bundle ID, minimum macOS, auto-update details and architecture. A livecheck advisor decides how updates will be detected, and if it finds a versioned URL in an appcast or release feed the file must be downloaded again to get the right checksum. The excerpt is cut off before the later steps. The tools it may use include brew, gh, curl, hdiutil, shasum and plutil.

When your agent uses it

  • Adding a macOS application to Homebrew as a new cask
  • Checking whether an app is suitable for homebrew-cask before investing time
  • Working out the livecheck strategy and checksum for a cask

Example prompts

  • “Create a Homebrew cask for the app downloadable at the URL I will paste next.”
  • “Is this DMG suitable for submission to homebrew-cask?”
  • “Package our internal menu bar app for Homebrew and work out how livecheck should track new versions.”

Requirements

  • Homebrew on macOS
  • The gh CLI and git for submission
  • Network access to download the app
  • Pre-approved tools (allowed-tools): Read, Grep, Glob, WebFetch, WebSearch, Bash(brew *), Bash(gh *), Bash(curl *), Bash(hdiutil *), Bash(defaults read *), Bash(shasum *), Bash(git *), Bash(plutil *), Bash(file *), Bash(lipo *), Bash(ls *), Bash(find *), Bash(strings *), Bash(unzip *), Bash(open *), Bash(${CLAUDE_PLUGIN_ROOT}/scripts/*)

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Pre-flight Checks
  2. Download and Inspect
  3. Livecheck Strategy
  4. Write the Cask
  5. Testing
  6. Submit PR

What it can do on your machine

Read from SKILL.md and the folder at commit 9cca0f4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Grep
    • Glob
    • WebFetch
    • WebSearch
    • Bash(brew *)
    • Bash(gh *)
    • Bash(curl *)
    • Bash(hdiutil *)
    • Bash(defaults read *)

    …and 11 more on the same allowed-tools line.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • brew
    • bundle

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Homebrew Cask Creator loads about 1.6k tokens when it runs. Until then it costs about 80 tokens; SKILL.md has 516 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~80
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from malob/nix-config at commit 9cca0f4, republished under its MIT licence (© malob). 516 words, ~1,607 tokens.

Download SKILL.mdSave it as .claude/skills/new-cask/SKILL.md (or your agent's skills folder).
name
new-cask
description
This skill should be used when the user asks to "add a cask to homebrew", "create a homebrew cask", "add an app to homebrew", "new cask for", "homebrew cask for", "package an app for homebrew", "submit to homebrew-cask", "make a cask", "contribute a cask", or wants to package a macOS application for Homebrew.
allowed-tools
Read, Grep, Glob, WebFetch, WebSearch, Bash(brew *), Bash(gh *), Bash(curl *), Bash(hdiutil *), Bash(defaults read *), Bash(shasum *), Bash(git *), Bash(plutil *), Bash(file *), Bash(lipo *), Bash(ls *), Bash(find *), Bash(strings *), Bash(unzip *), Bash(open *), Bash(${CLAUDE_PLUGIN_ROOT}/scripts/*)
argument-hint
<url>

Creating a New Homebrew Cask

You are orchestrating the creation of a new Homebrew cask. This skill coordinates multiple specialist agents and scripts to complete the workflow.

IMPORTANT: This skill runs in the main conversation context. You will use the Task tool to spawn agents for specialized work.

Input

URL provided: $ARGUMENTS

If no URL was provided, ask the user for:

  1. The app name, OR
  2. A download URL (direct link to DMG/ZIP), OR
  3. The product homepage (you'll find the download link)

Workflow Overview

1. Pre-flight checks    → Agent: pre-flight-checker
2. Download & inspect   → Agent: app-inspector
3. Livecheck strategy   → Agent: livecheck-advisor
4. Write cask file      → Agent: cask-writer
5. Testing              → Automated tests, install, createzap, uninstall
6. Submit PR            → Agent: pr-submitter

Create a task list to track progress through these steps.

Step-by-Step Execution

Step 1: Pre-flight Checks

Before investing time, verify the app is suitable:

Use the Task tool:
- subagent_type: homebrew:pre-flight-checker
- prompt: Check if this app is suitable for homebrew-cask submission.
  <include whatever info you have: URL, app name, homepage>

The agent will derive any missing info (app name from URL, homepage via search, etc.) and include it in the output.

Capture from output: App name, homepage, download URL, description - you'll need these for later steps.

Decision point: If the agent returns REJECT, stop and explain why to the user. If CAUTION, inform the user and ask if they want to proceed.

Step 2: Download and Inspect

Download and inspect the app in one step:

Use the Task tool:
- subagent_type: homebrew:app-inspector
- prompt: Download and inspect the app.
  Download URL: <url>
  Homepage: <homepage>

The agent will download the file, compute the SHA256, extract all metadata, and run Homebrew's generate_cask_token tool to get the canonical token.

Capture from output: Suggested token, SHA256, version, bundle ID, app name, min macOS, auto-update info (framework, appcast URL if found), architecture.

Use the suggested token from app-inspector for subsequent steps. This token comes from Homebrew's tooling and handles naming conventions and collision detection.

Note on versioned URLs: If the download URL is unversioned (e.g., App.dmg), the livecheck-advisor may find a versioned URL in an appcast, release feed, or other source. If so, you'll need to re-download using the versioned URL to get the correct SHA256.

Step 3: Livecheck Strategy

Determine how to check for updates:

Use the Task tool:
- subagent_type: homebrew:livecheck-advisor
- prompt: Recommend a livecheck strategy for <app-name>.
  Download URL: <url>
  Homepage: <homepage>
  Update URL: <appcast-or-feed-url-if-found>
  Current version: <version>

Get the recommended livecheck block.

Step 4: Write the Cask

Synthesize everything into a cask file:

Use the Task tool:
- subagent_type: homebrew:cask-writer
- prompt: Write a cask for <app-name> with this metadata:
  Token: <token>
  Version: <version>
  URL: <download-url>
  SHA256: <checksum> (or :no_check if unversioned URL)
  (If separate binaries per architecture, provide URL and SHA256 for each)
  Name: <display-name>
  Description: <one-line-desc>
  Homepage: <homepage>
  Bundle ID: <bundle-id>
  App bundle: <app-name>.app
  Min macOS: <min-version>
  Auto-updates: <yes/no>
  Livecheck: <livecheck-block>
  Architecture: <arm64/intel/universal, only if not universal>

Note: The zap stanza is added later after running createzap during testing.

Show full SKILL.md (215 more words)Show less
Step 5: Testing
Automated Tests

Run the validation script:

bash
${CLAUDE_PLUGIN_ROOT}/scripts/test-cask.sh "<token>"

If tests fail, review the output, fix the cask (often brew style --fix handles style issues), and re-run.

For unversioned URLs: Use --skip-livecheck flag.

Install and Validate
  1. Install:

    bash
    HOMEBREW_NO_INSTALL_FROM_API=1 brew install --cask <token>
  2. Launch:

    bash
    open -a "<App Name>"
  3. User verification: Ask the user to sign in or set up the app if needed, then confirm when done.

Zap Discovery
  1. Run createzap (try both app name and bundle ID):

    bash
    brew tap nrlquaker/createzap 2>/dev/null || true
    brew createzap "<App Name>"
    brew createzap "<bundle-id>"
  2. Update the cask - Add the discovered zap paths using the Edit tool. For simple additions you can edit directly; for significant changes, re-invoke the cask-writer agent.

  3. Uninstall:

    bash
    brew uninstall --cask <token>
  4. Re-run automated tests if zap stanza was added.

Step 6: Submit PR

When ready to submit:

Use the Task tool:
- subagent_type: homebrew:pr-submitter
- prompt: Submit a PR for the <token> cask.
  Version: <version>
  Cask path: <path-to-cask-file>
  All tests passed: yes

Error Recovery

If any step fails:

  • The task list shows which steps completed
  • You can resume from the failed step
  • Agent outputs are preserved in conversation history

Reference Documentation

For detailed guidance, agents can read these docs (at /opt/homebrew/docs/):

  • Acceptable-Casks.md - What's allowed
  • Cask-Cookbook.md - Stanza reference
  • Brew-Livecheck.md - Livecheck strategies
  • Adding-Software-to-Homebrew.md - Contribution process

Scripts Location

Scripts are at ${CLAUDE_PLUGIN_ROOT}/scripts/:

  • download-checksum.sh <url> [filename] - Download and SHA256
  • test-cask.sh <token> [--skip-livecheck] - Run audit/style/livecheck

© malob, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in configs/claude/plugins/homebrew/skills/new-cask of malob/nix-config.

Open the folder on GitHubat commit 9cca0f4

Compare with similar skills

Homebrew Cask Creator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Homebrew Cask Creator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Homebrew Cask Creator this skillmalob/nix-config463—~1.6kAutomated safety check: PassMIT
Mole CLI Release Flowtw93/Mole70k—~2.5kAutomated safety check: PassGPL-3.0
Releaseeugene1g/agent-safehouse2.1k—~3.5kAutomated safety check: PassApache-2.0
Gearcoleco Debuggingdrhelius/Gearcoleco141—~3.5kAutomated safety check: PassGPL-3.0
Go Upgradestraubt1/tfx110—~914Automated safety check: NotesMIT
Ship PRopenbootdotdev/openboot275—~3.6kAutomated safety check: WarnMIT

Similar skills

  • Runbook for assessing and executing a Mole CLI release: distribution channels, pre-flight checks, capital-V tags, build artifacts and the handoff to curated release notes.

    70k GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Release

    eugene1g/agent-safehouse

    Run the local Agent Safehouse release flow: inspect commits since the last published release, propose the next SemVer version and changelog, present a dry-run for confirmation, then update…

    2.1k GitHub stars~3.5k tokensUpdated 8 days ago
    DevelopmentAuto-check passed
  • Gearcoleco Debugging

    drhelius/Gearcoleco

    Debug and trace ColecoVision and Super Game Module games using the Gearcoleco emulator MCP server.

    141 GitHub stars~3.5k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Go Upgrade

    straubt1/tfx

    Upgrade macOS Go and all module dependencies in TFx via task go:upgrade, then verify build and tests.

    110 GitHub stars~914 tokensUpdated 1 mo ago
    DevelopmentAuto-check: notes
  • Ship PR

    openbootdotdev/openboot

    A skill your agent uses when the user is done editing and wants to ship the current branch via a pull request — phrases like "open a PR", "ship it", "ship this", "submit the PR", "let's send it"…

    275 GitHub stars~3.6k tokensUpdated 14 days ago
    DevelopmentAuto-check: warnings
  • Release

    vaayne/mori

    Release workflow for Mori macOS workspace terminal and MoriRemote iOS app.

    303 GitHub stars~1.2k tokensUpdated 2 mo ago
    MobileAuto-check passed

More from malob/nix-config

  • Deep Research Team

    malob/nix-config

    Coordinates a team of researcher agents across several rounds, with a lead who triages findings, assigns follow-ups and cross-checks key claims.

    463 GitHub starsUsed in 1 repo~5.8k tokens
    Auto-check passed
  • Scans project-local Claude Code settings files, finds permission patterns worth promoting to global config, then cleans up what global now covers.

    463 GitHub stars~4.1k tokensUpdated 4 days ago
    Auto-check passed
  • Nerd Font Icon Lookup

    malob/nix-config

    Works around Claude Code filtering private-use Unicode so agents can read and write Nerd Font icons in Starship, tmux and prompt configs.

    463 GitHub stars~697 tokensUpdated 4 days ago
    Auto-check passed
  • Web Research Search Tips

    malob/nix-config

    Practical guidance for multi-source web research with Exa, the Firecrawl CLI and Reddit MCP tools: when to search, when to fetch and which tool to prefer.

    463 GitHub starsUsed in 1 repo~2.4k tokens
    Auto-check passed

Works with

Categories

Questions about Homebrew Cask Creator

What does Homebrew Cask Creator do?

Coordinates specialist agents to create a Homebrew cask for a macOS app: pre-flight checks, download and inspection, a livecheck strategy and the remaining cask steps. The skill runs in the main conversation and uses the Task tool to hand specialized work to agents. It starts from a URL; if none is given it asks for the app name, a direct DMG or ZIP link, or the product homepage, and it keeps a task list.

When should I use Homebrew Cask Creator?

Homebrew Cask Creator fits situations like: adding a macOS application to Homebrew as a new cask; checking whether an app is suitable for homebrew-cask before investing time; working out the livecheck strategy and checksum for a cask.

How do I install Homebrew Cask Creator in Claude Code?

Run `npx skills add malob/nix-config --skill new-cask -a claude-code`. Or copy the skill folder (configs/claude/plugins/homebrew/skills/new-cask in malob/nix-config) into .claude/skills/new-cask in your project. Claude Code loads it when a task matches its description.

How do I install Homebrew Cask Creator in Codex?

Run `npx skills add malob/nix-config --skill new-cask -a codex`. Or copy the skill folder (configs/claude/plugins/homebrew/skills/new-cask in malob/nix-config) into .agents/skills/new-cask in your project. Codex loads it when a task matches its description.

Can I use Homebrew Cask Creator in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add malob/nix-config --skill new-cask -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/new-cask, .gemini/skills/new-cask, .github/skills/new-cask and .opencode/skills/new-cask in your project.

What does Homebrew Cask Creator need to run?

Going by SKILL.md and its folder, Homebrew Cask Creator needs the command-line tools its instructions call (brew and bundle). Our summary lists: Homebrew on macOS; The gh CLI and git for submission; Network access to download the app. Its frontmatter pre-approves these tools: Read, Grep, Glob, WebFetch, WebSearch, Bash(brew *), Bash(gh *), Bash(curl *), Bash(hdiutil *), Bash(defaults read *), Bash(shasum *), Bash(git *), Bash(plutil *), Bash(file *), Bash(lipo *), Bash(ls *), Bash(find *), Bash(strings *), Bash(unzip *), Bash(open *), Bash(${CLAUDE_PLUGIN_ROOT}/scripts/*).

Does Homebrew Cask Creator access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Homebrew Cask Creator safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Homebrew Cask Creator use?

Homebrew Cask Creator is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Homebrew Cask Creator use?

About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Homebrew Cask Creator?

Skills that share tags, products or a category with Homebrew Cask Creator: Mole CLI Release Flow (tw93/Mole, 70k stars), Release (eugene1g/agent-safehouse, 2.1k stars), Gearcoleco Debugging (drhelius/Gearcoleco, 141 stars) and Go Upgrade (straubt1/tfx, 110 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Homebrew Cask Creator?

malob (a GitHub user) maintains it in malob/nix-config, which has 463 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 4, 2026.

Source: malob/nix-config on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.