pp-sync-notion
Use when a specification needs to be published or re-synced to Notion after finalization or manual edits.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- pp-sync-notion
- description
- Use when a specification needs to be published or re-synced to Notion after finalization or manual edits.
- allowed-tools
- Read, Write, Edit, Glob, Grep, Agent, mcp__claude_ai_Notion__notion-search
- argument-hint
- [feature-name] [--lang=xx]
- user-invocable
- true
03 SKILL.md 正文
Sync to Notion
Sync specification to Notion 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
notionParentPageUrl— if empty or missing, stop with error:"Notion sync is not configured. Run
/planning-plugin:pp-initand provide a Notion parent page URL." - Extract
workingLanguage(default:"en") - 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 {workingLanguage_name}.
- Check if any Notion MCP tool is available (e.g.,
mcp__claude_ai_Notion__notion-search)- If not available, stop with error:
"Notion MCP is not configured. Set up Notion MCP first:
- Run
/mcpinside Claude Code - Look for the
notionserver - If not present, add it manually:
claude mcp add notion --transport http https://mcp.notion.com/mcp -s user - Authenticate via OAuth by selecting the
notionserver in/mcp"
- Run
- If not available, stop with error:
Step 1: Parse Arguments
- First argument: feature name (required). If missing, stop with error:
"Usage:
/planning-plugin:pp-sync-notion <feature-name> [--lang=xx]" - Optional
--lang=xxflag: only sync the specified language (e.g.,--lang=ko) - If no
--langspecified, sync all available languages
Step 2: Load Spec and Progress
- Read the progress file at
docs/specs/{feature}/.progress/{feature}.json - If the progress file exists and contains
workingLanguage, use that value - Determine sync target languages:
- If
--lang=xxspecified: only that language - Otherwise: working language + all target languages that have spec files
- If
- Verify spec directories exist for each target language at
docs/specs/{feature}/{lang}/(check that{feature}-spec.mdexists inside) - Skip languages without spec directories (report them in the final summary)
Step 3: Check Existing Notion Pages
Read the notion field from the progress file (if it exists) to find existing page URLs for each language. Detect whether the format is legacy (pageUrl only) or current (parentPageUrl + childPages).
Step 4: Launch sync-notion Agent Per Language
For each target language (sequentially, to avoid progress file write conflicts), 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.")
Collect results from each agent invocation.
Step 5: Report Results
Display a summary using the agent return values:
Notion Sync Results for "{feature}":
{lang_name} ({lang}): {Created|Updated} — Parent: {parentPageUrl}
Overview: {childPages.overview}
Screens: {childPages.screens}
Test Scenarios: {childPages.test-scenarios}
{lang_name} ({lang}): Skipped — no spec file found
{lang_name} ({lang}): Failed — {error message}
If all syncs succeeded, also suggest:
"Notion pages are up to date. View them from the URLs above."
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-spec
Use when starting a new feature or project that needs a functional specification before implementation.