# Yuzolabs Xpressthumb Pr Description

> PR Description

- Skill: `tomevault-io/yuzolabs-xpressthumb-pr-description` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/yuzolabs-xpressthumb-pr-description`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/yuzolabs-xpressthumb-pr-description/raw
- Safety review: pending (external: skill-scanner PASS, skillspector CAUTION)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/yuzolabs-xpressthumb-pr-description

---


# PR Description

Generate `pr.md` from the current branch's git diff, following the project PR template.

## Workflow

### Step 1: Determine base branch

```bash
# Find the base branch (usually main or master)
git symbolic-ref refs/remotes/origin/HEAD --short 2>/dev/null | sed 's|origin/||'
# If that fails, try:
git remote show origin | grep 'HEAD branch' | awk '{print $NF}'
```

### Step 2: Get diff since branch diverged

```bash
# Get the merge-base commit (where this branch diverged from base)
BASE=$(git merge-base HEAD origin/main)   # replace "main" with actual base branch

# Full diff of all changed files
git diff $BASE HEAD

# Summary of changed files
git diff $BASE HEAD --stat

# List of commits on this branch
git log $BASE..HEAD --oneline
```

### Step 3: Read the PR template

Read `.github/copilot-pull-request-instructions.md` to get the required template format.

### Step 4: Write pr.md

Using the diff, commit log, and template, generate `pr.md` in the project root.

**Template structure** (from `.github/copilot-pull-request-instructions.md`):

```markdown
<!-- PR Title -->
## 概要
<!-- PRの背景・目的・概要 -->

## 修正事項
<!-- このPRで何をしたのか？ -->

## 備考
<!-- レビュワーへの伝達事項や残しておきたい情報、参考リンク -->
```

- The **first line** must be the PR title (concise, imperative, in Japanese).
- **Summary**: Explain the background and purpose — *why* this PR exists.
- **Changes**: Concrete list of what was modified/added/removed — *what* was done.
- **Notes**: Anything relevant for reviewers (e.g., design decisions, caveats, links to issues).

### Step 5: Validate pr.md (if it contains Japanese text)

If the pr.md output contains Japanese text, run markdown lint:

```bash
bunx markdownlint-cli2 --fix "pr.md"
```

## Rules

- Output language: **Japanese** (as specified by the template instructions).
- Do NOT include any diff output, raw git content, or code snippets in pr.md unless they aid understanding.
- Keep the PR title on the first line, not inside a heading.
- If the base branch cannot be determined automatically, assume `main`.
- If `.github/copilot-pull-request-instructions.md` does not exist, use the template structure above as the default.

---
> Source: [yuzolabs/XpressThumb](https://github.com/yuzolabs/XpressThumb) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-16 -->

