Skip to content

[docs] Reduce README bloat (52 lines, -11.8%)#25

Draft
github-actions[bot] wants to merge 1 commit into
mainfrom
docs/unbloat-README-63ae433414d243a0
Draft

[docs] Reduce README bloat (52 lines, -11.8%)#25
github-actions[bot] wants to merge 1 commit into
mainfrom
docs/unbloat-README-63ae433414d243a0

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

What was improved

File: README.md (441 → 389 lines, −52 lines / −11.8%)

Types of bloat removed

1. Bullet list → inline prose (IWitness<T> section)

The three-bullet list (ILogger<T> / Meter / ActivitySource) was converted to a single inline sentence. The follow-up explanation paragraph was tightened.

2. Bullet list → prose (WitnessedAction outcomes)

Three outcome bullets condensed to one sentence: "Outcomes are explicit: success is the default; Failed(...) marks failure; Cancelled() marks cancellation."

3. Duplicate JSON removed ("Add custom resource attributes" recipe)

The appsettings.json example in the recipe was identical to (a subset of) the JSON already shown in the Configuration reference → appsettings.json section. The recipe now goes straight to the C# code, which was the only unique content.

4. Analyzer section condensed (~30 lines)

  • Removed the "before" code block — the same extension method pattern is shown one section earlier in Logging via extension methods.
  • Removed the 20-line [LoggerMessage] pattern example — fully documented in docs/rules/WS0001.md. Added a link instead.
  • Removed redundant sub-heading ("The LoggerMessage pattern it promotes").
  • Combined the explanation into a single paragraph.

What was preserved

  • All technical details and accuracy
  • All code examples in Quickstart, WitnessedAction, Testing, and Recipes sections
  • All external links
  • The WS0001 install + configure severity subsections

🗜️ Compressed by Documentation Unbloat

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/unbloat-docs.md@1c6668b751c51af8571f01204ceffb19362e0f66
  • expires on Jul 23, 2026, 2:46 PM UTC

- Convert IWitness<T> 3-bullet list to inline prose
- Condense WitnessedAction outcome bullets to one-line prose
- Shorten WitnessedAction IWitness<T> facet intro sentence
- Remove duplicate JSON from 'Add custom resource attributes' recipe
  (already shown in the appsettings.json config reference section)
- Condense Analyzer section: remove duplicate 'before' code example
  (same pattern shown in Logging via extension methods above) and
  remove the full LoggerMessage pattern (documented in docs/rules/WS0001.md);
  add link to rule docs instead

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added automation documentation Improvements or additions to documentation labels Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants