refresh-claude-md

refresh-claude-md is a skill for Claude Code, Codex from pekral/cursor-rules. It costs 66 tokens per session (1,152 once invoked), scanned A, original, MIT.

A maintenance guide for CLAUDE.md, a project instruction file used to describe a codebase's tools, structure, and conventions to coding agents.

In plain words
What is it for?
Use it when CLAUDE.md is missing or outdated and needs its technology stack, commands, directory layout, or conventions refreshed.
Why use it?
It keeps that guidance aligned with the current project without removing instructions written by people.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md.

Good fit Use it when CLAUDE.md is missing or outdated and needs its technology stack, commands, directory layout, or conventions refreshed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pekral/cursor-rules/refresh-claude-md
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 pekral/cursor-rules --skill refresh-claude-md
Clone the repo
git clone --depth 1 https://github.com/pekral/cursor-rules

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 refresh-claude-md

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pekral/cursor-rules/refresh-claude-md"><img src="https://agentmods.dev/badge/skills/pekral/cursor-rules/refresh-claude-md.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,152 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.01152
Opus 5.5 $0.00026 $0.00461
Sonnet 5.5 $0.00013 $0.00230
Haiku 4.5 $0.00007 $0.00115

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

Security

Grade A, and why

refresh-claude-md 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 1mo 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/refresh-claude-md/SKILL.md · 68 lines

How it starts

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

Constraints

  • Apply @rules/php/core-standards.mdc
  • Apply @rules/git/general.mdc
  • Trigger only to update or create CLAUDE.md — never run this as a general onboarding or audit task
  • Reconnaissance uses Glob and Grep; use Read only to resolve an ambiguous signal, never to read every file
  • Enhance, never blindly replace: preserve all human-authored sections, custom rules, and project-specific instructions already in CLAUDE.md
  • Keep CLAUDE.md scannable and under ~100 lines; link to @rules/** instead of pasting rule content
  • Flag unknowns explicitly ("Could not determine X") rather than speculate
  • Do not modify other skills, rules, or production code

Use when

  • CLAUDE.md does not exist and the project needs one generated from the codebase
  • CLAUDE.md is stale — the tech stack, build/test commands, directory layout, or conventions have drifted from what the file documents
  • The user asks to "refresh", "regenerate", "update", or "rebuild" CLAUDE.md
  • A dependency, framework, or tooling change has invalidated the documented commands or structure

Do not use this skill for ad-hoc codebase questions, code review, or onboarding write-ups — it has one job: keep CLAUDE.md correct.

Execution

1. Decide whether a refresh is warranted

  • Read the existing CLAUDE.md (if any) and record which sections are human-authored vs auto-generated.
  • Confirm at least one trigger applies. If CLAUDE.md already matches the codebase, stop and report "no refresh needed" instead of rewriting it.

2. Reconnaissance (Glob + Grep only)

Gather signals without reading every file:

  • Manifests — composer.json, package.json, go.mod, pyproject.toml, Cargo.toml, Gemfile, etc.
  • Framework fingerprint — Laravel (artisan, bootstrap/app.php), vite.config.*, next.config.*, and similar config files
  • Entry points — public/index.php, artisan, app.*, main.*, src/ roots, routes/
  • Directory snapshot — top two levels, excluding vendor, node_modules, .git, dist, build, storage
  • Tooling — phpstan.neon, pint.json, rector.php, phpcs.xml, .github/workflows/, Dockerfile, .env.example
  • Tests — tests/, *Test.php, *.spec.ts, Pest/PHPUnit config

Read the full file on GitHub · 68 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. 1mo ago First seen · 68 lines · 66 tokens per session scan A a45f24adc13b

Subscribe to this mod's changes

refresh-claude-md is a skill published in the GitHub repository pekral/cursor-rules (11 stars, last pushed 19d ago), licensed MIT. It adds 66 tokens to every session and 1,152 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-09-03.