pr-doc-generator

pr-doc-generator is a skill for Claude Code, Codex from srinidhis05/agentura. It costs 3 tokens per session (813 once invoked), scanned A, original, Apache-2.0.

A pull-request documentation checker and generator. A pull request is a proposed set of code changes for review; this tool compares those changes with documentation and prepares updates where needed.

In plain words
What is it for?
Use it to inspect changed files, classify the change as a feature, fix, refactor, or breaking change, and draft concrete documentation updates.
Why use it?
It finds user-facing code changes that have no matching explanation in the README, changelog, or API documentation. This reduces the chance that documentation falls behind the code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: model in frontmatter; positional $N argument.

Good fit Use it to inspect changed files, classify the change as a feature, fix, refactor, or breaking change, and draft concrete documentation updates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/srinidhis05/agentura/pr-doc-generator
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 srinidhis05/agentura --skill pr-doc-generator
Clone the repo
git clone --depth 1 https://github.com/srinidhis05/agentura

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 pr-doc-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/srinidhis05/agentura/pr-doc-generator/github.svg)](https://agentmods.dev/skills/srinidhis05/agentura/pr-doc-generator)
Your own site
<a href="https://agentmods.dev/skills/srinidhis05/agentura/pr-doc-generator"><img src="https://agentmods.dev/badge/skills/srinidhis05/agentura/pr-doc-generator/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 pr-doc-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/srinidhis05/agentura/pr-doc-generator"><img src="https://agentmods.dev/badge/skills/srinidhis05/agentura/pr-doc-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 813 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00003 $0.00813
Opus 5.5 $0.00001 $0.00325
Sonnet 5.5 $0.00001 $0.00163
Haiku 4.5 $0.00000 $0.00081

Measured 2mo ago against content hash 482067d0591f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pr-doc-generator 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 2mo 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.

skills/dev/pr-doc-generator/SKILL.md · 91 lines

How it starts

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

PR Doc Generator

Task

You analyze a pull request's changed files, classify the change type, detect documentation gaps, and generate concrete documentation updates including CHANGELOG entries, README patches, and API doc stubs.

Input

You receive:

  • diff — unified diff of the PR
  • changed_files — list of changed file objects
  • repo — repository full name
  • pr_number — PR number

Execution Protocol

Phase 1: Documentation Inventory

Scan changed files to identify:

  1. Which documentation files were changed (README, docs/, CHANGELOG)
  2. Which code files have doc-relevant changes (new public APIs, changed signatures)
  3. Whether doc changes match code changes

Phase 2: Gap Detection

For each code change without matching doc update:

  1. Is the change user-facing?
  2. Does it add/modify a public API?
  3. Does it change configuration or behavior?

Phase 2.5: Classification

Categorize the overall change:

  • breaking — Removes or changes existing public API, config format, or behavior
  • feature — Adds new functionality, endpoints, commands, or options
  • fix — Corrects a bug or incorrect behavior
  • refactor — Internal restructuring with no user-facing change
  • docs — Documentation-only change

Use the diff content and commit messages as evidence. A single PR may have multiple change types — pick the dominant one.

Phase 3: Generate

Produce concrete documentation artifacts:

  1. CHANGELOG entry — Keep a Changelog format under the appropriate section (Added/Changed/Fixed/Removed)
  2. README patches — Specific sections to add/update/remove with exact content
  3. API doc stubs — JSDoc/docstring/godoc for new public functions lacking documentation
  4. Generated docstrings — For new public functions/methods that lack inline docs

Output Format

{
  "summary": "Feature PR — 2 doc updates needed, 1 README section stale",
  "change_type": "feature",
  "changelog_entry": "### Added\n- User authentication middleware with JWT validation (`src/auth/middleware.go`)",
  "doc_files_changed": ["README.md"],
  "doc_gaps": [
    {"file": "src/api.ts", "function": "createUser", "issue": "New endpoint not documented in API.md"}
  ],
  "readme_patches": [
    {"section": "API Reference", "action": "add", "content": "### POST /api/users\nCreates a new user account.\n\n**Body**: `{email, password, name}`\n**Response**: `201 Created`"}
  ],
  "generated_docstrings": [
    {"file": "src/auth/middleware.go", "function": "ValidateToken", "docstring": "// ValidateToken checks the Authorization header for a valid JWT and populates the request context with user claims."}
  ],
  "suggestions": [
    {"file": "README.md", "section": "API Reference", "action": "Add createUser endpoint"}
  ]
}

Read the full file on GitHub · 91 lines

Files

What ships with it

1 file 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. 2mo ago First seen · 91 lines · 3 tokens per session scan A 482067d0591f

Subscribe to this mod's changes

pr-doc-generator is a skill published in the GitHub repository srinidhis05/agentura (9 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 3 tokens to every session and 813 once invoked, about $0.0000 per session on Opus 5.5. 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.