create-pr

create-pr is a command for coding agents from loonghao/auroraview. It costs 0 tokens per session (1,850 once invoked), scanned A, original, MIT.

A command workflow for creating a pull request, which is a proposed code change submitted for review, in the AuroraView repository.

In plain words
What is it for?
Use it when a finished branch needs a reviewed pull request with a summary, rationale, testing information, risks, and rollout or rollback notes.
Why use it?
It checks the branch, project rules, formatting, linting, tests, and verification details before preparing the review description. This helps reviewers understand what changed and how it was checked.

Command

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.

agentmods
npx agentmods add commands/loonghao/auroraview/create-pr
Clone the repo
git clone --depth 1 https://github.com/loonghao/auroraview

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 create-pr

README.md
[![agentmods](https://agentmods.dev/badge/commands/loonghao/auroraview/create-pr.svg)](https://agentmods.dev/commands/loonghao/auroraview/create-pr)
Your own site
<a href="https://agentmods.dev/commands/loonghao/auroraview/create-pr"><img src="https://agentmods.dev/badge/commands/loonghao/auroraview/create-pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,850 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01850
Opus 5 $0.00000 $0.00925
Sonnet 5 $0.00000 $0.00370
Haiku 4.5 $0.00000 $0.00185

Measured 4d ago against content hash 3f3e8a669ba5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create-pr scanned grade A with 0 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 4d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.codebuddy/commands/create-pr.md · 296 lines

How it starts

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

为当前分支创建高质量 PR(基于 AuroraView 项目规范,默认使用 vx 管理命令)。

Persona & Goal

你是 AuroraView 仓库的资深工程师与技术写作者。

产出的 PR 描述必须:

  • 对 reviewer 友好(快速理解 + 快速验证)
  • 对未来维护友好(明确 why / constraints)
  • 与变更规模匹配(不写无意义内容,不填 N/A
  • 真实说明验证情况(没测到的要写原因)

PR 描述建议覆盖:

  1. Summary:改了什么(1-3 条)
  2. Why / Context:为什么要改
  3. How It Works:方案怎么工作(非 trivial 变更必须写)
  4. Manual QA:手动验证场景(含边界)
  5. Testing:自动化测试与命令
  6. Risks / Rollout / Rollback:有风险时必须写

Workflow(创建 PR)

1) 检查当前变更

vx git status
vx git diff --stat
vx git diff
vx git log --oneline -n 8

2) 规范检查(阻塞关卡)

先按 AuroraView 当前约束审查改动:

  • 命令与环境:统一 vx + just(避免裸用工具链命令)
  • 测试组织:Rust/Python 测试放 tests/ 目录,Rust 优先 rstest
  • JS API:新增前端桥接能力优先落在 packages/auroraview-sdk
  • 事件分发:Python -> JS 事件链路应走 window.auroraview.trigger() / auroraview.on()
  • Python 兼容:保持 Python 3.7+ 可用
  • CI 相关变更:actions 版本使用 v6(如 actions/checkout@v6
  • 命名:避免在函数/标识符中使用 optimizedfixed 这类词

若发现不符合规范:先停止创建 PR,先列出问题与修复建议,再继续。

3) 确认不在 main

vx git branch --show-current

如果当前是 main

vx git switch -c <feature-branch-name>

4) 运行最小质量门禁(按改动范围)

优先使用项目任务:

vx just format
vx just lint

测试按改动范围选择(不要盲目全跑):

# 通用回归
vx just test

# 仅 Rust 相关
vx cargo test -p <crate-name>

# 仅 Python 相关
vx just test-python

# SDK/前端相关
vx just sdk-typecheck
vx just sdk-test

# Gallery 相关
vx just gallery-test

5) 暂存并提交

vx git add -A
vx git commit -m "<type(scope): short summary>"

提交信息建议:

  • feat(pack): add overlay hash reuse guard
  • fix(core): handle webview event bridge fallback
  • refactor(cli): split packed bootstrap flow

6) 推送分支

vx git push -u origin <feature-branch-name>

7) 用 gh 创建 PR(通过 vx gh,使用文件避免转义)

先把 PR 描述写入文件(例如仓库内临时文件 ./.git/PR_BODY.md),再用 --body-file

vx gh pr create \
  --title "<PR title>" \
  --body-file ./.git/PR_BODY.md

创建完成后删除临时文件:

vx git clean -f ./.git/PR_BODY.md

说明:优先使用 --body-file,避免多行内容在 shell 中转义失败。


Read the full file on GitHub · 296 lines

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. 4d ago First seen · 296 lines · 0 tokens per session scan A 3f3e8a669ba5

Subscribe to this mod's changes

create-pr is a command published in the GitHub repository loonghao/auroraview (44 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,850 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.