Lukasz Boryn 6cb19302ea fix(write-readme): read the R install path from evidence, not a default
REFERENCE.md told a README reader to run renv::restore() on the host.
For anything the R scaffolds produce that is wrong: renv::init() is the
user's post-scaffold step, and renv::restore() then runs inside the
image build (containerize-project/Dockerfile.r-*.tpl), so the reader's
entry point is 'just build-dev' then 'just up'. The rule is now stated
as evidence — justfile, Dockerfile, lockfile — with 'omit the section'
as the fallback, since a bare restore is right only for a repo with a
committed lockfile and no container.

build-r-package pointed at a README 'Out of scope' heading that does not
exist; it now names generic write-readme, which already covers
r-package, and blueprint 001 for the dedicated skill.

Blueprint 001 was sounded against the earlier, half-right reading and is
corrected with it: the install clause now says what the Dockerfiles do,
and the REFERENCE fix leaves its seam list and Out of scope, having
landed here instead.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-22 14:05:19 +02:00

2.7 KiB

write-readme — per-ecosystem extraction

What to read for each ecosystem, and the <install-block> / <usage-block> snippet to emit. Fill <...> from the source; omit a line when its source is absent.

python (pyproject.toml)

Read: project.name, project.description, project.dependencies, project.requires-python, dependency-groups.dev, project.license. Task runner: justfile recipes (group by # ── Section ── comments).

## Installation
Requires Python <project.requires-python>. Install with [uv](https://docs.astral.sh/uv/):

uv pip install -e "."        # core: <core-deps-csv>
uv pip install -e ".[dev]"   # + dev tools: <dev-deps-csv>

Usage = just recipes. For the full [dev]-extras treatment defer to ../write-readme-py/SKILL.md.

r-package (DESCRIPTION)

Read: Package, Title, Description, Imports, License.

## Installation
# install.packages("remotes")
remotes::install_github("<owner>/<Package>")

Usage = exported functions / vignette entry points.

r-analysis (_targets.R)

Read: title/description from index.qmd front matter or _targets.R header comment. Pipeline targets from _targets.R.

## Installation
just build-dev && just up   # renv::restore() runs in the image build

Read the install path from evidence, never from a default: a justfile with Docker recipes means the container is the entry point (a Dockerfile restoring renv.lock does the library work). Bare renv::restore() is right only for a repo with a committed renv.lock and no container. Neither → omit the section.

Usage = targets::tar_make() plus the justfile recipes that wrap it.

node (package.json)

Read: name, description, dependencies, devDependencies, license, scripts.

## Installation
npm install        # or pnpm / yarn

Usage = the scripts block (npm run <name>).

rust (Cargo.toml)

Read: package.name, package.description, package.license, dependencies.

## Installation
cargo build --release

Usage = cargo run / installed binary, or justfile recipes.

generic (no manifest)

Config / script / dotfile repos (e.g. shell installers, system configs). Read: every script's leading comment, Makefile/justfile, and any existing README. Ask the user for a one-line description if none is inferable.

  • <install-block> → "Clone the repo" or the prerequisite packages.
  • <usage-block> → the actual setup commands, in order, verbatim.
  • Group long setup guides under ## headings per concern (drivers, browser, display, prompt, …) and link them from the table of contents.
  • <project-layout> → annotate each top-level script/dir with its role.