core: Skill for Codex

.codex/skills/gh-pr-metadata/SKILL.md

gh-pr-metadata is a skill for Codex from module-federation/core. It costs 86 tokens per session (939 once invoked), scanned A, original, MIT.

A GitHub pull-request editor that updates the current request’s title and description to match the repository’s required format.

In plain words
What is it for?
Use it before review to inspect the current branch changes, then normalize and validate the pull request title and body.
Why use it?
It removes the manual work of checking whether a pull request has the right title style, sections, and checklist items after branch changes.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: reads ~/.codex paths; mentions Codex.

This is module-federation/core's own configuration. It tells Codex how to work on core itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything core configures →

About the project

Module Federation is a system for sharing code, resources, and dependencies between separate JavaScript applications, allowing a large application to be split into independently developed micro-frontends. It is used by web developers building applications from multiple cooperating front-end modules, with runtime loading, manifests, type hints, and plugins supporting that architecture.

module-federation/core · 2,677 stars · on GitHub · module-federation.io

Reuse

Borrowing it

Nothing to install: this file belongs to module-federation/core. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/module-federation/core/main/.codex/skills/gh-pr-metadata/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/module-federation/core

Made for: 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 gh-pr-metadata

README.md
[![agentmods](https://agentmods.dev/badge/skills/module-federation/core/gh-pr-metadata/github.svg)](https://agentmods.dev/skills/module-federation/core/gh-pr-metadata)
Your own site
<a href="https://agentmods.dev/skills/module-federation/core/gh-pr-metadata"><img src="https://agentmods.dev/badge/skills/module-federation/core/gh-pr-metadata/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 gh-pr-metadata

Your own site · 80×15
<a href="https://agentmods.dev/skills/module-federation/core/gh-pr-metadata"><img src="https://agentmods.dev/badge/skills/module-federation/core/gh-pr-metadata.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 939 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00086 $0.00939
Opus 5.5 $0.00034 $0.00376
Sonnet 5.5 $0.00017 $0.00188
Haiku 4.5 $0.00009 $0.00094

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

Security

Grade A, and why

gh-pr-metadata 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate_pr_metadata.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.codex/skills/gh-pr-metadata/SKILL.md · 112 lines

How it starts

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

GH PR Metadata

Overview

Normalize the current branch's GitHub PR metadata to this repo's expectations. Keep the title in conventional-commit style, keep the body aligned to .github/pull_request_template.md, and validate before handoff.

Ground the PR metadata in the live branch state, not stale branch names or old commit subjects. Always inspect the current branch diff versus its base before rewriting the PR title/body.

Read references/repo-pr-format.md when you need the exact section order, checklist items, or a title example.

Workflow

  1. Resolve the current branch PR.
gh pr view --json number,title,body,url,headRefName,baseRefName
  1. Inspect the current branch state against the PR base branch.

At minimum, check:

git diff --name-status origin/<base>...HEAD
git diff --stat origin/<base>...HEAD
git log --oneline --decorate --no-merges origin/<base>..HEAD

Use these to answer:

  • what files actually differ from the base right now
  • which changes are functional versus cleanup/tooling/docs
  • whether the existing PR title/body still matches the current branch after rebases, reverts, or scope narrowing
  1. Validate the current title and body.
python3 .codex/skills/gh-pr-metadata/scripts/validate_pr_metadata.py
  1. If the PR body needs a clean template scaffold, print one:
python3 .codex/skills/gh-pr-metadata/scripts/validate_pr_metadata.py --print-template
  1. Rewrite the PR title in conventional-commit style.

Rules:

  • Prefer type(scope): summary
  • Keep the title short and direct
  • Use repo-typical types such as fix, feat, docs, refactor, chore, test, ci, build, perf, revert
  • Keep the scope tight to the affected package or subsystem when useful
  • Do not add prefixes like [codex]
  • Make sure the title describes the current branch diff, not the original branch intent if the branch was later narrowed or partially reverted
  1. Rewrite the PR body to preserve the repo template structure:
  • ## Description
  • ## Related Issue
  • ## Types of changes
  • ## Checklist

Read the full file on GitHub · 112 lines

Files

What ships with it

3 files 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 · 112 lines · 86 tokens per session scan A cd15d5df7194

Subscribe to this mod's changes

gh-pr-metadata is a skill published in the GitHub repository module-federation/core (2,677 stars, last pushed today), licensed MIT. It adds 86 tokens to every session and 939 once invoked, about $0.0003 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.

Related

gh-pr-metadata compared with skills from other repositories

gh-pr-metadata next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gh-pr-metadatamodule-federation/coreSkill2.7ktodayMITA86Codex
reviewing-personhog-protocolPostHog/posthogSkill41ktodaynoneA111Claude Code, Codex
agent-debug-ciNVIDIA/elementsSkill113todayApache-2.0A80Claude Code, Codex
tuturuuu-review-commentstutur3u/platformSkill54todayApache-2.0A20Codex
next-application-structuresoulcodex/agenticSkill107d agoMITA64Claude Code, Codex
qa-teamPostHog/posthogSkill41ktodaynoneC110Claude Code, Codex
fe-buildsh5623/fe-railSkill114d agoMITA57Claude Code