AgentSkillsCN

homebrew-formula-generator

为 macOS 和 Linux 平台上的 CLI 分发生成 Homebrew 公式。

SKILL.md
--- frontmatter
name: homebrew-formula-generator
description: Generate Homebrew formula for CLI distribution on macOS and Linux.
allowed-tools: Read, Write, Edit, Bash, Glob, Grep

Homebrew Formula Generator

Generate Homebrew formula for CLI distribution.

Generated Patterns

ruby
class Myapp < Formula
  desc "My CLI application"
  homepage "https://github.com/myuser/myapp"
  url "https://github.com/myuser/myapp/releases/download/v1.0.0/myapp-1.0.0.tar.gz"
  sha256 "abc123..."
  license "MIT"

  depends_on "node" => :build

  def install
    system "npm", "install", *std_npm_args
    bin.install_symlink Dir["#{libexec}/bin/*"]
  end

  test do
    assert_match "myapp v#{version}", shell_output("#{bin}/myapp --version")
  end
end

Target Processes

  • package-manager-publishing
  • cli-binary-distribution