Skip to content

Compress CLAUDE.md and add size limit enforcement - #1693

Merged
Andriy Knysh (aknysh) merged 10 commits into
mainfrom
osterman/compress-claude-md
Oct 22, 2025
Merged

Andriy Knysh (aknysh) merged 10 commits into
mainfrom
osterman/compress-claude-md

Conversation

@osterman

@osterman Erik Osterman (Cloud Posse) (osterman) commented Oct 21, 2025 •

Copy link
Copy Markdown
Member

what

  • Compressed CLAUDE.md from 40.3k chars to 6.3k chars (84% reduction)
  • Added GitHub action to enforce 40k character limit on CLAUDE.md
  • Refactored into reusable composite action pattern

why

  • Large CLAUDE.md files impact performance and token usage
  • Need automated enforcement to prevent file bloat
  • Reusable action pattern improves maintainability

Compression Details

Metrics:

  • Size: 40,300 chars → 6,301 chars (84.4% reduction)
  • Lines: 1,183 → 165 (86.0% reduction)
  • Current usage: 15% of 40k limit

Techniques Applied:

  • Removed verbose explanations, kept terse requirements
  • Consolidated redundant examples
  • Merged related sections
  • Preserved all MANDATORY rules

What's Preserved:
✅ All MANDATORY requirements
✅ Code patterns and conventions
✅ Error handling strategies
✅ Testing requirements
✅ CLI command structure
✅ Development workflows
✅ Cross-platform compatibility rules
✅ Git and PR guidelines

GitHub Action Structure

.github/
├── actions/
│   └── check-claude-md-size/
│       ├── action.yml          # Composite action with all logic
│       └── README.md            # Action documentation
└── workflows/
    └── claude.yml               # Simple 16-line workflow

Action Features:

  • Validates file size on PR changes
  • Posts/updates intelligent PR comments
  • Fails CI if limit exceeded
  • Configurable file path and size limit
  • Provides outputs: size, exceeds-limit, usage-percent

Triggers:

  • Pull requests modifying CLAUDE.md
  • Changes to workflow or action files

references

  • Follows composite action best practices
  • Pattern similar to existing actions in the ecosystem
  • Maintains consistency with project's CI/CD approach

Summary by CodeRabbit

  • New Features

    • Automated CLAUDE.md size validation with configurable limits; posts and updates PR comments when limits are exceeded or resolved.
  • Documentation

    • Reworked CLAUDE.md to emphasize architecture and mandatory design patterns instead of granular step-by-step procedures.
    • Added user-facing documentation for the CLAUDE.md size-check action and its usage.

Reduced from 40.3k chars (1183 lines) to 6.3k chars (165 lines) via:
- Condensed verbose explanations to terse requirements
- Removed redundant examples while keeping critical ones
- Consolidated related sections
- Kept all MANDATORY rules intact

All essential patterns, conventions, and requirements preserved.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Refactored into reusable composite action pattern:
- Logic in .github/actions/check-claude-md-size/action.yml
- Simple workflow in .github/workflows/claude.yml
- Documentation in action README

Features:
- Checks file size on PR changes to CLAUDE.md
- Posts warning comment if limit exceeded
- Updates to success comment when fixed
- Fails CI check to block merge
- Shows current usage percentage
- Configurable file path and size limit

Triggers on:
- Pull requests modifying CLAUDE.md
- Changes to the workflow or action

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@github-actions github-actions Bot added the size/xl Extra large size PR label Oct 21, 2025
@coderabbitai

coderabbitai Bot commented Oct 21, 2025 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Adds a new composite GitHub Action and CI workflow to enforce a configurable CLAUDE.md size limit, and replaces the repository's CLAUDE.md with a reorganized, architecture-and-pattern-focused document.

Changes

Cohort / File(s) Summary
Check CLAUDE.md Size Action
.github/actions/check-claude-md-size/action.yml, .github/actions/check-claude-md-size/README.md
New composite GitHub Action that checks for CLAUDE.md, computes character count and usage percent vs a configurable max-size, sets outputs (size, exceeds-limit, usage-percent), and creates/updates PR comments reporting violations or success.
CI Workflow Integration
.github/workflows/claude.yml
New workflow that triggers on PR events for changes to CLAUDE.md, the workflow file, or the action directory and runs the new action with max-size=40000.
Documentation Rewrite
CLAUDE.md
Major documentation refactor: replaces procedural, step-by-step guidance with architecture and pattern-driven content (registry, interface-driven design, options/config patterns), condensing and reorganizing development instructions.

Sequence Diagram

