본문으로 건너뛰기
cccskills
무료GitHub에 공개

pr-diff-writer

Generates English pull request titles and bodies by comparing the current branch with main. Use when the user asks to draft PR content, summarize branch changes, or produce a PR title/body from git diff.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md3.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

PR Diff Writer

Purpose

Create an English PR title and PR body by analyzing the current branch against main.

When To Use

Use this skill when the user asks things like:

  • "Generate PR title/content"
  • "Summarize current branch for PR"
  • "Write PR body from diff with main"
  • "Draft a pull request description"

Workflow

Follow these steps in order:

  1. Identify branch and base:

    • Get current branch name.
    • Prefer origin/main as the base if available.
    • Fallback to local main if remote base is unavailable.
  2. Gather change context:

    • Commit history between base and HEAD.
    • File-level changes (added/modified/deleted).
    • Key code diff hunks that affect behavior, API, tests, docs, or build.
  3. Determine PR intent:

    • Classify dominant change type: feat, fix, docs, chore, refactor, perf, or test.
    • Identify affected package scopes:
      • @agentscope-ai/design (packages/spark-design)
      • @agentscope-ai/chat (packages/spark-chat)
      • @agentscope-ai/flow (packages/spark-flow)
      • @agentscope-ai/clawd-chat-ui (packages/clawd-chat-ui)
      • Repository-only engineering changes
  4. Draft title:

    • Must be in English.
    • Use Conventional Commit style when possible, for example:
      • feat(chat): add session API fallback for starter runtime
      • fix(design): correct dropdown keyboard navigation state
    • Keep it concise and specific (usually <= 72 chars preferred).
  5. Draft PR body:

    • Must be fully in English.
    • Use this structure:
## Change Type

- [ ] feat (new feature)
- [ ] fix (bug fix)
- [ ] docs (documentation)
- [ ] chore (build/deps/infra)
- [ ] refactor (code refactoring)
- [ ] perf (performance)
- [ ] test (tests)

## Affected Scope (Required)

- [ ] `@agentscope-ai/design` (`packages/spark-design`)
- [ ] `@agentscope-ai/chat` (`packages/spark-chat`)
- [ ] `@agentscope-ai/flow` (`packages/spark-flow`)
- [ ] `@agentscope-ai/clawd-chat-ui` (`packages/clawd-chat-ui`)
- [ ] Repository-only changes (no npm package impact)

## Description

<!-- What changed, why, and notable implementation details -->

## Validation

- [ ] Verified locally: `pnpm run lint`
- [ ] Verified locally: `pnpm run build`
- [ ] Verified locally (if applicable): `pnpm run docs:build`

## Release Impact (Maintainer)

- [ ] Release required
- [ ] No release required
  1. Add concise, evidence-based summary:
    • Mention meaningful user-facing behavior changes.
    • Mention risk areas and compatibility concerns if any.
    • Mention tests added/updated or why tests are not needed.

Output Requirements

  • Always output both:
    • PR Title: ...
    • PR Body: (full markdown block)
  • English only for title and body text.
  • Do not invent changes not present in the diff.
  • If diff is empty, state that clearly and ask for guidance.

Quality Checklist

Before final output, verify:

  • Title matches dominant change intent.
  • Body checkboxes are aligned with actual changes.
  • Affected scope includes every touched package.
  • Description explains "why" and not only "what".
  • All generated PR text is in English.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

agentscope-ai/agentscope-spark-design4572026년 10월 9일 업데이트

agentscope-ai의 스킬 모두 보기

이 스킬의 문제 신고