Skip to content

docs: Add and simplify CLAUDE.md files for better AI assistant guidance#672

Merged
yamadashy merged 3 commits intomainfrom
chore/claude
Jun 18, 2025
Merged

docs: Add and simplify CLAUDE.md files for better AI assistant guidance#672
yamadashy merged 3 commits intomainfrom
chore/claude

Conversation

@yamadashy
Copy link
Owner

Summary

This PR restructures and adds CLAUDE.md files to provide better guidance for AI assistants working on different parts of the Repomix codebase:

  • Simplified main CLAUDE.md: Streamlined to focus on essential project structure and coding guidelines
  • Added browser/CLAUDE.md: Browser extension-specific guidelines covering Manifest V3, internationalization, and cross-browser development
  • Added website/CLAUDE.md: Website-specific guidelines for VitePress documentation and multi-language support
  • Simplified website/CLAUDE.md: Reduced to core internationalization guidelines to minimize maintenance overhead

Changes

Main CLAUDE.md

  • Removed extensive development guide details that were hard to maintain
  • Kept essential project structure overview and coding standards
  • Added browser/ directory to project structure

Browser Extension Guidelines (browser/CLAUDE.md)

  • Project overview and directory structure
  • Development commands and internationalization (11 languages)
  • Manifest V3 compliance and cross-browser support guidelines

Website Guidelines (website/CLAUDE.md)

  • VitePress + Hono full-stack architecture overview
  • Multi-language support (12 languages) and translation workflow
  • Navigation configuration and new language addition process
  • Simplified to reduce maintenance burden

Benefits

  • Better AI assistance: Each directory now has targeted guidance for its specific technologies and patterns
  • Reduced maintenance: Focused on stable, high-level guidelines rather than implementation details
  • Improved consistency: Clear internationalization workflows for both browser extension and website
  • Easier onboarding: Structure overview helps new contributors understand the codebase organization

🤖 Generated with Claude Code

yamadashy and others added 3 commits June 19, 2025 00:12
Streamlined CLAUDE.md to focus on essential project structure and guidelines,
removing detailed development guide to improve maintainability and readability.
Added separate CLAUDE.md for website directory with specific guidance.

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

Co-Authored-By: Claude <noreply@anthropic.com>
Created comprehensive guidelines for browser extension development including:
- Project structure and key features overview
- Multi-language internationalization (11 languages)
- Manifest V3 compliance and cross-browser support
- Development commands and testing procedures
- Store deployment considerations

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

Co-Authored-By: Claude <noreply@anthropic.com>
Streamlined website documentation to include only core information:
- Project overview with basic architecture
- Multi-language support (12 languages)
- Translation workflow and new language addition process
- Navigation configuration basics

Removed detailed technical specifications, development commands, and
implementation details to reduce maintenance overhead while preserving
essential guidance for internationalization and configuration management.

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

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 18, 2025 15:22
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 18, 2025

Walkthrough

The documentation for the Repomix project was restructured and expanded. The main CLAUDE.md was rewritten to provide a concise project overview, directory structure, and streamlined guidelines. New CLAUDE.md files were added for the browser extension and website subprojects, each detailing their respective structures, development workflows, and localization processes.

Changes

File(s) Change Summary
CLAUDE.md Replaced detailed, task-oriented guide with a concise project overview, directory structure, coding and contribution guidelines, and brief DI/mocking notes. Removed extensive procedural content.
browser/CLAUDE.md Added new documentation detailing the browser extension’s overview, directory structure, development commands, and internationalization workflow.
website/CLAUDE.md Added new documentation describing the website’s structure, supported languages, navigation config, and step-by-step localization instructions.

Sequence Diagram(s)

sequenceDiagram
    participant Contributor
    participant CLAUDE.md
    participant browser/CLAUDE.md
    participant website/CLAUDE.md

    Contributor->>CLAUDE.md: Read project overview, guidelines, and structure
    Contributor->>browser/CLAUDE.md: Access extension-specific build and i18n instructions
    Contributor->>website/CLAUDE.md: Follow website localization and config procedures
