> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/kdo/repository-scans/start-a-repository-scan.md).

# リポジトリスキャンを開始する

{% hint style="info" %}
リポジトリスキャンは **早期アクセス版です** で、まもなく展開されます。まだ **リポジトリ** ［Code Quality］の下にタブが表示されていない場合は、チャットでお問い合わせください。
{% endhint %}

リポジトリスキャンを有効にすると、次の対象のフルスキャンが開始されます: **既存のコード** リポジトリ内のすべて、つまり進行中の変更だけでなく、すでにマージ済みのものも含まれます。これにより、カテゴリスコア、問題一覧、散布図が利用可能になります。 [リポジトリスキャン結果を理解する](/docs/docs-ja/kdo/repository-scans/understand-repository-scan-results.md) で、出力の読み方をご確認ください。

すでに実行中 [PRチェック](/docs/docs-ja/kdo/code-quality-setup.md) 新しいコードに対して？この2つは独立して動作し、併用するように設計されています。

## 前提条件

始める前に、次の点を確認してください:

* **コード品質を管理する権限があること** Aikidoワークスペース内で。
* **リポジトリが接続され、アクティブであること** Aikido内で。 [ソースコードを接続する](/docs/docs-ja/kdosukyan/connect-your-source-code.md).
* **ウォレットに十分なクレジットがあること** 見積もり費用をまかなえること。確認モーダル内からチャージできます。 [ウォレットとクレジット](/docs/docs-ja/miscellaneous-info/wallet-and-credits.md).

リポジトリスキャンはローカルスキャンアカウントでは利用できません。

## リポジトリのスキャンを有効にする

{% stepper %}
{% step %}

### ［Code Quality Repositories］タブを開く

に移動し **コード品質** をサイドバーで開き、 **リポジトリ** タブを開きます。接続済みのすべてのリポジトリが表示されます。すでに追跡されているリポジトリにはカテゴリスコアが表示され、未追跡のリポジトリには **追跡を開始**.

<figure><img src="/files/5405102fa3cb50ea7a8de63f633625cae57bd48c" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### 確認モーダルを開く

スキャンしたいリポジトリを見つけて、 **追跡を開始**.
{% endstep %}

{% step %}

### 費用を確認して開始する

Aikidoはコミットする前に必要なクレジット費用を計算します。合計を確認し、次に **スキャンを開始**をクリックしてください。Aikidoはウォレットからクレジットを差し引き、最初のフルスキャンを直ちに開始します。

残高が足りない場合は、 **クレジットを追加** をモーダル内でクリックして、確認前にチャージしてください。

<div data-with-frame="true"><figure><img src="/files/8d4e530afb32d1410dc13d6d2fa73bb3fd5c68a2" alt="Start Code Quality Scan modal showing yearly credit cost"><figcaption></figcaption></figure></div>
{% endstep %}
{% endstepper %}

スキャンが開始されたら、 **リポジトリ** タブからリポジトリを開き、進捗を追跡し、結果が出次第確認してください。 [リポジトリスキャン結果を理解する](/docs/docs-ja/kdo/repository-scans/understand-repository-scan-results.md).

## 価格とクレジット

リポジトリスキャンは、 **リポジトリごとの1年契約**として提供され、 [Aikido クレジット](/docs/docs-ja/miscellaneous-info/wallet-and-credits.md)。モーダルには合計が **Code Quality スキャン（年額）**.

お支払いには、そのリポジトリに対する1年間の継続スキャンが含まれます。Aikidoは12か月を通じて増分再スキャンを行い、リポジトリの検出結果を最新の状態に保ちます。1年が終了したら、スキャンを継続するために再度お支払いが必要です。

費用はリポジトリのサイズに応じて変動します。リポジトリをAikidoに接続し、 **Code Quality スキャンを開始** モーダルを開いて、コミット前にリポジトリの正確なクレジット合計を確認してください。

### 1年が終了した後

スキャンは有効化した日から1年間継続して実行されます。その1年が終わると、リポジトリの追跡を継続するには再度料金が発生します。費用は現在のファイル数に基づいて再計算されるため、新しい合計額には、最初にスキャンを有効にしてからリポジトリがどれだけ増減したかが反映されます。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/docs/docs-ja/kdo/repository-scans/start-a-repository-scan.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
