360 Secure SkillHub
360 安全技能中心

Git Commit PR Workflow

核心功能为端到端Git交付:检查分支状态,按需创建特性分支,提交相关变更并推送,创建或更新PR,生成短标题、结构化摘要和测试计划。典型场景:用户需提交工作并打开PR,或整理当前变更为规范PR。输入含当前Git状态、默认分支及可选指令,输出为新提交、推送分支、创建/更新的PR,同时有安全防护机制。

wimi321
wimi321
热度 35.30
最近更新 2026-05-11 17:39:12
分类:开发依赖:代码执行 / 内部调用大模型应用场景:DevOps / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add claude-code-git-commit-pr-workflow
Metadata
name
git_commit_pr_workflow
description
Use when the user wants the full git workflow: branch creation if needed, commit, push, and PR create or update with a concise summary and test plan.

Git Commit PR Workflow

Use this skill for end-to-end git delivery from working tree to pull request.

Workflow

  1. Inspect branch state, diff against default branch, and existing PR state.
  2. Create a feature branch if still on the default branch.
  3. Stage and commit the relevant changes.
  4. Push the branch.
  5. Create or update the PR with a short title, summary bullets, and test plan.

Guardrails

  • No destructive git commands unless explicitly requested.
  • No force push to default branches.
  • Keep PR titles short and bodies structured.
  • Avoid committing secrets or unrelated changes.

Example Requests

  • Commit this work, push it, and open a PR.
  • Take the current changes to a polished PR with a test plan.

Inputs

  • Current git state
  • Default branch
  • Optional user instructions

Outputs

  • New commit
  • Pushed branch
  • Created or updated PR

Success Criteria

  • The right files were committed.
  • The branch was pushed safely.
  • The PR body accurately reflects the diff.

Non-Goals

  • Force-push workflows by default
  • Interactive git rebases

Source Provenance

Derived from src/commands/commit-push-pr.ts.