360 Secure SkillHub
360 安全技能中心

Git Commit PR Workflow

核心功能:提供从工作区到PR的端到端Git交付流程,含分支状态检查、按需创建分支、提交推送,生成/更新带结构化标题、摘要及测试计划的PR,内置安全防护(如不强制推送默认分支、避免提交机密)。典型场景:用户需将当前变更提交并创建PR,或整理变更为完善PR。输入为当前Git状态、默认分支及可选指令;输出为新提交、推送分支及创建/更新的PR。

wimi321
wimi321
热度 32.32
最近更新 2026-05-11 17:39:34
分类:开发依赖:代码执行应用场景:DevOps / 自动化脚本

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add 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.