pp-translate
Use after directly editing the working language spec to sync changes to other supported languages.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- pp-translate
- description
- Use after directly editing the working language spec to sync changes to other supported languages.
- allowed-tools
- Read, Write, Edit, Glob, Agent
- argument-hint
- [feature-name] [--file=<name>]
- user-invocable
- true
03 SKILL.md 正文
Manual Translation Sync
Sync translations 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
workingLanguage(default:"en"if field is absent) - Extract
supportedLanguages(default:["en", "ko", "vi"]) - Determine target languages:
supportedLanguagesminusworkingLanguage - 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 {workingLanguage_name}.
Step 1: Parse Arguments
- First argument: feature name (required)
- Optional
--file=<name>flag: only translate a specific file (e.g.,--file=screensforscreens.md)- Valid values:
screens,test-scenarios, or the feature name for the overview/index file
- Valid values:
- If no
--filespecified, do a full translation sync of all files
Step 2: Locate the Source Spec
- Read the progress file at
docs/specs/{feature}/.progress/{feature}.json - If the progress file exists and contains
workingLanguage, use that value (ignoreplanning-plugin.jsonfor existing specs) - Find the spec directory at
docs/specs/{feature}/{workingLanguage}/— verify that it contains the expected markdown files - If not found, list available specs and ask the user to choose
Step 3: Check Existing Translations
Read existing translations for target languages if they exist. Determine if this is:
- Full translation: No existing translations, or
--filenot specified - Partial translation:
--filespecified and translations exist
Step 4: Run Translation
For each target language, launch a translator agent in parallel:
Agent(subagent_type: "planning-plugin:translator", prompt: "Translate the spec directory at docs/specs/{feature}/{workingLanguage}/ to {target_language_name}. Read each markdown file and write translated versions to docs/specs/{feature}/{target_lang}/. Source language: {workingLanguage}. {full_or_partial_instruction}")
For partial translations (--file specified), include: "Only translate the file {file_name}.md. Keep all other files from the existing translation directory unchanged."
Step 5: Update Progress
Update the progress file's translation status for each target language:
{
"translations": {
"{target_lang}": { "synced": true, "lastSyncedAt": "{timestamp}" }
}
}
Step 6: Sync Translations to Notion (if configured)
- Read
.claude/planning-plugin.jsonand checknotionParentPageUrl— if empty or missing, skip this step silently - Read progress file for existing Notion page data (
notionfield) - For each translated target language (not the working language), sequentially launch the sync-notion agent:
Agent(subagent_type: "planning-plugin:sync-notion", prompt: "Sync the {langName} specification for feature '{feature}' to Notion. feature: {feature}. lang: {lang}. langName: {langName}. specDir: docs/specs/{feature}/{lang}/. progressFile: docs/specs/{feature}/.progress/{feature}.json. notionParentPageUrl: {notionParentPageUrl}. existingPages: {JSON of notion.{lang} from progress or null}. Read the 3 spec files, prepare content, and create/update Notion pages.")
Step 7: Confirm
Report:
- Which files were translated/updated
- Sync timestamps
- Any
<!-- NEEDS_REVIEW -->markers left by the translator - Notion sync results (if Notion sync was performed): page URLs created/updated
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-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.
pp-spec
Use when starting a new feature or project that needs a functional specification before implementation.