agentleFS
kagent-devkagent-dev/kagent/.agents/skills/gh-create-pr/SKILL.md

gh-create-pr

Skill4.2k starsChanged 5 days agoApache-2.0View on GitHub

Prepare and open GitHub pull requests with clear titles and descriptions.

  • Commits and pushes

7 other projects use a version of this.

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Sep 13: 0 new projectsWeek of Sep 20: 0 new projectsWeek of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projects
Sep 2026Oct 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Most recently taken up by

Who's talking about kagent-dev/kagent

The biggest 5 of 52 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 52

Talked about on GitHub, Hacker News and Bluesky (52 times).

On GitHub · 50

45 more on GitHub

On Hacker News · 1

Used with

Projects with it also use gh-commit, prek and 4 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.
  • kelvincushmanSkill

    gh-commit

    Create well-formatted commits with conventional commit format.

    Also in 3 projects that use this

  • kelvincushmanSkill

    prek

    Use when setting up or running hooks with prek in any repository. prek is a Rust drop-in alternative to pre-commit for running Git hooks that check, format, lint, and validate code and repository files. Prefer it when speed, workspace mode, built-in hooks, shared toolchains, or native TOML configuration matter.

    Also in 3 projects that use this

  • carapace-shSkill

    bun

    Use when working with the bun CLI — Bun's all-in-one JavaScript runtime and toolkit. Covers the CLI command reference (install, add, remove, run, build, test, x, create, init, pm, upgrade, link, unlink), bunfig.toml configuration, environment variables, the package manager and lockfile, the test runner, the bundler, the Bun runtime API (Bun.serve, Bun.file, Bun.spawn, Bun.write, hashing, transpiler), the Bun shell ($ template literal), module resolution and loaders, and globals. Triggers on: "bun", "bunx", "bun install", "bun add", "bun remove", "bun run", "bun build", "bun test", "bun x", "bun create", "bun init", "bun pm", "bun upgrade", "bun link", "bun unlink", "bunfig.toml", "bun.lock", "Bun.serve", "Bun.file", "Bun.write", "Bun.spawn", "Bun.hash", "Bun.password", "bun:test", "Bun.build", "Bun.Transpiler", "bun shell", "$ template", "import.meta", "JavaScriptCore", "Bun.serve", "HTMLRewriter", "Bun.SQL", "Bun.RedisClient", "Bun.Glob", "Bun.plugin", "bun:ffi".

    Also in 3 projects that use this

  • xfstudioSkill

    typescript-expert

    TypeScript and JavaScript expert with deep knowledge of type-level programming, performance optimization, monorepo management, migration strategies, and modern tooling. Use PROACTIVELY for any TypeScript/JavaScript issues including complex type gymnastics, build performance, debugging, and architectural decisions. If a specialized expert is a better fit, I will recommend switching and stop.

    Also in 3 projects that use this

  • VercelSkill

    gh-stack

    Manages stacked PRs and splits multi-part work into reviewable branches with gh-stack. Use for stack creation, viewing, edits, push, submit, sync, rebase, merge, or checkout; when asked to split or isolate work for review; whenever a user mentions a stack, branch layers, dependent PRs, or gh stack; or when a stack is checked out.

    Also in 4 projects that use this

  • xfstudioSkill

    typescript-advanced-types

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications. Use when implementing complex type logic, creating reusable type utilities, or ensuring compile-time type safety in TypeScript projects.

    Also in 3 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 14 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 14

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never include enterprise issue or PR links, repository-qualified references, or identifying numbers in upstream PR titles, bodies, …

    line 15
  2. Distinctive:

    Read applicable repository instructions and PR templates.

    line 19
  3. Distinctive:

    Follow repository title conventions and required templates.

    line 25
  4. Distinctive:

    Default to including a diagram when the change involves component interactions, data flow, or lifecycle behavior.

    line 29
  5. Distinctive:

    Use a flowchart for relationships or data flow, a sequence diagram when ordering or calls and responses matter, and a state diagram when …

    line 32
  6. Distinctive:

    Keep the problem, resulting behavior, essential caveats, and validation visible outside the collapsed block.

    line 34
  7. Distinctive:

    Prefer readable labels and a small diagram over custom colors, themes, or styling.

    line 36
  8. Distinctive:

    Check syntax and every edge against the code.

    line 56
  9. Distinctive:

    When only drafting or preparing, return the proposed title and body or a local Markdown file.

    line 62
  10. Distinctive:

    When asked to open a PR:

    line 64
  11. Distinctive:

    Check whether a PR already exists for the intended head and base before creating one.

    line 66
  12. Distinctive:

    Ensure the intended changes and relevant checks are ready.

    line 67
  13. Very specific:

    Create only the confirmed version.

    line 69
  14. Distinctive:

    If creation returns an ambiguous failure, check whether the PR was created before retrying.

    line 70
  15. Distinctive:

    Read back the created PR and verify its title, body, target branches, and draft status.

    line 71

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

Create GitHub pull requests

Give reviewers a concise explanation of the problem, the resulting behavior, and why the change works. Use Mermaid to show how the relevant pieces work together, with diagrams collapsed by default.

Scope and authorization

  • Before opening a GitHub PR, including a draft PR, show the user the final title, body, repository, base and head branches, and draft or ready status. Wait for explicit confirmation to open that version. A general request to open a PR starts preparation; it does not confirm content the user has not yet reviewed.
  • Honor confirmation already given for the same content and destination; do not ask again. If the content, destination, or draft status changes materially after confirmation, present the revised version and obtain confirmation before opening it.
  • A request to fix an issue or prepare work against upstream does not authorize opening a PR.
  • Never include enterprise issue or PR links, repository-qualified references, or identifying numbers in upstream PR titles, bodies, comments, diagrams, or closing keywords. Describe the problem independently.

Ground the description in the change

Read applicable repository instructions and PR templates. Establish the intended repository, base, and head; inspect the complete branch diff against the base, relevant code and callers, and actual validation results. Distinguish committed changes from uncommitted work so the description matches what the PR will contain.

Use the available eitan-voice skill when writing on Eitan's behalf. Keep the body direct and conversational: lead with the concrete problem and resulting behavior, then explain the mechanism or tradeoff that a reviewer needs to understand. A before/after example helps when the trigger is not obvious. Include relevant checks that actually ran. Do not invent testing or narrate every changed file.

In PR descriptions and completion messages, omit lists or caveats about verification that was skipped, unavailable, or blocked by the local environment. Do not imply those checks passed. Report concrete defects, meaningful failed checks, or blockers that require action; avoid routine accounts of verification attempts.

Follow repository title conventions and required templates. Otherwise use a concrete action in the title and only enough structure to help the reader. When scope changes, rewrite the title and body around the final implementation.

Explain interactions with collapsed Mermaid

Default to including a diagram when the change involves component interactions, data flow, or lifecycle behavior. Trace the actual flow before drawing it. For a trivial edit with no meaningful interaction to explain, omit the diagram unless the user asks for one.

  • Show the smallest relevant set of components and boundaries. Label arrows with the operation or data they carry; a list of modified files connected by arrows is not an explanation.
  • Use a flowchart for relationships or data flow, a sequence diagram when ordering or calls and responses matter, and a state diagram when transitions are the point. Include retries, failures, or before/after views when they explain this change.
  • Represent the final implementation accurately, including relevant unchanged context. Distinguish proposed behavior from implemented behavior. Do not invent edges, transaction boundaries, or ownership.
  • Keep the problem, resulting behavior, essential caveats, and validation visible outside the collapsed block. The PR must make sense without opening the diagram.
  • Wrap each diagram in <details> with a descriptive <summary>. Omit the open attribute so it starts collapsed. Preserve blank lines around the fenced mermaid block and before </details>; keep the fence unindented. Use ordinary Mermaid syntax supported by GitHub, simple node IDs, and quoted flowchart labels containing punctuation.
  • Prefer readable labels and a small diagram over custom colors, themes, or styling. Do not rely on color alone to explain the change.

Illustrative formatting; replace these components and edges with the actual flow:

<details>
<summary>How a request reaches the runtime</summary>

```mermaid
flowchart LR
    client["Client"] -->|request| handler["API handler"]
    handler -->|invoke| workflow["Workflow"]
    workflow -->|persist operation| store["Store"]
    workflow -->|launch| adapter["Runtime adapter"]
    adapter -->|create| runtime["Runtime"]
```

</details>

Check syntax and every edge against the code. Use an available Mermaid preview or renderer when useful; do not claim GitHub rendering was verified from a raw Markdown check. Do not create a test PR just to preview formatting.

GitHub documents collapsed sections and Mermaid diagrams in PRs.

Prepare and open

When only drafting or preparing, return the proposed title and body or a local Markdown file. Do not publish it.

When asked to open a PR:

  1. Check whether a PR already exists for the intended head and base before creating one. Reuse it within the requested scope instead of creating a duplicate.
  2. Ensure the intended changes and relevant checks are ready. Preserve unrelated local work. If a commit is needed within the authorized task, sign it off with git commit -s. Push the intended branch as needed; do not force-push or broaden the change just to open the PR.
  3. Save the exact body as UTF-8 Markdown under $TMPDIR. Present the completed PR for confirmation as described above. Keep it local until the user confirms; silence or elapsed time is not confirmation.
  4. Create only the confirmed version. Use a structured API body or gh pr create --body-file so backticks, newlines, and Mermaid fences survive unchanged. With gh, specify the repository, base, head, and title explicitly; respect the confirmed draft or ready status.
  5. If creation returns an ambiguous failure, check whether the PR was created before retrying. Stop and report an unresolved failure rather than repeatedly attempting mutations.
  6. Read back the created PR and verify its title, body, target branches, and draft status. Return its URL.

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.