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

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.

agentmods
npx agentmods add skills/pekral/cursor-rules/refresh-claude-md
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00066 $0.01152
Opus 5 $0.00033 $0.00576
Sonnet 5 $0.00013 $0.00230
Haiku 4.5 $0.00007 $0.00115

Measured today against content hash a45f24adc13b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 today.

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:

  • Manifestscomposer.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 pointspublic/index.php, artisan, app.*, main.*, src/ roots, routes/
  • Directory snapshot — top two levels, excluding vendor, node_modules, .git, dist, build, storage
  • Toolingphpstan.neon, pint.json, rector.php, phpcs.xml, .github/workflows/, Dockerfile, .env.example
  • Teststests/, *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. today 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 (6 stars, last pushed 4d ago), licensed MIT. It adds 66 tokens to every session and 1,152 once invoked, about $0.0003 per session on Opus 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.

Related

Other skills, from other repositories

retro

CP-7 retrospective: audit checkpoints, evidence quality, action items, and harvest candidates. Closes the V-model cycle and feeds the next run. Use via /retro after ship, escalate, or significant session.

huytieu/COG-second-brain · 45 tokens

pad

Talk to your project. Natural-language project management — create items, check status, plan work, brainstorm ideas, and more.

PerpetualSoftware/pad · 27 tokens

quality-engineering-zephyr-coverage-analysis

Audit test coverage health, gaps, and QE debt for Jira stories or epics. Produces coverageanalysisreport.md with AC-to-TC heatmap, risk scores, and prioritized action plan. Use when assessing coverage percentage, pre-release readiness, sprint readiness, or identifying missing test cases. Do NOT use for TC creation …

HoangNguyen0403/agent-skills-standard · 81 tokens

pm-init

Skill "pm-init" from wei63w/pm-manager, covering user input, outline, 1. scaffold, 2. lifecycle and type and 3. detect spec kit (required).

wei63w/pm-manager · 8 tokens

fde

Keeps the engagement record for client work. Use when they name a client or stakeholder. Use when they debrief a meeting or paste notes. Use when they ask what was agreed. Use when they run a POC, change the client's codebase, prove it on their staging, go live, or need evals before a model acts. Use when they prep a…

suboss87/FDEOps · 125 tokens

pm-arch

Skill "pm-arch" from wei63w/pm-manager, covering user input, outline, done when and shared workflow (all /pm- commands).

wei63w/pm-manager · 10 tokens