Skip to content

docs: adopt the plain-docs voice and rewrite the consumer docs in it - #67

Merged
CaffeinatedCoder merged 4 commits into
mainfrom
docs/plain-docs-skill
Oct 17, 2026
Merged

CaffeinatedCoder merged 4 commits into
mainfrom
docs/plain-docs-skill

Conversation

@CaffeinatedCoder

Copy link
Copy Markdown
Owner

Closes #38

Problem

The consumer docs were correct but hard to read: long sentences joined by semicolons, internal
vocabulary (satellite, variant, refuse, materialize, receiver/operand), and edge cases mixed into
the middle of explanations. A reader deciding whether to try the package had to work for every
paragraph. A few statements were also wrong or out of date.

Change

  • .claude/skills/plain-docs/ — TypeKit's plain-docs skill, adapted to this repo: the
    plain-words table uses this library's own jargon, and "What must not change" names the guards
    that exist here. Those are the verbatim OpenAPI transformer, the AOT phrase in package READMEs,
    absolute links on NuGet, unchecked anchors, and the claim catalogue.
  • The 12 consumer pages, rewritten in that voice: the root README, the four package READMEs,
    and getting-started, ranges, value-sets, serialization, efcore, migration and why.
    The pages are written to "you", lead with the example, use task headings, and put edge cases
    under "Good to know".
    • Every code block is byte for byte the same as on main.
    • Every anchor that code, a NuGet README, AGENTS.md or the CHANGELOG links to keeps its
      heading. Lower-level headings were renamed into tasks, and every link inside the repo was
      updated.
    • The Documentation table rows match the pages' new openings.
  • Corrected while rewriting (wrong before this change):
    • getting-started: more than one query over a database-computed Union throws, not only
      equality (since 9.0.0).
    • why: decimal, DateTime and DateTimeOffset are continuous and have no step;
      double/float fail the total-order requirement.
    • ranges: three factory methods and two properties, not four factory methods.
    • value-sets: the extra 7.0.0 requirement is the pinned format, and it applies to the
      temporal versions only.
    • EF Core NodaTime README: Intersect/Except/Add fail in a Where and run in memory in a
      Select, as the base README says.
    • EF Core README: lower()/upper() are NULL when that side is unbounded or the range is
      empty; the extremes are -infinity and infinity.
  • test/oracles/claims.json — 118 of 121 quotes re-anchored to the sentence that now makes
    the same promise, and their source to the new heading. Only source and quote change. Every
    claim found its promise at the same strength in the new text, so no page needed text put back.

Tests

  • OracleCatalogueTests failed with 194 problems after the rebase (118 stale claims) and passes
    now. It is the check that no promise was lost.
  • Conventions tests 97/97, ASP.NET Core tests 31/31: these cover the verbatim OpenAPI block, the AOT
    phrase and the claim catalogue.
  • A script compared every fenced block of each page with main (identical, same order) and
    resolved every relative and GitHub link and anchor in the repository. Planting a changed code
    comment and a broken anchor made it fail.
  • Three independent reviews compared old and new text claim by claim. Each finding is fixed in
    this PR.

Not covered by this PR (the catalogue already says more than the page for these, before and after
the rewrite): J08, M05, M07, R02, R11, R17, R18, S01, S13, S15, E13, R21. E02 and S01 still make
their full promise, but part of it now sits in a sentence outside the quote.

🤖 Generated with Claude Code

CaffeinatedCoder and others added 4 commits October 17, 2026 18:14
Adapted from CodoMetis.TypeKit's plain-docs skill. The guards section is
rewritten for this repository: code blocks here are not compiled, the
OpenAPI transformer and the AOT claim phrase are checked, package README
links must stay absolute for NuGet, and anchors are unchecked.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The root README, the four package READMEs and the seven guides now
follow the plain-docs skill: written to "you", one idea per sentence,
example first, task headings, and edge cases in "Good to know" lists.
Every code block is byte for byte unchanged, every anchor that code,
a NuGet README, CLAUDE.md or the CHANGELOG links to keeps its heading,
and every relative and GitHub link resolves.

Claims that were wrong before the rewrite are corrected:
- getting-started: more than one query over a server-computed Union
  throws, not only equality (since 9.0.0)
- why: decimal, DateTime and DateTimeOffset are continuous and have no
  step; double and float fail the total-order requirement
- ranges: three factory methods and two properties, not four methods
- value-sets: the extra 7.0.0 wrapper requirement is the pinned format,
  which applies to the temporal versions only
- EF Core NodaTime README: Intersect/Except/Add fail in a Where and run
  in memory in a Select, as the base README says
- EF Core README: lower()/upper() are NULL when that side is unbounded
  or the range is empty; the extremes are -infinity and infinity

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The plain-docs rewrite rewords the sentences that 118 of the 121 claims
quote, and renames most of their section headings. Each quote now points
at the sentence that makes the same promise in the new text, and each
source at the heading above it. Where the rewrite split one sentence into
several, the quote spans them. Only source and quote change; no claim,
surface or heldBy entry moves.

No promise was lost: every claim found a sentence in the new pages that
makes it at the same strength, so no page needed text put back.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A rewrite in this voice rewords the sentences claims.json quotes, so the
skill now says how to re-anchor a claim and that a claim with no sentence
left means a dropped promise to put back, not a claim to delete.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@CaffeinatedCoder CaffeinatedCoder added this to the 9.1.0 milestone Oct 17, 2026
@CaffeinatedCoder CaffeinatedCoder added documentation Improvements or additions to documentation package/nodatime Affects CodoMetis.ValueRanges.NodaTime package/efcore Affects CodoMetis.ValueRanges.EFCore.PostgreSQL package/core Affects CodoMetis.ValueRanges package/efcore-nodatime Affects CodoMetis.ValueRanges.EFCore.PostgreSQL.NodaTime labels Oct 17, 2026
@CaffeinatedCoder
CaffeinatedCoder merged commit 31bd944 into main Oct 17, 2026
@CaffeinatedCoder
CaffeinatedCoder deleted the docs/plain-docs-skill branch October 17, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation package/core Affects CodoMetis.ValueRanges package/efcore Affects CodoMetis.ValueRanges.EFCore.PostgreSQL package/efcore-nodatime Affects CodoMetis.ValueRanges.EFCore.PostgreSQL.NodaTime package/nodatime Affects CodoMetis.ValueRanges.NodaTime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adopt the plain-docs voice and rewrite the consumer docs in it

1 participant