_pr-template

A pull-request template used by the DevOps process to assemble details from story documents, development records, quality checks, and architecture documents.

In plain words
What is it for?
Use it when preparing a pull request so its title, body, architecture reference, file changes, test status, QA result, and acceptance checklist follow the defined format.
Why use it?
It gives pull requests a consistent place for the story, summary, changes, testing, review result, acceptance criteria, and screenshots.

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/igoroliveirg/prometheus/_pr-template
Clone the repo
git clone --depth 1 https://github.com/igoroliveirg/prometheus
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 500 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.00500
Opus 5 $0.00000 $0.00250
Sonnet 5 $0.00000 $0.00100
Haiku 4.5 $0.00000 $0.00050

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

Security

Grade A, and why

_pr-template 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 2d 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.

src/commands/_pr-template.md · 81 lines

What it actually says

PR Template

Used by /devops *push to generate PR descriptions. Pulls data from story docs, dev records, QA results, and arch docs.

Template

When creating a PR, /devops should generate this structure:


PR Title Format

type(scope): description [STORY-XXX]

PR Body Template

## Story
**[STORY-XXX: Title](link-to-story-doc)**

## Summary
<!-- Brief description of what this PR does and why -->

## Architecture Reference
<!-- Link to arch doc, key design decisions -->
- Arch doc: `docs/architecture/[feature].md`

## Changes
<!-- Pulled from dev record in story doc -->
| File | Action | Description |
|------|--------|-------------|

## Testing
<!-- Pulled from QA results in story doc -->
- [ ] Unit tests added/updated
- [ ] Integration tests (if applicable)
- [ ] E2E tests (if applicable)
- [ ] Manual testing completed

## QA Review
<!-- Pulled from QA section of story doc -->
- Quality gate: Pass / Fail
- Issues found: X (all resolved)
- Recommendation: Approve / Request Changes

## Acceptance Criteria
<!-- Pulled from story doc -->
- [ ] Criterion 1
- [ ] Criterion 2
- [ ] Criterion 3

## Screenshots
<!-- If UI changes, add before/after screenshots -->

## Checklist
- [ ] Code follows project conventions
- [ ] Arch doc compliance verified
- [ ] Tests passing
- [ ] No security vulnerabilities
- [ ] Accessibility requirements met
- [ ] Story dev record updated
- [ ] QA results documented

## Story Link
`docs/stories/STORY-XXX-description.md`

How DevOps Uses This

When /devops *push is called:

  1. Read the active story from .claude/state/current.md
  2. Read the story doc from docs/stories/
  3. Read the arch doc referenced in the story
  4. Pull the dev record section (files changed, implementation notes)
  5. Pull the QA results section (quality gate, issues, recommendation)
  6. Pull acceptance criteria
  7. Fill in the PR template
  8. Create PR with gh pr create
  9. Report PR URL
  10. Log to audit: "PR created for STORY-XXX"
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. 2d ago First seen · 81 lines · 0 tokens per session scan A f30c59c24dfc

Subscribe to this mod's changes

_pr-template is a command published in the GitHub repository igoroliveirg/prometheus (3 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 500 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-31.