Conversation
Update AUTO:core-scripts section with correct line counts: - sw-intelligence.sh: 1547 → 1523 - sw-pipeline.sh: 2944 → 2883 Fixes #190 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
📝 WalkthroughWalkthroughEleven new documentation files have been added to the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🧹 Nitpick comments (1)
scripts/skills/documentation.md (1)
8-8: Avoid absolute deprecation guidance.Line 8 suggests always removing outdated info instead of deprecating it. For user-facing migrations, explicit deprecation windows are often needed; consider softening this wording.
Suggested wording tweak
-- Remove outdated information rather than marking it deprecated +- Remove outdated information when safe; use clear deprecation notices when users need migration time🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@scripts/skills/documentation.md` at line 8, The sentence on line 8 that currently advises to "Remove outdated information rather than marking it deprecated" should be softened: change the guidance to recommend considering a deprecation window for user-facing changes (e.g., prefer deprecating with clear timelines and migration instructions for consumers, and only remove content after the deprecation period), and provide an example or optional checklist for when immediate removal is acceptable versus when a deprecation notice is required; update the single-line wording to reflect this nuance so readers understand to balance removal vs. explicit deprecation.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@scripts/skills/api-design.md`:
- Line 7: Update the status code list string "Return appropriate status codes:
200 OK, 201 Created, 400 Bad Request, 404 Not Found, 422 Unprocessable" to use
the canonical reason phrase by replacing "422 Unprocessable" with "422
Unprocessable Entity" so the line reads "... 404 Not Found, 422 Unprocessable
Entity".
In `@scripts/skills/frontend-design.md`:
- Line 32: Replace the shorthand “> 300ms” in the phrase "Show loading
indicators for operations > 300ms" with plain-language wording such as "over 300
ms" (or "greater than 300 ms") so the line reads "Show loading indicators for
operations over 300 ms"; keep the rest of the sentence unchanged and ensure a
space between the number and "ms".
In `@scripts/skills/testing-strategy.md`:
- Around line 1-37: The PR contains a docs file
(scripts/skills/testing-strategy.md) unrelated to the stated objective of
updating AUTO line counts in .claude/CLAUDE.md for sw-intelligence.sh and
sw-pipeline.sh; either push the correct diff with the updates to
.claude/CLAUDE.md and the two scripts (sw-intelligence.sh, sw-pipeline.sh) or
update the PR title/description to reflect that you're adding skill-guide docs;
verify the branch contains the intended changes by checking for modifications to
.claude/CLAUDE.md and the two script files and repush the proper commit set
before requesting review.
---
Nitpick comments:
In `@scripts/skills/documentation.md`:
- Line 8: The sentence on line 8 that currently advises to "Remove outdated
information rather than marking it deprecated" should be softened: change the
guidance to recommend considering a deprecation window for user-facing changes
(e.g., prefer deprecating with clear timelines and migration instructions for
consumers, and only remove content after the deprecation period), and provide an
example or optional checklist for when immediate removal is acceptable versus
when a deprecation notice is required; update the single-line wording to reflect
this nuance so readers understand to balance removal vs. explicit deprecation.
ℹ️ Review info
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (11)
scripts/skills/api-design.mdscripts/skills/brainstorming.mdscripts/skills/data-pipeline.mdscripts/skills/documentation.mdscripts/skills/frontend-design.mdscripts/skills/performance.mdscripts/skills/product-thinking.mdscripts/skills/security-audit.mdscripts/skills/systematic-debugging.mdscripts/skills/testing-strategy.mdscripts/skills/two-stage-review.md
|
|
||
| ### RESTful Conventions | ||
| - Use nouns for resources, HTTP verbs for actions (GET /users, POST /users, DELETE /users/:id) | ||
| - Return appropriate status codes: 200 OK, 201 Created, 400 Bad Request, 404 Not Found, 422 Unprocessable |
There was a problem hiding this comment.
Use the canonical HTTP 422 reason phrase.
At Line 7, prefer 422 Unprocessable Entity for accuracy and consistency with common API documentation.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@scripts/skills/api-design.md` at line 7, Update the status code list string
"Return appropriate status codes: 200 OK, 201 Created, 400 Bad Request, 404 Not
Found, 422 Unprocessable" to use the canonical reason phrase by replacing "422
Unprocessable" with "422 Unprocessable Entity" so the line reads "... 404 Not
Found, 422 Unprocessable Entity".
|
|
||
| ### User Experience | ||
| - Provide immediate feedback for user actions | ||
| - Show loading indicators for operations > 300ms |
There was a problem hiding this comment.
Prefer plain-language threshold phrasing for readability.
Line 32 (> 300ms) is understandable, but docs read cleaner with plain text (e.g., “over 300 ms”).
Suggested wording tweak
-- Show loading indicators for operations > 300ms
+- Show loading indicators for operations that take over 300 ms📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| - Show loading indicators for operations > 300ms | |
| - Show loading indicators for operations that take over 300 ms |
🧰 Tools
🪛 LanguageTool
[grammar] ~32-~32: Ensure spelling is correct
Context: ...how loading indicators for operations > 300ms - Use optimistic updates where safe - Pres...
(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@scripts/skills/frontend-design.md` at line 32, Replace the shorthand “>
300ms” in the phrase "Show loading indicators for operations > 300ms" with
plain-language wording such as "over 300 ms" (or "greater than 300 ms") so the
line reads "Show loading indicators for operations over 300 ms"; keep the rest
of the sentence unchanged and ensure a space between the number and "ms".
| ## Testing Strategy Expertise | ||
|
|
||
| Apply these testing patterns: | ||
|
|
||
| ### Test Pyramid | ||
| - **Unit tests** (70%): Test individual functions/methods in isolation | ||
| - **Integration tests** (20%): Test component interactions and boundaries | ||
| - **E2E tests** (10%): Test critical user flows end-to-end | ||
|
|
||
| ### What to Test | ||
| - Happy path: the expected successful flow | ||
| - Error cases: what happens when things go wrong? | ||
| - Edge cases: empty inputs, maximum values, concurrent access | ||
| - Boundary conditions: off-by-one, empty collections, null/undefined | ||
|
|
||
| ### Test Quality | ||
| - Each test should verify ONE behavior | ||
| - Test names should describe the expected behavior, not the implementation | ||
| - Tests should be independent — no shared mutable state between tests | ||
| - Tests should be deterministic — same result every run | ||
|
|
||
| ### Coverage Strategy | ||
| - Aim for meaningful coverage, not 100% line coverage | ||
| - Focus coverage on business logic and error handling | ||
| - Don't test framework code or simple getters/setters | ||
| - Cover the branches, not just the lines | ||
|
|
||
| ### Mocking Guidelines | ||
| - Mock external dependencies (APIs, databases, file system) | ||
| - Don't mock the code under test | ||
| - Use realistic test data — edge cases reveal bugs | ||
| - Verify mock interactions when the side effect IS the behavior | ||
|
|
||
| ### Regression Testing | ||
| - Write a failing test FIRST that reproduces the bug | ||
| - Then fix the bug and verify the test passes | ||
| - Keep regression tests — they prevent the bug from recurring |
There was a problem hiding this comment.
PR scope appears mismatched with the stated objective.
These additions are skill-guide docs, but the objective/issue for this PR is updating stale AUTO line counts in .claude/CLAUDE.md (sw-intelligence.sh, sw-pipeline.sh). Please verify the correct diff/branch was pushed, or update PR title/objectives to match this content.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@scripts/skills/testing-strategy.md` around lines 1 - 37, The PR contains a
docs file (scripts/skills/testing-strategy.md) unrelated to the stated objective
of updating AUTO line counts in .claude/CLAUDE.md for sw-intelligence.sh and
sw-pipeline.sh; either push the correct diff with the updates to
.claude/CLAUDE.md and the two scripts (sw-intelligence.sh, sw-pipeline.sh) or
update the PR title/description to reflect that you're adding skill-guide docs;
verify the branch contains the intended changes by checking for modifications to
.claude/CLAUDE.md and the two script files and repush the proper commit set
before requesting review.
Summary
AUTO:core-scriptssection in.claude/CLAUDE.mdwith correct line countssw-intelligence.sh: 1547 → 1523 (actual)sw-pipeline.sh: 2944 → 2883 (actual)Test plan
wc -lshipwright docs checkconfirms core-scripts section is freshFixes #190
🤖 Generated with Claude Code
Summary by CodeRabbit
Documentation
Chores
Note: These changes are internal team resources with no visible impact to end-users.