README Generator: Draft From Code, Then Run the Commands

The generated README tells visitors to run npm start, but the repository has no package script. Give the generator the actual entry file and execution evidence, then test the commands before putting its Markdown in the repository.

Give the generator the code it must describe

The worked example uses an original, unpublished Node.js teaching program named cents-total. It accepts one or more nonnegative integer amounts in cents, sums them and writes a whole-cent total. Its single entry file is cents-total.mjs; it has no dependencies, package manifest, network calls or currency conversion. No real repository, maintainer or license is implied.

A README-generation review with original CLI source, command evidence and complete repository Markdown
A README-generation review with original CLI source, command evidence and complete repository Markdown
Open the full example ↗

Generate the README from the supplied code and tested commands. The example's command node cents-total.mjs 125 275 produces 400 cents. A single zero produces 0 cents. Missing arguments, negative values, decimals, nonnumeric input and unsafe integer totals must fail with a nonzero exit and a specific error. Test those paths rather than accepting a plausible command block.

GitHub's README guidance calls for the project's purpose, getting-started information, help and maintainer context. The generated Markdown includes those sections, with support, maintainer and license marked [TO CONFIRM]. A generator cannot establish those facts from the program's behavior.

Review the generated file as a new user

Copy the supplied entry file into a separate local teaching folder and run the commands shown in the example. The recorded checks use Node24.11.0; that execution does not prove compatibility with every Node version. The cents are amounts, not a claim that a particular national currency or accounting rule applies.

The generated README is a full Markdown draft. It keeps code fences, the entry filename, expected stdout and failure behavior together. It contains no invented install package, clone URL, CI badge, license permission, screenshot or hosted demo. If your actual project has a package manifest, provide its scripts before adding npm commands.

Put the reviewed README.md in the actual repository and check its rendered headings and local paths there. The HTML example is a reading aid for the draft and execution evidence; it does not replace the repository file or publish a project to GitHub.

Generate from files and execution records

Return a complete README.md in Markdown for this repository.
Actual file tree and complete relevant entry/config source: [PASTE]
Project purpose, audience and limitations: [PASTE]
Runtime/version checked, commands, stdout/stderr and exit codes: [PASTE]
Actual support route, maintainer, license and contribution policy: [PASTE]

Use supplied facts only. Include purpose, setup, a smallest successful command with expected output, input/error behavior and limitations. Mark missing support/maintainer/license facts [TO CONFIRM]. Flag commands contradicted by source or execution evidence [CHECK COMMAND]. Do not invent dependencies, package scripts, clone URLs, badges, screenshots, licenses, deployments or compatibility claims. Distinguish observed runtime from guaranteed support. Preserve relative paths and usable Markdown fences. Return full README.md plus a separate unresolved-facts list; do not replace it with HTML or claim to commit/publish it. Ask the reader to run each command in a separate working copy before adopting it.

Have a teammate run the smallest example

Send the README draft with the supplied entry file to a colleague and ask them to run the successful and invalid-input commands. If the command evidence is hard to compare, read it together in the prepared HTML review copy in NOS, then revise README.md in the actual repository.

Send the corrected Markdown with the checked command result. Review the repository diff and rendered README before committing through the project's normal workflow; a changed reading copy neither updates GitHub nor notifies readers automatically.

Keep reading