--- name: create-pr description: Creates pull requests with bilingual documentation updates. Use when user asks to create PR, make a pull request, or submit changes for review. Automatically updates both English and Chinese README files. allowed-tools: Read, Write, Edit, Bash, Grep, AskUserQuestion metadata: hooks: after_complete: - trigger: session-logger mode: auto reason: "Log PR creation" --- # Create PR A skill for creating pull requests with automatic bilingual documentation updates. This skill ensures that both English and Chinese documentation stay in sync when code changes are submitted. ## When This Skill Activates This skill activates when you: - Ask to create a pull request or PR - Say "submit my changes" or "push and create PR" - Mention "make a PR" or "open a pull request" - Want to submit code for review ## PR Creation Workflow ### Step 1: Analyze Changes Examine all changes in the current branch: ```bash git status git diff git log --oneline main..HEAD ``` Identify: - **Modified files**: What was changed? - **New files**: What was added? - **Deleted files**: What was removed? - **Impact area**: Which skills or features are affected? ### Step 2: Determine Documentation Updates ### Check for Skill Changes First, detect if any skills were changed: ```bash # Check if skills/ directory has changes git diff --name-only main..HEAD | grep "^skills/" ``` ### Decision Matrix | Change Type | Documentation Action | |-------------|---------------------| | New skill added | Add to skills table in both EN and CN README | | Skill description changed | Update description in skills table | | Skill removed | Remove from skills table | | Skill hooks changed | Update Auto-Trigger column in skills table | | Internal skill logic only | Skip README update | | Bug fix with no user impact | Skip README update | ### Auto-Trigger Changes Require Update If a skill's `metadata.hooks` front matter was modified, the **Auto-Trigger** column in the Skills Catalog must be updated: ```bash # Check if hooks were modified git diff main..HEAD -- skills/*/SKILL.md | grep -E "^\+.*metadata:|^\+.*hooks:|^\+.*trigger:" ``` If hooks changed → Update README.md and README.zh-CN.md Auto-Trigger column. ### Step 3: Draft Commit Message Use the `commit-helper` format: ``` ():