docs: Standardize via CONTRIBUTING.md + WRITING.md - #358
Merged
Conversation
why: AGENTS.md is read on every task, so a policy that matters to one
class of change costs context on all the others. Splitting how we work
from how we write lets each be loaded when it applies, and keeps both
discoverable to humans rather than only to agents.
what:
- Replace the AGENTS.md body with a router: the project map, universal
change discipline, then one pointer per class of change
- Add .github/WRITING.md for prose policy, specialized with this
repo's real doctest mechanism (testpaths, doctest_namespace's
monkeypatch, README not included), the CLI's actual exit-status and
stdout/stderr contract, its logging conventions, CJK/UNIHAN
terminology, and MyST cross-reference conventions
- Add .github/CONTRIBUTING.md for workflow policy with this repo's
real gate commands, fixtures, and release process
- Delete docs/AGENTS.md and docs/CLAUDE.md, absorbed into WRITING.md
- Replace .github/contributing.md with .github/CONTRIBUTING.md
- Turn docs/project/contributing.md and docs/project/code-style.md
into pointer pages at the canonical files (an {include} across the
docs/ boundary resolves as a dead anchor on this Sphinx setup)
- Rewrite README.md to the new voice, fix an its/it's typo, drop inert
"under active development" filler, and document the info/reverse
stdout-vs-stderr and --log-level behavior
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #358 +/- ##
=======================================
Coverage 88.98% 88.98%
=======================================
Files 12 12
Lines 690 690
=======================================
Hits 614 614
Misses 76 76 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
CONTRIBUTING.md + WRITING.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AGENTS.mdis read on every task, so a policy that matters to one class of change costs context on all the others. This splits how the project works from how it writes, so each loads when it applies, and makes both discoverable to humans rather than only to agents.The root file becomes a router. It carries what should always be visible — what the repository is, where things live, and the change discipline every diff is held to — then points at one document per class of change.
Layout
What moved
Nothing was deleted without a destination. Environment, commands, gates, testing strategy and fixtures moved to
.github/CONTRIBUTING.md. Docstring conventions, doctest rules, changelog conventions, code-block rules, the comment gates and slop prevention moved to.github/WRITING.md, along with the whole ofdocs/AGENTS.md("Documentation voice"), which is prose policy and now has one home.Verification
Every gate was run, and the doctest collection count was recorded before and after. Documented examples are executed by
pytest, so a preserved example that stopped being collected would be an invisible test deletion — the count is the proof it did not happen.This repository
AGENTS.mdgoes from 561 lines to 63, across 9 changed files. No source, test, or CI file is touched.