Skip to content

docs(claude-md): generalize helpers-after-implementation rule - #485

Merged
chiptus merged 1 commit into
mainfrom
claude/agent-helper-ordering-w8eanv
Sep 1, 2026
Merged

docs(claude-md): generalize helpers-after-implementation rule#485
chiptus merged 1 commit into
mainfrom
claude/agent-helper-ordering-w8eanv

Conversation

@chiptus

@chiptus chiptus commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Broadens the "helpers after main logic" rule from React components only to all files (components, tests, utils), explains the rationale, and adds the hoisting note — agents were defaulting to helpers-first outside .tsx components since the rule had no anchor there.

No ## Verification section: this is a docs-only change to CLAUDE.md with no runtime behavior to exercise.


Generated by Claude Code

Copilot AI lite review requested due to automatic review settings September 1, 2026 11:23
@vercel

vercel Bot commented Sep 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
upline Ready Ready Preview Sep 1, 2026 11:24am UTC

Copilot AI 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.

🟢 Approval recommended

It’s a straightforward documentation-only clarification with no behavioral or structural code impact.

Pull request overview

Updates the repository’s agent/developer guidance in CLAUDE.md to generalize the “helpers after main logic” ordering rule beyond React components, making file structure expectations consistent across components, tests, and utilities.

Changes:

  • Renamed the guideline heading to cover all files (not just React components).
  • Clarified the preferred ordering: primary logic first, helper functions after.
  • Added rationale and a hoisting note to justify using function declarations for helpers.
File summaries
File Description
CLAUDE.md Generalizes and clarifies the “implementation first, helpers after” file-structure convention for the whole codebase.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

Playwright test results

passed  65 passed

Details

stats  65 tests across 21 suites
duration  1 minute, 30 seconds
commit  af3db51

@chiptus
chiptus merged commit c805ba6 into main Sep 1, 2026
8 checks passed
@chiptus
chiptus deleted the claude/agent-helper-ordering-w8eanv branch September 1, 2026 11:44
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.

3 participants