agentleFS
duotifyduotify/GitHubClawToolkit/.agents/skills/pr-creator/SKILL.md

pr-creator

Skill254 starsChanged 7 months agoMITView on GitHub

This skill guides the creation of high-quality Pull Requests. All user-facing output (commit messages, PR descriptions, issue comments) MUST be written in Traditional Chinese (zh-TW). The skill document itself is in English. Follow these steps in order to create a Pull Request: CRITICAL: NEVER work directly on the main branch. Before committing, thoroughly analyze all changes to produce high-quality commit messages: All commit messages MUST be written in Traditional Chinese (zh-TW), using the following format: - type: Use English (feat…

  • Commits and pushes

22 other projects use a version of this, 7 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-draft-release-notes, rstack-docs-writer and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • rstackjsSkill

    create-draft-release-notes

    Create or update draft GitHub release notes, or output organized Markdown when draft creation is unavailable. Use for release notes, draft releases, release PR checks, npm staged publishing checks, and optional highlights.

    Also in 5 projects that use this

  • rstackjsSkill

    rstack-docs-writer

    Write or revise Markdown and MDX documentation, including READMEs, guides, and Rspress-based docs.

    Also in 5 projects that use this

  • Muromi-RikkaSkill

    rspress-description-generator

    Generate and maintain description frontmatter for Rspress documentation files (.md/.mdx). Use when a user wants to add SEO descriptions, improve search engine snippets, generate llms.txt metadata, prepare docs for AI summarization, or batch-update frontmatter across an Rspress doc site. Also use when adding new documentation pages to an Rspress project — every new doc file needs a description.

    Also in 3 projects that use this

  • youzanSkill

    rstack-cli-docs

    Consult installed, version-matched Rstack docs only for user-facing `rs` command behavior, `rstack.config.*` semantics, or public `rstack` APIs. Do not use for purely internal implementation, tests, performance, or repository maintenance.

    Also in 3 projects that use this

  • mm-mazharSkill

    cache-components

    Expert guidance for Next.js Cache Components and Partial Prerendering (PPR).

    Also in 3 projects that use this

  • chendongqiSkill

    frontend-code-review

    Trigger when the user requests a review of frontend files (e.g., `.tsx`, `.ts`, `.js`). Support both pending-change reviews and focused file reviews while applying the checklist rules.

    Also in 5 projects that use this

  • +1 more from rstackjs

The file

Show its rules and text

We split this skill into the rules it gives an agent

22 rules. 0 are common, 17 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 21 edited versions we read keep these.

  • 17

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Follow these steps in order to create a Pull Request:

    line 18
  2. Distinctive:

    CRITICAL: NEVER work directly on the main branch.

    line 22
  3. Distinctive:

    Run git branch --show-current to check the current branch.

    line 24
  4. Distinctive:

    If on main, create and switch to a new descriptive branch:

    line 25
  5. Distinctive:

    Before committing, thoroughly analyze all changes to produce high-quality commit messages:

    line 33
  6. Distinctive:

    Run git diff --stat and git diff to understand all changed files.

    line 36
  7. Distinctive:

    All commit messages MUST be written in Traditional Chinese (zh-TW), using the following format:

    line 45
  8. Distinctive:

    type: Use English (feat / fix / refactor / docs / chore / test)

    line 65
  9. Distinctive:

    scope: Use English module name

    line 66
  10. Distinctive:

    Summary and body: Must be in Traditional Chinese

    line 67
  11. Distinctive:

    If this PR is linked to an issue, update the issue with technical context

    line 73
  12. Very specific:

    Read the existing issue with gh issue view <issue_number>.

    line 76
  13. Very specific:

    Add a comment with gh issue comment <issue_number> --body "..." containing:

    line 77
  14. Distinctive:

    Search the repository for a Pull Request template:

    line 100
  15. Very specific:

    If multiple templates exist (e.g., in .github/PULL_REQUEST_TEMPLATE/), select the most appropriate one based on the change type.

    line 104
  16. Distinctive:

    If no template is found, use the default structure in Step 6.

    line 106
  17. Distinctive:

    Safety check: Verify the branch name one more time before pushing.

    line 137
  18. Very specific:

    Use the gh CLI to create the PR.

    line 150
  19. Very specific:

    If linked to an issue, include Fixes #xxx in the body and add --assignee @me

    line 169
  20. Distinctive:

    Safety First: NEVER push to main. This is the highest priority rule.

    line 173
  21. Distinctive:

    Traditional Chinese Output: All commit messages, PR descriptions, and issue comments MUST be in Traditional Chinese (zh-TW).

    line 174
  22. Distinctive:

    Honesty: Don't check boxes for tasks you haven't completed.

    line 180

“Common” is measured: kept by at least 6 in 10 of the 21 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Pull Request Creator

This skill guides the creation of high-quality Pull Requests. All user-facing output (commit messages, PR descriptions, issue comments) MUST be written in Traditional Chinese (zh-TW). The skill document itself is in English.

Workflow

Follow these steps in order to create a Pull Request:

1. Create a New Branch

CRITICAL: NEVER work directly on the main branch.

  • Run git branch --show-current to check the current branch.
  • If on main, create and switch to a new descriptive branch:
    git checkout -b feat/<short-description>
  • Branch naming convention: feat/xxx, fix/xxx, refactor/xxx, docs/xxx

2. Analyze Changes

Before committing, thoroughly analyze all changes to produce high-quality commit messages:

  • Run git diff --stat and git diff to understand all changed files.
  • Identify and summarize:
    • Problem definition: What problem does this change solve?
    • Technical context: Why this approach? What alternatives were considered?
    • Impact scope: Which modules / features are affected?
    • Breaking changes: Are there any?

3. Commit in Traditional Chinese

All commit messages MUST be written in Traditional Chinese (zh-TW), using the following format:

git add .
git commit -m "type(scope): 簡短摘要

詳細說明:
- 變更項目 1:說明具體修改內容與原因
- 變更項目 2:說明具體修改內容與原因

技術細節:
- 採用的技術方案與理由
- 相關的設計決策

影響範圍:
- 受影響的模組或功能
- 是否有破壞性變更"
  • type: Use English (feat / fix / refactor / docs / chore / test)
  • scope: Use English module name
  • Summary and body: Must be in Traditional Chinese
  • The commit body should be detailed enough that a reviewer can understand the full context without reading the code

4. Enrich the Related Issue

If this PR is linked to an issue, update the issue with technical context before creating the PR:

  • Read the existing issue with gh issue view <issue_number>.
  • Add a comment with gh issue comment <issue_number> --body "..." containing:
    ## 技術分析
    
    ### 問題根因
    (說明問題的根本原因,不只是表面症狀)
    
    ### 解決方案
    (說明採用的技術方案與原因)
    
    ### 影響評估
    - 受影響的模組:...
    - 破壞性變更:有 / 無
    - 效能影響:...
    
    ### 測試驗證
    (說明如何驗證修改是正確的)
  • This ensures the issue serves as a complete technical record, not just a one-line description.

5. Locate PR Template

Search the repository for a Pull Request template:

  • Check .github/pull_request_template.md
  • Check .github/PULL_REQUEST_TEMPLATE.md
  • If multiple templates exist (e.g., in .github/PULL_REQUEST_TEMPLATE/), select the most appropriate one based on the change type.
  • If no template is found, use the default structure in Step 6.

6. Draft PR Description

The PR description MUST be in Traditional Chinese. Follow the template structure strictly. If no template exists, use the following default:

## 概述
(一段話說明這個 PR 做了什麼)

## 問題描述
(這個 PR 要解決什麼問題?連結相關 Issue)

## 解決方案
(採用了什麼技術方案?為什麼?)

## 變更內容
- [ ] 變更項目 1
- [ ] 變更項目 2

## 測試方式
(如何驗證這些變更是正確的?)

## 相關連結
- Issue: #xxx
- 相關文件:...

7. Push Branch

Safety check: Verify the branch name one more time before pushing.

CURRENT_BRANCH=$(git branch --show-current)
if [ "$CURRENT_BRANCH" = "main" ]; then
  echo "ERROR: must not push to main!"
  exit 1
fi
git push -u origin HEAD

8. Create the PR

Use the gh CLI to create the PR. To avoid shell escaping issues with multi-line Markdown, write the description to a temporary file first:

# 1. Write the PR description to a temp file
cat > /tmp/pr-body.md << 'EOF'
(PR description content in zh-TW)
EOF

# 2. Create the PR
gh pr create \
  --title "type(scope): 繁體中文簡短摘要" \
  --body-file /tmp/pr-body.md

# 3. Clean up
rm /tmp/pr-body.md
  • Title format: type(scope): 繁體中文摘要
  • If linked to an issue, include Fixes #xxx in the body and add --assignee @me

Principles

  • Safety First: NEVER push to main. This is the highest priority rule.
  • Traditional Chinese Output: All commit messages, PR descriptions, and issue comments MUST be in Traditional Chinese (zh-TW).
  • Full Context: Commits and PRs must provide enough technical context for reviewers to understand changes quickly.
  • Issues as Documentation: Issues are permanent technical decision records, not just task trackers. Enrich them accordingly.
  • Honesty: Don't check boxes for tasks you haven't completed.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.