Skip to main content

file-pr:开一条简洁、先讲为什么的 PR

确认无重复 PR、对照基线审过本地 diff 后,开一条标题与描述讲清「为什么」的精简 PR。

来源信息

仓库
t3dotgg/tstack
最近来源活动
2026年10月24日 05:00
检测到的 SKILL.md 语言
英语
星标
3,492
Forks
263

用途

需要 file/open/create PR 时使用。

必要前提

本地分支已有目标 diff;标题遵循仓库近期惯例。

操作说明

查重 → 审 diff → 写以为什么为中心的标题与描述 → 开 PR。

限制

标题常变提交说明——少堆行话,多讲变更价值。

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
file-pr
description
File a concise pull request. Use when the user asks to file, open, or create a PR.
# File PR Before filing, check whether a PR for this branch already exists. Review the diff locally against the base branch (usually `origin/main`) to make sure its contents match the goal. PR titles usually become commit messages, so follow the repository's title conventions. Look at recently merged PRs and Git history for examples. Prefer a concise, human-readable title that explains why the change matters: BAD > ❌ perf(server): negotiate permessage-deflate on the websocket GOOD > ✅ perf(server): cut websocket frame size by 70%+ with gzipping Open the description with a simple explanation of the problem based on the user's original prompt, then briefly explain the solution. Do not lead with an implementation inventory: BAD > ❌ Removed implicit workspace carry-over from every "new thread" entry point (cmd+n / cmd+shift+o, sidebar v1/v2 buttons, command palette). New threads inherit only the project from context; branch, worktree, and env mode always come from the configured defaults. Deleted buildContextualThreadOptions, startNewThreadInProjectFromContext, and the v1 sidebar's seed-context machinery. GOOD > ✅ My "new worktree" default was ignored when starting new threads on existing worktrees. Super unintuitive. Now your preferences always apply. End the description with the public model name and harness that made the changes, for example `Created with <model> in <harness>.` Include subagent models that wrote part of the change. Use the model name the harness reports. If model identity is unavailable, name the harness without guessing a model. Before submission, check the title, description, quotes, and attachments for secrets and private details. Open a real PR rather than a draft so review bots run. If `gh pr create` fails because the GraphQL rate limit is used up, open it through REST with `gh api repos/<owner>/<repo>/pulls -f title=... -f head=... -f base=... -F body=@<file>`. If the user also asked to babysit it, continue with the `babysit-pr` skill. Do not post a follow-up PR comment unless it serves the user's request. When a comment is needed, use the `leaving-pr-comments` skill.
在 GitHub 查看