agentleFS
LedgerHQLedgerHQ/ledger-live/.agents/skills/create-pr/SKILL.md

create-pr

Skill627 starsChanged 8 days agoMITView on GitHub

Push the current branch and open a draft pull request with a conventional title, a body from the repo PR template, a changeset and a Slack announcement. Use when the user runs `/create-pr` or asks to open a pull request for the current branch.

  • Commits and pushes

196 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use update-pr, act-on-feedback and 10 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.
  • MicrosoftSkill

    update-pr

    Update the pull request for the current session. Use when the user wants to push new changes to an existing PR.

    Also in 9 projects that use this

  • MicrosoftSkill

    act-on-feedback

    Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.

    Also in 3 projects that use this

  • ModelEngine-GroupSkill

    create-release-note

    从 PR/commit 中自动生成结构化的 Release Notes,并可选创建 GitHub Draft Release。支持 x.y.0 版本合并前一 minor 系列的 release notes。当用户要求生成发布说明、创建 release notes 时触发。参数为版本号和可选的上一版本号。

    Also in 3 projects that use this

  • frostneySkill

    native-nostalgia-stack

    Applies the user's FreePascal toolchain and its build, formatting, hook, and test contracts while leaving project-specific mechanics local. Use when scaffolding or working in a FreePascal project that follows this toolchain.

    Also in 3 projects that use this

  • frostneySkill

    software-engineering-excellence

    Applies the user's engineering standards during substantial technical work: preserve scope, use current evidence, delegate independent parts, and complete authorized outcomes. Use during substantial implementation, debugging, refactoring, or multi-part delivery work.

    Also in 3 projects that use this

  • parkchuSkill

    start-mission

    넥스트스텝(NextStep) 미션을 처음 시작할 때, 미션 저장소를 fork·clone하고 최초 작업 브랜치(step1 등)까지 만들어 준다. gh CLI로 fork하고 clone까지 이어서 처리하며, gh가 없거나 인증이 안 돼 있으면 브라우저 Fork 안내로 폴백한다. 이미 fork/clone돼 있으면 재사용하고 이어서 진행한다(재실행 안전). 사용자가 "미션 시작하려는데 저장소 세팅해줘", "새 미션 시작할래", "fork부터 해줘", "/nextstep:start-mission" 등으로 요청할 때 사용한다.

    Also in 3 projects that use this

  • +1 more from microsoft

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 6 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 179 edited versions we read keep these.

  • 6

    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
  1. Distinctive:

    Create a pull request with a valid title, description, changeset, and all required elements.

    line 15
  2. Very specific:

    Follow docs/contributing/git-conventions.md for valid commit messages

    line 51
  3. Distinctive:

    Run git status and git diff to understand current changes

    line 52
  4. Distinctive:

    Run git log develop..HEAD --oneline to see commits on this branch

    line 53
  5. Very specific:

    Use the create-changeset skill to add a changeset for the modified packages.

    line 58
  6. Very specific:

    Important: Always run open "$PR_URL" after creating the PR to ensure it opens in the browser.

    line 87
  7. Distinctive:

    When ready, click "Ready for review" to publish the PR

    line 96
  8. Very specific:

    Use the slack-pr-message skill (.agents/skills/slack-pr-message/SKILL.md) to generate the Slack announcement message for the PR.

    line 100
  9. Very specific:

    If $HAS_UI_CHANGES is "yes":

    line 118
  10. Distinctive:

    Add the table with placeholders:

    line 119
  11. Distinctive:

    If "no", omit the section entirely

    line 126

“Common” is measured: kept by at least 6 in 10 of the 179 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

[!TIP]

Note: this skill is for manual, user-invocation only. Agents should only read this only when it is specifically invoked. Canonical Git conventions take precedence over this command.

Create PR

Create a pull request with a valid title, description, changeset, and all required elements.

Prompt Variables

$TICKET_URL