sequenceDiagram
    participant PR as PR Event
    participant Workflow as claude.yml Workflow
    participant Action as check-claude-md-size Action
    participant File as CLAUDE.md
    participant GH as GitHub PR API

    PR->>Workflow: trigger (opened/synchronize/reopened)
    Workflow->>Action: run with inputs (file-path, max-size, github-token)
    Action->>File: check existence
    alt file missing
        Action-->>Workflow: exit success (skipped)
    else file present
        Action->>File: compute size & usage%
        File-->>Action: size data
        alt exceeds limit
            Action->>GH: create/update failure comment (hidden marker)
            GH-->>Action: comment result
            Action-->>Workflow: exit non-zero (fail)
        else within limit
            Action->>GH: update success comment if present
            GH-->>Action: comment updated
            Action-->>Workflow: exit zero (success)
        end
    end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The PR title "Compress CLAUDE.md and add size limit enforcement" accurately reflects the two primary changes in this changeset. The compression aspect is well-documented in the objectives, with CLAUDE.md reduced by 84.4%, and the size limit enforcement is directly implemented through the new GitHub Action and workflow files. The title is concise, clear, and specific enough that a teammate reviewing history would understand the core purpose of the changes without ambiguity. It doesn't cover every detail of the refactoring, but that level of depth isn't expected in a title.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch osterman/compress-claude-md

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 5f08cb8 and edd2fa6.

📒 Files selected for processing (1)
  • CLAUDE.md (1 hunks)
🧰 Additional context used
🧠 Learnings (3)
📚 Learning: 2025-10-21T15:50:22.360Z
Learnt from: CR
PR: cloudposse/atmos#0
File: CLAUDE.md:0-0
Timestamp: 2025-10-21T15:50:22.360Z
Learning: Always compile and run tests after any change; fix compilation errors immediately; use go build . && go test ./... 2>&1.

Applied to files:

  • CLAUDE.md
📚 Learning: 2025-09-23T02:30:42.362Z
Learnt from: CR
PR: cloudposse/atmos#0
File: .cursor/rules/atmos-rules.mdc:0-0
Timestamp: 2025-09-23T02:30:42.362Z
Learning: Before submitting PRs, ensure tests pass, coverage targets met, run golangci-lint, and update documentation

Applied to files:

  • CLAUDE.md
📚 Learning: 2025-09-23T02:30:42.362Z
Learnt from: CR
PR: cloudposse/atmos#0
File: .cursor/rules/atmos-rules.mdc:0-0
Timestamp: 2025-09-23T02:30:42.362Z
Learning: Applies to **/*.go : All code must pass golangci-lint checks

Applied to files:

  • CLAUDE.md
🪛 LanguageTool
CLAUDE.md

[grammar] ~35-~35: Please add a punctuation mark at the end of paragraph.
Context: ...ore/registry.go` - Multi-provider store implementations **New commands MUST use command regist...

(PUNCTUATION_PARAGRAPH_END)


[style] ~130-~130: Since ownership is already implied, this phrasing may be redundant.
Context: ...ilt packages** - New functionality gets its own package in pkg/ - **Well-tested, focu...

(PRP_OWN)


[typographical] ~164-~164: Consider using a typographic opening quote here.
Context: ...## Performance Tracking (MANDATORY) Add defer perf.Track(atmosConfig, "pkg.FuncName")() + blank line to all pu...

(EN_QUOTES)


[typographical] ~197-~197: Consider using typographic quotation marks here.
Context: ...st Skipping Conventions (MANDATORY) Use t.Skipf("reason") with clear context. CLI tests auto-bu...

(EN_QUOTES)


[style] ~263-~263: This word has been used in one of the immediately preceding sentences. Using a synonym could make your text more interesting to read, unless the repetition is intentional.
Context: ...inimum (CodeCov enforced). All features need tests. make testacc-coverage for repo...

(EN_REPEATEDWORDS_NEED)


[typographical] ~266-~266: Consider using a typographic opening quote here.
Context: ...# Environment Variables (MANDATORY) Use viper.BindEnv("ATMOS_VAR", "ATMOS_VAR", "FALLBACK") - ...

(EN_QUOTES)


[typographical] ~268-~268: In American English, use a period after an abbreviation.
Context: ... - ATMOS_ prefix required. ### Logging vs UI (MANDATORY) UI (prompts, status) → s...

(MISSING_PERIOD_AFTER_ABBREVIATION)


[style] ~305-~305: Consider using the typographical ellipsis character here instead.
Context: ...ANDATORY) ALWAYS compile after changes: go build . && go test ./.... Fix errors immediately. ### Pre-comm...

(ELLIPSIS)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
  • GitHub Check: Build (windows)
  • GitHub Check: autofix
  • GitHub Check: Run pre-commit hooks
  • GitHub Check: Analyze (go)
  • GitHub Check: Lint (golangci)
  • GitHub Check: Summary

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mergify

mergify Bot commented Oct 21, 2025

Copy link
Copy Markdown
Contributor

Warning

This PR exceeds the recommended limit of 1,000 lines.

Large PRs are difficult to review and may be rejected due to their size.

Please verify that this PR does not address multiple issues.
Consider refactoring it into smaller, more focused PRs to facilitate a smoother review process.

@mergify

mergify Bot commented Oct 21, 2025

Copy link
Copy Markdown
Contributor

Important

Cloud Posse Engineering Team Review Required

This pull request modifies files that require Cloud Posse's review. Please be patient, and a core maintainer will review your changes.

To expedite this process, reach out to us on Slack in the #pr-reviews channel.

@mergify mergify Bot added the needs-cloudposse Needs Cloud Posse assistance label Oct 21, 2025
Document mandatory patterns for codebase consistency:

**Factory & Registry Pattern:**
- Command registry (all new commands MUST use this)
- Component registry
- Store registry
- Reference to command-registry-pattern.md

**Interface-Driven Design:**
- Define interfaces for all major functionality
- Use dependency injection for testability
- Generate mocks to avoid integration tests
- Example with mockgen directive

**Package Organization:**
- Avoid utils package bloat
- Create purpose-built, focused packages
- Each package has clear responsibility
- Examples: pkg/store/, pkg/git/, pkg/pro/

**Testing Strategy:**
- Prefer unit tests with mocks over integration tests
- Use interfaces + DI for testability
- Integration tests only when necessary

File size: 8,464 chars (21% of 40k limit)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
All Product Requirement Documents must be placed in docs/prd/
with kebab-case filenames.

Examples:
- command-registry-pattern.md
- error-handling-strategy.md
- testing-strategy.md

File size: 8,690 chars (21% of 40k limit)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Changed "Factory & Registry Pattern" to "Registry Pattern" for accuracy.

Registry pattern is the correct term for the plugin-like architecture
used in command registry, component registry, and store registry.

File size: 8,677 chars (21% of 40k limit)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Document functional options pattern for avoiding functions with many
parameters (dog sledding/parameter drilling).

Pattern includes:
- Define Option func(*Config) type
- Provide option builders (WithTimeout, WithRetries)
- Constructor accepts variadic options
- Apply defaults before applying options

Benefits:
- Avoids parameter drilling through function chains
- Provides sensible defaults
- Extensible without breaking changes
- Clean, self-documenting API

File size: 9,462 chars (23% of 40k limit)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Document when and when NOT to use context.Context:

**Use context for:**
- Cancellation signals across API boundaries
- Deadlines and timeouts
- Request-scoped values (trace IDs, sparingly)

**DO NOT use context for:**
- Passing configuration (use Options pattern instead)
- Passing dependencies (use struct fields or DI)
- Avoiding proper function parameters

Includes examples of correct usage:
- IO operations and network calls
- Coordinating multiple operations with cancellation
- Context as first parameter convention

This clarifies the distinction between:
- Options pattern (for configuration)
- Context (for cancellation/deadlines only)
- Proper function parameters (for dependencies)

File size: 10,541 chars (26% of 40k limit)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Expanded Pull Requests section to emphasize CI-enforced blog post
requirement:

- PRs labeled minor/major MUST include blog post
- Filename format: website/blog/YYYY-MM-DD-feature-name.md
- Must include <!--truncate--> marker
- Tag appropriately (feature/enhancement/bugfix or contributors)
- CI will fail without blog post

This makes the existing requirement more explicit and actionable,
since it's enforced by the changelog-check workflow.

File size: 10,707 chars (26% of 40k limit)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@osterman Erik Osterman (Cloud Posse) (osterman) added the no-release Do not create a new release (wait for additional code changes) label Oct 21, 2025
@github-actions

github-actions Bot commented Oct 21, 2025 •

Copy link
Copy Markdown

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails
actions/actions/checkout 4.*.* 🟢 6.7
Details
CheckScoreReason
Maintained🟢 56 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 5
Code-Review🟢 10all changesets reviewed
Binary-Artifacts🟢 10no binaries found in the repo
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Token-Permissions⚠️ 0detected GitHub workflow tokens with excessive permissions
License🟢 10license file detected
Fuzzing⚠️ 0project is not fuzzed
Pinned-Dependencies🟢 3dependency not pinned by hash detected -- score normalized to 3
Signed-Releases⚠️ -1no releases found
Packaging⚠️ -1packaging workflow not detected
Security-Policy🟢 9security policy file detected
Branch-Protection⚠️ -1internal error: error during GetBranch(releases/v2): error during branchesHandler.query: internal error: githubv4.Query: Resource not accessible by integration
Vulnerabilities🟢 100 existing vulnerabilities detected
SAST🟢 8SAST tool detected but not run on all commits

Scanned Files

  • .github/workflows/claude.yml

@codecov

codecov Bot commented Oct 21, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.58%. Comparing base (c4a7ab7) to head (edd2fa6).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1693      +/-   ##
==========================================
+ Coverage   66.57%   66.58%   +0.01%     
==========================================
  Files         359      359              
  Lines       41780    41780              
==========================================
+ Hits        27813    27820       +7     
+ Misses      11911    11905       -6     
+ Partials     2056     2055       -1     
Flag Coverage Δ
unittests 66.58% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (2)
.github/actions/check-claude-md-size/action.yml (2)

36-42: File size calculation looks correct, but simplify the pipe.

Line 42 uses wc -c < "$FILE" | tr -d ' ' which works, but piping to tr is unnecessary. Since < redirects stdin, wc -c outputs only the count (with optional leading space). You can simplify:

-SIZE=$(wc -c < "$FILE" | tr -d ' ')
+SIZE=$(wc -c < "$FILE")

Bash arithmetic expansion on line 43 will strip whitespace automatically when doing the calculation.


75-75: Consider storing query result to reduce redundant gh calls.

Steps 2 and 3 both query for the same comment ID (lines 75 and 120). Since the comment state changes only in step 2, consider storing the ID as an output from step 2 to avoid the second query in step 3. Not critical, but cleaner.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between c4a7ab7 and 5f08cb8.

📒 Files selected for processing (4)
  • .github/actions/check-claude-md-size/README.md (1 hunks)
  • .github/actions/check-claude-md-size/action.yml (1 hunks)
  • .github/workflows/claude.yml (1 hunks)
  • CLAUDE.md (1 hunks)
🧰 Additional context used
🧠 Learnings (3)
📚 Learning: 2025-10-21T15:50:22.360Z
Learnt from: CR
PR: cloudposse/atmos#0
File: CLAUDE.md:0-0
Timestamp: 2025-10-21T15:50:22.360Z
Learning: Always compile and run tests after any change; fix compilation errors immediately; use go build . && go test ./... 2>&1.

Applied to files:

  • CLAUDE.md
📚 Learning: 2025-09-23T02:30:42.362Z
Learnt from: CR
PR: cloudposse/atmos#0
File: .cursor/rules/atmos-rules.mdc:0-0
Timestamp: 2025-09-23T02:30:42.362Z
Learning: Before submitting PRs, ensure tests pass, coverage targets met, run golangci-lint, and update documentation

Applied to files:

  • CLAUDE.md
📚 Learning: 2025-09-23T02:30:42.362Z
Learnt from: CR
PR: cloudposse/atmos#0
File: .cursor/rules/atmos-rules.mdc:0-0
Timestamp: 2025-09-23T02:30:42.362Z
Learning: Applies to **/*.go : All code must pass golangci-lint checks

