submit-pr

submit-pr is a skill for Claude Code, Codex from open-vela/.claude. It costs 108 tokens per session (3,132 once invoked), scanned B, original, Apache-2.0.

A workflow for submitting code changes to the openvela open-source community through a pull request, a proposed change reviewed before it is merged.

In plain words
What is it for?
Use it to submit changes from one or multiple repositories, choose files or branches, detect the hosting platform, and guide the required repository access setup.
Why use it?
It organizes the steps for working from a fork, pushing changes to it, and sending those changes to the upstream project on GitHub or Gitee.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; positional $N argument; mentions Claude Code.

Good fit Use it to submit changes from one or multiple repositories, choose files or branches, detect the hosting platform, and guide the required repository access setup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/open-vela/.claude/submit-pr
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add open-vela/.claude --skill submit-pr
Clone the repo
git clone --depth 1 https://github.com/open-vela/.claude

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for submit-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/open-vela/.claude/submit-pr/github.svg)](https://agentmods.dev/skills/open-vela/.claude/submit-pr)
Your own site
<a href="https://agentmods.dev/skills/open-vela/.claude/submit-pr"><img src="https://agentmods.dev/badge/skills/open-vela/.claude/submit-pr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for submit-pr

Your own site · 80×15
<a href="https://agentmods.dev/skills/open-vela/.claude/submit-pr"><img src="https://agentmods.dev/badge/skills/open-vela/.claude/submit-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,132 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00108 $0.03132
Opus 5 $0.00054 $0.01566
Sonnet 5 $0.00022 $0.00626
Haiku 4.5 $0.00011 $0.00313

Measured 10d ago against content hash 89c5efdcb736, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

submit-pr scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/detect-repos.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- Claude Code: `~/.claude/settings/mcp.json`

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST "https://gitee.com/api/v5/repos/open-vela/<repo>/forks" \
skills/submit-pr/SKILL.md · 324 lines

How it starts

The opening of the file, as written. The whole thing — 324 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Submit PR to openvela Community (Fork Mode)

通过 Fork 模式向 openvela 开源社区(GitHub/Gitee)提交 Pull Request。

核心流程: Fork 上游仓库 → 本地提交 → Push 到 Fork → 从 Fork 向上游创建 PR

Prerequisites

需要 GitHub MCP server 已配置。如未配置,按 Step 0 引导用户完成。

Workflow

Step 0: MCP 配置检查与引导

执行前先检查 MCP 是否可用:

检测方法: 尝试调用 mcp_github_search_repositories 或类似工具。如果报错说工具不存在,说明 MCP 未配置。

GitHub MCP 配置引导:

配置文件位置:

  • Kiro: .kiro/settings/mcp.json(工作区级)或 ~/.kiro/settings/mcp.json(用户级)
  • Claude Code: ~/.claude/settings/mcp.json

配置内容:

{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "<用户的 GitHub PAT>"
      }
    }
  }
}

需要用户提供:

  1. GitHub Personal Access Token(需要 repo + workflow 权限)

Gitee 配置引导: 见 references/mcp-setup.md

配置完成后提示用户重启 IDE 或重新连接 MCP 使配置生效。

Step 1: 检测平台与用户信息

检测平台(GitHub / Gitee):

bash scripts/detect-repos.sh <repo_root>

或手动检测:

git -C .repo/manifests remote get-url origin
# ssh://[email protected]/open-vela/manifests.git → GitHub
# ssh://[email protected]/open-vela/manifests.git → Gitee

获取当前用户 GitHub 用户名(用于 fork):

通过 MCP 获取:查看 token 对应的用户名,或询问用户。

Step 2: 确定目标分支(模糊匹配 + 用户确认)

分支确定规则(按优先级):

  1. 用户显式指定: 用户直接说"提交到 dev 分支"→ 使用 dev
  2. 模糊匹配: 检测当前本地分支名,与上游远程分支做模糊匹配
  3. 询问用户: 匹配不到或有多个候选时,列出选项让用户选择

模糊匹配逻辑

# 获取当前本地分支名
LOCAL_BRANCH=$(git -C <repo_path> branch --show-current)
# 例如: dev-ai-contest-2026, fix/something, feature/xxx

# 获取上游所有远程分支
REMOTE_BRANCHES=$(git -C <repo_path> ls-remote --heads <upstream_remote> | awk '{print $2}' | sed 's|refs/heads/||')
# 例如: dev, trunk, dev-ai-contest-2026, main

# 模糊匹配规则:
# 1. 精确匹配: LOCAL_BRANCH == REMOTE_BRANCH → 直接使用
# 2. 包含匹配: REMOTE_BRANCH 包含 LOCAL_BRANCH 的关键词 → 候选
# 3. 前缀匹配: LOCAL_BRANCH 以 REMOTE_BRANCH 开头 → 候选

Read the full file on GitHub · 324 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 324 lines · 108 tokens per session scan B 89c5efdcb736

Subscribe to this mod's changes

submit-pr is a skill published in the GitHub repository open-vela/.claude (5 stars, last pushed yesterday), licensed Apache-2.0. It adds 108 tokens to every session and 3,132 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

prowler-commit

Creates professional git commits following conventional-commits format. Trigger: When creating commits, after completing code changes, when user asks to commit.

prowler-cloud/prowler · 33 tokens

gh-auth-isolation

Safely manage multiple GitHub identities (EMU + personal) in agent workflows.

github/gh-aw · 20 tokens

comet-github

A routing guide for Comet-related GitHub work. It directs requests about pull requests, issues, CI failures, ideas, and fixes to the appropriate review or implementation process.

rpamis/comet · 72 tokens

github-skill

Work with GitHub via the gh CLI — clone repositories, create/list/merge pull requests, create/list issues, and run any other gh command (API calls, workflow runs, releases, repo administration). List operations return parsed JSON.

zeenie-ai/OpenCompany · 51 tokens

re0-merge

Review and land an external contribution the way this suite does: gate it against the thesis, land it with the author's credit intact, complete a new skill rather than merging it raw, then approve, credit, and explain before closing. Use when reviewing a pull request, as any collaborator or maintainer, not only the…

LilMGenius/paperthin · 70 tokens

nvca-chart-release

Release NVCA Operator chart changes from the native monorepo source to the vendored Helm chart. Use when updating the vendored NVCA Operator chart, changing NVCA image refs, publishing helm-nvca-operator, or validating the chart against a self-managed control plane.

NVIDIA/nvcf · 61 tokens