agentleFS
Muriel-SalvanMuriel-Salvan/x_aeon_agents/skills/creating-pull-request/SKILL.md

creating-pull-request

Skill2 starsChanged 2 months agoBSD-3-ClauseView on GitHub

Creates a Pull Request for the current git branch on GitHub. Use this when a Pull Request needs to be created to track the current feature branch changes on GitHub.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈17

    Distinctive · estimate

    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:

    When creating a Pull Request, follow those steps.

    line 10
  2. Distinctive:

    Before executing anything, create a checklist named creating-pull-request Execution Checklist with all steps of these instructions.

    line 14
  3. Distinctive:

    After completing each step of these instructions, mark the item in the creating-pull-request Execution Checklist as completed.

    line 16
  4. Distinctive:

    Do not skip any item.

    line 17
  5. Distinctive:

    If an item cannot be executed, explicitly explain why.

    line 18
  6. Distinctive:

    Never mark the task as completed while any item from the creating-pull-request Execution Checklist remains open.

    line 19
  7. Distinctive:

    Always tell the user "SKILL: I am creating a Pull Request" to inform the user that you are running this skill.

    line 23
  8. Very specific:

    Always use agent: ask_followup_question to ask the user which GitHub issues are closed by or related to this Pull Request, even if you know …

    line 27
  9. Distinctive:

    Use the information from all the user prompts to know which additional issues are closed by or related to this Pull Request.

    line 31
  10. Distinctive:

    Always devise a meaningful Pull Request description for all the changes that you have in the current branch, and for the task you want to …

    line 35
  11. Distinctive:

    Always add a section in the Pull Request description that lists all GitHub issues closed by or related to this Pull Request (devised in …

    line 36
  12. Distinctive:

    Always add a section in the Pull Request description that contains the exact initial prompt of the user for this task, and all user inputs …

    line 37
  13. Very specific:

    Always use agent: write_to_file tool to write the devised Pull Request description in a temporary file (later referenced as …

    line 38
  14. Distinctive:

    Always devise a meaningful title for this Pull Request, later references as {pr_title}.

    line 63
  15. Very specific:

    Always use cli: ruby {skill_path}/scripts/create_pr {pr_title} {pr_description_file} to create the Pull Request.

    line 64
  16. Very specific:

    Never use cli: gh directly to create Pull Requests.

    line 65
  17. Distinctive:

    Always delete the temporary description file {pr_description_file} once the Pull Request has been created.

    line 74
  18. Distinctive:

    Before declaring the task complete:

    line 83
  19. Distinctive:

    If any step was not executed, execute it now.

    line 87
  20. Very specific:

    Always use it every time another skill specifically mentions skill: creating-pull-request.

    line 91
  21. Distinctive:

    Always use it every time the user asks you to create a Pull Request.

    line 92
  22. Distinctive:

    Always use it every time you need to create a Pull Request.

    line 93

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Creating a Pull Request

Sequential steps to be followed when using this skill

When creating a Pull Request, follow those steps.

Create the creating-pull-request Execution Checklist (MANDATORY)

  • Before executing anything, create a checklist named creating-pull-request Execution Checklist with all steps of these instructions.
  • The creating-pull-request Execution Checklist must include all numbered steps explicitly.
  • After completing each step of these instructions, mark the item in the creating-pull-request Execution Checklist as completed.
  • Do not skip any item.
  • If an item cannot be executed, explicitly explain why.
  • Never mark the task as completed while any item from the creating-pull-request Execution Checklist remains open.

1. Inform the user

  • Always tell the user "SKILL: I am creating a Pull Request" to inform the user that you are running this skill.

2. Ask the user about additional list of GitHub issues linked to this Pull Request

  • Always use agent: ask_followup_question to ask the user which GitHub issues are closed by or related to this Pull Request, even if you know of some of those issues already. There could be more GitHub issues that you are not aware of.

3. Devise the list of GitHub issues linked to this Pull Request

  • Use the information from all the user prompts to know which additional issues are closed by or related to this Pull Request.

4. Create a temporary file with a good description for the Pull Request

  • Always devise a meaningful Pull Request description for all the changes that you have in the current branch, and for the task you want to achieve in this branch.
  • Always add a section in the Pull Request description that lists all GitHub issues closed by or related to this Pull Request (devised in step 2), with mentions like "Closes #{issue_id}" or "Relates to #{issue_id}".
  • Always add a section in the Pull Request description that contains the exact initial prompt of the user for this task, and all user inputs or precisions that you have received from the user while implementing the task.
  • Always use agent: write_to_file tool to write the devised Pull Request description in a temporary file (later referenced as {pr_description_file}), inside the directory .x_aeon_agents/tmp/prs.

Example of a Pull Request description:

This PR implements conditional debug logging in STDOUT.

## Changes

- Modified `lib/my_class.rb` to check for `DEBUG=1` environment variable.
- Updated `README.md` with instructions on how to use the new debugging feature.

## Related Issues

- Closes #29
- Relates to #28

## Original Request

> Add support to debug mode to implement issue 29.
> No need to modify the tests.

5. Create the Pull Request between the current branch and main

  • Find this skill directory path, later referenced as {skill_path}.
  • Always devise a meaningful title for this Pull Request, later references as {pr_title}.
  • Always use cli: ruby {skill_path}/scripts/create_pr {pr_title} {pr_description_file} to create the Pull Request.
  • Never use cli: gh directly to create Pull Requests; the script wrapper must be used to handle multiline descriptions and append the AI agent signature to the Pull Request description.

Example:

ruby .cline/skills/creating-pull-request/scripts/create_pr "Add support for debug mode in CLI arguments" .x_aeon_agents/tmp/prs/pr_desc.txt

6. Delete the temporary description file

  • Always delete the temporary description file {pr_description_file} once the Pull Request has been created.

Example:

rm .x_aeon_agents/tmp/prs/pr_desc.txt

Final Verification (MANDATORY)

Before declaring the task complete:

  • Re-list all numbered steps from the creating-pull-request Execution Checklist.
  • Confirm each one was executed.
  • If any step was not executed, execute it now.

When to use it

  • Always use it every time another skill specifically mentions skill: creating-pull-request.
  • Always use it every time the user asks you to create a Pull Request.
  • Always use it every time you need to create a Pull Request.

Usage and code examples

Those examples are given for a Linux environment. Adapt them if you are running in a Windows environment.

Creating a Pull Request for a branch already pushed

This skill should perform the following commands:

# Use agent tool ask_followup_question to ask the user about GitHub issue numbers that relate to this Pull Request
# Use agent tool write_to_file to create file ./.x_aeon_agents/tmp/prs/pr_desc.txt
ruby .cline/skills/creating-pull-request/scripts/create_pr "Add support for debug mode in CLI arguments" .x_aeon_agents/tmp/prs/pr_desc.txt
rm .x_aeon_agents/tmp/prs/pr_desc.txt

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.