Syncs local Claude Code skills and references from Paper-Polish-Workflow GitHub repo via gh CLI. Activates on 'update skills', 'sync skills', or Chinese equivalents.
npx claudepluginhub lylll9436/paper-polish-workflow-skill --plugin paper-polish-workflowThis skill uses the workspace's default tool permissions.
This Skill syncs local `.claude/skills/` and `references/` from the upstream GitHub repository [Lylll9436/Paper-Polish-Workflow-skill](https://github.com/Lylll9436/Paper-Polish-Workflow-skill). It downloads the latest SKILL.md files and reference documents, compares them with local versions, and updates any changed files.
Syncs GitHub automation skills (gh-fix-ci, gh-fix-issue, gh-pr, gh-pr-check) from upstream repo to project and global Codex skill directories. Checks status, pins refs, targets project/global.
Installs, updates, lists, and removes Claude Code skills from GitHub repos/subdirs or .skill zips. Supports user-global and project-local locations.
Share bugs, ideas, or general feedback.
This Skill syncs local .claude/skills/ and references/ from the upstream GitHub repository Lylll9436/Paper-Polish-Workflow-skill. It downloads the latest SKILL.md files and reference documents, compares them with local versions, and updates any changed files.
Activates when the user asks to:
Example invocations:
| Mode | Default | Behavior |
|---|---|---|
direct | Yes | Fetch, compare, update, report — no intermediate confirmation |
interactive | Show diff summary before applying each update |
Default mode: direct
.planning/workflow-memory.json. If file missing or empty, skip to Step 1.ppw:update that has appeared >= threshold times in the log. See skill-conventions.md > Workflow Memory > Pattern Detection for the full algorithm.direct, skip Ask Strategy questions.gh CLI is available and authenticated: gh auth statusgh api repos/Lylll9436/Paper-Polish-Workflow-skill --jq '.full_name'{"skill": "ppw:update", "ts": "<ISO timestamp>"} to .planning/workflow-memory.json. Create file as [] if missing. Drop oldest entry if log length >= 50.gh api repos/Lylll9436/Paper-Polish-Workflow-skill/contents/.claude/skills --jq '.[].name'
gh api repos/Lylll9436/Paper-Polish-Workflow-skill/contents/references --jq '.[] | .name + " " + .type'
For each remote skill directory:
SKILL.md content:
gh api repos/Lylll9436/Paper-Polish-Workflow-skill/contents/.claude/skills/{skill-name}/SKILL.md --jq '.content' | base64 -d
.claude/skills/{skill-name}/SKILL.md if it exists.In interactive mode: Before applying each update, show a summary of changes and ask for confirmation.
For each remote reference file:
gh api with base64 decode.references/{filename} if it exists.references/journals/, references/expression-patterns/), recurse into each file.Present a summary table:
## Skills Update Report
| Skill | Status |
|-------|--------|
| polish-skill | ✓ Updated |
| de-ai-skill | - Unchanged |
| new-skill | + New |
## References Update Report
| File | Status |
|------|--------|
| expression-patterns.md | ✓ Updated |
| skill-conventions.md | - Unchanged |
**Summary:** {updated_count} updated, {new_count} new, {unchanged_count} unchanged
| Output | Format | Condition |
|---|---|---|
| Update report | Markdown table | Always produced |
| File count summary | Text | Always reported |
| Situation | Handling |
|---|---|
gh CLI not installed or not authenticated | Report error, suggest gh auth login |
| Remote repo not accessible | Report network/permission error |
| Local skill has modifications not in remote | Overwrite with remote (remote is source of truth) |
| New skill in remote not present locally | Create directory and write SKILL.md |
| Remote skill deleted but exists locally | Keep local (do not delete; report as "local-only") |
| Reference subdirectory doesn't exist locally | Create it |
| Scenario | Fallback |
|---|---|
gh api rate limited | Wait and retry once, then report error |
| Base64 decode fails | Try gh api with Accept: application/vnd.github.raw header |
| Single file fetch fails | Skip file, continue with remaining, report in summary |
Conventions: references/skill-conventions.md