> 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).
* **ウォレットに十分なクレジットがあること** 見積もり金額をまかなえること。確認モーダル内からチャージできます。参照： [Wallet & Credits](/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.