Loading
✨ Finishing Touches
🧪 Generate Unit Tests
  • Create PR with Unit Tests
  • Post Copyable Unit Tests in Comment
  • Commit Unit Tests in branch chore/claude

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai auto-generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request restructures and simplifies the CLAUDE.md documentation to provide more targeted guidance for AI assistance across different parts of the Repomix project.

  • Simplified the main CLAUDE.md to focus on essential project structure and coding guidelines
  • Added browser/CLAUDE.md with guidelines for Manifest V3 and internationalization
  • Added website/CLAUDE.md with clear navigation and new language configuration instructions

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
website/CLAUDE.md Introduces documentation for website navigation and multi-language support
browser/CLAUDE.md Provides guidelines for browser extension development and internationalization
CLAUDE.md Restructures overall project guidance and coding standards for AI assistants
Comments suppressed due to low confidence (1)

website/CLAUDE.md:16

  • The file name 'configShard.ts' appears ambiguous; please verify if it is intended or should be renamed to 'configShared.ts' for clarity.
3. Shared configurations are in `configShard.ts`

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Summary of Changes

Hello @yamadashy, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refines the project's AI assistant guidance by decentralizing and streamlining documentation. It simplifies the main CLAUDE.md to cover core project aspects, while introducing new, specialized CLAUDE.md files within the browser/ and website/ directories. This change aims to provide more targeted and maintainable instructions for AI assistants, enhancing their understanding of specific codebase areas and reducing overall documentation maintenance overhead.

Highlights

  • Documentation Restructuring: The primary CLAUDE.md file has been significantly simplified, removing extensive development details and focusing on high-level project structure, coding standards, and contribution guidelines.
  • Specialized AI Guidance: Two new CLAUDE.md files have been introduced: browser/CLAUDE.md for browser extension-specific guidance (Manifest V3, internationalization, cross-browser development) and website/CLAUDE.md for website-specific guidelines (VitePress, Hono, multi-language support).
  • Improved Internationalization Clarity: Dedicated sections in the new browser/CLAUDE.md and website/CLAUDE.md files provide clear workflows and guidelines for managing and adding new languages for both the browser extension (11 languages) and the website (12 languages).
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@codecov
Copy link

codecov bot commented Jun 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.41%. Comparing base (6681df0) to head (2733141).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #672   +/-   ##
=======================================
  Coverage   90.41%   90.41%           
=======================================
  Files          99       99           
  Lines        5529     5529           
  Branches     1180     1180           
=======================================
  Hits         4999     4999           
  Misses        530      530           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cloudflare-workers-and-pages
Copy link

Deploying repomix with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2733141
Status: ✅  Deploy successful!
Preview URL: https://ee0a74ce.repomix.pages.dev
Branch Preview URL: https://chore-claude.repomix.pages.dev

View logs

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This PR restructures and simplifies the CLAUDE.md files, providing clearer guidance for AI assistants. The changes focus on stable, high-level guidelines, improving maintainability. The review suggests minor clarifications to enhance consistency and accuracy.

@yamadashy yamadashy merged commit e4fe507 into main Jun 18, 2025
70 of 71 checks passed
@yamadashy yamadashy deleted the chore/claude branch June 18, 2025 15:24
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (8)
CLAUDE.md (3)

5-9: Project Structure Clarity
The overview and “refer to” pointers are clear. For improved consistency, consider hyperlinking back to the core docs (e.g., [README.md](README.md), [CONTRIBUTING.md](CONTRIBUTING.md)).


47-56: Bullet Punctuation Consistency
Some guideline items end with a period, others don’t. For a uniform style, either add terminal periods to all bullets or remove them from the ones that have them.


72-75: Add missing period
The line

- Description must start with a capital letter

should end with a period to match the other bullets.

