baidu-baige/loongforge/submit-pr
Claude Code and agent skill by baidu-baige/loongforge
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Use when ready to submit a pull request for LoongForge changes — handles branch push, PR title formatting (module/type validation), description generation, and pre-submission checks. Triggers on 'submit PR', 'create PR', 'open pull request', '提交PR', '发PR'.
Install
npx vskill@latest install baidu-baige/loongforge/submit-prSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as baidu-baige/loongforge/submit-pr.
Submit Pull Request for LoongForge
Overview
Automates the PR submission workflow for LoongForge: validates changes, pushes to fork, generates a conformant PR title and description, and creates the PR against baidu-baige/LoongForge:master.
Workflow
Step 1 — Pre-flight Checks
Run these checks before proceeding. STOP and fix if any fail:
- Branch is not master — you must be on a feature branch
- Working tree clean — no uncommitted changes (
git status) - Commits exist ahead of base —
git log origin/master..HEADshows work - Pre-commit passes —
pre-commit run --all-files(if installed) - Remote `origin` points to your fork — verify with
git remote -v
Step 2 — Determine PR Metadata
Title Format (CI-enforced)
Or for breaking changes:
Valid modules: llm, vlm, vla, diffusion, train, data, ops, ckpt, peft, docker, xpu, ci, docs, tests, scripts, release
Valid types: feat, fix, refactor, perf, docs, test, chore, ci
How to Derive Title
- Look at
git diff origin/master..HEAD --statto identify which areas changed - Map changed paths to modules:
loongforge/models/foundation/→llmloongforge/models/encoder/,loongforge/models/omni_models/→vlmloongforge/train/→trainloongforge/data/→datatools/mcore_checkpoint_convert/→ckptloongforge/models/peft/→peftops/→opsconfigs/→ relevant model type (llm/vlm)examples_xpu/→xpudocker/→dockerdocs/→docstests/→tests.github/workflows/→ciexamples/,scripts/→scriptsloongforge/models/custom/→ check model type (diffusion/vla)
- Determine type from commit messages and nature of changes
- Write a concise description (imperative mood, lowercase start)
Examples:
[llm, ckpt] feat: support Qwen3-Next checkpoint conversion[data, vlm] fix: skip overlong Kimi VLM samples[docs] docs: fix diffusion docs structure and align ZH/EN toctree[train] perf: optimize gradient accumulation for MoE models
Description Template
Generate a PR body covering:
If adding a new model, also include:
Step 3 — Human Review
Before pushing or creating anything, present the full PR draft to the user for approval:
- Display the PR title and description in a clear, formatted block
- Ask whether to add Co-Authored-By — offer options:
- No co-author
- Add
Co-Authored-By: Claude <noreply@anthropic.com> - Custom co-author (user provides name and email)
- Wait for explicit confirmation before proceeding to Step 4
If the user requests changes, revise and re-present. Do NOT proceed until approved.
Step 4 — Push and Create PR
Only after user approval in Step 3:
If co-author was requested, append the Co-Authored-By trailer to the last commit before pushing:
--repo baidu-baige/LoongForge tells gh to create the PR against upstream regardless of local remote config. No need to set up an upstream remote.
Step 5 — Post-Creation
After PR is created:
- Report the PR URL to the user
- Mention if any CI checks are expected to run (PR Title, License Header, Secret Scan, Build)
- If the PR touches new
.py/.sh/.cu/.cpp/.hfiles, remind about SPDX headers
Quick Reference
| Module | Paths | |
|---|---|---|
| llm | loongforge/models/foundation/, configs/models/<llm>/ | |
| vlm | loongforge/models/encoder/, loongforge/models/omni_models/ | |
| vla | loongforge/models/custom/ (VLA models) | |
| diffusion | loongforge/models/custom/ (diffusion models) | |
| train | loongforge/train/ | |
| data | loongforge/data/ | |
| ops | ops/ | |
| ckpt | tools/mcore_checkpoint_convert/ | |
| peft | loongforge/models/peft/ | |
| docker | docker/ | |
| xpu | examples_xpu/ | |
| ci | .github/workflows/ | |
| docs | docs/ | |
| tests | tests/ | |
| scripts | examples/, scripts/, build.sh | |
| release | pyproject.toml, version bumps |
Common Mistakes
| Mistake | Fix | |
|---|---|---|
| Title doesn't match regex | Must be [modules] type: desc — check module/type spelling | |
| Pushing to upstream instead of fork | Always use git push origin | |
| PR against wrong base branch | LoongForge PRs target master (handled by --repo + --base) | |
| New files missing SPDX header | Run pre-commit run spdx-check --files <path> | |
| Forgot to rebase on latest master | git pull --rebase origin master before pushing | |
| Submodule pointer changed accidentally | git checkout upstream/master -- third_party/Loong-Megatron to reset |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/submit-pr/SKILL.md
Popularity
- Repository stars
- 722
- Repository forks
- 61
- 7-day trend score
- 31
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 Nov 2026, 7 days ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/baidu-baige/loongforge/submit-pr)