Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计通过

pr-document-writer公关文档撰写者

Agent Skill

pr-document-writer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

235

周安装

10

GitHub Stars

公开资料未说明

下载量

82
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pr-document-writer(公关文档撰写者)
来源仓库:https://github.com/cw-codewalnut/agent-skills
仓库路径:skills/pr-document-writer
安装命令:
npx skills add https://github.com/cw-codewalnut/agent-skills --skill pr-document-writer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/cw-codewalnut/agent-skills --skill pr-document-writer

简介

pr-document-writer 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 确认具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

PR Description Generator

Generate a well-crafted PR title (conventional commit format) and a filled-out PR description template by analyzing the git diff of the current branch.

Workflow

Step 1: Identify the base branch

Determine the base branch that the current branch will be merged into.

Run these git commands to gather context:

git branch --show-current
git remote show origin | grep "HEAD branch"
git log --oneline -5

Use git remote show origin to find the default branch (usually main or master). If the repo has a common base like develop or staging, infer from the branch naming convention or recent merge targets.

If the base branch cannot be confidently determined (e.g., ambiguous remote setup, multiple candidates), ask the user which branch they intend to merge into. Don't guess — getting the base branch wrong means the diff will be wrong, which means the entire PR description will be wrong.

Step 2: Get the latest commit and full diff

Fetch the diff between the current branch and the base branch, along with the latest commit info:

git log -1 --format="%H %s"
git diff <base-branch>...HEAD --stat
git diff <base-branch>...HEAD

Use the three-dot diff (...) because it shows only the changes introduced on the current branch since it diverged from the base — this is what a PR reviewer will actually see.

If the diff is extremely large (thousands of lines), use --stat first to understand the scope, then read the most important changed files selectively. For very large diffs, focus on:

  • New files (they tell the story of what was added)
  • Modified core files (business logic, not config/lock files)
  • Deleted files (what was removed and why)

Skip noisy files like lock files, auto-generated code, or minified assets — they add nothing to the description.

Step 3: Analyze the diff thoroughly

Before writing anything, take time to actually understand what the changes do. This is the most important step — a PR description is only as good as the understanding behind it.

Think through:

  • What changed? (files, functions, components, APIs)
  • Why might it have changed? (bug fix, new feature, refactor, performance)
  • How do the changes work together? (trace the logic across files)
  • What's the scope? (is this a small targeted fix or a broad refactor?)
  • Are there any breaking changes? (API changes, schema migrations, removed exports)
  • Are there side effects? (dependency updates, config changes)

Group related changes into logical chunks. A PR that touches 15 files might really be doing 2-3 things — identify those themes so the description tells a coherent story rather than listing every file.

Step 4: Find the PR template

Check whether the project already has a PR template. Look in these common locations:

# Check all common PR template locations
ls -la .github/pull_request_template.md .github/PULL_REQUEST_TEMPLATE.md .github/PULL_REQUEST_TEMPLATE/ docs/pull_request_template.md PULL_REQUEST_TEMPLATE.md 2>/dev/null

Common locations to check:

  • .github/pull_request_template.md
  • .github/PULL_REQUEST_TEMPLATE.md
  • .github/PULL_REQUEST_TEMPLATE/ (directory with multiple templates)
  • docs/pull_request_template.md
  • PULL_REQUEST_TEMPLATE.md (repo root)

If the project has its own template, read it and use it.

If no project template exists, use the default template bundled with this skill at assets/default-template.md (relative to this skill's directory).

Step 5: Generate the PR title

Create a PR title using conventional commit format:

<type>(<scope>): <short summary>

Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert

Guidelines:

  • The type should reflect the primary purpose of the PR (if there are mixed changes, use the dominant one)
  • The scope is optional but helpful — use the module, component, or area of the codebase affected
  • The summary should be imperative mood ("add" not "added"), lowercase, no period at the end
  • Keep it under 72 characters total
  • It should make immediate sense to someone scanning a list of PRs

Examples:

  • feat(auth): add JWT refresh token rotation
  • fix(api): handle null response in user endpoint
  • refactor(dashboard): extract chart components into shared module
  • chore(deps): bump express from 4.18 to 4.19

Step 6: Fill the template

Fill in the PR template based on your analysis from Step 3. Be specific and useful:

  • What does this PR do? — Describe the changes in plain language. Lead with the "why" (the problem or goal), then explain the "what" (what was done). Use bullet points for multiple changes. Don't just restate the diff — add context that isn't obvious from the code.
  • Testing steps — Write concrete steps a reviewer can follow to verify the changes. Include specific URLs, commands, inputs, or scenarios to test. If there are edge cases, mention them.
  • Checklists — Check off items that are true based on what you can observe from the code. Leave items unchecked if you can't verify them or if they don't apply. If an item is clearly not applicable, you can note N/A with a brief reason.

Don't fabricate information. If you can't determine something from the diff (like whether manual testing was done), leave it for the author to fill in. It's better to leave a checkbox unchecked than to check it incorrectly.

Step 7: Present the output

Output exactly two markdown code blocks in the chat:

First block — the PR title:

<generated-title>

Second block — the filled template:

<filled-template>

This format makes it easy for the user to copy-paste into their PR.

Step 8: Offer to create or update the PR via GitHub tools

After presenting the output, check whether any GitHub MCP tools are available (e.g., tools matching patterns like github, pull_request, create_pull_request, update_pull_request).

If GitHub tools are available:

First, check if a PR already exists for the current branch:

  • Search for open PRs where the head branch matches the current branch
  • If a PR exists: ask the user if they'd like to update the existing PR's title and description with the generated content
  • If no PR exists: ask the user if they'd like to create a new PR with the generated title and description

If no GitHub tools are available:

Let the user know the output is ready for them to copy-paste. No further action needed — don't suggest installing tools or extensions, just move on gracefully.

Always wait for user confirmation before creating or updating anything. Never auto-create or auto-update a PR without explicit approval.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.05%
按下载量换算30

Claude

29.82%
按下载量换算24

Cursor

18.89%
按下载量换算15

Gemini CLI

10.77%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills