> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloudthinker.io/llms.txt
> Use this file to discover all available pages before exploring further.

# CloudThinker Language

> @agent #tool 構文のリファレンス: エージェントメンション、ツールタグ、コンテキスト修飾子、すべてのエージェントのプロンプトパターン

CloudThinker Language は、チャット、[Slack](/ja/guide/slack-integration)、自動化のすべてで同一に機能する構造化プロンプト構文です。エージェントをメンションし、欲しい出力をタグ付けして、自然な言葉で指示を書くだけです。

## 構文

すべてのプロンプトは 1 つの標準形式に従います:

```text theme={null}
@agent #tool instruction
```

| コンポーネント       | 必須  | 説明                                                        |
| ------------- | --- | --------------------------------------------------------- |
| `@agent`      | はい  | 特定のエージェントにリクエストをルーティングします。クロスドメインの作業では複数のエージェントをメンションします。 |
| `#tool`       | いいえ | 出力形式または機能。メンションの直後に配置し、複数の出力にはタグを組み合わせます。                 |
| `instruction` | はい  | 自分の言葉で何を求めるか — スコープ、期間、閾値、制約をインラインで含めます。                  |

## エージェントメンション

| メンション     | ロール              | 得意な作業                       |
| --------- | ---------------- | --------------------------- |
| `@alex`   | クラウドエンジニア        | コスト分析、リソース最適化、マルチクラウドインフラ   |
| `@oliver` | セキュリティエンジニア      | 監査、脆弱性スキャン、IAM、コンプライアンス     |
| `@tony`   | データベースエンジニア      | クエリ最適化、パフォーマンスチューニング、バックアップ |
| `@kai`    | Kubernetes エンジニア | クラスター管理、ポッド最適化、スケーリング       |
| `@anna`   | ゼネラルマネージャー       | マルチエージェント調整、エグゼクティブレポート     |

各エージェントの完全な機能については [エージェントリファレンス](/ja/guide/agents) をご覧ください。

## ツールタグ

| タグ           | 出力                                 | 例                                                    |
| ------------ | ---------------------------------- | ---------------------------------------------------- |
| `#dashboard` | 監視とプレゼンテーション用のインタラクティブなビジュアライゼーション | `@alex #dashboard monthly cost trends with forecast` |
| `#report`    | 発見事項と証拠を含む詳細な分析ドキュメント              | `@oliver #report SOC 2 compliance assessment`        |
| `#recommend` | 実装手順付きの優先順位付きで実行可能な推奨事項            | `@tony #recommend index changes for slow queries`    |
| `#alert`     | 定義した条件でのモニタリング通知                   | `@kai #alert on pod OOMKilled events`                |
| `#chart`     | スタンドアロンのデータビジュアライゼーション             | `@alex #chart spending by service`                   |
| `#kb`        | 組織のドキュメントを横断したナレッジベース検索            | `@alex #kb cloud governance policies`                |

複数の出力が欲しい場合はタグを組み合わせます: `@alex #dashboard #recommend cost optimization opportunities`

## コンテキスト修飾子

指示内にコンテキストを追加してスコープを絞り込み、精度を向上させます。

| 種類   | 例                                                                   |
| ---- | ------------------------------------------------------------------- |
| 期間   | `over the last 30 days`、`since January`、`in the last 24 hours`      |
| スコープ | `in us-east-1`、`on the production cluster`、`on the orders database` |
| 閾値   | `with CPU below 15%`、`costing over $1,000/month`、`P95 above 500ms`  |
| 除外   | `excluding production-tagged resources`、`except backup buckets`     |
| 優先度  | `prioritizing quick wins`、`critical severity first`                 |

## プロンプトパターン

| パターン | 形式                                           | 例                                                                     |
| ---- | -------------------------------------------- | --------------------------------------------------------------------- |
| 分析   | `@agent #tool analyze <target> <context>`    | `@alex analyze EC2 spending by instance family over the last quarter` |
| 監査   | `@agent #tool audit <target> for <criteria>` | `@oliver audit S3 buckets for public access and encryption`           |
| 最適化  | `@agent #recommend <target> <constraints>`   | `@kai #recommend HPA policies for variable workloads`                 |
| 調査   | `@agent investigate <issue> <scope>`         | `@tony investigate slow query performance on the orders table`        |
| 調整   | `@anna coordinate <project> with <agents>`   | `@anna coordinate quarterly review with @alex @oliver @tony @kai`     |

Slack では、ボットプレフィックスを付けた同じ構文が機能します: `@CloudThinker alex what's our AWS spend this week?` — [Slack インテグレーション](/ja/guide/slack-integration) をご覧ください。

## 例

直接リクエスト — エージェントを選び、出力をタグ付けし、ターゲットを指定します:

```text theme={null}
@alex #dashboard AWS spending by service and region
@oliver #report SOC 2 compliance assessment with evidence
@tony #recommend index changes for queries slower than 500ms
```

コンテキスト修飾子を重ねて、結果を正確かつ実行しやすくします:

```text theme={null}
@alex #recommend right-sizing for EC2 instances in us-east-1 with CPU below 15% over the last 30 days, excluding production-tagged resources
```

クロスドメインの問題には複数のエージェントをメンションします:

```text theme={null}
@alex @tony investigate the cost spike on database infrastructure last week
@anna coordinate security remediation with @oliver leading and @alex @kai supporting
```

段階的に絞り込む — 広い範囲から始め、エージェントが見つけたものをドリルダウンします:

```text theme={null}
@alex #dashboard cloud spending trends
@alex #chart November cost spike broken down by service
@alex #recommend RDS optimization prioritizing underutilized instances
```

<Tip>
  具体的に書きましょう。`@alex #recommend right-sizing for EC2 in us-east-1 with CPU below 15%` は実行可能な回答を返しますが、`@alex check our servers` は確認の質問を返します。
</Tip>

## 関連

<CardGroup cols={2}>
  <Card title="エージェント" icon="robot" href="/ja/guide/agents">
    各エージェントの専門知識、機能、プロンプトパターンの詳細
  </Card>

  <Card title="Capabilities" icon="wand-magic-sparkles" href="/ja/guide/capabilities">
    \#dashboard、#report、#recommend などのツールタグが生成するもの
  </Card>

  <Card title="Operations Hub" icon="play" href="/ja/guide/operations-hub">
    この構文ですぐに実行できる事前構築済みの操作
  </Card>

  <Card title="Slack インテグレーション" icon="slack" href="/ja/guide/slack-integration">
    @CloudThinker プレフィックスを付けて Slack で同じ構文を使う
  </Card>
</CardGroup>
