thunderid: Skill for Claude Code

.agent/skills/pr-preflight/SKILL.md

pr-preflight is a skill for Claude Code from thunder-id/thunderid. It costs 34 tokens per session (741 once invoked), scanned A, original, Apache-2.0.

A repository-specific self-review checklist for a finished ThunderID change. It examines only the lines added by the change and checks them against backend conventions and project rules.

In plain words
What is it for?
Use it when you explicitly ask for a preflight or self-review. It helps inspect a Git diff, find rule violations, fix them, and report what changed.
Why use it?
It catches issues reviewers are likely to raise before you submit the change, such as misplaced code, unsafe credentials, unsuitable text, or unrelated edits.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions AGENTS.md.

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

Reuse

Borrowing it

Nothing to install: this file belongs to thunder-id/thunderid. 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/thunder-id/thunderid/main/.agent/skills/pr-preflight/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/thunder-id/thunderid

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 pr-preflight

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/thunder-id/thunderid/pr-preflight"><img src="https://agentmods.dev/badge/skills/thunder-id/thunderid/pr-preflight.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 741 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.00034 $0.00741
Opus 5.5 $0.00014 $0.00296
Sonnet 5.5 $0.00007 $0.00148
Haiku 4.5 $0.00003 $0.00074

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

Security

Grade A, and why

pr-preflight 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 6d 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.

.agent/skills/pr-preflight/SKILL.md · 58 lines

How it starts

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

PR Preflight

An optional review pass over a finished change. The backend and backend-tests skills already apply these rules while code is written, so run this only when asked. Fix what it finds, then report.

Step 1: Collect the Change

  • Base: the merge base with main on the thunder-id/thunderid remote, or the release branch the change targets.
  • Read the full diff against the base, including uncommitted and untracked files.
  • Review added lines only. Do not flag or fix existing code the change did not touch.

Step 2: Check Every Added Line

All Files

  • No bare short form of the product name (AGENTS.md, Product Name Rules).
  • No em dashes or double hyphens in copy, UI strings, i18n locale files, or error messages.
  • New source files carry the license header with the current year only, never a range.
  • No private keys or real credentials outside test fixtures.
  • Nothing outside the task: no unrelated refactoring, no comments on untouched code, no new dependencies, CI, or Makefile changes without approval.

Backend Go

Apply each file of the backend skill to the added code:

  • layout.md: file names, what goes in which file, method order, package comment.
  • visibility.md: nothing exported that the package's consumers do not use, exposed interfaces named <Thing>Interface, dependencies and config passed through Initialize.
  • errors.md: error constants in error_constants.go, codes in ascending order and unused elsewhere, {{param(name)}} placeholders, a description that adds context.
  • logging.md: logger on the struct, no logger name constant, no new Info logs for routine operations, no client error or executor error logs, no PII.
  • idiom.md: typed constants, header names from internal/system/constants, no hand-rolled helper the language or internal/system/utils already has, no unaccepted lint suppressions, minimal comments.
  • resource.md and config.md checklists, when the change adds a resource or a config key.
  • Query IDs in store_constants.go are in ascending order with the new one at the end (db skill).

Read the full file on GitHub · 58 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. 6d ago First seen · 58 lines · 34 tokens per session scan A a344b40b3c1a

Subscribe to this mod's changes

pr-preflight is a skill published in the GitHub repository thunder-id/thunderid (594 stars, last pushed yesterday), licensed Apache-2.0. It adds 34 tokens to every session and 741 once invoked, about $0.0001 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

vhs-e2e-gif

Record a test run, a TUI session, or any terminal command as a GIF with VHS and attach it to a GitHub PR as a release-hosted asset, never a repo commit. Use when asked to record an e2e run, demo a fix on a PR, attach a GIF or screen recording to a pull request, show a test passing visually, or produce a terminal…

dimetron/pi-go · 106 tokens

gh-pr

Writes clear pull request descriptions from the current branch diff against a base branch. Defaults to main, but supports dev or any other user-specified comparison branch. Use when the user asks for a PR description, pull request summary, or a markdown write-up for changes against a base branch.

Unique-Divine/jiyuu · 63 tokens

gh-rev

Use the gh-rev CLI to maintain a persistent Markdown review ledger for local branches and pull requests. Trigger when the user names gh-rev, asks to save or submit a durable review, inspect or implement existing findings, continue an independent review pass, or adopt branch history into a PR. Use the gh-pr-review…

Unique-Divine/jiyuu · 89 tokens

bmad-loop

Iterate over a list of story keys, executing dev → review → PR → CI → merge for each. Use when the user says "loop these stories [list]" or "run the loop on [story keys]".

mmornati/leanproxy-mcp · 48 tokens

conventional-commit

Rules for writing Conventional Commits messages in this project. MUST be invoked every time a commit is created.

JanDeDobbeleer/oh-my-posh · 26 tokens

code-changes

Workflow for any task that ends in code changes: issue analysis or triage, pull request review comments, features, bug fixes, refactors. Invoke at the start of such a task, before reading or writing code.

JanDeDobbeleer/oh-my-posh · 48 tokens