browser/CLAUDE.md (3)

1-4: Overview Introduction
The header and intro are concise. Consider adding a link back to the root CLAUDE.md (e.g., [Core CLAUDE.md](../CLAUDE.md)) to help orient readers.


28-34: Command Documentation
The listed npm scripts cover all workflows. For clarity, align the inline comments (e.g., note that npm run lint also performs type-checking) or consider a tabular format.


42-47: Improve step phrasing and punctuation

  1. Change “Create directory in …” to “Create a directory in …”.
  2. Add a terminal period to each numbered step for consistency.
website/CLAUDE.md (2)

12-19: Navigation Steps Punctuation & Filename Check

  • Add terminal periods to each numbered item.
  • Please verify that the shared config filename is correct: is it configShard.ts or should it be configShared.ts?

21-33: Consistent Numbering Format
Append periods to all steps in the “Adding New Languages” list to maintain a uniform style.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6681df0 and 2733141.

📒 Files selected for processing (3)
  • CLAUDE.md (2 hunks)
  • browser/CLAUDE.md (1 hunks)
  • website/CLAUDE.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
browser/CLAUDE.md

[uncategorized] ~42-~42: The preposition ‘to’ seems more likely in this position.
Context: ...dding New Languages 1. Create directory in app/_locales/[language_code]/ 2. Add ...

(AI_HYDRA_LEO_REPLACE_IN_TO)

website/CLAUDE.md

[uncategorized] ~8-~8: A comma might be missing here.
Context: ...German (de), French (fr), Spanish (es), Portuguese Brazilian (pt-br), Indonesian (id), Vie...

(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)

CLAUDE.md

[uncategorized] ~75-~75: A period might be missing here.
Context: ...- Description must start with a capital letter ## Pull Request Guidelines - All pull ...

(AI_EN_LECTOR_MISSING_PUNCTUATION_PERIOD)


[uncategorized] ~110-~110: Possible missing preposition found.
Context: ...ble ## Generate Comprehensive Output - Include all content without abbreviation, unles...

(AI_HYDRA_LEO_MISSING_TO)

⏰ Context from checks skipped due to timeout of 90000ms (16)
  • GitHub Check: Build and run (macos-latest, 22.x)
  • GitHub Check: Test (windows-latest, 23.x)
  • GitHub Check: Test (windows-latest, 20.x)
  • GitHub Check: Build and run (windows-latest, 24.x)
  • GitHub Check: Build and run (ubuntu-latest, 18.0.0)
  • GitHub Check: Build and run (macos-latest, 18.x)
  • GitHub Check: Test (ubuntu-latest, 19.x)
  • GitHub Check: Build and run (macos-latest, 18.0.0)
  • GitHub Check: Build and run (windows-latest, 20.x)
  • GitHub Check: Build and run (ubuntu-latest, 18.x)
  • GitHub Check: Build and run (windows-latest, 18.x)
  • GitHub Check: Build and run (windows-latest, 22.x)
  • GitHub Check: Build and run (windows-latest, 23.x)
  • GitHub Check: Build and run (windows-latest, 19.x)
  • GitHub Check: Build and run (ubuntu-latest, 19.x)
  • GitHub Check: Lint TypeScript
🔇 Additional comments (5)
CLAUDE.md (1)

17-23: Directory Tree Completeness
The top-level tree correctly lists browser/, src/, tests/, and website/. This matches the project layout.

browser/CLAUDE.md (2)

11-24: Directory Structure Accuracy
The tree accurately reflects the extension’s file layout, including _locales/ for translations and the built dist/ folder.


38-40: Supported Languages List
All 11 locales are correctly enumerated and formatted.

website/CLAUDE.md (2)

1-5: Overview Accuracy
The summary of the VitePress/Hono architecture and multilingual support is clear and complete.


7-9: Language Support Clarity
The list of 12 languages is comprehensive and uses consistent code notation.

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.

2 participants