Skip to content

Conversation

@aRustyDev
Copy link
Owner

Summary

  • Adds the pkgmgr-homebrew-formula-dev skill for creating, testing, and maintaining Homebrew formulas in a custom tap
  • Implements a JSON Schema (draft-2020-12) → Mustache template pipeline that validates formula definitions and renders Ruby formula files with language-specific install partials (Go, Rust, Python, Zig, CMake, Autotools, Meson)
  • Includes reference docs for language-specific project research, local validation checklists, FAQ, testing patterns, and bottle attestation/build provenance

Test plan

  • cd context/skills/pkgmgr-homebrew-formula-dev && npm install && just test — all 6 test cases pass
  • just javascript-recipe test/data/go-standard.json renders valid Go formula
  • just javascript-recipe test/data/invalid-missing-required.json exits 1
  • Review rendered formula examples in reference/templates/formulas/*.rb

🤖 Generated with Claude Code

aRustyDev and others added 8 commits January 31, 2026 00:03
SKILL.md with research, formula structure, and template pipeline docs.
Includes .gitignore, package.json for mustache/ajv deps, and settings.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
formula.schema.ts defines draft-2020-12 schema for formula validation.
formula.helper.ts exports pascalCase, renderLicense, preprocessFormulas,
loadPartials, and parseInput for the rendering pipeline.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
main.mustache renders shared formula fields and dispatches install blocks
to language-specific partials (go, rust, python, zig, cmake, autotools,
meson) via {{#is_<lang>}} sections.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
javascript-recipe validates JSON input against schema via AJV, preprocesses
formulas, and renders through Mustache with auto-loaded language partials.
test recipe runs all shell-based test cases.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
7 JSON fixtures covering go, rust, python, head-only, service, and
2 invalid schemas. 6 shell test cases assert rendered output and
validation rejection. run-all.sh delegates to just test.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Reference formulas for go, rust, python, head-only, and service
scenarios, generated from the JSON→Mustache pipeline.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Go, Rust, and Python lang docs with research tables, quick-check
commands, install patterns, schema fields, and common issues.
Includes checklists, FAQ, testing patterns, and Brewfile.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Covers Sigstore-based attestation, SLSA Build L2 provenance,
GitHub Actions setup with actions/attest-build-provenance,
and Homebrew::Attestation API for custom tap verification.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@aRustyDev aRustyDev merged commit 1904604 into main Jan 31, 2026
2 checks passed
@aRustyDev aRustyDev deleted the feat/skill-pkgmgr-homebrew-formula-dev branch January 31, 2026 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant