Skip to content

chore(claude-md): prune CLAUDE.md per hygiene audit (companion to ppds#815) - #18

Merged
joshsmithxrm merged 3 commits into
mainfrom
chore/claudemd-prune
Apr 19, 2026
Merged

chore(claude-md): prune CLAUDE.md per hygiene audit (companion to ppds#815)#18
joshsmithxrm merged 3 commits into
mainfrom
chore/claudemd-prune

Conversation

@joshsmithxrm

Copy link
Copy Markdown
Owner

Summary

Prune ppds-docs CLAUDE.md per the v1-launch hygiene audit (62 → 29 lines).

Companion to PPDS PR #815 (feat/claudemd-governance) — that PR adds the governance hooks, the docs/CLAUDE-MD-GOVERNANCE.md doc, and the equivalent prune of the PPDS root CLAUDE.md.

Changes

  • Pruned CLAUDE.md 62 → 29 lines per per-line verdicts in the hygiene audit table.
  • Extracted .claude/skills/write-docs/SKILL.md — Diátaxis classification, voice rules, doc lifecycle. Auto-loads when authoring docs.
  • Extracted .claude/skills/write-blog/SKILL.md — first-person voice, post structure, anti-patterns. Auto-loads when authoring blog posts.

What was removed from CLAUDE.md

  • Title duplication (README has it).
  • "Structure" listing (visible in directory tree).
  • "Key Files" (docusaurus.config.ts, sidebars.ts are obvious from any Docusaurus project).
  • Vague aspirations ("write marketing fluff" — subjective; "write for the user goal" — vague).
  • "Use screenshots without alt text" (markdownlint MD045 enforces).

What was kept

  • Commands table (3 npm scripts that Claude cannot guess).
  • 2 NEVERs: don't document unimplemented features, don't duplicate code content.
  • 3 ALWAYs: test code examples, link to source, use canonical terminology (with branding pointer).
  • Pointer to the cross-repo governance doc in PPDS.

Includes the [claude-md-reviewed: 2026-04-18] marker per the new governance contract.

Test plan

  • Reviewer: confirm write-docs and write-blog skills load when expected.
  • Reviewer: confirm the 29-line CLAUDE.md still answers "what should I know before working in this repo?".

🤖 Generated with Claude Code

…o ppds#XXX)

Applies the per-line verdicts from the v1-launch hygiene audit
(.plans/retro/findings/E-claudemd-hygiene.md in the ppds repo).

BEFORE/AFTER: 62 lines -> 29 lines.

DELETE:
- Title duplication (README has it).
- Structure listing (visible in directory tree).
- Key Files (docusaurus.config.ts/sidebars.ts are obvious).
- "Write marketing fluff" / "Write for the user goal" — vague aspirations.
- "Use screenshots without alt text" — markdownlint MD045 enforces.

MOVE:
- Doc Types (Diátaxis) + Style rules -> .claude/skills/write-docs/SKILL.md (NEW).
- Blog Voice -> .claude/skills/write-blog/SKILL.md (NEW).

KEEP (passes 4-question test):
- Commands table (3 npm scripts Claude cannot guess).
- 2 NEVERs (don't document unimplemented features, don't duplicate code).
- 3 ALWAYs (test code examples, link to source, use canonical terminology).
- Branding pointer (canonical name list).
- Pointer to the cross-repo governance doc.

[claude-md-reviewed: 2026-04-18]

Companion PR to PPDS feat/claudemd-governance.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the repository's documentation and blog authoring guidelines by moving specific voice, structure, and style rules from CLAUDE.md into dedicated skill files (write-blog and write-docs). Feedback focuses on fixing a fragile relative link to a governance document, removing redundant rules that still exist in the main CLAUDE.md, and refining instructions regarding copy-pasteable code and accessibility for images.

Comment thread CLAUDE.md Outdated
Comment thread .claude/skills/write-docs/SKILL.md Outdated
Comment thread .claude/skills/write-docs/SKILL.md Outdated
Comment thread .claude/skills/write-blog/SKILL.md Outdated
… text)

- CLAUDE.md L5: replace sibling relative path with absolute GitHub URL so
  the governance reference resolves on GitHub UI, in CI, and from
  workspace-restricted AI agents.
- .claude/skills/write-docs/SKILL.md L38–47: rewrite the copy-pasteability
  rule to remove the ambiguous "fix mismatches in prod" phrasing, and
  delete the duplicated test/link/terminology bullets that already live in
  CLAUDE.md ALWAYS (the exact anti-pattern PR-B is preventing).
- .claude/skills/write-blog/SKILL.md L44–48: distinguish informative
  images (need descriptive alt text) from decorative images (alt="") per
  WCAG.

[claude-md-reviewed: 2026-04-19]

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@joshsmithxrm
joshsmithxrm marked this pull request as ready for review April 19, 2026 09:35
@joshsmithxrm
joshsmithxrm enabled auto-merge (squash) April 19, 2026 09:39
@joshsmithxrm
joshsmithxrm merged commit 0594795 into main Apr 19, 2026
1 check passed
@joshsmithxrm
joshsmithxrm deleted the chore/claudemd-prune branch April 19, 2026 09:44
@github-project-automation github-project-automation Bot moved this from Todo to Done in PPDS Roadmap Apr 19, 2026
joshsmithxrm added a commit that referenced this pull request Apr 19, 2026
Brings .claude/rules/branding.md in sync with what actually ships at
v1. The freshly-pruned CLAUDE.md (#18) points to this file as the
canonical name list, so stale content here actively misleads any AI
session authoring docs.

Changes:
- Remove PPDS.Tools and PPDS ALM from the Components table (not
  shipping at v1, can be re-added when they do)
- Remove ppds-tools and ppds-alm from the Repositories table
- Remove the PSGallery link (no PPDS.Tools package)
- Main repo description: SDK -> Libraries
- Value prop: "standard SDK patterns" -> "standard Dataverse SDK
  patterns" (disambiguates Microsoft's SDK from PPDS libraries)
- New Terminology section explicitly calling out libraries-vs-SDK and
  the NoSdkInPresentationAnalyzer rule that enforces the same
  convention in code

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
joshsmithxrm added a commit that referenced this pull request Apr 19, 2026
#19)

Brings .claude/rules/branding.md in sync with what actually ships at
v1. The freshly-pruned CLAUDE.md (#18) points to this file as the
canonical name list, so stale content here actively misleads any AI
session authoring docs.

Changes:
- Remove PPDS.Tools and PPDS ALM from the Components table (not
  shipping at v1, can be re-added when they do)
- Remove ppds-tools and ppds-alm from the Repositories table
- Remove the PSGallery link (no PPDS.Tools package)
- Main repo description: SDK -> Libraries
- Value prop: "standard SDK patterns" -> "standard Dataverse SDK
  patterns" (disambiguates Microsoft's SDK from PPDS libraries)
- New Terminology section explicitly calling out libraries-vs-SDK and
  the NoSdkInPresentationAnalyzer rule that enforces the same
  convention in code

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants