cinzel, pronounced as "sin-ZEL" (IPA: /sĩˈzɛl/), is the Portuguese word for chisel.
It's a bidirectional converter between HCL and CI/CD pipeline YAML, with provider-specific mappings (currently GitHub Actions and GitLab CI/CD).
Made with ❤️ by YLD Limited.
Install cinzel using one of these options:
- Download a prebuilt binary from [GitHub Releases][releases] (recommended for most users).
- Install with Homebrew:
brew tap yldio/cinzel
brew install --cask cinzel- Install from source with Go:
go install github.com/yldio/cinzel@latestConfirm installation:
cinzel --helpUse the provider command shape:
cinzel <provider> parse --file <input.hcl> --output-directory <out-dir>
cinzel <provider> unparse --file <input.yaml> --output-directory <out-dir>Example: GitHub Actions parse/unparse:
cinzel github parse --file ./test.hcl --output-directory .github/workflows
cinzel github unparse --file ./.github/workflows/test.yaml --output-directory ./cinzelExample: GitLab CI/CD parse/unparse:
cinzel gitlab parse --file ./pipeline.hcl --output-directory .
cinzel gitlab unparse --file ./.gitlab-ci.yml --output-directory ./cinzelUse --dry-run to print generated content to stdout.
Generate HCL workflow definitions from a natural language prompt:
cinzel github assist --prompt "golang PR with tests and linting"This calls an LLM (Anthropic by default), generates valid YAML, converts it to HCL via the unparse pipeline, and writes to a timestamped session folder under ./cinzel/assist/. For GitHub, action versions are automatically pinned to SHAs. Blocks that match your existing HCL are replaced with // reuses: comments.
Each prompt creates its own session:
cinzel/assist/
20260317-150405/ # first prompt
assist.hcl
20260317-151200/ # second prompt
assist.hcl
Requires an API key. Set up with:
cinzel initOr set environment variables directly:
export ANTHROPIC_API_KEY=sk-ant-...
# or
export OPENAI_API_KEY=sk-...
cinzel github assist --ai openai --prompt "..."Refine previous output (targets the latest session by default):
cinzel github assist --refine "add slack notification on failure" --prompt "add to PR workflow"Refine a specific session:
cinzel github assist --refine "add caching" --from 20260317-150405Pin action tags to commit SHAs:
cinzel github pin # pin all actions in ./cinzel/
cinzel github pin --dry-run # preview without writingUpgrade actions to their latest versions:
cinzel github upgrade # bump to latest + pin SHAs
cinzel github upgrade --dry-run # preview changes
cinzel github upgrade --parse # bump + regenerate YAMLNo GitHub token is required for public actions. Set GITHUB_TOKEN for higher rate limits (5000/hr vs 60/hr).
For release operator details about Homebrew automation, see docs/release/homebrew.md.
Providers are the CI/CD platforms that cinzel can convert between HCL and YAML.
See provider/github/README.md for the full HCL schema reference and feature coverage.
See provider/gitlab/README.md for the GitLab HCL schema and conversion coverage.
Please visit the Changelog for more details.
Please check our Code of Conduct.
Contributions are welcome, as well as suggestions for cinzel. Please go over to the Discussions first to understand the current state, features and issues before creating any issue or pull request. ❤️
Please make sure to update tests as appropriate.
This project is licensed under the Apache-2.0 license. See LICENSE for details.
