Blueprint 001 (add write-readme-r) failed all three sieves against its own Justification's bar — "must earn its place against that generic path, or fold into it". - docs(blueprint): record the 0/3 verdict in 001 §Why dropped, flip status - docs(okf): mark 001 dropped in the blueprint index - docs(readme): retire the §Roadmap write-readme-r item — the gap is closed - docs(write-readme-py): point §Out of scope at generic write-readme instead of a planned skill that will not be written Real fails: the need was self-asserted here, and the one genuinely wrong behaviour (a host renv::restore() install line) was already fixed in write-readme/REFERENCE.md without a new skill. The residue — a logo block and an Apache-aware license block — is not R-shaped and stays untriggered.
4.1 KiB
4.1 KiB
name, description, disable-model-invocation
| name | description | disable-model-invocation |
|---|---|---|
| write-readme-py | Generate a README from pyproject.toml + justfile in the Saduko two-column layout. | true |
write-readme-py
When to use
- Inside a Python project (has
pyproject.tomlandjustfile). - User says "write readme", "/write-readme-py", "generate readme".
Process
-
Read sources.
pyproject.toml→project.name,project.description,project.requires-python,project.dependencies,project.optional-dependencies(every group, not justdev),project.license,project.authors[0],project.urls.Repository(fall back toHomepage).justfile→ each recipe name plus the comment line(s) above it. Group by section comments (lines like# ── Docker ───). Detectlocal-*recipes separately for the Local subsection.assets/→ first match of<name>.png,<name>.svg,<name>.jpgbecomes the logo. Missing is fine — skip the<img>tag.
-
Refuse to invent. If
project.descriptionis empty, ask for one line before writing. Do not fabricate dependency versions, deps not listed, recipes not in the justfile, an author, or a repo URL. -
Materialise
README.mdfromreadme-py.template.md, substituting:<project.name>,<project.description>,<project.requires-python>,<package_name>(theproject.namewith hyphens → underscores).<logo-block>→<img src="assets/<name>.<ext>" alt="<name> logo" width="200"/>if the asset exists; empty string otherwise.<install-block>→ oneuv pip install -e ".[<group>]"line per optional-dependencies group, each annotated with the group's deps in a trailing comment. Lead withuv pip install -e "."for the core.<docker-section>,<lint-fmt-section>,<typecheck-section>,<test-section>,<combined-section>— built from the justfile. Omit any section whose recipes are absent.<local-checks-preamble>→Use \local-` variants if you have `uv` installed locally.when anylocal-` recipes exist; empty otherwise.<local-section>→ a# Local (requires uv)block listing eachlocal-*recipe; empty if none.<license-block>→- Apache 2.0: full rights / requirements / attribution / bibtex
block (see
saduko-license-block.md), substituting<project.name>,<author>,<author-surname>,<author-given>,<year>,<repo-url>. - Anything else: one line —
<project.name> is licensed under <project.license.text>.
- Apache 2.0: full rights / requirements / attribution / bibtex
block (see
-
Stop. Tell the user:
"Review the Installation extras and the License block — extras must match
project.optional-dependencies; the License block defaults to Apache 2.0 wording only whenproject.licensesays so. Drop aassets/<name>.pngif you want the logo to render. When satisfied, describe with/commit-atomic-jj."
Guardrails
- Never invent dependency versions, recipe descriptions, author names, or repo URLs.
- Never commit. Stop after writing the file.
- Omit sections with no source data instead of hallucinating.
- License wording is license-specific. Only emit the rich Saduko attribution block for Apache 2.0; other licenses get the one-liner.
Out of scope
- R projects. Generic
../write-readme/SKILL.mdcovers them — it detectsDESCRIPTION(r-package) and_targets.R(r-analysis) and reads their fields. No R counterpart to this skill is planned.
See also
saduko-license-block.md— the Apache 2.0 rights / requirements / attribution / bibtex template, lifted from the Saduko reference and parameterised.../../scaffold/build-py-project/SKILL.md— produces thepyproject.toml+justfilethis skill reads.../develop-python/SKILL.md— the workflow whosejust checkcommands this README documents.