Agent skill

Lina Community Commit Push And PR

by linaproai in linaproai/linapro

手动触发:为 LinaPro 主仓库及 apps/lina-plugins 子模块完成提交、PR 前 rebase、推送、创建 PR, 主仓 CI 修复回路,以及 PR 合并后恢复原始分支并同步 main。禁止自动触发。

Apache-2.0Auto-check passed

Install Lina Community Commit Push And PR

skills CLI
$ npx skills add linaproai/linapro --skill lina-community-commit-push-and-pr -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install linaproai/linapro lina-community-commit-push-and-pr --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/linaproai/linapro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/lina-community-commit-push-and-pr .claude/skills/lina-community-commit-push-and-pr && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
lina-community-commit-push-and-pr
GitHub stars
160
Token cost
~1.9k tokens
SKILL.md length
190 words
Files
1
Skills in repo
13
Repo updated
First seen
Licence
Apache-2.0

At a glance

手动触发:为 LinaPro 主仓库及 apps/lina-plugins 子模块完成提交、PR 前 rebase、推送、创建 PR, 主仓 CI 修复回路,以及 PR 合并后恢复原始分支并同步 main。禁止自动触发。

  • Works in 11 steps: 主仓库默认当前工作目录,远端默认linaproai/linapro。 → 子模块远端从.gitmodules和git -C… → 子模块与主仓库PR目标分支均固定为各自main。 → …
  • SKILL.md covers 核心规则, 前置检查, PR 前 rebase 门禁 and 冲突处理, plus 6 more sections
  • Calls git and gh

What it does

Lina Community Commit Push And PR is an agent skill from linaproai/linapro. 手动触发:为 LinaPro 主仓库及 apps/lina-plugins 子模块完成提交、PR 前 rebase、推送、创建 PR, 主仓 CI 修复回路,以及 PR 合并后恢复原始分支并同步 main。禁止自动触发。

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: AI-native full-stack framework engineered for sustainable delivery. The licence is Apache-2.0.

Example prompts

  • “/lina-community-commit-push-and-pr”

Workflow steps

11 steps, taken from the first numbered list in SKILL.md.

  1. 主仓库默认当前工作目录,远端默认linaproai/linapro。
  2. 子模块远端从.gitmodules和git -C apps/lina-plugins remote -v读取,通常是linaproai/official-plugins。
  3. 子模块与主仓库PR目标分支均固定为各自main。
  4. 创建任何PR前:提交当前变更 → PR前rebase门禁 → 推送 → 创建PR。
  5. 不静默丢弃工作区变更;无关变更先报告,仅能限定到目标路径时才继续。
  6. 除本技能要求的PR前rebase外,不使用--force、--force-with-lease、git reset --hard等历史重写,除非用户明确要求。
  7. 子模块main只读对齐,禁止在其上commit/push修复。 若当前在main且需改子模块,必须先switch -c fix/(或等价任务分支)。
  8. 子模块PR创建后停止,等用户已合并/继续;主仓库PR创建后停止。用户说继续后用gh pr view或远端main确认已合并,未合并则停止。
  9. 主仓库PR未合并前若需改子模块,走阶段 2.5,不得进入阶段三。
  10. 两个PR均MERGED后,切回流程开始时的原始分支并包含最新origin/main。
  11. 合并/rebase/子模块指针冲突时立即停止交用户;禁止自行解冲突或继续rebase。

What it can do on your machine

Read from SKILL.md and the folder at commit 75395c8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git and gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Lina Community Commit Push And PR loads about 1.9k tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 190 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~36
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from linaproai/linapro at commit 75395c8, republished under its Apache-2.0 licence (© linaproai). 190 words, ~1,894 tokens.

