Skip to content
Back to skills

Readme Check

ASecurity

Audits all README.md files in the repo for staleness after significant code changes and auto-fixes drifted tables. Discovers READMEs dynamically. Skips automatically when fewer than 50 C# files changed in recent history. Triggers on: check readme, readme stale, is readme up to date, readme check, readme accuracy, readme outdated, update readme.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 6, 2026
code-qualitygoc#bash

Security analysis

A100/100

Scanned October 6, 2026

npx -y skills add e128/dotnet-reference --skill readme-check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Readme Check?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Readme Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/e128-readme-check/badge)](https://www.skillsdirectory.com/skills/e128-readme-check)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: readme-check
description: >
  Audits all README.md files in the repo for staleness after significant code
  changes and auto-fixes drifted tables. Discovers READMEs dynamically. Skips
  automatically when fewer than 50 C# files changed in recent history.
  Triggers on: check readme, readme stale, is readme up to date, readme check,
  readme accuracy, readme outdated, update readme.
allowed-tools: Read, Glob, Grep, Bash, Edit
flags:
  --skip-threshold: Skip Step 1 (threshold check) and proceed directly to the audit.
                    Use when the caller (e.g. /yeet) has already computed the count
                    and confirmed it meets the threshold.
---

Audits all README.md files for staleness after significant code changes. Only triggers a review when the change volume warrants it.

## README discovery

Discover all READMEs dynamically in Step 2. Common locations:

| File                          | Audience     | Key content to verify                     |
| ----------------------------- | ------------ | ----------------------------------------- |
| `README.md`                   | Contributors | Project table, script table, .NET version |
| `scripts/README.md`           | Contributors | Script tables match `scripts/help.sh`     |
| `src/*/README.md`             | Package users| Rule tables, version, install snippets    |

## Step 1: Check threshold

**Skip this step if invoked with `--skip-threshold`** — proceed directly to Step 2.

Count `.cs` file changes in the last 30 commits:
```
scripts/status.sh --history 30
```

If **fewer than 50** `.cs` files changed, report "README check skipped — below threshold" and stop.

## Step 2: Discover READMEs

```bash
scripts/solution-inventory.sh --readmes
```

Verify the inventory above is still complete. If a new README exists, flag it.

## Step 3: Audit each README

### Root README.md
1. Read `README.md`
2. Cross-reference project tables against `scripts/solution-inventory.sh --json` (`solution` + `projects[].path`)
3. Cross-reference script table against `scripts/help.sh` output
4. Check .NET version against `Directory.Build.props` or the global.json SDK pin (`scripts/sdk-version.sh`)
5. Verify lode links resolve to existing files

### scripts/README.md
1. Run `scripts/readme-table-diff.sh --json` — deterministic set-diff of documented vs. on-disk scripts. `drift: false` means the script tables (public + `internal/`) are in sync; act only on a non-empty `missing_from_readme` / `extra_in_readme`.
2. Read `scripts/README.md` and check that flags documented match actual script `--help` or argument parsing

### src/*/README.md (packable projects)
For each packable project from `scripts/solution-inventory.sh --json` (`projects[].packable == true`) that has a README:
1. Read the README
2. If the project contains an analyzer rule table, run `scripts/readme-table-diff.sh --analyzer --json` — deterministic set-diff of the rule table against analyzer source. `drift: false` means every diagnostic ID is present and the "Code Fix" column matches actual `CodeFixProvider` coverage; act only on a non-empty `missing_from_readme` / `extra_in_readme` / `code_fix_mismatches`
3. Check `<Version>` in the `.csproj` matches any installation snippet in the README
4. Verify rule categories and titles match the `DiagnosticDescriptor` fields

## Step 4: Report

- If no drift found across any README — report "README audit: PASS — no drift" and stop
- If drift found — present all findings grouped by file, with specific proposed edits

## Step 5: Apply fixes

1. Apply all fixes using the Edit tool
2. Leave staging and committing to the caller (e.g., `/yeet` stages and commits as one unit)

## Rules

- **Audit all READMEs, not just root** — every README in the inventory must be checked
- **Skip if below threshold** — don't waste time auditing after minor changes
- **No agent spawn** — audit directly using Read + Glob + Grep
- **Auto-fix drift** — apply corrections directly; only ask for approval on structural changes
- **Don't restructure** — match the existing style and organization of each README
- **Analyzer README is NuGet-facing** — accuracy is critical; verify every rule ID, title, category, and code fix flag

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…