一键导入
move-files
Moves or renames any files/directories in a repo: preserves history, updates all references and build metadata, verifies no stale paths remain.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Moves or renames any files/directories in a repo: preserves history, updates all references and build metadata, verifies no stale paths remain.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Fixes English grammar, punctuation, and spelling errors in the prose of source-code comments and documentation — KDoc/Javadoc, Protobuf, TSDoc/JSDoc, Go doc comments, other comments, and Markdown/AsciiDoc. Applies the shared error catalog in `.agents/guidelines/english-style.md`: a fix lands only when no leave-alone guard matches, and an ambiguous case is reported rather than edited. Touches *project-owned* prose only — never code tokens, string literals, or machine-read comment directives. Runs in three modes chosen by the caller: the default scans files changed on the current branch; `all` sweeps every project-owned file, module by module; a path argument scopes the sweep to one directory. Stateless — no memory sentinel. Reports every change grouped by catalog topic so recurring error classes surface for review. Use once per repo with `all` after a fresh `config` pull, then on each branch to catch new occurrences, or against a named module.
Runs the pre-PR checklist for this repo: applies the version gate only when the repository has a root `version.gradle.kts`, runs a scope-dependent build/check command per `.agents/guidelines/running-builds.md` (proto → `clean build`; code/deps → `build`; doc-only `.kt`/`.java` edit → `dokkaGenerate`; Markdown-only → no build; no documented command → skipped), and running `dokkaGenerate` for any `.kt`/`.java` source change (alongside `build` for code edits, alone for KDoc/Javadoc-only edits) so unresolved KDoc/Javadoc links fail locally instead of in CI's Dokka run, and invokes the relevant reviewers (`kotlin-engineer`, `spine-code-review`, `review-docs`, `dependency-audit`, `check-links`) against the branch diff. On success, writes the `pre-pr.ok` sentinel into the repository's git directory so the `gh pr create` hook can verify the checklist ran for the current HEAD. Use before opening a PR, or when CI rejected a branch and a fast local repro is wanted.
Converts Java code to idiomatic Kotlin, including its API comments from Javadoc to KDoc. Use when asked to migrate Java files, classes, methods, nullability semantics, or common Java patterns into Kotlin while preserving behavior.
Writes, edits, and restructures user-facing and developer-facing documentation. Use when asked to create/update docs such as `README.md`, `docs/**`, and other Markdown documentation, including keeping docs navigation data in sync; when drafting tutorials, guides, troubleshooting pages, or migration notes; and when improving inline API documentation (KDoc) and examples.
Reviews documentation changes — doc comments inside sources (KDoc/Javadoc, Protobuf, TSDoc/JSDoc, Go) and Markdown docs (`README.md`, `docs/**`, `.agents/**`) — against Spine documentation conventions, including the English grammar, punctuation, and spelling catalog. Use when a diff touches doc comments or Markdown, before opening a doc-affecting PR, or when asked for a documentation review. Read-only; does not run builds.
Updates source file copyright headers from the IntelliJ IDEA copyright profile, replacing `today.year` with the current year. Automatically applies to changed source files when source files are modified in a change set. In repositories that consume the shared `config` submodule, files distributed by `config` (such as `buildSrc/`) are skipped — their headers are owned by `config`, not by the consumer's copyright profile.
| name | move-files |
| description | Moves or renames any files/directories in a repo: preserves history, updates all references and build metadata, verifies no stale paths remain. |
Preflight.
git status --short.source -> destination.Search before moving.
settings.gradle.kts,
build.gradle.kts, and buildSrc.Move safely.
git mv for tracked files in the repo. If sandboxing blocks
it, request approval; do not use delete/create as a fallback.Repair references.
Verify.
git status --short and confirm the delta matches the move.Ensure the version is bumped.
Run the version-bumped skill so the branch carries a strictly greater
version.gradle.kts than the base ref before any ./gradlew build
(which can transitively publishToMavenLocal and overwrite
consumer-facing snapshots). The skill is a no-op if a bump already
happened earlier on the branch.
Follow .agents/guidelines/project-structure-expectations.md for module/source-set/test moves.
Return: Moved[], UpdatedRefs[], Verification[], Risks[].