pp-migrate-language
Use when transferring a specification to a team member who works in a different language.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- pp-migrate-language
- description
- Use when transferring a specification to a team member who works in a different language.
- allowed-tools
- Read, Write, Edit, Glob, Grep
- argument-hint
- [feature-name] --to=[lang]
- user-invocable
- true
03 SKILL.md 正文
Migrate Working Language
Migrate working language for: $ARGUMENTS
Instructions
Step 0: Read Configuration
- Read
.claude/planning-plugin.jsonfrom the current project directory - If the file does not exist, stop with a guidance message:
"Planning Plugin is not configured for this project. Run
/planning-plugin:pp-initto set up." - Extract
supportedLanguages(default:["en", "ko", "vi"]) - Language name mapping:
en= English,ko= Korean,vi= Vietnamese
Communication language: All user-facing output in this skill (summaries, questions, feedback presentations, next-step guidance) must be in the current working language (extracted from the progress file in Step 2).
Step 1: Parse Arguments
- First argument: feature name (required)
--to={lang}flag: target language code (required)- If either is missing, show usage:
/planning-plugin:pp-migrate-language feature-name --to=vi - Validate the target language is in
supportedLanguages. If not, error: "Unsupported language: {lang}. Supported languages: {supportedLanguages}"
Step 2: Check Current State
- Read the progress file at
docs/specs/{feature}/.progress/{feature}.json - If progress file not found, error: "No spec found for '{feature}'. Run
/planning-plugin:pp-specfirst." - Extract
workingLanguagefrom the progress file - If
workingLanguageequals the target language, error: "Already using {lang_name} ({lang}) as the working language." - Check that the target language spec file exists at
docs/specs/{feature}/{to}/{feature}-spec.md - If the file does not exist, error: "Translation for {lang_name} ({lang}) does not exist. Run
/planning-plugin:pp-translate {feature}first."
Step 3: Confirm with User
Display the migration summary and ask for confirmation:
Working language change: {current_lang_name} ({current_lang}) → {target_lang_name} ({target_lang})
Feature: {feature}
Status: {current status from progress file}
⚠ All translations will be marked as out of sync.
Continue?
If the user declines, abort with: "Migration cancelled."
Step 4: Execute Migration
Perform these changes in order:
4a. Remove sync headers from new source files
Read all 3 spec files in docs/specs/{feature}/{to}/ and remove the <!-- Synced with ... --> comment line at the top of each file (if present):
{feature}-spec.mdscreens.mdtest-scenarios.md
4b. Update progress file
Read and update docs/specs/{feature}/.progress/{feature}.json:
- Set
workingLanguageto the target language - Reconstruct
translations:- Remove the target language key from
translations(it is now the source) - Add the previous
workingLanguageas a new key intranslations - Set ALL translation entries to
{ "synced": false, "lastSyncedAt": null }
- Remove the target language key from
- Mark Notion pages as stale (if
notionfield exists):- For every language key under
notion, setsyncStatusto"stale"(the source language has changed, so all synced pages are now out of date)
- For every language key under
- Preserve all other fields (status, currentRound, reviews, etc.) unchanged
Write the updated progress file.
Step 5: Report Results
Display:
✅ Working language migrated: {old_lang_name} → {new_lang_name}
Changes:
- Source of truth: docs/specs/{feature}/{to}/{feature}-spec.md
- Progress file updated: workingLanguage → "{to}"
- All translations marked as out of sync
- All Notion pages marked as stale (re-sync needed)
Next steps:
1. Edit the {new_lang_name} spec at docs/specs/{feature}/{to}/{feature}-spec.md
2. Run /planning-plugin:pp-translate {feature} to re-sync translations from the new source
3. Run /planning-plugin:pp-sync-notion {feature} to re-sync Notion pages (if configured)
4. To also change the default language for new specs, update .claude/planning-plugin.json
04 同仓库更多 Skills
hp-shared
Shared conventions for every homepage-plugin agent and skill — stack, code conventions, state-file writes, check commands and how to report them. Preloaded into agents through their `skills:` frontmatter; not meant to be invoked by hand.
fe-shared
Shared conventions for every frontend-react-plugin agent and skill — code conventions, state files and locks, accepted deviations, design principles, build working directory, router-mode command matrix, TypeScript check. Preloaded into agents through their `skills:` frontmatter; not meant to be invoked by hand.
be-spring-shared
Shared conventions for every backend-springboot-plugin agent and skill — tech stack, CQRS architecture, naming, coding standards, TDD, commit and build rules, state files. Preloaded into agents through their `skills:` frontmatter; not meant to be invoked by hand.
pp-translate
Use after directly editing the working language spec to sync changes to other supported languages.
pp-sync-stitch
Use when wireframes were manually edited on the Stitch website and need to be re-fetched to the local project.
pp-sync-notion
Use when a specification needs to be published or re-synced to Notion after finalization or manual edits.