Applied to files:

  • CLAUDE.md
🪛 LanguageTool
CLAUDE.md

[grammar] ~27-~27: Please add a punctuation mark at the end of paragraph.
Context: ...mponent(), terraform.output()`, store integration ## Architectural Patterns (MANDATORY) ...

(PUNCTUATION_PARAGRAPH_END)


[grammar] ~35-~35: Please add a punctuation mark at the end of paragraph.
Context: ...ore/registry.go` - Multi-provider store implementations **New commands MUST use command regist...

(PUNCTUATION_PARAGRAPH_END)


[style] ~130-~130: Since ownership is already implied, this phrasing may be redundant.
Context: ...ilt packages** - New functionality gets its own package in pkg/ - **Well-tested, focu...

(PRP_OWN)


[typographical] ~164-~164: Consider using a typographic opening quote here.
Context: ...## Performance Tracking (MANDATORY) Add defer perf.Track(atmosConfig, "pkg.FuncName")() + blank line to all pu...

(EN_QUOTES)


[typographical] ~197-~197: Consider using typographic quotation marks here.
Context: ...st Skipping Conventions (MANDATORY) Use t.Skipf("reason") with clear context. CLI tests auto-bu...

(EN_QUOTES)


[style] ~263-~263: This word has been used in one of the immediately preceding sentences. Using a synonym could make your text more interesting to read, unless the repetition is intentional.
Context: ...inimum (CodeCov enforced). All features need tests. make testacc-coverage for repo...