Download SKILL.mdSave it as .claude/skills/lina-community-commit-push-and-pr/SKILL.md (or your agent's skills folder).
name
lina-community-commit-push-and-pr
description
手动触发:为 LinaPro 主仓库及 apps/lina-plugins 子模块完成提交、PR 前 rebase、推送、创建 PR, 主仓 CI 修复回路,以及 PR 合并后恢复原始分支并同步 main。禁止自动触发。

技能介绍

串联主仓库与apps/lina-plugins的提交、推送、PR与收尾。子模块有变更时先合子模块PR,再更新主仓库子模块指针并开主仓库PR。主仓库PR存活期间子模块修复走 fix 分支,禁止在子模块main上改代码。

核心规则

  1. 主仓库默认当前工作目录,远端默认linaproai/linapro。
  2. 子模块远端从.gitmodules和git -C apps/lina-plugins remote -v读取,通常是linaproai/official-plugins。
  3. 子模块与主仓库PR目标分支均固定为各自main。
  4. 创建任何PR前:提交当前变更 → PR前rebase门禁 → 推送 → 创建PR。
  5. 不静默丢弃工作区变更;无关变更先报告,仅能限定到目标路径时才继续。
  6. 除本技能要求的PR前rebase外,不使用--force、--force-with-lease、git reset --hard等历史重写,除非用户明确要求。
  7. 子模块main只读对齐,禁止在其上commit/push修复。 若当前在main且需改子模块,必须先switch -c fix/<main-branch>(或等价任务分支)。
  8. 子模块PR创建后停止,等用户已合并/继续;主仓库PR创建后停止。用户说继续后用gh pr view或远端main确认已合并,未合并则停止。
  9. 主仓库PR未合并前若需改子模块,走阶段 2.5,不得进入阶段三。
  10. 两个PR均MERGED后,切回流程开始时的原始分支并包含最新origin/main。
  11. 合并/rebase/子模块指针冲突时立即停止交用户;禁止自行解冲突或继续rebase。

前置检查

bash
git status --short --branch
git branch --show-current
cat .gitmodules
git submodule status apps/lina-plugins
git -C apps/lina-plugins status --short --branch
git remote -v
git -C apps/lina-plugins remote -v
gh auth status

记录原始分支(收尾必用):

bash
original_main_branch=$(git branch --show-current)
original_sub_branch=$(git -C apps/lina-plugins branch --show-current)

主仓库或子模块处于分离HEAD,或任一原始分支为空时停止,除非用户明确要求继续。

PR 前 rebase 门禁

顺序:提交 → fetch origin main → rebase origin/main → 检查origin/main..HEAD → 推送 → 创建PR。不得用merge origin/main代替。

子模块:

bash
git -C apps/lina-plugins fetch origin main
git -C apps/lina-plugins rebase origin/main
git -C apps/lina-plugins merge-base --is-ancestor origin/main HEAD
git -C apps/lina-plugins log --oneline --decorate origin/main..HEAD

主仓库:

bash
git fetch origin main
git rebase origin/main
git merge-base --is-ancestor origin/main HEAD
git log --oneline --decorate origin/main..HEAD
  • origin/main..HEAD含无关/异常提交时不得开PR,报告后等用户决定。
  • 普通push非快进被拒时不得自动强推;需用户授权或改用新分支名。
  • rebase冲突:停止,不推送、不开PR;禁止add/commit/rebase --continue|--skip|--abort,除非用户明确要求。

冲突处理

可合并性先只读检查:

bash
git merge-tree --write-tree HEAD origin/main

可自动合并时:

bash
git merge --no-edit origin/main
git push origin "$(git branch --show-current)"

冲突则停止并报告;工作区已冲突时保留现场,不自动merge --abort,除非用户要求。

阶段一:子模块 PR

bash
git -C apps/lina-plugins status --short --branch
git -C apps/lina-plugins diff --stat
git -C apps/lina-plugins diff --cached --stat

无内容更新则跳过,进入阶段二。

有更新时:

  1. 若在main,先切任务分支:
bash
sub_branch=$(git -C apps/lina-plugins branch --show-current)
if [ "$sub_branch" = "main" ]; then
  git -C apps/lina-plugins switch -c "<task-branch>"
  sub_branch=$(git -C apps/lina-plugins branch --show-current)
fi
  1. 提交(<类型>[可选作用域]: <描述>):
bash
git -C apps/lina-plugins add -A
git -C apps/lina-plugins commit -m "<submodule-subject>"
  1. PR前rebase门禁。
  2. 推送并创建PR;记录sub_pr_url/sub_branch。
bash
git -C apps/lina-plugins push origin "$sub_branch"
gh pr create \
  --repo "<submodule-owner>/<submodule-repo>" \
  --base main \
  --head "$sub_branch" \
  --title "<title>" \
  --body-file -
  1. 输出PR地址后停止:
text
请先 review 并合并该 submodule PR。合并完成后回复“已合并”或“继续”,我再更新主仓库 submodule 指针并创建主仓库 PR。

创建后不得进入阶段二。

阶段二:主仓库 PR

条件:子模块无更新,或阶段一PR已确认MERGED。

  1. 拉取远端main。
bash
git fetch origin main
git -C apps/lina-plugins fetch origin main
  1. 若有子模块PR,确认已合并;未合并则停止。
bash
gh pr view "<submodule-pr-number-or-url>" \
  --repo "<submodule-owner>/<submodule-repo>" \
  --json number,state,mergeCommit,url,baseRefName,headRefName
  1. 子模块对齐origin/main(仅取指针,非修复工作区):
bash
git -C apps/lina-plugins switch main
git -C apps/lina-plugins merge --ff-only origin/main
  1. 确认主仓库仅含预期变更;无关差异先报告。
bash
git status --short --branch
git diff --submodule=log -- apps/lina-plugins
git diff --stat
  1. 提交主仓库(指针与其它任务变更分开语义清晰即可):
bash
main_branch=$(git branch --show-current)
git add apps/lina-plugins
# 已确认属于本次任务的其它路径再 git add
git commit -m "chore(plugins): update lina-plugins submodule"
  1. PR前rebase门禁。
  2. 推送并创建主仓库PR;记录main_pr_url/main_branch。
bash
git push origin "$main_branch"
gh pr create \
  --repo linaproai/linapro \
  --base main \
  --head "$main_branch" \
  --title "<title>" \
  --body-file -
  1. 若PR状态为CONFLICTING,按冲突处理;能自动合则合入origin/main并推送,否则停止。

  2. 主仓 PR 创建后:子模块切到 fix 分支,禁止停在main等待。

bash
git -C apps/lina-plugins fetch origin main
git -C apps/lina-plugins switch main
git -C apps/lina-plugins merge --ff-only origin/main
sub_fix_branch="fix/${main_branch}"
git -C apps/lina-plugins switch -c "$sub_fix_branch"

若fix/${main_branch}已存在,则switch该分支并rebase origin/main(冲突则停)。

阶段二完成后停止:

text
请 review 主仓库 PR。若 CI/评审需改子模块:在 fix/<主仓分支> 上修改并走阶段 2.5,禁止在子模块 main 上提交。
主仓库 PR 合并后回复“已合并”或“继续收尾”。

阶段 2.5:主仓 PR 存活期修复(可选)

触发:主仓库PR已开未合,且 CI/评审需要改代码。

门禁:

  • 子模块当前分支为main且要改内容 → 先切/建fix/<main_branch>,禁止在main上commit/push。
  • 主仓库修复提交到已有main_branch并push更新同一PR(用户要求新开PR除外)。

子模块需改时:

  1. 确保在fix/<main_branch>(基于最新origin/main)。
  2. 提交 → PR前rebase → 推送 → 创建子模块 follow-upPR。
  3. 停止,等用户合并该子模块PR。
  4. 确认MERGED后:
bash
git -C apps/lina-plugins fetch origin main
git -C apps/lina-plugins switch main
git -C apps/lina-plugins merge --ff-only origin/main
# 主仓库任务分支上更新指针
git switch "$main_branch"
git add apps/lina-plugins
git commit -m "chore(plugins): update lina-plugins submodule"
# PR 前 rebase 门禁后
git push origin "$main_branch"
# 子模块回到 fix 分支待命
git -C apps/lina-plugins switch -c "fix/${main_branch}" 2>/dev/null \
  || git -C apps/lina-plugins switch "fix/${main_branch}"
git -C apps/lina-plugins merge --ff-only origin/main
  1. 仅改主仓库时:在main_branch提交、rebase、push即可。
  2. 仍失败则重复本阶段;通过后仍等用户合并主仓库PR,不得提前阶段三。

阶段三:合并后恢复分支

条件:本流程创建过的子模块/follow-up与主仓库PR均已MERGED;original_*非空;无未提交修复。

  1. 再确认MERGED。
bash
gh pr view "<submodule-pr-or-followup>" \
  --repo "<submodule-owner>/<submodule-repo>" \
  --json number,state,mergeCommit,url
gh pr view "<framework-pr-number-or-url>" \
  --repo linaproai/linapro \
  --json number,state,mergeCommit,url
  1. 刷新main。
bash
git fetch origin main
git -C apps/lina-plugins fetch origin main
  1. 子模块回原始分支并包含origin/main。
bash
git -C apps/lina-plugins switch "$original_sub_branch"
git -C apps/lina-plugins merge --ff-only origin/main

--ff-only失败则按冲突处理;需人工选择时停止。

  1. 主仓库同理。
bash
git switch "$original_main_branch"
git merge --ff-only origin/main
  1. 校验。
bash
git status --short --branch
git merge-base --is-ancestor origin/main HEAD
git -C apps/lina-plugins status --short --branch
git -C apps/lina-plugins merge-base --is-ancestor origin/main HEAD
  1. 相对远端领先则推送;无上游用-u;落后或分叉则停止。
bash
git rev-list --left-right --count "origin/$original_main_branch"...HEAD
git -C apps/lina-plugins rev-list --left-right --count "origin/$original_sub_branch"...HEAD
git push origin "$original_main_branch"
git -C apps/lina-plugins push origin "$original_sub_branch"

PR 正文

通用:Summary、Tests(未跑则写Not run by this PR creation step.)、Related Issue(识别到用Resolves ...,否则说明无关联且不阻塞)。

主仓库另加Submodule:apps/lina-plugins从何 SHA 更新到何 SHA。

输出

阶段一: 子模块分支/主题/推送目标、rebase与origin/main..HEAD、PR地址、等待合并提醒。

阶段二: 子模块对齐的main SHA、主仓库分支/主题、rebase检查、PR地址与可合并性、子模块当前 fix 分支、工作区是否干净、测试是否运行。

阶段 2.5: 修复落在哪一仓库/分支、子模块 follow-upPR(如有)、主仓库是否已 bump 指针并 push、下一步等待项。

阶段三: 已合并PR与 merge commit、两侧当前分支与是否含最新main/是否已推送、工作区是否干净、测试是否运行。

© linaproai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/lina-community-commit-push-and-pr of linaproai/linapro.

Open the folder on GitHubat commit 75395c8

Compare with similar skills

Lina Community Commit Push And PR next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Lina Community Commit Push And PR compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Lina Community Commit Push And PR this skilllinaproai/linapro160—~1.9kAutomated safety check: PassApache-2.0
Commit, Push, and PREveryInc/compound-engineering-plugin25k—~2kAutomated safety check: PassMIT
Commitsickn33/agentic-awesome-skills47k2 repos~1.3kAutomated safety check: PassMIT
Git Commit Pushfarm-fe/farm5.6k—~325Automated safety check: PassMIT
Commitdavila7/claude-code-templates32k3 repos~730Automated safety check: PassMIT
Commitwindmill-labs/windmill18k—~447Automated safety check: PassCustom licence

Similar skills

  • Commit, Push, and PR

    EveryInc/compound-engineering-plugin

    Commits staged changes, pushes a branch, and opens or updates a GitHub pull request, including writing its description.

    25k GitHub stars~2k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Commit

    sickn33/agentic-awesome-skills

    ALWAYS use this skill when committing code changes — never commit directly without it.

    47k GitHub starsUsed in 2 repos~1.3k tokens
    DevelopmentAuto-check passed
  • Git Commit Push

    farm-fe/farm

    Commit and push repository changes safely. An agent skill from farm-fe/farm.

    5.6k GitHub stars~325 tokensUpdated 17 days ago
    DevelopmentAuto-check passed
  • Commit

    davila7/claude-code-templates

    Create commit messages following Sentry conventions. An agent skill from davila7/claude-code-templates.

    32k GitHub starsUsed in 3 repos~730 tokens
    DevelopmentAuto-check passed
  • Commit

    windmill-labs/windmill

    Create a git commit with conventional commit format. An agent skill from windmill-labs/windmill.

    18k GitHub stars~447 tokensUpdated today
    DevelopmentAuto-check passed
  • Commit

    ccusage/ccusage

    Creates atomic Conventional Commits. An agent skill from ccusage/ccusage.

    19k GitHub stars~722 tokensUpdated today
    DevelopmentAuto-check passed

More from linaproai/linapro

All 13 skills in this repo
  • Lina Perf Audit

    linaproai/linapro

    通过 make db.init/mock 重置数据库、重启服务、安装并启用所有内置插件、准备压测数据,并启动并发子代理; 通常需要几十分钟到数小时,且会消耗大量 Token。不得从其他技能、CI、定时任务、 Git 钩子或模糊的性能请求中触发。

    160 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Vben

    linaproai/linapro

    Vben Admin 5.0 前端框架开发技能。用于开发基于 Vue3、Vite、TypeScript 的中后台管理系统。

    160 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check: notes
  • Lina Community Fix CI

    linaproai/linapro

    排查并修复给定的 LinaPro GitHub Actions 失败问题;修复完成后保留本地改动, 禁止自动提交、推送或创建 PR。

    160 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • 审查 LinaPro 社区 GitHub Issues,并按项目规范和源码实现分类处理. An agent skill from linaproai/linapro.

    160 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Lina Community New Branch

    linaproai/linapro

    手动触发:将主仓库与 apps/lina-plugins 对齐最新 main 后, 按提示在两侧各建独立分支;分支就绪后继续处理提示词中的后续请求。

    160 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Lina Community PR Review

    linaproai/linapro

    审查 LinaPro 社区 GitHub Pull Request,并按项目规范发表评论. An agent skill from linaproai/linapro.

    160 GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Lina Community Commit Push And PR

What does Lina Community Commit Push And PR do?

手动触发:为 LinaPro 主仓库及 apps/lina-plugins 子模块完成提交、PR 前 rebase、推送、创建 PR, 主仓 CI 修复回路,以及 PR 合并后恢复原始分支并同步 main。禁止自动触发。. Lina Community Commit Push And PR is an agent skill from linaproai/linapro.

How do I install Lina Community Commit Push And PR in Claude Code?

Run `npx skills add linaproai/linapro --skill lina-community-commit-push-and-pr -a claude-code`. Or copy the skill folder (.agents/skills/lina-community-commit-push-and-pr in linaproai/linapro) into .claude/skills/lina-community-commit-push-and-pr in your project. Claude Code loads it when a task matches its description.

How do I install Lina Community Commit Push And PR in Codex?

Run `npx skills add linaproai/linapro --skill lina-community-commit-push-and-pr -a codex`. Or copy the skill folder (.agents/skills/lina-community-commit-push-and-pr in linaproai/linapro) into .agents/skills/lina-community-commit-push-and-pr in your project. Codex loads it when a task matches its description.

Can I use Lina Community Commit Push And PR in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add linaproai/linapro --skill lina-community-commit-push-and-pr -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/lina-community-commit-push-and-pr, .gemini/skills/lina-community-commit-push-and-pr, .github/skills/lina-community-commit-push-and-pr and .opencode/skills/lina-community-commit-push-and-pr in your project.

What does Lina Community Commit Push And PR need to run?

Going by SKILL.md and its folder, Lina Community Commit Push And PR needs the command-line tools its instructions call (git and gh).

Does Lina Community Commit Push And PR access the network?

SKILL.md contains no URLs. Its commands use git and gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Lina Community Commit Push And PR safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Lina Community Commit Push And PR use?

Lina Community Commit Push And PR is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Lina Community Commit Push And PR use?

About 1.9k tokens (SKILL.md is roughly 7.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Lina Community Commit Push And PR?

Skills that share tags, products or a category with Lina Community Commit Push And PR: Commit, Push, and PR (EveryInc/compound-engineering-plugin, 25k stars), Commit (sickn33/agentic-awesome-skills, 47k stars), Git Commit Push (farm-fe/farm, 5.6k stars) and Commit (davila7/claude-code-templates, 32k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Lina Community Commit Push And PR?

linaproai (a GitHub organization) maintains it in linaproai/linapro, which has 160 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on September 7, 2026.

Source: linaproai/linapro on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.