pydantic-ai: Skill for Claude Code

.agents/skills/refresh-issue-brief/SKILL.md

refresh-issue-brief is a skill for Claude Code from pydantic/pydantic-ai. It costs 66 tokens per session (1,294 once invoked), scanned A, original, MIT.

A workflow for re-reading GitHub issues linked from an issue brief and updating that brief when new comments change the scope or requirements. An issue brief is a project note that records the relevant issue details for ongoing work.

In plain words
What is it for?
Use it after new comments or edits appear on linked issues to check changes in scope, criteria, constraints, title, labels, or state.
Why use it?
It keeps the working brief aligned with later issue activity without changing it on every run. It is user-triggered, so the brief stays stable unless someone asks for a refresh.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths; installed under .agents/ (shared by several agents).

This is pydantic/pydantic-ai's own configuration. It tells Claude Code how to work on pydantic-ai 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 pydantic-ai configures →

About the project

Pydantic AI is a typed Python SDK for building AI agents that can use different language models and interfaces, including voice, image generation, and embeddings. Developers use it for applications ranging from structured data extraction to long-running multi-agent work. The catalogue entries provide workflows and configuration for its coding-agent and harness features.

pydantic/pydantic-ai · 20,771 stars · on GitHub · pydantic.dev

Reuse

Borrowing it

Nothing to install: this file belongs to pydantic/pydantic-ai. 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/pydantic/pydantic-ai/main/.agents/skills/refresh-issue-brief/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/pydantic/pydantic-ai

Made for: Claude Code.

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 refresh-issue-brief

README.md
[![agentmods](https://agentmods.dev/badge/skills/pydantic/pydantic-ai/refresh-issue-brief/github.svg)](https://agentmods.dev/skills/pydantic/pydantic-ai/refresh-issue-brief)
Your own site
<a href="https://agentmods.dev/skills/pydantic/pydantic-ai/refresh-issue-brief"><img src="https://agentmods.dev/badge/skills/pydantic/pydantic-ai/refresh-issue-brief/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 refresh-issue-brief

Your own site · 80×15
<a href="https://agentmods.dev/skills/pydantic/pydantic-ai/refresh-issue-brief"><img src="https://agentmods.dev/badge/skills/pydantic/pydantic-ai/refresh-issue-brief.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,294 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.00066 $0.01294
Opus 5.5 $0.00026 $0.00518
Sonnet 5.5 $0.00013 $0.00259
Haiku 4.5 $0.00007 $0.00129

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

Security

Grade A, and why

refresh-issue-brief 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 yesterday.

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.

.agents/skills/refresh-issue-brief/SKILL.md · 127 lines

How it starts

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

Refresh Brief

Re-fetch the issue(s) referenced in .claude/skills/branch-context/issue-brief.md and update the brief only where genuinely new content warrants it.

When to run

Only when the user tells you to. Typical triggers:

  • "check the latest comments on the issue"
  • "the issue got updated, re-read it"
  • "has anything changed upstream on the issue?"

Never run autonomously. The brief is meant to stay stable across many sessions — refreshing it every time would defeat the purpose.

Process

1. Parse current brief

Read .claude/skills/branch-context/issue-brief.md frontmatter:

  • issues: list (numbers, URLs, the last fetched updated_at, and comments_fingerprint)
  • last_fetched_at
  • last_fetched_comment_count

If issues: is empty (free-text problem, no linked issue), print: "No linked issue to refresh. Update the brief manually if scope changed." and exit.

2. Fetch current state

For each issue:

gh issue view <N> --json title,state,comments,labels,body,updatedAt

Collect:

  • Current comment count
  • Any comments with createdAt > last_fetched_at
  • Current title / state / labels (flag changes)
  • Whether updatedAt differs from the issue's stored updated_at. Treat a missing stored value as stale so briefs created before this field was added get one full comparison.
  • A fresh comment-state fingerprint from .agents/skills/branch-context/issue-comment-fingerprint <issue-number>. The helper paginates comment id and updatedAt through GraphQL because gh issue view omits comment updatedAt. A mismatch detects added, edited, or deleted comments. Treat a missing stored fingerprint as stale.

3. Compare

For each issue, build a short summary of deltas:

  • New comments (count + one-line summary of each)
  • Edited or deleted comments? When the comment fingerprint changes, re-read every current comment and compare its decision-bearing content with the brief; do not inspect only newly created ones.
  • Title changed? state changed (reopened/closed)? labels added/removed?
  • Body edited? A changed updatedAt requires comparing the complete current body with the brief's scope, criteria, constraints, and references; never use a prefix comparison.

Read the full file on GitHub · 127 lines

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. yesterday First seen · 127 lines · 66 tokens per session scan A a3412bf5ff76

Subscribe to this mod's changes

refresh-issue-brief is a skill published in the GitHub repository pydantic/pydantic-ai (20,771 stars, last pushed today), licensed MIT. It adds 66 tokens to every session and 1,294 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-10-21.

Related

Other skills, from other repositories

mempalace-task

Create, hand off, claim, execute, and close agent tasks through the MemPalace logstream. Use when the user wants to delegate work, prepare a ready-to-paste task for another agent, receive a MemPalace task id, or explicitly launch a supported headless agent in controlled mode.

MemPalace/mempalace · 67 tokens

stale-sweep

Sweep the googleapis/mcp-toolbox repo for issues and PRs with no real activity in N days (default 60), sort each by whose silence it is (the author's, ours, or nobody's), and draft the nudge or close comment. Use whenever a maintainer asks for a stale sweep, backlog cleanup, or an SLO check, e.g. "stale sweep", "find…

googleapis/mcp-toolbox · 159 tokens

company-employee

The protocol every employee of a PenguinHarness organization follows — read the handbook first, act on [orgtrigger] work runs, schedule tickets from the desk session and do the work in ticket sessions, block instead of idling, ask the board in the all-hands channel before anything heavy, costly, irreversible or…

Prism-Shadow/penguin-harness · 85 tokens

company-ceo

Run a PenguinHarness organization as its CEO — turn the mission into a ticket tree, hire HR and finance first, partition the shared workspace, schedule the calendar, open a channel per stream, review tickets and report to the board in the all-hands channel.

Prism-Shadow/penguin-harness · 56 tokens

company-hr

Run HR for a PenguinHarness organization — guarantee every employee has an enabled calendar event, hire and offboard employees (channels included), evaluate and improve them (with the default-rsi-toolkit plugin's agent-optimization skill), and keep the handbook's role conventions current.

Prism-Shadow/penguin-harness · 58 tokens

company-mirror

Run a PenguinHarness organization that mirrors a real company — one digital twin per real colleague, each twin's desk bound to that colleague's chat bot, twins answering what the handbook already knows and relaying the rest to one another instead of hiring, scheduling and filing tickets.

Prism-Shadow/penguin-harness · 58 tokens