(EN_REPEATEDWORDS_NEED)


[typographical] ~266-~266: Consider using a typographic opening quote here.
Context: ...# Environment Variables (MANDATORY) Use viper.BindEnv("ATMOS_VAR", "ATMOS_VAR", "FALLBACK") - ...

(EN_QUOTES)


[typographical] ~268-~268: In American English, use a period after an abbreviation.
Context: ... - ATMOS_ prefix required. ### Logging vs UI (MANDATORY) UI (prompts, status) → s...

(MISSING_PERIOD_AFTER_ABBREVIATION)


[style] ~305-~305: Consider using the typographical ellipsis character here instead.
Context: ...ANDATORY) ALWAYS compile after changes: go build . && go test ./.... Fix errors immediately. ### Pre-comm...

(ELLIPSIS)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
  • GitHub Check: Build (windows)
  • GitHub Check: Build (macos)
  • GitHub Check: Run pre-commit hooks
  • GitHub Check: autofix
  • GitHub Check: Analyze (go)
  • GitHub Check: Lint (golangci)
  • GitHub Check: Summary
🔇 Additional comments (8)
.github/actions/check-claude-md-size/README.md (1)

1-62: LGTM! Clear and complete action documentation.

The README provides good coverage of inputs, outputs, behavior, and error handling with practical examples. Well-structured for users getting started with the action.

.github/actions/check-claude-md-size/action.yml (2)

144-146: Good defensive error handling on comment update.

The || { echo "..." } fallback gracefully handles the case where the comment was deleted between queries. Solid.


32-102: The review comment raises a valid concern. When using gh api with direct string parameters, gh api will escape verbatim newlines, which can cause formatting issues with multiline content.

The action currently passes COMMENT_BODY directly to gh api -X PATCH with the -f body="$COMMENT_BODY" pattern on lines 97–98 and 143. The documented working patterns for multiline content are reading from a file with -F [email protected] or from stdin using -F body=@-.

However, whether the current implementation actually breaks depends on how gh handles literal newlines in shell variable expansion. To be safe, refactor these calls to use stdin:

echo "$COMMENT_BODY" | gh api -X PATCH "/repos/${{ github.repository }}/issues/comments/$EXISTING_COMMENT" -F body=@-

This ensures multiline markdown is properly JSON-encoded and avoids escaping quirks.

.github/workflows/claude.yml (1)

1-23: LGTM! Clean, focused workflow.

The trigger is appropriately configured: runs on PR open/sync/reopen with paths filtering for CLAUDE.md, the action directory, and the workflow itself. Good self-test coverage. Uses current checkout action and passes correct inputs.

CLAUDE.md (4)

19-148: Excellent architectural refactor while preserving mandatory patterns.

The restructure successfully shifts from procedural guidance to architectural patterns and design directives. All mandatory rules (Registry Pattern, Interface-Driven Design, Options Pattern, Context Usage, Package Organization, Error Handling, Testing Strategy) are retained with clear examples. Code samples are concrete and reference-friendly.


176-197: Testing strategy clearly documented with actionable requirements.

Test isolation with cmd.NewTestKit(t), mock generation patterns, >80% coverage target, and table-driven tests are all well-specified. Strong guidance for contributors.


1-17: Project overview and essential commands concise and helpful.

Quick reference for build, test, and lint commands is practical. Architecture section provides good mental model without overexplaining.


231-250: Documentation and PR requirements are clear.

Blog post enforcement for minor/major PRs (lines 240–244) and PRD placement requirements (lines 234–235) provide good structure. The cross-reference to docs/prd/ and docs/developing-atmos-commands.md is helpful.

Comment thread CLAUDE.md Resolved
Comment thread CLAUDE.md Resolved
@aknysh
Andriy Knysh (aknysh) merged commit be58d99 into main Oct 22, 2025
@aknysh
Andriy Knysh (aknysh) deleted the osterman/compress-claude-md branch October 22, 2025 01:52
@mergify mergify Bot removed the needs-cloudposse Needs Cloud Posse assistance label Oct 22, 2025
@github-actions

Copy link
Copy Markdown

These changes were released in v1.196.0-rc.0.

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

Labels

no-release Do not create a new release (wait for additional code changes) size/xl Extra large size PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants