Skip to content

chore: rename lean-spec → leanspec / @leanspec/cli (Part of codervisor/leanspec#254)#7

Merged
tikazyq merged 1 commit into
mainfrom
chore/leanspec-rename
May 20, 2026
Merged

chore: rename lean-spec → leanspec / @leanspec/cli (Part of codervisor/leanspec#254)#7
tikazyq merged 1 commit into
mainfrom
chore/leanspec-rename

Conversation

@tikazyq

@tikazyq tikazyq commented May 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Sync this docs site to the upstream codebase rename in codervisor/leanspec#254. The product repo, the CLI binary, the npm package, the MCP config key, and the public agent skill all changed — this PR updates every reference across en + zh-Hans content so the published docs (and the live lean-spec.dev site) stop pointing at the deprecated names.

What did and didn't rename

Asset Form here
GitHub repo codervisor/leanspec (https://github.com/codervisor/leanspec/...)
CLI command leanspec <subcommand>
npm CLI package @leanspec/cli
npm MCP package @leanspec/mcp
MCP config key "leanspec"
Public skill npx skills add codervisor/leanspec@leanspec
Domain lean-spec.dev — unchanged (leanspec.dev is owned by a third party)
This repo's slug lean-spec-docs — unchanged
codervisor/lean-spec-desktop unchanged (separate repo)
.lean-spec/config.json unchanged (project config directory)

Substitutions applied (ordered, en + zh-Hans content + config)

  • GitHub URLs: codervisor/lean-speccodervisor/leanspec (with negative lookahead so lean-spec-docs / lean-spec-desktop are left alone)
  • npm install: npm install -g lean-specnpm install -g @leanspec/cli (and npx / npm install variants)
  • MCP via npx: npx -y lean-spec mcpnpx -y @leanspec/mcp
  • Generic CLI npx: npx -y lean-spec <cmd>npx -y -p @leanspec/cli leanspec <cmd>
  • MCP config keys: "lean-spec":"leanspec": (including multi-project variants like "lean-spec-projectA")
  • Bare CLI: \blean-spec(?= [a-z<-])leanspec (handles lean-spec board, lean-spec --help, lean-spec <command>)
  • Inline `lean-spec``leanspec`
  • Anchor links: #lean-spec-<cmd>#leanspec-<cmd> (to match the now-renamed ### \leanspec `headings inreference/cli.mdx`)
  • docusaurus.config.ts: projectName, editUrl for docs + blog, footer GitHub/Issues/Discussions/Contributing/Changelog links, npm package link
  • Footer translations in i18n/zh-Hans/docusaurus-theme-classic/footer.json
  • AGENTS.md (top-level)
  • One-off prose fixes that the regex didn't catch (e.g. cd lean-spec, which lean-spec, the Direct lean-spec Command heading, the directory-tree example lean-spec/ line in development.mdx, the migration-guide sed example, blog link text)

Verification

  • ./node_modules/.bin/tsc --noEmit → clean
  • pnpm validate:mdx → 51/51 files pass
  • ./node_modules/.bin/docusaurus build → succeeds for both en and zh-Hans (config has onBrokenLinks: 'throw', so any broken internal anchor would have failed the build)
  • Final grep for unwanted lean-spec references → zero leftovers outside the explicit allowlist (lean-spec.dev, lean-spec-docs, lean-spec-desktop, .lean-spec/)

82 files changed, 1,393 insertions / 1,393 deletions — a clean character-for-character swap with no growth.

Test plan

  • tsc --noEmit clean
  • validate:mdx clean (51/51)
  • docusaurus build clean for en + zh-Hans
  • zero leftover stale references
  • After merge + deploy: live lean-spec.dev shows updated install commands, anchors resolve, footer links go to codervisor/leanspec

🤖 Generated with Claude Code

…r/leanspec#254)

Sync to the upstream codebase rename in codervisor/leanspec#254.

Substitutions applied across en + zh-Hans content (.mdx / .md / .json /
.ts), driven by an ordered ruleset to avoid clobbering things that did
NOT rename:

- `lean-spec.dev`        — domain stays (leanspec.dev is taken)
- `lean-spec-docs`       — this repo's slug stays
- `lean-spec-desktop`    — separate repo
- `.lean-spec/`          — project config directory unchanged

Renamed:

- GitHub URLs: codervisor/lean-spec → codervisor/leanspec
- npm CLI package: lean-spec → @leanspec/cli (anti-typosquatting fallback)
- MCP server package: lean-spec (bin) → @leanspec/mcp (separate package)
- Bare CLI invocation: `lean-spec <cmd>` → `leanspec <cmd>` (incl. --flags
  and shell pipes)
- MCP config key in JSON examples: "lean-spec" → "leanspec"
- Multi-project MCP keys: "lean-spec-projectA" → "leanspec-projectA"
- Anchor links: #lean-spec-<cmd> → #leanspec-<cmd>
- docusaurus.config.ts projectName + editUrl + footer links
- AGENTS.md + footer translations

Build verified: `tsc --noEmit` clean, `docusaurus build` clean for both
en and zh-Hans (config has `onBrokenLinks: 'throw'`, so any broken
internal anchor would have failed the build).

82 files changed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 20, 2026 08:08
@tikazyq tikazyq merged commit 2ffac8c into main May 20, 2026
1 check failed
@tikazyq tikazyq deleted the chore/leanspec-rename branch May 20, 2026 08:12
@tikazyq tikazyq removed the request for review from Copilot May 20, 2026 08:30
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