# AI-Assisted Installation and Verification

> Skill definitions that provide AI-assisted MaaS installation and end-to-end verification with any AI coding tool.

---

LLMS index: [llms.txt](/CAI-Field-Manual-MaaS/llms.txt)

---

This repository includes skill definitions that provide AI-assisted MaaS installation and end-to-end verification. The `/install-maas` skill wraps the same `setup-maas.sh` script used in the [Automated Setup](/CAI-Field-Manual-MaaS/maas/quick-start/), while the `/verify-guide` skill runs a full verification pass against a live cluster - covering installation, the 15-point E2E test suite, blind-spot regression checks, and guide content validation.

The skills work with any AI coding tool that supports skill definitions:

- [Claude Code](https://claude.ai/code) / [Open Code](https://opencode.ai)
- [Cursor](https://cursor.com)
- [Roo Code](https://roocode.com)
- Other AI coding agents with skill support

> [!TIP]
> All file paths and `oc apply` commands in this guide are relative to the [CAI-Field-Manual-MaaS](https://github.com/rh-aiservices-bu/CAI-Field-Manual-MaaS) repository root. Make sure you have cloned it and are working from its root directory (see [Getting Started](/CAI-Field-Manual-MaaS/maas/#getting-started)).

> [!IMPORTANT]
> This guide is not a replacement for the official Red Hat OpenShift AI Models as a Service documentation ([3.5](https://docs.redhat.com/en/documentation/red_hat_openshift_ai_self-managed/3.5/html/govern_llm_access_with_models-as-a-service/index) | [3.4](https://docs.redhat.com/en/documentation/red_hat_openshift_ai_self-managed/3.4/html/govern_llm_access_with_models-as-a-service/index)). It is a companion resource with opinionated Kustomize manifests and automation scripts to accelerate deployment.

## Prerequisites

- An AI coding tool installed (see list above)
- `oc` CLI authenticated as cluster-admin
- This repository cloned locally

## /install-maas

The `/install-maas` skill wraps `./scripts/setup-maas.sh`, letting your AI coding agent handle cluster detection, error diagnosis, and interactive troubleshooting.

### Usage

Open the repository in your AI coding tool and invoke the skill:

```text
/install-maas
```

### Arguments

All arguments from `setup-maas.sh` are supported:

```text
/install-maas --model simulator
/install-maas --from-phase 4
/install-maas --with-observability
/install-maas --skip-models --skip-verify
```

| Option | Description |
| --- | --- |
| `--model <name>` | Model to deploy: `simulator` (CPU), `granite-tiny-gpu`, `gemma`, `gpt-oss-20b`, `qwen3-06b`, `auto` |
| `--from-phase <N>` | Start from phase N (0-7) |
| `--skip-models` | Skip Phase 5 (model deployment) |
| `--skip-verify` | Skip Phase 6 (verification) |
| `--with-observability` | Also run Phase 7 (COO + telemetry) |

### What the Skill Does

The skill runs `./scripts/setup-maas.sh` from the repository root with the provided arguments. Your AI coding agent monitors the output, detects failures, and can help diagnose issues interactively.

The skill has access to `oc`, `envsubst`, `curl`, `jq`, and other CLI tools needed for MaaS deployment.

### Skill Definition

The skill is defined in `.claude/skills/install-maas/SKILL.md` within this repository. It is automatically discovered when you open the repo in a compatible AI coding tool.

## /verify-guide

The `/verify-guide` skill runs end-to-end verification of the guide content against a live OpenShift cluster. It installs MaaS, executes the 15-point E2E test suite, runs 8 blind-spot regression checks learned from previous walkthroughs, and validates that commands documented in the AsciiDoc pages produce the expected output. At the end it generates a structured report with all results.

### Usage

```text
/verify-guide <API_URL> <USERNAME> <PASSWORD>
```

Example:

```text
/verify-guide https://api.cluster-abc.dyn.redhatworkshops.io:6443 admin my-password
```

### Arguments

| Option | Description |
| --- | --- |
| `<API_URL>` | (Required) OpenShift API server URL, including port |
| `<USERNAME>` | (Required) Cluster admin username (e.g. `admin` or `kubeadmin`) |
| `<PASSWORD>` | (Required) Cluster admin password |
| `--skip-install` | Skip Phase 1 (setup-maas.sh). Use when MaaS is already installed |
| `--skip-verify-sh` | Skip Phase 2 (verify.sh E2E) |
| `--skip-blindspot` | Skip Phase 3 (8 blind-spot regression checks) |
| `--skip-guide-content` | Skip Phase 4 (AsciiDoc content verification) |
| `--with-observability` | Pass `--with-observability` to setup-maas.sh in Phase 1 |
| `--walkthrough-number N` | Label this run as walkthrough N (default: auto-increment) |

### Phases

The skill runs 6 phases in sequence. Individual phases can be skipped with the flags above.

| Phase | What it checks | Time |
| --- | --- | --- |
| 0 | Cluster login, preflight detection (platform, OCP version, GPU, nodes) | instant |
| 1 | Full MaaS installation via `./scripts/setup-maas.sh` | 15-30 min |
| 2 | 15-point E2E via `./manifests/06-verification/verify.sh` | 3-5 min |
| 3 | 8 blind-spot regression checks (gateway OOM, MetalLB IP, RHCL version, etc.) | 1-2 min |
| 4 | AsciiDoc guide commands produce documented output | 1-2 min |
| 5 | Report generation and findings summary | instant |

### What the Skill Does

The skill logs into the cluster, detects its characteristics (platform, GPU, node count), and then runs through each phase collecting PASS/FAIL/WARN results. It never stops on a single failure - all checks run regardless, so you get the full picture in one pass.

Phase 3 blind-spot checks cover regressions that the standard `verify.sh` does not test: gateway memory limits, MetalLB IP collisions, OAuth/console accessibility, RHOAI dashboard reachability, namespace labels, RHCL operator version, HuggingFace Xet storage behavior, and an independent inference request.

Phase 4 validates that specific commands from the guide pages (`model-deployment/maas-models`, `installation-guide/rhoai-config`, `model-deployment/verification`, `installation-guide/prerequisites`) return the documented output.

At the end, the skill prints a structured report with all results, operator versions, and any issues found.

### Skill Definition

The skill is defined in `.claude/skills/verify-guide/SKILL.md` within this repository. It is automatically discovered when you open the repo in a compatible AI coding tool.
