chore: rebrand CLI from Craftybase to Stocksmith - #13
Merged
Conversation
Rename the product, binary, Go module, docs, and release pipeline from Craftybase to Stocksmith. The GitHub org (craftybase) and Homebrew tap owner are preserved; only the product/binary/repo names change. - brand: flip all constants in internal/brand — binary name, product name, env prefix (STOCKSMITH_*), config dir (~/.stocksmith), default API URL (https://api.stocksmith.dev), docs (cli.stocksmith.dev), repo (craftybase/stocksmith-cli) - logo: replace the root-help ASCII wordmark with the Stocksmith art - module: github.com/craftybase/craftybase-cli -> github.com/craftybase/stocksmith-cli; rename cmd/craftybase -> cmd/stocksmith; update all imports and the goimports local-prefix - route the remaining hardcoded brand strings through internal/brand - selfupdate: derive the temp-file prefix from the binary name - release: update .goreleaser.yml (binary, archive/checksum templates, brew formula, homepage), keeping owner: craftybase - docs: regenerate the command reference (stocksmith_*.md); rebrand prose, astro config, and install scripts; CNAME -> cli.stocksmith.dev; add Stocksmith logo assets + favicon - license: Stocksmith Pty Ltd Hard switch: existing users must re-authenticate (~/.stocksmith/), update STOCKSMITH_* env vars, and reinstall — self-update does not bridge the rename. Verified: go build, go vet, go test ./... -race, gofmt, the install script test, and the website build all pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
api.stocksmith.dev hosts the development docs portal, not the live API. Set brand.DefaultAPIURL to https://api.stocksmith.io and regenerate the command reference. The CLI docs site (cli.stocksmith.dev) is unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replace the teal palette with burnt amber for the root-help logo, command/flag/env names, sub-command accents, and footer URL: - internal/output/style.go: TealBright/TealLight -> AmberBright (#E18E2D, brand ochre) / AmberLight (#EBAC5A, lighter accent) - commands/roothelp.go: route all colour refs to the Amber* vars - update the colour unit tests (assert the amber 24-bit sequence) - website/astro.config.mjs: theme-color #3EB1C1 -> #E18E2D The 256-colour fallback is auto-derived from RGB, so it follows automatically. The plain-text golden has no colour codes and is unaffected. Historical design docs under docs/superpowers/ are left as-is (frozen records of the original teal design). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Rebrands the CLI from Craftybase to Stocksmith — product name, binary, Go module, command-reference docs, website, and release pipeline.
The GitHub org (
craftybase) and Homebrew tap owner are preserved — only the product/binary/repo names change. Repo is nowcraftybase/stocksmith-cli; binary isstocksmith.Decisions baked in
github.com/craftybase/stocksmith-clistocksmithhttps://api.stocksmith.devcli.stocksmith.dev~/.stocksmith/STOCKSMITH_API_TOKEN,STOCKSMITH_API_URLbrew install craftybase/tap/stocksmithWhat changed
internal/brand/brand.go— flipped all 13 brand constants (the white-label lever). The remaining hardcoded brand strings acrosscommands/andinternal/api/now route throughinternal/brand.commands/roothelp.gowith the Stocksmith art.cmd/craftybase→cmd/stocksmith(git rename); all imports + the goimportslocal-prefixupdated to the new module path.internal/selfupdate— temp-file prefix now derives from the binary name rather than a hardcoded string..goreleaser.yml(binary, archive/checksum templates, brew formula, homepage),.github/workflows/ci.yml,test/install_test.sh, and thecut-releaseskill.owner: craftybasepreserved in both goreleaser stanzas.craftybase_*.md→stocksmith_*.md); rebranded prose,astro.config.mjs, install scripts,CNAME→cli.stocksmith.dev; copied Stocksmith logo SVGs + favicon (added alogo:block, kept the teal palette).LICENSE— copyright →Stocksmith Pty Ltd.Existing
craftybaseusers must:~/.stocksmith/config.toml.CRAFTYBASE_*→STOCKSMITH_*.self-updatederives release-asset names from the binary name and targets the renamed repo, so an oldcraftybasebinary cannot auto-update across the rename.Verification
All green locally:
go build ./...,go vet ./...go test ./... -race(every package)gofmt -l .(clean)sh test/install_test.shnpm run build(website, 37 pages)./stocksmith --helprenders the new branded screen with the Stocksmith logoAn audit confirmed zero stray
craftybasereferences and no org/tap corruption — the only survivingcraftybasetokens are the legitimate org (craftybase/stocksmith-cli), tap owner (craftybase/tap/stocksmith), and a vault-path comment.Out-of-band (handled separately)
craftybase-cli→stocksmith-cli✅ (done)cli.stocksmith.dev✅ (done)stocksmithformula incraftybase/homebrew-tap✅ (done)🤖 Generated with Claude Code