CodeRabbit logoCodeRabbit logo
Issue plannerEnterpriseCustomersPricingBlog
Resources
  • Docs
  • Trust Center
  • Contact Us
  • FAQ
  • Whitepapers
Log InGet a free trial
CodeRabbit logoCodeRabbit logo

Products

Pull Request ReviewsIssue plannerIDE ReviewsCLI Reviews

Navigation

About UsFeaturesFAQSystem StatusCareersDPAStartup ProgramVulnerability Disclosure

Resources

BlogDocsChangelogCase StudiesTrust CenterBrand GuidelinesWhitepapers

Contact

SupportSalesPricingPartnerships

By signing up you agree to our Terms of Use and Privacy Policy

discord iconx iconlinkedin iconrss icon
footer-logo shape
Terms of Service Privacy Policy

CodeRabbit Inc © 2026

CodeRabbit logoCodeRabbit logo

Products

Pull Request ReviewsIssue plannerIDE ReviewsCLI Reviews

Navigation

About UsFeaturesFAQSystem StatusCareersDPAStartup ProgramVulnerability Disclosure

Resources

BlogDocsChangelogCase StudiesTrust CenterBrand GuidelinesWhitepapers

Contact

SupportSalesPricingPartnerships

By signing up you agree to our Terms of Use and Privacy Policy

discord iconx iconlinkedin iconrss icon

Code Guidelines: あなたのコーディング規約をCodeRabbitに取り込もう

by
Atsushi Nakatsugawa

Atsushi Nakatsugawa

July 10, 2025

1 min read

July 10, 2025

1 min read

  • Code Guidelinesの使い方
  • なぜ重要なのか
  • 今後の展開は?
Back to blog
Cover image

Share

https://victorious-bubble-f69a016683.media.strapiapp.com/Reddit_feecae8a6d.pnghttps://victorious-bubble-f69a016683.media.strapiapp.com/X_721afca608.pnghttps://victorious-bubble-f69a016683.media.strapiapp.com/Linked_In_a3d8c65f20.png

Cut code review time & bugs by 50%

Most installed AI app on GitHub and GitLab

Free 14-day trial

Get Started

Catch the latest, right in your inbox.

Add us your feed.RSS feed icon
newsletter decoration

Catch the latest, right in your inbox.

Add us your feed.RSS feed icon

Keep reading

Article Card ImageArticle Card ImageArticle Card ImageArticle Card Image

Developers are dead? Long live developers.

Predictions about the end of programming are nothing new. Every few years, someone confidently announces that this time developers are truly finished. If you listened to these self-proclaimed Nostradamuses, devs were previously set to be replaced by ...

Article Card ImageArticle Card ImageArticle Card ImageArticle Card Image

Misalignment: The hidden cost of AI coding agents isn't from AI at all

TL;DR: The real cost of AI agents isn’t tokens or tools; it’s misalignment that shows up as rework, slop, and slowed teams. The conversation everyone is having (and why it misses the point) Most conversations about AI coding agents sound like a fant...

Article Card ImageArticle Card ImageArticle Card ImageArticle Card Image

How to effectively plan issues on Linear using CodeRabbit Issue Planner

There's a gap between a ticket and meaningful code. Your ticket says, "Add dark mode support." Great, but what does that actually mean in code? Which files need changes? What patterns does the codebase already use for theming, and are there shared ut...

Get
Started in
2 clicks.

No credit card needed

Your browser does not support the video.
Install in VS Code
Your browser does not support the video.

Code Guidelines: Bring your coding rules to CodeRabbitの意訳です。

Cursorや他のAIコーディングツール(使ったことがない人はいないのでは?)を使っている、あるいは試したことがあるなら、その欠点にも気づいているかもしれません。新しいファイルを作成するたびにプロジェクト構成の説明を繰り返さなければならなかったり、UIコンポーネントにshadcn/uiを使っている場合だったり、ビルド時に先にバックエンドの依存コンポーネントをビルドしなければならなかったりと、何かと面倒がつきまといます。

CursorやWindsurf、Copilot、その他のAIコーディングエージェントは、再利用可能かつスコープ付きの指示を各リクエスト時や必要に応じて読み取れることで、こうした問題に対応しました。これは賢明な判断です。

Code Guidelinesの使い方

CodeRabbitは、以下のコーディングルールファイルを自動的に検出します。

  • Cursor: .cursorrules

  • GitHub Copilot: .github/copilot-instructions.md

  • Cline: /.clinerules/*

  • Windsurf: /.windsurfrules

  • Claude: /CLAUDE.md

  • その他にも対応しています

Code Guidelinesを使えば、これらのルールがすべてのプルリクエスト(PR)レビュー時のコンテキストとして使用されます。

さらに、独自のルールを設定ファイルとして読み込むことも可能です。たとえば docs/STANDARDS.md や team/code-style.txt にガイドラインが記載されている場合、そのパターンを指定するだけでCodeRabbitが自動的に読み取ります。

なぜ重要なのか

この仕組みは非常に大きな意味を持ちます。第一に、AIコーディングエージェントで設定したルールをそのままCodeRabbitでも使えるようになるということです。つまり、コンテキストの切り替えが不要になりますし、同じスタンダードを2度説明する必要もなくなります。

また、CodeRabbitに対して、どのようにPRレビューを行ってほしいか、どのベストプラクティスに従ってほしいかを明確に指定できるようになります。CursorやGitHubなどで定義したガイドラインをCodeRabbitでも活用できるのです。

例えば、以下のようなメリットが挙げられます。

  • スタイルやフォーマットの一貫性を強制できる .cursorrules に「関数はcamelCase、コンポーネントはPascalCase」と書かれていれば、CodeRabbitはレビュー時に違反箇所を指摘します。

  • アーキテクチャパターンの維持が可能になる 好きなファイル構成、モジュールの境界、依存関係ルールなどを一度定義すれば、CodeRabbitはすべてのPRがそれに従っているか確認します。

  • チーム独自のスタンダードを適用できる 例えば「必ずearly returnを使う」「継承より合成を優先する」といったルールも、レビューの一部としてチェックできます。

今後の展開は?

CodeRabbitが優れたPRレビューを行える理由は、強力なコンテキストエンジニアリングにあります。Code Guidelinesは、そのコンテキストの質をさらに高める機能です。今後の展開に関してヒントをひとつだけ言うなら、「コンテキストこそが王者」です。ぜひ今後のアップデートにもご注目ください。

まだCodeRabbitを試していないなら、今が絶好のチャンスです。 無料で始める ことで、コードレビューにかかる時間もバグも半減させましょう。