Paste the JIRA or GitHub issue URL (e.g., https://ledgerhq.atlassian.net/browse/LIVE-1234)

$TICKET_DESCRIPTION

Describe the ticket context: What is the problem? What should be done? Include acceptance criteria if available.

$CHANGE_TYPE

Select the type of change: feat | fix | refactor | test | docs | chore

$CHANGE_SCOPE

Summarise the scope in a single term? (e.g. architecture, coin-evm, counter-values, e2e, portfolio, swap)

$TEST_COVERAGE

Are changes covered by tests? yes | no | partial - If not fully covered, explain why.

$QA_FOCUS_AREAS

What specific areas should QA focus on when testing this PR?

$HAS_UI_CHANGES

Are there visual/UI changes? yes | no - If yes, you will need to edit the PR description to add screenshots.

Instructions

Step 1: Analyze the changes

  1. Follow docs/contributing/git-conventions.md for valid commit messages
  2. Run git status and git diff to understand current changes
  3. Run git log develop..HEAD --oneline to see commits on this branch
  4. Identify all modified packages for the changeset

Step 2: Create the changeset

  1. Use the create-changeset skill to add a changeset for the modified packages.

Step 3: Prepare the PR

Generate the PR body using .github/pull_request_template.md.

Step 4: Create the Pull Request

First, push the branch:

git push -u origin HEAD

Then create the PR as draft and capture the URL:

PR_URL=$(gh pr create --draft --title "{{PR_TITLE}}" --body "$(cat <<'EOF'
{{GENERATED_PR_BODY}}
EOF
)")

Then open the PR in the browser:

open "$PR_URL"

Important: Always run open "$PR_URL" after creating the PR to ensure it opens in the browser. Do NOT skip this step.

If there are UI changes ($HAS_UI_CHANGES is "yes"):

  1. The PR opens in your browser
  2. Click the "..." menu (top-right of the PR description) → "Edit"
  3. Scroll to the Before/After table
  4. Drag & drop your screenshots into the table cells
  5. Click "Update comment"
  6. When ready, click "Ready for review" to publish the PR

Step 5: Generate Slack Message

Use the slack-pr-message skill (.agents/skills/slack-pr-message/SKILL.md) to generate the Slack announcement message for the PR.

Template Fill Rules

  1. PR Title: {{CHANGE_TYPE}}({{SCOPE}}): {{SHORT_DESCRIPTION}}

    • Example: feat(mobile): add dark mode toggle
    • Example: fix(desktop): resolve transaction signing issue
  2. DESCRIPTION: Generate from $TICKET_DESCRIPTION:

    • First paragraph: Problem statement
    • Second paragraph: Solution approach
    • Include code samples for library changes
    • Include before/after for bug fixes
  3. SCREENSHOTS_SECTION:

    • If $HAS_UI_CHANGES is "yes":
      • Add the table with placeholders:
        | Before                        | After                         |
        |-------------------------------|-------------------------------|
        | _Drag & drop screenshot here_ | _Drag & drop screenshot here_ |
      • Tell the user: "Click '...' → 'Edit' on the PR description, then drag & drop your screenshots into the table."
    • If "no", omit the section entirely
  4. CONTEXT: Link to issues and references:
    • **JIRA / GitHub issue**: [LIVE-XXXX](https://ledgerhq.atlassian.net/browse/LIVE-XXXX)
    • **ADR** (if any): https://ledgerhq.atlassian.net/wiki/spaces/WXP/pages/1234

Example Output

For a feature adding portfolio analytics:

PR Title: feat(portfolio): add analytics dashboard

PR Body:


### 📝 Description

This PR introduces a new analytics dashboard to the portfolio feature, providing users with detailed performance metrics and historical data visualization.

**Problem**: Users currently have no way to track their portfolio performance over time.

**Solution**: Added a new analytics screen with:

- Performance charts (daily, weekly, monthly views)
- Key metrics summary (gains, losses, total value)
- Export functionality for data

### 🔗 Context

- **JIRA / GitHub issue**: [LIVE-XXXX](https://ledgerhq.atlassian.net/browse/LIVE-XXXX)

Slack Message: Generated via the slack-pr-message skill.

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.