Open Pr logo

Open Pr

Community
ronaknnathani
open-pr

Stage, commit, push, and open a pull request following the author's repository and AGENTS.md conventions — repo-style commit messages, a prose PR summary, and a Testing Done command list. Use when work is finished and the caller wants it committed and a PR opened. Supports --draft and an optional local review before push.

Overview

Publisherronaknnathani
Repositoryrelay
Skill nameopen-pr
Stars
43
Forks
4
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ronaknnathani on GitHub. Read the source before you install it.

Installation

Install the Open Pr AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ronaknnathani/relay/tree/main/skills/open-pr
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ronaknnathani/relay.git /tmp/relay
mkdir -p .claude/skills
cp -r /tmp/relay/skills/open-pr .claude/skills/open-pr
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Open Pr in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Open Pr on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Open Pr is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Open PR

Take finished work from working tree to open pull request: stage specific files, commit with a repo-style message, push, and open the PR in the author's house style. Read <repo>/AGENTS.md and ~/.config/agents/AGENTS.md first (repo-specific rules win) and follow those preferences for commit messages and PR descriptions. Execute git/gh operations through this skill's bundled scripts/open-pr.sh helper rather than inlining command sequences in the skill.

Flags

  • --draft — open the PR as a draft (gh pr create --draft). Default is open (ready for review).
  • --no-review — skip the optional local review before push.

Process

  1. Branch-if-on-default gate. Never commit straight onto the default branch. Invoke the helper's ensure-branch <slug> command. It hard-fails if the default branch cannot be detected and, when a new branch is needed, reads the branch prefix from the first-time relay config (relay config branch-prefix) rather than hardcoding a personal prefix.

  2. Stage specific files. Invoke the helper's status command, then its stage -- <files...> command for exactly what belongs in this change — never stage the whole tree. Confirm the diff carries no secrets and no formatting churn mixed in with behavior.

  3. Commit in the repo's style. Match the repository's recent commit style and the AGENTS.md preferences. Do not force Conventional Commits unless the repo already uses them. The subject should lead with what changed; include a body only when useful, and make it explain why the change exists rather than restating the diff. Keep refactor commits separate from feature/fix commits (split with separate stage/commit helper calls if both are present). End every message with a Co-authored-by trailer for the actual model/agent currently doing the work; never hardcode a model. Use the runtime-provided model identity when available, and the agent's verified no-reply identity for the email. Then invoke the helper's commit <message-file> command.

  4. Local review before push (skip with --no-review). Review the full diff from the helper's diff command for correctness and leftover debris before it leaves your machine. Dispatch the review skill as a sub-agent when available; otherwise scan it inline.

  5. Push. Invoke the helper's push command.

  6. Prefer the repo's PR template. Fetch it and fill each section from the actual change; only fall back to the body in step 7 when none exists. Use the helper's pr-template command to fetch it.

  7. Open the PR. Title follows the repo's PR-title style. Body follows AGENTS.md: one or two short prose paragraphs focused on why/what, no bullet list, no per-file walkthrough, and a Testing Done section containing only the commands run. Disclose automated authorship with the actual agent/model used, not a hardcoded Claude footer. Add --draft to the helper call only when the caller passed it, and invoke create-pr --title <title> --body-file <body-file>.

  8. Return the PR URL that gh pr create prints, to the caller.

PR body conventions

The body format is in step 7; the red flags and checklist below guard it. The one rule not covered there:

  • Disclose agent authorship in any PR comment you post — mark it as written by an automated agent on the author's behalf; never phrase it as the author's own words.

Red flags

  • Committing onto the default branch instead of branching first.
  • git add . / git add -A instead of staging the specific files.
  • A PR summary that is a bullet list, or that enumerates each file/caller and how the code works.
  • A Testing Done section padded with prose or per-command descriptions instead of bare commands.
  • Refactor squashed into the same commit as a feature/fix; formatting churn mixed with behavior.
  • A commit body that restates the diff ("what") instead of the reason ("why").
  • Hand-rolling a body when the repo ships a PR template; assuming main/master as the base.
  • Missing the actual-model Co-authored-by trailer or automated-authorship disclosure.

Verification checklist

  • HEAD is on a branch using the configured relay branch prefix, not the default branch.
  • Only the intended files were staged (no git add .); diff has no secrets or stray formatting.
  • Commit message matches repo/AGENTS.md style, includes the actual-model Co-authored-by trailer, and keeps refactor separate.
  • PR summary is 1–2 prose paragraphs on why/what — not bullets, not a file-by-file how.
  • Testing Done is just the list of commands run; body discloses the actual automated agent/model.
  • Repo PR template used when present; base branch detected dynamically; --draft applied only if requested.
  • The PR URL was returned to the caller.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Open Pr AI skill do?

Stage, commit, push, and open a pull request following the author's repository and AGENTS.md conventions — repo-style commit messages, a prose PR summary, and a Testing Done command list. Use when work is finished and the caller wants it committed and a PR opened. Supports --draft and an optional local review before push.

Why use Open Pr on TypingMind?

Because you install it once and use it with any model. Open Pr is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Open Pr in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ronaknnathani/relay/tree/main/skills/open-pr. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Open Pr?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Open Pr?

As many as you like. As long as a model supports skills, you can use Open Pr with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Open Pr AI skill free?

Yes. It is published on GitHub by ronaknnathani under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