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.
npx agentmods add commands/loonghao/auroraview/create-prgit clone --depth 1 https://github.com/loonghao/auroraviewWrote 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.
[](https://agentmods.dev/commands/loonghao/auroraview/create-pr)<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>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.
| Model | Per session | Once 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 |
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.
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 描述建议覆盖:
- Summary:改了什么(1-3 条)
- Why / Context:为什么要改
- How It Works:方案怎么工作(非 trivial 变更必须写)
- Manual QA:手动验证场景(含边界)
- Testing:自动化测试与命令
- 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) - 命名:避免在函数/标识符中使用
optimized、fixed这类词
若发现不符合规范:先停止创建 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 guardfix(core): handle webview event bridge fallbackrefactor(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 中转义失败。
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.
- 4d ago First seen · 296 lines · 0 tokens per session scan A 3f3e8a669ba5
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.
Other commands, from other repositories
git
Git operations with intelligent commit messages and workflow optimization.
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.