Skip to content

docs: rewrite README and add CLAUDE.md#23

Merged
c4po merged 1 commit into
mainfrom
docs/readme-rewrite
May 6, 2026
Merged

docs: rewrite README and add CLAUDE.md#23
c4po merged 1 commit into
mainfrom
docs/readme-rewrite

Conversation

@c4po

@c4po c4po commented May 6, 2026

Copy link
Copy Markdown
Contributor

Why

The previous README was functional but read like internal docs — one-line tagline, install steps, env vars. It buried the project's strongest selling points and had no badges, no comparison to alternatives, and no compelling "why does this exist?" hook.

What's new (README)

  • Five badges above the fold: CI, Go Report Card, latest release, pkg.go.dev, license.
  • Punchy single-sentence pitch and the existing demo GIF moved directly under it.
  • "Why terraform-demux?" section names the pain (juggling `tfenv install`, shims) and the fix.
  • Features bullets surface non-obvious wins: SHA-256-verified downloads, per-binary `flock`, `TF_DEMUX_ARCH` on Apple Silicon, the state-command guard, cross-platform support.
  • Comparison table vs. `tfenv` and `tfswitch` (factual columns: reads `required_version` directly / drop-in / auto-installs).
  • Env-var table for skimmability, documents `TF_DEMUX_CACHE_HOME` and the `TF_DEMUX_*` env-stripping behavior.
  • State-command guard rewritten in active voice, with deep-links to the corresponding import/moved/removed Terraform docs.

Also (CLAUDE.md)

  • Adds a previously-untracked CLAUDE.md so future automated contributors land on the post-merge layout: build-tagged signals/exitcode files, the SetupLogging API, the refactored download helpers (findBuild, verifyChecksum, openZipReader, extractTerraformBinary), the cross-platform CI matrix with -race, the goreleaser ldflags injection, and the deploy-key bypass for the Homebrew formula publish.

What's preserved

  • The demo GIF.
  • The Homebrew tap install instructions.
  • Every factual claim from the previous README.

Test plan

  • Confirmed every env var in the README/CLAUDE tables matches internal/wrapper/wrapper.go and cmd/terraform-demux/main.go.
  • Comparison table claims about tfenv/tfswitch checked against their READMEs; columns are factual.
  • CLAUDE.md commands match what CI actually runs / what I've run locally.

README rewrite
- The previous README read like internal documentation. This rewrite
  positions the project for visibility:
  - Adds a row of badges (CI, Go Report Card, latest release,
    pkg.go.dev, license) so legitimacy signals are visible above the
    fold.
  - Leads with a single-sentence value proposition and the existing
    demo GIF.
  - Adds a "Why terraform-demux?" hook and a Features section that
    surfaces the non-obvious wins: checksum verification, per-binary
    flock, TF_DEMUX_ARCH on Apple Silicon, the state-command guard,
    cross-platform support.
  - Adds a comparison table vs. tfenv and tfswitch.
  - Promotes env vars to a table and documents TF_DEMUX_CACHE_HOME and
    the TF_DEMUX_* env-stripping behavior. Active-voice rewrite of the
    state-command guard section. Links to the corresponding
    import/moved/removed Terraform docs for each refused command.
  - Keeps every factual claim from the previous README; nothing dropped.

CLAUDE.md
- Add a previously-untracked CLAUDE.md describing the project layout,
  env vars, architecture, CI, and release flow for future automated
  contributors. Reflects the post-merge state: the build-tagged
  signals/exitcode files, the SetupLogging API, the refactored
  download path (findBuild / verifyChecksum / openZipReader /
  extractTerraformBinary), the cross-platform CI matrix with -race,
  the goreleaser ldflags injection, and the deploy-key bypass for the
  Homebrew formula publish.
@c4po
c4po force-pushed the docs/readme-rewrite branch from af5120e to 81bfd94 Compare May 6, 2026 13:15
@c4po c4po changed the title docs: rewrite README to attract more users docs: rewrite README and add CLAUDE.md May 6, 2026
@c4po
c4po merged commit aded594 into main May 6, 2026
11 checks passed
@c4po
c4po deleted the docs/readme-rewrite branch May 6, 2026 14:56
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.

2 participants