/soong:sync-pr-to-notionfrom soong
Use when asked to sync a branch's changes into its linked Notion card, or to update the Notion ticket for a PR. Looks up the card from the PR record written by manage-pr (keyed by project and branch), asks the user for the card if none is recorded, then writes a high-level architecture-style description of the branch's changes to the card via the write-notion-content skill. Never edits code, tests, or verification steps. Triggers on "sync the PR to notion", "update the notion card for this branch", "describe these changes on notion".
Ships in soong. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Update the Notion card linked to the current branch with a high-level description of what the branch changes. This skill describes work; it does not do work.
Resolve the branch. git rev-parse --abbrev-ref HEAD and the project name, taken
from the common git dir (see step 2). Never use --show-toplevel: inside a linked
worktree it returns the worktree directory, so the lookup would miss the record that
manage-pr wrote under the repo name.
Look up the linked card in the PR record manage-pr wrote — no gh CLI needed:
file="${XDG_STATE_HOME:-$HOME/.local/state}/soong/pr-records.json"
common="$(git rev-parse --path-format=absolute --git-common-dir)" # main .git in worktrees too
top="${common%/.git}"; top="${top%/}"; project="${top##*/}"
branch="$(git rev-parse --abbrev-ref HEAD)"
jq -r --arg p "$project" --arg b "$branch" '.[$p][$b].notionCard // empty' "$file"
If no card (empty output, missing file, or null): ask the user to specify the
Notion card, then write a record for this branch so future runs find it (same shape
and merge approach as the "PR record" section in the manage-pr skill's
reference/pr/compose.md). Then proceed.
Read the changes at a high level. Do not diff on the main thread. A branch
diff is long, it is read once for its shape, and every line of it stays in
context for the rest of the run. Dispatch a subagent to read it and return the
shape instead, using an Explore agent (subagent_type: Explore, model: sonnet).
Resolve the base first, on the main thread, so the agent is given a branch
name and not a placeholder: the pull request's base
(gh pr view --json baseRefName -q .baseRefName), else the upstream tracking
branch minus its remote prefix, else the repository default branch.
Then tell the agent to run, with <base> substituted:
git log --oneline <base>..HEAD
git diff <base>...HEAD
and to return only:
Tell it to read for intent and structure, not line detail, and to name
nothing about tests or verification, since step 5 must not describe them.
Explore is read-only, so it cannot edit the branch it is reading.
If the agent returns nothing usable, diff on the main thread and say in the report that the delegated read failed.
Describe the changes like an architecture design. Summarize the shape of the change: which components/modules/boundaries are affected, what new behavior or contracts are introduced, what was removed or restructured, and why. Stay at the design level — no code, no test/verification notes.
Write to the card using the write-notion-content skill. Follow that skill's
style rules to its best ability: match the card's existing template, few words,
lists over prose, one sentence where possible, no em-dashes. Use the Notion MCP to
apply the content to the resolved card.
write-notion-content.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub konvoulgaris/soong --plugin soong9 skills in this plugin
/developTake a Notion roadmap item and build its whole task stack as stacked pull requests, one pull request per task, asking any questions the task cards leave open before writing code. Use when the user runs /develop, or asks to implement a roadmap item, build out a stack of tasks, or start development from prepared task cards. Requires the repo to be configured via soong-setup first./manage-prUse for any work on a pull request — writing or rewriting its title and description when creating or editing a PR, and responding to reviewers on your own open PR. Enforces the Conventional-Commits-with-scope title format, an optional Notion ticket id suffix, and a simple-prose description style. Walks unresolved review threads one-by-one with the user, then posts all replies in one batch after approval. Forbids generated-by footers and Claude attribution tags on both. Also persists a project/branch -> notion card + last commit record outside the repo for later querying. Triggers on "open a PR", "create a pull request", "write the PR title/description", "address the PR feedback", "reply to the reviewers", "go through the review comments", "respond to the PR comments", or any `gh pr create` / `gh pr edit` / `gh pr comment`./mergeMerge a base branch into the current feature branch and push the result, resolving conflicts file-by-file. Use when the user asks to "merge", "merge back", catch a feature branch up with its base, or pull base-branch changes into the current branch. "Base" most likely means the branch the feature was cut from or the PR's base branch, not necessarily a branch literally named "development"./polishRun a code review with autofix, then a simplification pass, then commit the result. Use when the user runs /polish, or asks to review and clean up the current changes in one shot, autofix the review findings, or "review and simplify and commit". Runs unattended - it applies fixes and commits without asking./rebaseRebase the current feature branch onto a new base branch, keeping only the changes made on the feature branch and dropping any commits inherited from the old base. Use when the user asks to "rebase", change a feature branch's base, move a branch onto a different base, or re-point a branch at a new base branch without carrying over the previous base's history./soong-setupRecord what this repo needs for soong's skills to run - whether it uses Notion at all and which roadmap and task databases it maps to, and whether its commits carry a Conventional Commits scope. Use when the user runs /soong-setup, when another skill reports the repo is not configured, or when the user wants to change what a repo is configured for. A repo can record that it does not use Notion, which settles that capability for good. Stops without writing anything if the user says the repo uses Notion but does not supply valid databases.