AGENT SKILL

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

  1. Read .claude/planning-plugin.json from the current project directory
  2. If the file does not exist, stop with a guidance message:

    "Planning Plugin is not configured for this project. Run /planning-plugin:pp-init to set up."

  3. Extract supportedLanguages (default: ["en", "ko", "vi"])
  4. 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

  1. Read the progress file at docs/specs/{feature}/.progress/{feature}.json
  2. If progress file not found, error: "No spec found for '{feature}'. Run /planning-plugin:pp-spec first."
  3. Extract workingLanguage from the progress file
  4. If workingLanguage equals the target language, error: "Already using {lang_name} ({lang}) as the working language."
  5. Check that the target language spec file exists at docs/specs/{feature}/{to}/{feature}-spec.md
  6. 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.md
  • screens.md
  • test-scenarios.md

4b. Update progress file

Read and update docs/specs/{feature}/.progress/{feature}.json:

  1. Set workingLanguage to the target language
  2. Reconstruct translations:
    • Remove the target language key from translations (it is now the source)
    • Add the previous workingLanguage as a new key in translations
    • Set ALL translation entries to { "synced": false, "lastSyncedAt": null }
  3. Mark Notion pages as stale (if notion field exists):
    • For every language key under notion, set syncStatus to "stale" (the source language has changed, so all synced pages are now out of date)
  4. 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

ohmyhotelco
ohmyhotelco/hare-cc-plugins

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.

★ 2
ohmyhotelco
ohmyhotelco/hare-cc-plugins

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.

前端开发视觉设计
★ 2
ohmyhotelco
ohmyhotelco/hare-cc-plugins

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.

后端与接口Skill与智能体开发
★ 2
ohmyhotelco
ohmyhotelco/hare-cc-plugins

pp-translate

Use after directly editing the working language spec to sync changes to other supported languages.

★ 2
ohmyhotelco
ohmyhotelco/hare-cc-plugins

pp-sync-stitch

Use when wireframes were manually edited on the Stitch website and need to be re-fetched to the local project.

Skill与智能体开发
★ 2
ohmyhotelco
ohmyhotelco/hare-cc-plugins

pp-sync-notion

Use when a specification needs to be published or re-synced to Notion after finalization or manual edits.

Skill与智能体开发
★ 2