Skip to content

(MODULES-11816) Add CLAUDE.md for Claude Code guidance#1675

Closed
SugatD wants to merge 2 commits into
mainfrom
MODULES-11816
Closed

(MODULES-11816) Add CLAUDE.md for Claude Code guidance#1675
SugatD wants to merge 2 commits into
mainfrom
MODULES-11816

Conversation

@SugatD
Copy link
Copy Markdown
Contributor

@SugatD SugatD commented May 28, 2026

Summary

Adds a CLAUDE.md at the module root to give Claude Code (claude.ai/code) the context it needs to work productively in this repository.

The file covers:

  • Three-layer architecture: postgresql::globalsparams.pppostgresql::server and why globals must be included first.
  • The params.pp default-vs-versioned package-name branch that's easy to break when adding OS support.
  • Custom types and providers in lib/puppet/ (postgresql_psql, postgresql_conf, postgresql_conn_validator, postgresql_replication_slot) and how the server/* defined types funnel through postgresql_psql.
  • Hiera-driven OS defaults (data/os/...) and the hiera.yaml hierarchy.
  • Common commands: rake validate, rake parallel_spec, single-file/example rspec, full Litmus provision/install/run/teardown cycle, and puppet-strings reference regeneration.
  • Spec layout (classes/, defines/, functions/, type_aliases/, unit/, acceptance/) and the shared_context pattern in spec/spec_helper_local.rb.
  • Lint/style customizations from .puppet-lint.rc and the Rakefile.
  • How the CI matrix is actually generated (matrix_from_metadata_v3 × puppet_litmus/exe/matrix.json).
  • Commit/branch conventions used in this repo (MODULES-XXXX prefix, Co-authored-by: trailer for community-PR cherry-picks).

Test plan

  • No code changes — documentation only.
  • CI green (validate + spec).

Document the module's three-layer architecture (globals → params → server),
custom types/providers, Hiera data layout, validate/spec/Litmus commands,
spec conventions, lint customizations, and how the CI matrix is built.
@SugatD SugatD marked this pull request as ready for review May 28, 2026 07:39
Branch names now follow <module-id>-<short-change-related-name>
(e.g. MODULES-11816-add-claude-md) instead of just the bare ticket
id. Test-PR runs of community PRs still use the
<module-id>-pr<upstream-pr-number> pattern.
@SugatD SugatD closed this May 28, 2026
@SugatD SugatD deleted the MODULES-11816 branch May 28, 2026 07:48
@SugatD
Copy link
Copy Markdown
Contributor Author

SugatD commented May 28, 2026

Superseded by #1676 — the branch was renamed from MODULES-11816 to MODULES-11816-add-claude-md to match the new naming convention, which auto-closed this PR. Same commits, same content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant