Skip to content

Add a package README scaffold based on the current CLDMV README format #404

Closed

Description

@Shinrai

Summary

CLDMV package READMEs have converged on a single format that began in @cldmv/slothlet and has since been reused, with small variations, in about a dozen other repos (for example @cldmv/vitest-runner, @cldmv/fix-headers, @cldmv/droidsock, @cldmv/slothlet-vine and @cldmv/llm-translator). There is no template for it in this repo, so each new README is copied from a sibling and drifts. This issue asks for a README scaffold, either as a file under examples/ (for example examples/readme/README.template.md) or wired into the repo-scaffolding tooling (cli/create-scaffold already has templates/.global/), so new and existing repos start from the same skeleton.

The format today

In order:

  1. # @cldmv/<repo>, an optional centered banner (images/<repo>-banner.jpg), a short intro with bold key terms, and a tagline blockquote (> _tagline_).
  2. A primary badge row: npm version, npm downloads, GitHub downloads, last commit, npm last update, coverage (the GitHub release and release date badges sit commented out in the same line). Then an optional > [!NOTE] / > [!IMPORTANT] status callout, and a contributors + sponsor badge row.
  3. ## ✨ What's New: ### Latest: vX.Y.Z (Month YYYY) with 2–3 bullets and a link to the version's changelog file, ### Recent Releases with exactly four bullets (promoted and dropped on each release), and a closing link to docs/changelog/.
  4. ## 🚀 Key Features, ## 📦 Installation (Requirements, Install), ## 🚀 Quick Start (ESM, then a CommonJS one-liner), ## 📚 Configuration (options table + link), then any repo-specific sections (CLI/API tools use 💻 CLI and 🔧 API instead of Configuration).
  5. ## 📚 Documentation (Reference, Guides, Repo), followed by a secondary badge row: CodeFactor, OpenSSF Scorecard, npms.io score, npm unpacked size, repo size.
  6. ## 🤝 Contributing, ## 🔗 Links (npm, GitHub, Issues, Releases), ## 📄 License (GitHub + npm license badges, Apache-2.0 © Shinrai / CLDMV).
  7. A footer of reference-style badge definitions, all img.shields.io with style=for-the-badge, a logo, and a fixed labelColor per family (npm CB3837, GitHub 181717, CodeFactor F44A6A, npms.io 0B5D57, sponsor EA4AAA). The coverage badge is a shields endpoint badge reading coverage.json from the badges branch.

Sections are separated by ---. All docs and changelog links are absolute GitHub URLs so the README renders correctly on npm. Changelogs live at docs/changelog/v<major>/vX.Y.Z.md.

Everything except the prose is mechanical and depends only on the repo name, package name and default branch: the badge definitions and their URL patterns, the changelog link paths, and the Links section.

Gaps

  • Nothing in this repo captures the format, so the slothlet README acts as an unwritten spec. The only README-related rule is the release check's warning when What's New doesn't name the released version (docs/conventions/release-flow-v4.md).
  • Roughly a dozen repos follow the format closely, about eight follow it partially (badge footer without all the sections, What's New without badges, or no coverage badge), and about fifteen still have an old, stub or missing README.
  • Small drifts have already appeared: the OpenSSF Scorecard badge is missing in some repos, one README has an empty ### Repo heading, another has doubled separators, and the pre-1.0 changelog path (docs/changelog/v0/) isn't documented anywhere.

Proposal

  1. Add README.template.md with placeholders ({{repo}}, {{package}}, {{description}}, {{tagline}}, {{node_min}}, {{license}}) and the full badge footer. Mark the optional parts: banner, status callout, Contributing, Acknowledgments, repo-specific sections. Release-specific content (an "Introducing vN" block) and personal sections stay out of the template.
  2. Document the implicit conventions next to the template or in docs/conventions/: Latest plus exactly four Recent Releases, absolute URLs, the badge set and its colours, the v0/ changelog path for pre-1.0 packages.
  3. Wire the template into the scaffolding (create-scaffold or the repo-seeds flow) so a new repo gets a rendered README.
  4. Optionally, a README conformance check (required headings, badge footer) alongside the existing What's New warning.

Acceptance criteria

  • A new package README can be generated from the template with only prose to write.
  • Filled in for @cldmv/slothlet, the template reproduces the current slothlet README's structure and badge definitions.
  • The conventions are documented.

Activity

  1. added
    type: documentation
    type: enhancement
    priority: medium
    status: not started
    status: in progress
    and removed
    status: not started
    on Oct 31, 2026
  2. Shinrai commented on Nov 1, 2026

    @Shinrai
    ContributorAuthor

    #415 adds examples/readme/README.template.md and docs/conventions/readme-format.md. Rendered for slothlet, the template reproduces all 28 badge definitions exactly. I didn't wire it into create-scaffold: that tool lives in its own repo, hasn't been touched since 2025, and copies files verbatim with no placeholder rendering. The doc lists that, and a conformance check, as future work.

  3. added
    status: implemented
    and removed
    status: in progress
    on Nov 1, 2026
  4. cldmv-bot commented on Nov 1, 2026

    @cldmv-bot
    Contributor

    Marked status: implemented — resolved by #415, merged into next. This issue closes automatically when that work ships to the default branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumstatus: implementedtype: documentationtype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions