ワンクリックで
rename-project
Use when renaming the project identity — Kotlin package, slug, or display name
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when renaming the project identity — Kotlin package, slug, or display name
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when deploying the frontend application to Cloudflare Workers Static Assets
Use when preparing a backend release — runs tests and builds the distributable JAR
Use when regenerating the TypeScript API client from the backend OpenAPI specification
| name | rename-project |
| description | Use when renaming the project identity — Kotlin package, slug, or display name |
Rename the project identity — package (net.axcira), slug
(ktor-tanstack-router-template), and/or display name — using the automated
scripts/rename.ts script. All validation runs before any file is written,
and a dry-run is always required before applying changes.
net.axcira with a new reverse-DNS package name in
all Kotlin sources, YAML configs, build configs, and docs. Package
directories are moved accordingly.ktor-tanstack-router-template in Worker name, docs,
project name, artifact paths, and metadata.index.html <title>, manifest.json, IntelliJ
project name, README H1, and OpenAPI title.workspace.xml, .iml files, Git
history, or rename the parent directory.bun --version.--allow-dirty is explicitly chosen).
Check with git status --porcelain.Dry-run (required first)
bun scripts/rename.ts --package <new.package> [--slug <new-slug>] [--name "New Name"] [--api-title "New API Title"]
Example:
bun scripts/rename.ts --package com.example.myapp --slug my-app --name "My App"
The script prints all planned changes without touching any files:
Inspect the dry-run output
Verify:
com.example.myapp — lowercase, dots)my-app — lowercase, hyphens/digits allowed)Confirm with the user
? Apply the rename plan above? (y/N)
The skill must pause and require explicit keyboard confirmation.
Default is No. Abort if the response is anything other than y/yes.
Apply the rename
bun scripts/rename.ts --package <new.package> [--slug <new-slug>] [--name "New Name"] [--api-title "New API Title"] [--write]
Add --write to the same flags used in the dry-run. If the worktree is
dirty and this was explicitly accepted, also add --allow-dirty.
The script:
git diff after
completionPost-rename actions (manual)
After the script completes, advise the user to:
Reload the IntelliJ project (File → Reload All From Disk, refresh Gradle).
Rename the parent directory if desired (mv old-slug new-slug).
Regenerate the API client and run verification:
(cd backend && ./gradlew generateOpenApiJson)
(cd frontend && bun run orval:gen)
(cd frontend && bun run check && bun run build)
--write invocation.workspace.xml, .iml files, Git history,
or rename the parent directory automatically.--allow-dirty is only
acceptable when the user explicitly chooses it after being informed of the
risk.git diff and commit if satisfied.src/routeTree.gen.ts, src/api/generated/) are
excluded from the rename scope and must be regenerated after renaming.Run git diff --stat to review all changed files.
Verify the old package string no longer appears in source:
grep -r "net\.axcira" backend/src frontend/ --include="*.kt" --include="*.yaml" --include="*.kts" --include="*.md" --include="*.jsonc" || echo "No old package references found"
Verify the new package directories exist:
ls backend/src/main/kotlin/com/example/myapp/
Run bun run check && bun run build in frontend/ and
./gradlew test in backend/ after regenerating the API client. Backend
tests require Docker for Testcontainers.
| Failure | Behaviour |
|---|---|
Missing --package flag | Script exits with error and prints help — required argument |
| Invalid package format | Script exits with format validation error |
Dirty worktree without --allow-dirty | Script exits with clear message; clean or re-run with --allow-dirty |
| Old identity not found (already renamed) | Script detects this and aborts with diagnostic message |
| Destination package already exists | Script refuses to overwrite |
| Dry-run output looks wrong | Do not pass --write — investigate and adjust flags |
| User declines confirmation | Clean exit, no changes made |
scripts/rename.ts — The rename implementationAGENTS.md — Rename section with usage examples