DEV Community

Jalisa Franklin
Jalisa Franklin

Posted on

Building README Builder: A PowerShell Linter and Workflow for Better READMEs

Writing a solid README.md is easy to put off until the end of a project—and easy to leave half-finished with leftover placeholders, broken relative paths, or bad #anchor links.

To make my documentation more consistent, I created README Builder (ladyredd-coder/readme-builder), a reusable skill workflow, reference kit, and PowerShell validator for drafting and auditing project README.md files.

What It Includes

  • Skill Workflow (SKILL.md): Guides AI assistants to gather actual project details before drafting documentation rather than guessing.
  • Reference Templates (references/): Keeps section structure predictable using readme-template.md and section-guide.md.
  • PowerShell Validator (scripts/check-readme.ps1): Checks a target README.md for required headings, empty sections, broken relative file links, invalid #anchor links, unclosed code fences, and leftover placeholders.
  • Test Suite (tests/run-tests.ps1): Uses passing (tests/README.md) and failing (tests/bad.md) sample fixtures with $PSScriptRoot relative paths so tests run cleanly across machines.

Setup & Usage

Clone the repository and optionally copy it into your local skills folder:

git clone https://github.com/ladyredd-coder/readme-builder.git
cd readme-builder
Enter fullscreen mode Exit fullscreen mode
Copy-Item -Path "." -Destination "$env:USERPROFILE\.claude\skills\readme-builder" -Recurse -Force
Enter fullscreen mode Exit fullscreen mode

Run check-readme.ps1 against another project's README.md:

powershell -ExecutionPolicy Bypass -File ".\scripts\check-readme.ps1" -Path "C:\path\to\your-project\README.md"
Enter fullscreen mode Exit fullscreen mode

You can also pass custom required headings or run the test suite:

powershell -ExecutionPolicy Bypass -Command "& '.\scripts\check-readme.ps1' -Path 'C:\path\to\your-project\README.md' -RequireHeading @('Overview', 'Live site')"
powershell -ExecutionPolicy Bypass -File ".\tests\run-tests.ps1"
Enter fullscreen mode Exit fullscreen mode

What checks or sections do you find most important to enforce in a project README.md?

Top comments (0)