Agent skill
rebrand
Temporary skill to guide the rebrand from SG Cars Trends / @sgcarstrends to MotorMetrics / @motormetrics. Delete after rebranding is complete.
Install this agent skill to your Project
npx add-skill https://github.com/sgcarstrends/sgcarstrends/tree/main/.claude/skills/rebrand
SKILL.md
Rebrand: SG Cars Trends → MotorMetrics
Tracking issue: #749
Brand Mapping Reference
| Category | Old | New |
|---|---|---|
| Display name | SG Cars Trends | MotorMetrics |
| npm scope | @sgcarstrends/* |
@motormetrics/* |
| Domain | sgcarstrends.com |
TBD |
| Env var prefix | SG_CARS_TRENDS_* |
MOTORMETRICS_* |
| GitHub org | sgcarstrends |
motormetrics |
Phase 1 — Package Names & Imports
Scope: ~265 files, ~478 occurrences
Find affected files
grep -r "@sgcarstrends/" --include="*.ts" --include="*.tsx" --include="*.json" -l .
Replacement patterns
| Pattern | Replacement |
|---|---|
@sgcarstrends/database |
@motormetrics/database |
@sgcarstrends/ui |
@motormetrics/ui |
@sgcarstrends/utils |
@motormetrics/utils |
@sgcarstrends/types |
@motormetrics/types |
@sgcarstrends/ai |
@motormetrics/ai |
@sgcarstrends/logos |
@motormetrics/logos |
@sgcarstrends/web |
@motormetrics/web |
@sgcarstrends/mcp |
@motormetrics/mcp |
@sgcarstrends/docs |
@motormetrics/docs |
Steps
- Update every
package.jsonnamefield - Update all import/require statements across
.ts,.tsxfiles - Update
pnpm-workspace.yamlcatalog entries - Update
tsconfig.jsonpath aliases in all packages - Update
turbo.jsonpipeline references - Run
pnpm installto regenerate lockfile - Verify:
pnpm build && pnpm test && pnpm lint
Phase 2 — Display Text & Site Config
Scope: ~48 files, ~60 occurrences
Find affected files
grep -ri "SG Cars Trends" --include="*.ts" --include="*.tsx" --include="*.json" --include="*.md" -l .
Key files to update
apps/web/src/app/layout.tsx— metadata title, descriptionapps/web/next.config.ts— site configapps/web/public/manifest.json— PWA namepackages/ai/src/config.ts— AI generation prompts- Social media templates in
src/lib/workflows/ - Footer components
- OpenGraph image generation
Steps
- Replace all display text "SG Cars Trends" → "MotorMetrics"
- Update SEO metadata (title templates, descriptions)
- Update AI blog generation system prompts
- Update social media notification templates
- Verify:
grep -ri "SG Cars Trends" .returns no results
Phase 3 — Domain & Security Config
Scope: ~36 files, ~50 occurrences — blocked on new domain
Find affected files
grep -r "sgcarstrends\.com" --include="*.ts" --include="*.tsx" --include="*.json" --include="*.yml" -l .
Steps
- Replace
sgcarstrends.comwith new domain in all source files - Update CORS and CSP headers
- Update
robots.txtand sitemap generation - Update canonical URLs
- Update MCP server client base URL (
apps/mcp/src/client.ts) - Configure 301 redirects from old domain
- Verify:
grep -r "sgcarstrends\.com" .returns no results
Phase 4 — Documentation
Scope: ~40 files
Find affected files
grep -ri "sgcarstrends" --include="*.md" -l .
Steps
- Update root
CLAUDE.md - Update all component
CLAUDE.mdfiles - Update all
README.mdfiles - Update
docs/architecture/*.mddiagrams - Update skill files in
.claude/skills/ - Update memory files
- Verify:
grep -ri "sgcarstrends" --include="*.md" .returns no results
Phase 5 — CI/CD
Steps
- Rename
SG_CARS_TRENDS_API_TOKEN→MOTORMETRICS_API_TOKENin GitHub Actions - Update
.github/workflows/*.ymlreferences - Update Vercel environment variables (manual step)
- Update npm publish config for
@motormetricsscope - Verify: all CI checks pass
Phase 6 — External Services
Manual steps — track in issue #749:
- Create
motormetricsGitHub org - Register
@motormetricsnpm scope - Configure DNS for new domain
- Update Vercel project settings
- Update social media accounts
- Set up SEO redirects
Post-Rebrand Verification
Run these commands to confirm no references remain:
# Check for any remaining @sgcarstrends references
grep -r "@sgcarstrends" --include="*.ts" --include="*.tsx" --include="*.json" .
# Check for display name references
grep -ri "SG Cars Trends" --include="*.ts" --include="*.tsx" --include="*.json" --include="*.md" .
# Check for domain references
grep -r "sgcarstrends\.com" .
# Check for env var references
grep -r "SG_CARS_TRENDS" --include="*.ts" --include="*.tsx" --include="*.yml" --include="*.json" .
# Build, test, lint
pnpm build && pnpm test && pnpm lint
Cleanup
After rebrand is fully complete:
- Delete this skill:
rm -rf .claude/skills/rebrand/ - Remove
"Skill(rebrand)"from.claude/settings.local.jsonpermissions - Close issue #749
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
component-tester
Run Vitest tests for a specific component with coverage. Use when making changes to React components to ensure tests pass and coverage is maintained.
cache-components
Ensure 'use cache' is used strategically to minimize CPU usage and ISR writes. Use when creating/modifying queries to verify caching decisions align with data update patterns and cost optimization.
ui-design-system
Enforce modern dashboard UI patterns with pill-shaped design, professional colour scheme, and typography standards. Use when building or reviewing UI components for the web application.
typography-spacing-enforcer
Enforce Typography system and modern spacing conventions. Use when implementing new UI components to ensure design consistency with project standards.
conventional-commits
Format commit messages following project conventions with commitlint validation. Use when committing changes, writing PR descriptions, or preparing releases.
dependency-upgrade
Upgrade dependencies safely using pnpm catalog, checking for breaking changes, and testing upgrades. Use when updating packages, applying security patches, upgrading major versions, resolving dependency conflicts, or modernizing tech stack.
Didn't find tool you were looking for?