Skip to content
Agentmart
Submit a tool

pr-trends

Generate weekly and monthly pull request trend tables for a git repository, including created PRs, merged PRs, average days to merge, and lines changed.

Skill by artivilla

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/artivilla-pr-trends

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Generate weekly and monthly pull request trend tables for a git repository, including created PRs, merged PRs, average days to merge, and lines changed. Use when a user asks for PR throughput trends, repo contribution trends, weekly or monthly PR summaries, merge velocity, or a table like Created/Merged/Avg Days/Lines Δ.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Node.js package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/pr-trends

What's inside

Skill name
pr-trends
Description
Generate weekly and monthly pull request trend tables for a git repository, including created PRs, merged PRs, average days to merge, and lines changed. Use when a user asks for PR throughput trends, repo contribution trends, weekly or monthly PR summaries, merge velocity, or a table like Created/Merged/Avg Days/Lines Δ.
License
MIT
Instructions
47 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (3)

  • SKILL.md
  • openai.yaml · agents/
  • report-pr-trends.mjs · scripts/

SKILL.md (first lines)

# PR Trends

Use this skill when the user wants a repo-level pull request trend report.

## Quick start

Run the bundled script from the target repository:

```bash
node .agents/skills/pr-trends/scripts/report-pr-trends.mjs
```

Useful options:

```bash
node .agents/skills/pr-trends/scripts/report-pr-trends.mjs --repo /path/to/repo
node .agents/skills/pr-trends/scripts/report-pr-trends.mjs --mode gh
node .agents/skills/pr-trends/scripts/report-pr-trends.mjs --mode git
```

## Source selection

- `--mode auto`: try `gh pr list` first for exact PR `createdAt`, `mergedAt`, and line counts. Fall back to `git` if `gh` is unavailable or offline.
- `--mode gh`: require GitHub CLI data. Use this when the user needs exact PR creation trends and accurate days-to-merge.
- `--mode git`: use only local mainline history. This gives reliable merged counts and merged lines changed, but it cannot recover exact PR creation timestamps or closed-unmerged PRs.

## Output

The script prints:

1. A weekly summary table
2. A monthly summary table
3. A short note describing which data source was used

## Interpretation

- `Created` is grouped by PR creation time when GitHub metadata is available.
- `Merged`, `Avg Days`, and `Lines Δ` are grouped by merge time.
- In `git` fallback mode, `Created` and `Avg Days` are shown as `-` because local git history does not preserve complete PR lifecycle metadata.

## Notes

- Run from the repo root unless `--repo` is provided.
- The script reads first-parent history so the report reflects the mainline branch.
- If the fallback note mentions missing PR numbers, treat those as likely closed, unmerged, or otherwise not reconstructable from local git alone.

From artivilla/agents-config, MIT.

More from artivilla/agents-config

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Mar 5, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from artivilla

Cite this page

pr-trends skill. Agent Mart. https://agentmart.dev/skills/artivilla-pr-trends (last updated 2026-10-24)