CodeRabbit logoCodeRabbit logo
AgentEnterpriseCustomersPricingBlog
Resources
  • Docs
  • Trust Center
  • Contact Us
  • FAQ
  • Reports & Guides
Log InGet a free trial
CodeRabbit logoCodeRabbit logo

Products

AgentPull Request ReviewsIDE ReviewsCLI ReviewsPlanOSS

Navigation

About UsFeaturesFAQSystem StatusCareersDPAStartup ProgramVulnerability Disclosure

Resources

BlogDocsChangelogCase StudiesTrust CenterBrand GuidelinesReports & Guides

Contact

SupportSalesPricingPartnerships

By signing up you agree to our Terms of Use and authorize CodeRabbit to provide occasional updates about products and solutions. You understand that you can opt out at any time and that your data will be handled in accordance with CodeRabbit Privacy Policy

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

CodeRabbit, Inc. © 2026

CodeRabbit logoCodeRabbit logo

Products

AgentPull Request ReviewsIDE ReviewsCLI ReviewsPlanOSS

Navigation

About UsFeaturesFAQSystem StatusCareersDPAStartup ProgramVulnerability Disclosure

Resources

BlogDocsChangelogCase StudiesTrust CenterBrand GuidelinesReports & Guides

Contact

SupportSalesPricingPartnerships

By signing up you agree to our Terms of Use and authorize CodeRabbit to provide occasional updates about products and solutions. You understand that you can opt out at any time and that your data will be handled in accordance with CodeRabbit Privacy Policy

discord iconx iconlinkedin iconrss icon

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

by
Atsushi Nakatsugawa

Atsushi Nakatsugawa

July 02, 2025

1 min read

July 02, 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

A major walkthrough upgrade: Explainable PRs and smarter reviewer routing

A major walkthrough upgrade: Explainable PRs and smarter reviewer routing

CodeRabbit's PR walkthrough now organizes changes into logical layers and routes reviews to the right people automatically, so you spend less time reconstructing what happened and more time actually reviewing it.

Now the agent moves first

Now the agent moves first

CodeRabbit Agent for Slack now fires on real events. Datadog alerts, PagerDuty incidents, channel messages. Replies in thread before anyone types a word.

Nobody is going to read the code

Nobody is going to read the code

AI writes more code than humans can review. Logic errors are up 75%. Security issues nearly triple. Here's what replaces human review.

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