Agent Skillstrycompai/crm › create-draft-pr

create-draft-pr

GitHub

自动化执行代码提交、推送及创建草稿PR流程,依据pr-description规范生成描述,并视情况补充UX流说明,确保PR内容聚焦意图与方案。

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

Trigger Scenarios

需要为当前更改创建草稿PR 用户请求生成符合规范的PR描述和分支操作

Install

npx skills add trycompai/crm --skill create-draft-pr -g -y
More Options

Non-standard path

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

Use without installing

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

Version History

  • c26a08d Current 2026-08-08 08:03

Same Skill Collection

.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/diffs/SKILL.md
.agents/skills/eve/SKILL.md
.agents/skills/ga-pr/SKILL.md
.agents/skills/ga/SKILL.md
.agents/skills/gh-stack/SKILL.md
.agents/skills/install-anti-slop/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

Metadata

Files
0
Version
bb63520
Hash
0cc6a18a
Indexed
2026-08-08 08:03

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-26 20:04
浙ICP备14020137号-1 $Carte des visiteurs$