vmvarela/ghoten ? reverse-engineered prompt

Reverse engineered prompt

Build me a lightweight OpenTofu based tool that can store infrastructure state directly in an OCI registry like GHCR, so I do not need a separate backend service.

I want the normal Terraform and OpenTofu workflow to still feel familiar, so I can run init, plan, and apply, but with state, locks, and version history handled in the registry. It should support safe locking, retries, optional compression, and keep things reliable when multiple people are working on the same stack.

Please also add a GitHub Action that can install the tool, log into GHCR, run plan and apply, and leave helpful comments and summaries on pull requests. If there are any current docs or API details that matter, look them up online and follow the latest guidance.

Keep it focused on this one backend idea, make it practical to use in GitHub workflows, and include clear docs so someone can get started quickly.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab