Token导航 LogoToken导航

Agent Skill · 研究检索

wtf.create-pr(WTF 创建公关)

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

wtf.create-pr 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 48,626。

总安装 682周安装 29GitHub Stars 3下载 239核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/xiduzo/wtf --skill wtf.create-pr

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

wtf.create-pr 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。它支持基于关键词、任务场景或来源线索进行信息聚合与过滤,适用于创建 Pull Request 相关研究。

通过 npx skills add 命令从 GitHub 仓库安装,具体用法需结合原始 README 进一步确认。安装前请核实权限范围、维护状态,并注意是否涉及联网、命令执行或文件读写操作。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/wtf.create-pr

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/xiduzo/wtf --skill wtf.create-pr;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

wtf.create-pr 怎么安装?

在终端执行 npx skills add https://github.com/xiduzo/wtf --skill wtf.create-pr。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

wtf.create-pr 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

wtf.create-pr 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/xiduzo/wtf --skill wtf.create-pr 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

wtf.create-pr 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

wtf.create-pr 用的人多吗?

公开数据是累计安装 682 次,近一周安装 29 次,下载 239 次,GitHub 3 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

wtf.create-pr 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 要求有安全扫描结论才肯安装的团队。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
wtf.create-pr

WTF 创建公关 · 本页

6823执行命令未明确未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Create PR

Open a pull request for a completed task branch. Core value: reads the full spec hierarchy (Task + Feature + Epic) and the branch diff to write a PR description that explains *why* the change exists — not just what it does.

Process

0. GitHub CLI setup

Run steps 1–2 of ../references/gh-setup.md (install check and auth check). Stop if gh is not installed or not authenticated. Extensions are not required for this skill.

Skip this step if invoked from wtf.verify-task or another skill that already ran gh-setup this session.

1. Confirm the branch

Check the current branch and verify it is not main:

git branch --show-current

If on main, ask: "Which branch should I open a PR from?"

Check whether a PR already exists for this branch:

gh pr list --head <branch_name> --state open

If an open PR already exists, print its URL and call AskUserQuestion with:

  • question: "A PR already exists for this branch. Would you like me to update its description instead?"
  • header: "Existing PR"
  • options: [{label: "Update description", description: "Edit the existing PR's description"}, {label: "Open a new one", description: "Create a new PR anyway"}]
  • Update description → skip to step 5, targeting the existing PR for update via gh pr edit <pr_number>.
  • Open a new one → continue.

2. Identify the Task (if any)

Try to extract a task number from the branch name (e.g. task/42-date-range-filter → #42).

If found, call AskUserQuestion with question: "I found Task #<n> linked to this branch. Is that the right task?", header: "Linked task", and options: [{label: "Yes, that's correct", description: "Use Task #<n>"}, {label: "No, use a different task", description: "I'll provide the correct issue number"}].

If not found or the user says no, call AskUserQuestion with question: "Is there a Task issue linked to this work?", header: "Linked task", and options: [{label: "No linked task", description: "Proceed without a task link"}, {label: "Yes — I'll provide the number", description: "Enter the task issue number"}].

3. Lifecycle check (if Task linked)

If a Task issue is known, check its labels:

gh issue view <task_number> --json labels --jq '.labels[].name'

If the verified label is absent, warn the user that the task hasn't been verified yet and that the recommended flow is: write-task → design-task → implement-task → verify-task → create-pr. Then call AskUserQuestion with:

  • question: "This task hasn't been verified yet. How would you like to proceed?"
  • header: "Verify first?"
  • options: [{label: "Verify first", description: "Runwtf.verify-taskbefore opening the PR (default)"}, {label: "Open PR anyway", description: "Skip verification and open the PR now"}]
  • Verify first → follow the wtf.verify-task process, passing the Task number in as context.
  • Open PR anyway → proceed.

If no Task is linked, skip this step.

4. Fetch the spec hierarchy

If a Task issue is known, fetch the full hierarchy:

gh issue view <task_number>    # Gherkin, Contracts, DoD, Test Mapping — also yields feature and epic numbers
# Extract feature and epic numbers, then in parallel:
gh issue view <feature_number> # ACs, user stories
gh issue view <epic_number>    # Goal, context, constraints

If no Task issue, skip hierarchy fetch. The PR will be written from diff context alone (step 5).

5. Inspect the diff

Determine the base branch using the same logic as step 8 (task/* → parent feature branch; feature/* → main), then collect the branch diff against that base:

git log <base_branch>..HEAD --oneline
git diff <base_branch>...HEAD --stat

This avoids including unrelated merged commits when the branch has a long history against main. Use --stat output only unless a specific commit message is ambiguous and cannot be resolved without the diff.

6. Draft the PR

Title generation: Spawn a subagent using the claude-haiku-4-5-20251001 model to generate a PR title per ../references/commit-conventions.md. Pass in the task title (if available), the commit log, and whether this is a breaking change. If the subagent returns nothing usable, generate the title directly following the same rules. Examples: feat(search): add date range filter, fix(payments): prevent double settlement, refactor(orders): extract fulfilment service.

Body: Before drafting, verify .github/pull_request_template.md exists. If missing, ask the user (per ../references/questioning-style.md) whether to run /wtf.setup or cancel — then halt either way.

Use the structure from @.github/pull_request_template.md. Fill in all sections:

  • Summary: derived from the Task's Intent + Functional Description (or commit messages if no Task). Explain the *why*.
  • Changes: grouped logical summary of git diff --stat output — not a file list.
  • Test plan: if a Task exists, derive checklist items from the Gherkin scenario names. If no Task, derive from changed files and commit messages. At minimum one item per observable behavior changed.
  • Related: closure keywords per ../references/commit-conventions.md. If a Task exists, include Closes #<task_number>. If the PR also closes the parent Feature (all sibling tasks already merged), add Closes #<feature_number> on its own line.

7. Review with user

Show the draft title and body. Then call AskUserQuestion with question: "Does this look right?", header: "Review", and options: [{label: "Looks good — create the PR", description: "Proceed with PR creation"}, {label: "I have changes", description: "I want to adjust something first"}].

Apply edits, then proceed.

8. Create the PR

Determine the base branch from the current branch name:

  • task/* branch → target the parent feature branch (feature/<feature-number>-<feature-slug>)
  • feature/* branch → target main
  • Other → call AskUserQuestion with question: "What branch should this PR target?", header: "Base branch", options derived from git branch -r.

Write the body to a temp file, then create the PR:

# Derive a unique suffix from the branch name (fallback to timestamp):
SUFFIX=$(git rev-parse --abbrev-ref HEAD | tr '/' '-' || date +%s)

# task branch:
gh pr create \
  --title "<title>" \
  --body-file /tmp/wtf.create-pr-${SUFFIX}-body.md \
  --base feature/<feature-number>-<feature-slug>

# feature branch:
gh pr create \
  --title "<title>" \
  --body-file /tmp/wtf.create-pr-${SUFFIX}-body.md \
  --base main

Print the PR URL.

9. Update the Task issue (if linked)

If a Task issue is linked, post a comment linking the PR:

gh issue comment <task_number> --body "PR opened: <pr_url>"

10. Offer next steps

Call AskUserQuestion with:

  • question: "What's next?"
  • header: "Next step"
  • options: [{label: "Request a review", description: "Add reviewers to this PR now (default)"}, {label: "Done", description: "Exit — no further action"}]
  • Request a review → call AskUserQuestion with question: "Who should review this?", header: "Reviewer", and options pre-filled with team member usernames inferred from recent git log authors or the repository's CODEOWNERS file. Then: gh pr edit <pr_number> --add-reviewer <username> For multiple reviewers, pass a comma-separated list: --add-reviewer user1,user2. Print the PR URL.
  • Done → exit.

平台分布

Codex

36.52%
按下载量换算87

Claude

30.08%
按下载量换算72

Cursor

19.68%
按下载量换算47

Gemini CLI

8.62%
按下载量换算21

安全审计

暂无安全审计结果可展示。

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/xiduzo/wtf --skill wtf.create-pr 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

继续浏览同类 Skills