mach10 icon indicating copy to clipboard operation
mach10 copied to clipboard

Add CLAUDE.md sync note for contributing-guide lookup pattern

Open LeanAndMean opened this issue 8 months ago • 2 comments

Context

PR #32 introduced a CONTRIBUTING.md lookup pattern (three-file precedence list with first-match-stop) that now appears in three commands:

  • commands/issue-plan.md (Step 3a)
  • commands/issue-review-plan.md (Step 3a)
  • commands/pr-pre-merge.md (contributing guide lookup)

Any future change to the lookup logic (e.g., adding a new filename, changing precedence order) must be applied to all three files.

Suggested change

Add a note in CLAUDE.md under "Key Design Decisions" or "Writing Commands" flagging this three-file sync requirement to reduce drift risk.

Origin

Identified during review of PR #32 (finding classified as "deferred" in the assessment comment).

LeanAndMean avatar Mar 17 '26 19:03 LeanAndMean

Implementation Plan

Stage 1 (single stage): Add a sync note to the "Writing Commands" section of CLAUDE.md.

What changes

Add a bullet point after the existing "Writing Commands" bullets (line 57) documenting the contributing-guide lookup pattern sync requirement:

  • The lookup pattern (CONTRIBUTING.md → DEVELOPMENT.md → .github/CONTRIBUTING.md, first-match-stop) is duplicated in three command files:
    • commands/issue-plan.md (Step 3a)
    • commands/issue-review-plan.md (Step 3a)
    • commands/pr-pre-merge.md (contributing guide lookup)
  • README.md (the "Customizing with CONTRIBUTING.md" section) also documents this feature and must stay consistent.
  • Any change to the lookup logic must be applied to all four locations.

Files modified

  • CLAUDE.md -- one bullet point addition to "Writing Commands" section

Testing

N/A -- this is a pure plugin definition repo with no test suite.

Notes

This plan will guide staged implementation via /mach10:issue-implement.

LeanAndMean avatar Mar 25 '26 15:03 LeanAndMean

Stage 1 complete

Added a contributing-guide lookup sync note to the "Writing Commands" section of CLAUDE.md.

The new bullet documents:

  • The three-file precedence pattern (CONTRIBUTING.md → DEVELOPMENT.md → .github/CONTRIBUTING.md, first-match-stop)
  • The three command files that duplicate it: issue-plan.md, issue-review-plan.md, pr-pre-merge.md
  • The README.md section that also documents the feature
  • The requirement to update all four locations on any change

Commit: ae3dd2d Branch: feature/issue-34-claude-md-sync-note

This was the only stage in the plan.

LeanAndMean avatar Mar 25 '26 15:03 LeanAndMean