Agent Skillstrycompai/crm › create-draft-pr

create-draft-pr

GitHub

自动执行代码提交、推送并创建草稿PR。通过git命令分析变更,遵循特定分支命名规范,利用pr-description技能生成结构化描述,并在必要时包含UX流程说明,最终使用gh cli创建草稿PR。

.agents/skills/create-draft-pr/SKILL.md trycompai/crm

触发场景

完成代码修改后需要创建Pull Request 需要将本地更改推送到远程仓库并建立PR

安装

npx skills add trycompai/crm --skill create-draft-pr -g -y
更多选项

非标准路径

npx skills add https://github.com/trycompai/crm/tree/release/.agents/skills/create-draft-pr -g -y

不安装直接使用

npx skills use trycompai/crm@create-draft-pr

指定 Agent (Claude Code)

npx skills add trycompai/crm --skill create-draft-pr -a claude-code -g -y

安装 repo 全部 skill

npx skills add trycompai/crm --all -g -y

预览 repo 内 skill

npx skills add trycompai/crm --list

SKILL.md

Frontmatter
{
    "name": "create-draft-pr",
    "description": "Commit, push, and create a draft PR using the pr-description format, with UX flow context when relevant.",
    "user-invocable": true
}

Create Draft PR

Commit all changes, push to remote, and create a draft pull request with a focused generated description.

Steps

  1. Run git status to see changes
  2. Run git diff to understand what changed
  3. Run git log to see commit message style
  4. If on main, create a new branch in the format <initials>/<feature> or the project's branch naming convention, then switch to it
  5. Stage and commit changes with a concise message
  6. Push branch to remote with -u flag
  7. Generate the PR description using the pr-description skill's description format.
  8. If the change is user-facing, workflow-oriented, or architectural, include a concise UX flow section using the ux-flow-plan style.
  9. Create draft PR using gh pr create --draft
  10. If you created the branch (were on main), switch back to main after the PR is created

PR Body Format

Use the pr-description skill's format as the base:

## Summary

<One sentence describing the overall change>

- Additional note if needed
- Another note if needed

## Problem

Describe the issue being addressed. What was broken, missing, or suboptimal? Be specific about the root cause.

## Solution

Explain the approach taken to fix the problem. Include code snippets only when they clarify the core approach.

When relevant, add this section between Problem and Solution:

## UX Flow

```text
Current flow
└─ ...

Desired flow
└─ ...
```

Only include UX Flow when it helps explain the product behavior, user journey, or architecture boundary. Keep it short and use the ux-flow-plan tree style.

Rules

  • PR title should be succinct (no "feat:" prefix, but "fix:" is ok for bug fixes)
  • Use pr-description as the source of truth for PR body structure.
  • Include UX Flow from ux-flow-plan only when relevant; omit it for mechanical, dependency, or tiny internal changes.
  • Do NOT include a file-by-file summary of code changes.
  • Do NOT include a test plan with checkboxes.
  • Do NOT include "Generated with Claude Code" or similar footers
  • Keep the PR description concise and focused on intent and approach
  • Use HEREDOC for the PR body to preserve formatting

版本历史

  • c26a08d 当前 2026-08-08 08:03

同 Skill 集合

.agents/skills/ai-elements/SKILL.md
.agents/skills/better-auth-best-practices/SKILL.md
.agents/skills/better-colors/SKILL.md
.agents/skills/better-interface/SKILL.md
.agents/skills/better-ui/SKILL.md
.agents/skills/better-writing/SKILL.md
.agents/skills/code-refactor-review/SKILL.md
.agents/skills/eve/SKILL.md
.agents/skills/ga-pr/SKILL.md
.agents/skills/ga/SKILL.md
.agents/skills/nestjs-best-practices/SKILL.md
.agents/skills/no-use-effect/SKILL.md
.agents/skills/nuqs/SKILL.md
.agents/skills/pit-of-success/SKILL.md
.agents/skills/posthog-instrumentation/SKILL.md
.agents/skills/prepare-branch-context/SKILL.md
.agents/skills/prisma-database-setup/SKILL.md
.agents/skills/shadcn/SKILL.md
.agents/skills/skill-creator/SKILL.md
.agents/skills/turborepo/SKILL.md
.agents/skills/typescript-advanced-types/SKILL.md
.agents/skills/ux-flow-plan/SKILL.md
.agents/skills/vercel-composition-patterns/SKILL.md
.agents/skills/vercel-react-best-practices/SKILL.md
.agents/skills/web-design-guidelines/SKILL.md
.agents/skills/zero-tech-debt/SKILL.md
.agents/skills/ai-sdk/SKILL.md
.agents/skills/better-accessibility/SKILL.md
.agents/skills/better-layout/SKILL.md
.agents/skills/better-typography/SKILL.md
.agents/skills/nestjs-trpc/SKILL.md
.agents/skills/seo-audit/SKILL.md

元信息

文件数
0
版本
c26a08d
Hash
0cc6a18a
收录时间
2026-08-08 08:03

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-08 23:37
浙ICP备14020137号-1 $访客地图$