重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
homebrew-cask-authoring by connorads/dotfiles
npx skills add https://github.com/connorads/dotfiles --skill homebrew-cask-authoring以正确的令牌命名、节段、审计/样式合规性以及本地安装测试来编写和维护 Homebrew Casks。
rm/tap 更改之前,先明确指出。收集:
.app 捆绑包名称)app、pkg、suite 等)如果其中任何信息未知,建议一个简短的发现计划。
在投入精力编写新的 Cask 之前,请验证:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
brew audit --new 硬性失败。请等到仓库足够旧。.app 捆绑包名称开始。.app 和常见后缀:"App"、"for macOS"、版本号。Docker Desktop → docker-desktop,LTX Desktop → ltx-desktop)。不确定时,保留 "Desktop"。@beta、@nightly 或 @<major>。在编写文件之前确认令牌。
使用此规范结构:
cask "token" do
version "1.2.3"
sha256 "..."
url "https://example.com/app-#{version}.dmg"
name "Official App Name"
desc "Short one-line description"
homepage "https://example.com"
app "AppName.app"
end
经验法则:
https URL。homepage 域不同时,添加 verified:。desc 客观且简洁(无营销内容)。如果 URL 和/或 sha256 因 CPU 而异:
arch + sha256 arm: ..., intel: ...。on_arm / on_intel 块。uninstall:对于 pkg 和 installer 产物是必需的。包括 pkgutil: 标识符、启动代理等。zap:推荐用于彻底清理(支持目录、偏好设置、缓存),但 brew audit 不强制要求。审查者期望新的 Cask 包含它——请验证路径准确。depends_on:可选。仅在真正需要时添加(例如,特定的 macOS 版本、另一个 Cask 依赖项)。按此顺序运行:
brew style --fix <token>
brew audit --cask --online <token>
对于新的 Cask,还需运行:
brew audit --cask --new <token>
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --cask <token>
brew uninstall --cask <token>
重要说明:
brew install ./Casks/t/token.rb 在使用 tap 符号链接时会失败——请改用 brew install --cask token。HOMEBREW_NO_INSTALL_FROM_API=1 强制 Homebrew 使用你的本地 Cask 文件而不是 API。brew audit --cask --new 检查 GitHub 仓库年龄(必须 >30 天)和知名度——如果仓库太新,无论 Cask 质量如何,这都会失败。如果安装失败:
sha256 和产物名称。brew install --cask --verbose <token>。在建议提交之前:
brew style 和所有相关的 brew audit 命令通过。main(不是 master)。提交信息格式(第一行 <=50 字符):
token version (new cask)token versiontoken: descriptionPR 模板包含一个 AI 披露部分。如果 AI 协助了 PR:
zap 节段的路径。如果用户正在本地编辑 Homebrew/homebrew-cask 并希望 Homebrew 执行其工作副本,请使用 tap 符号链接工作流。
在此处阅读完整的端到端检查清单:
references/homebrew-cask-contribution-workflow.md每周安装次数
54
仓库
GitHub Stars
7
首次出现
2026年1月24日
安全审计
安装于
opencode51
gemini-cli50
codex50
github-copilot48
cursor48
claude-code48
Author and maintain Homebrew Casks with correct token naming, stanzas, audit/style compliance, and local install testing.
rm/tap changes before suggesting them.Collect:
.app bundle name)app, pkg, suite, etc.)If any of these are unknown, propose a short plan to discover them.
Before investing effort in a new cask, verify:
brew audit --new failure. Wait until the repo is old enough..app bundle name..app and common suffixes: "App", "for macOS", version numbers.Docker Desktop → docker-desktop, LTX Desktop → ltx-desktop). When in doubt, keep "Desktop".@beta, @nightly, or @<major> for variants.Confirm the token before writing the file.
Use this canonical structure:
cask "token" do
version "1.2.3"
sha256 "..."
url "https://example.com/app-#{version}.dmg"
name "Official App Name"
desc "Short one-line description"
homepage "https://example.com"
app "AppName.app"
end
Rules of thumb:
https URLs.verified: when download host domain differs from homepage domain.desc factual and concise (no marketing).If URLs and/or sha256 differ by CPU:
arch + sha256 arm: ..., intel: ... when versions match.on_arm / on_intel blocks when versions differ.uninstall : Required for pkg and installer artifacts. Include pkgutil: identifiers, launch agents, etc.zap : Recommended for thorough cleanup (support dirs, preferences, caches) but not enforced by brew audit. Reviewers expect it for new casks — verify paths are accurate.depends_on : Optional. Only add when genuinely needed (e.g., specific macOS version, another cask dependency).Run, in this order:
brew style --fix <token>
brew audit --cask --online <token>
For new casks also run:
brew audit --cask --new <token>
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --cask <token>
brew uninstall --cask <token>
Important notes:
brew install ./Casks/t/token.rb will fail when using a tap symlink — use brew install --cask token instead.HOMEBREW_NO_INSTALL_FROM_API=1 forces Homebrew to use your local cask file rather than the API.brew audit --cask --new checks GitHub repo age (must be >30 days) and notability — if the repo is too new, this will fail regardless of cask quality.If install fails:
sha256, and artifact name.brew install --cask --verbose <token>.Before suggesting submission:
brew style and all relevant brew audit commands pass.main branch (not master).Commit message format (first line <=50 chars):
token version (new cask)token versiontoken: descriptionThe PR template includes an AI disclosure section. If AI assisted with the PR:
zap stanza paths.If the user is editing Homebrew/homebrew-cask locally and wants Homebrew to execute their working copy, use a tap symlink workflow.
Read the full end-to-end checklist here:
references/homebrew-cask-contribution-workflow.mdWeekly Installs
54
Repository
GitHub Stars
7
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
opencode51
gemini-cli50
codex50
github-copilot48
cursor48
claude-code48
Lark Skill Maker 教程:基于飞书CLI创建AI技能,自动化工作流与API调用指南
41,900 周安装
React Native 移动端 UI 设计规范与无障碍开发指南 | 最佳实践
524 周安装
产品管理技能包 (2026版) - 含PRD/路线图/OKR模板、决策树与最佳实践
536 周安装
llama.cpp:纯C/C++大语言模型推理引擎,CPU/非NVIDIA硬件优化,边缘部署
62 周安装
代码安全指南:15+语言安全编码规则,覆盖OWASP Top 10与基础设施安全
535 周安装
线框原型设计指南:从低保真到高保真,提升产品设计效率与用户体验
525 周安装
Vercel React 最佳实践指南:45条性能优化规则与Next.js应用优化
526 周安装