> ## 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

> Tra cứu cú pháp @agent #tool: đề cập agent, thẻ tool, bộ điều chỉnh ngữ cảnh và các mẫu prompt cho mọi agent

CloudThinker Language là cú pháp prompt có cấu trúc hoạt động giống nhau trên mọi agent, trong chat, [Slack](/vi/guide/slack-integration) và các tác vụ tự động. Đề cập một agent, gắn thẻ đầu ra bạn muốn, sau đó viết hướng dẫn của bạn bằng ngôn ngữ thông thường.

## Cú pháp

Mọi prompt đều tuân theo một dạng chuẩn:

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

| Thành phần    | Bắt buộc | Mô tả                                                                                                                 |
| ------------- | -------- | --------------------------------------------------------------------------------------------------------------------- |
| `@agent`      | Có       | Định tuyến yêu cầu đến một agent cụ thể. Đề cập nhiều agent cho công việc liên lĩnh vực.                              |
| `#tool`       | Không    | Định dạng đầu ra hoặc khả năng. Đặt ngay sau đề cập; kết hợp nhiều thẻ để có nhiều đầu ra.                            |
| `instruction` | Có       | Những gì bạn muốn, theo cách diễn đạt của bạn — bao gồm phạm vi, khung thời gian, ngưỡng và ràng buộc ngay trong câu. |

## Đề cập agent

| Đề cập    | Vai trò             | Phù hợp nhất                                           |
| --------- | ------------------- | ------------------------------------------------------ |
| `@alex`   | Cloud Engineer      | Phân tích chi phí, tối ưu tài nguyên, hạ tầng đa cloud |
| `@oliver` | Security Engineer   | Kiểm toán, quét lỗ hổng, IAM, tuân thủ                 |
| `@tony`   | Database Engineer   | Tối ưu truy vấn, điều chỉnh hiệu suất, sao lưu         |
| `@kai`    | Kubernetes Engineer | Quản lý cluster, tối ưu pod, co giãn                   |
| `@anna`   | General Manager     | Điều phối đa agent, báo cáo điều hành                  |

Xem [tài liệu tham khảo agent](/vi/guide/agents) để biết đầy đủ khả năng của từng agent.

## Thẻ tool

| Thẻ          | Đầu ra                                                       | Ví dụ                                                |
| ------------ | ------------------------------------------------------------ | ---------------------------------------------------- |
| `#dashboard` | Trực quan hóa tương tác cho giám sát và trình bày            | `@alex #dashboard monthly cost trends with forecast` |
| `#report`    | Tài liệu phân tích chi tiết với phát hiện và bằng chứng      | `@oliver #report SOC 2 compliance assessment`        |
| `#recommend` | Đề xuất có thể hành động được ưu tiên kèm các bước thực hiện | `@tony #recommend index changes for slow queries`    |
| `#alert`     | Thông báo giám sát theo điều kiện bạn xác định               | `@kai #alert on pod OOMKilled events`                |
| `#chart`     | Trực quan hóa dữ liệu độc lập                                | `@alex #chart spending by service`                   |
| `#kb`        | Tìm kiếm cơ sở kiến thức trên tài liệu tổ chức của bạn       | `@alex #kb cloud governance policies`                |

Kết hợp nhiều thẻ khi bạn muốn nhiều hơn một đầu ra: `@alex #dashboard #recommend cost optimization opportunities`.

## Bộ điều chỉnh ngữ cảnh

Thêm ngữ cảnh vào hướng dẫn để thu hẹp phạm vi và cải thiện độ chính xác.

| Loại            | Ví dụ                                                                 |
| --------------- | --------------------------------------------------------------------- |
| Khung thời gian | `over the last 30 days`, `since January`, `in the last 24 hours`      |
| Phạm vi         | `in us-east-1`, `on the production cluster`, `on the orders database` |
| Ngưỡng          | `with CPU below 15%`, `costing over $1,000/month`, `P95 above 500ms`  |
| Loại trừ        | `excluding production-tagged resources`, `except backup buckets`      |
| Ưu tiên         | `prioritizing quick wins`, `critical severity first`                  |

## Các mẫu prompt

| Mẫu       | Dạng                                         | Ví dụ                                                                 |
| --------- | -------------------------------------------- | --------------------------------------------------------------------- |
| Phân tích | `@agent #tool analyze <target> <context>`    | `@alex analyze EC2 spending by instance family over the last quarter` |
| Kiểm toán | `@agent #tool audit <target> for <criteria>` | `@oliver audit S3 buckets for public access and encryption`           |
| Tối ưu    | `@agent #recommend <target> <constraints>`   | `@kai #recommend HPA policies for variable workloads`                 |
| Điều tra  | `@agent investigate <issue> <scope>`         | `@tony investigate slow query performance on the orders table`        |
| Điều phối | `@anna coordinate <project> with <agents>`   | `@anna coordinate quarterly review with @alex @oliver @tony @kai`     |

Trong Slack, cú pháp tương tự hoạt động với tiền tố bot: `@CloudThinker alex what's our AWS spend this week?` — xem [tích hợp Slack](/vi/guide/slack-integration).

## Ví dụ

Yêu cầu trực tiếp — chọn agent, gắn thẻ đầu ra, nêu mục tiêu:

```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
```

Thêm bộ điều chỉnh ngữ cảnh để kết quả chính xác và an toàn để hành động:

```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
```

Đề cập nhiều agent cho vấn đề liên lĩnh vực:

```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
```

Tinh chỉnh dần — bắt đầu rộng, sau đó đào sâu vào những gì agent tìm thấy:

```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>
  Hãy cụ thể. `@alex #recommend right-sizing for EC2 in us-east-1 with CPU below 15%` cho câu trả lời có thể hành động; `@alex check our servers` cho một câu hỏi làm rõ.
</Tip>

## Liên quan

<CardGroup cols={2}>
  <Card title="Agents" icon="robot" href="/vi/guide/agents">
    Chuyên môn, khả năng và mẫu prompt chuyên sâu của từng agent
  </Card>

  <Card title="Capabilities" icon="wand-magic-sparkles" href="/vi/guide/capabilities">
    Các thẻ tool #dashboard, #report, #recommend và các thẻ khác tạo ra gì
  </Card>

  <Card title="Operations Hub" icon="play" href="/vi/guide/operations-hub">
    Các tác vụ vận hành dựng sẵn sẵn sàng chạy với cú pháp này
  </Card>

  <Card title="Tích hợp Slack" icon="slack" href="/vi/guide/slack-integration">
    Sử dụng cú pháp tương tự trong Slack với tiền tố @CloudThinker
  </Card>
</CardGroup>
