<!-- Generated by docs/scripts/generate_use_case_catalog.py — do not edit -->
# Analysis recipes & packs

CCE ships an embedded **recipe catalog** (`cce catalog`) and optional **packs** (`cce run -pack`). Recipes map to use cases below; extend `pkg/recipes/catalog.json` to register more.

Published examples use **HTTPS lens URLs** on `releases.stackgen.com` only (no repo-relative `-mapper-file` paths).

## Recipes

| Id | Title | Filter | Lens | Example |
|----|-------|--------|------|---------|
| `cloud-entitlements` | Cloud SDK entitlements | `cloud` | Built-in | `cce -folder . -language AUTO -filter cloud -format json -output entitlements.json` |
| `sdk-uplift` | SDK / framework uplift inventory | `cloud` | [URL](https://releases.stackgen.com/cce/lenses/sdk-uplift/latest/sdk-uplift_lenses.yaml) | `cce -folder . -language AUTO -mapper-file https://releases.stackgen.com/cce/lenses/sdk-uplift/latest/sdk-uplift_lenses.yaml -filter cloud -format json -output sdk-uplift.json` |
| `tech-debt-inventory` | Deprecated API & tech-debt inventory | `all` | [URL](https://releases.stackgen.com/cce/lenses/tech-debt-inventory/latest/tech-debt-inventory_lenses.yaml) | `cce -folder . -language AUTO -mapper-file https://releases.stackgen.com/cce/lenses/tech-debt-inventory/latest/tech-debt-inventory_lenses.yaml -filter all -format json -output tech-debt.json` |
| `pre-deploy-iam-review` | Pre-deploy IAM review | `cloud` | Built-in | `cce -folder . -language AUTO -filter cloud -format json -output pr-entitlements.json` |
| `change-control` | Change control / new cloud usage | `cloud` | Built-in | `cce diff baseline.json pr-entitlements.json --fail-new` |
| `cve-reachability` | CVE reachability (template lens) | `all` | [URL](https://releases.stackgen.com/cce/lenses/cve-reachability/latest/cve-reachability_lenses.yaml) | `cce -folder . -mapper-file https://releases.stackgen.com/cce/lenses/cve-reachability/latest/cve-reachability_lenses.yaml -filter all -format json` |
| `microservice-decomposition` | Outbound HTTP / microservice boundaries | `all` | [URL](https://releases.stackgen.com/cce/lenses/microservice-decomposition/latest/microservice-decomposition_lenses.yaml) | `cce -folder . -mapper-file https://releases.stackgen.com/cce/lenses/microservice-decomposition/latest/microservice-decomposition_lenses.yaml -filter all -format json` |
| `llm-code-context` | LLM / agent code context | `all` | [URL](https://releases.stackgen.com/cce/lenses/llm-code-context/latest/llm-code-context_lenses.yaml) | `cce -folder . -language AUTO -filter all -format json` |
| `platform-adoption` | Platform SDK adoption | `all` | [URL](https://releases.stackgen.com/cce/lenses/platform-adoption/latest/platform-adoption_lenses.yaml) | `cce -folder . -language AUTO -mapper-file https://releases.stackgen.com/cce/lenses/platform-adoption/latest/platform-adoption_lenses.yaml -filter all -format json -output platform.json` |
| `regression-gates` | Regression gates (forbidden APIs) | `all` | [URL](https://releases.stackgen.com/cce/lenses/regression-gates/latest/regression-gates_lenses.yaml) | `cce -folder . -language AUTO -mapper-file https://releases.stackgen.com/cce/lenses/regression-gates/latest/regression-gates_lenses.yaml -filter all -format json -output gates.json` |
| `secrets-hygiene` | Secrets & credential hygiene | `all` | [URL](https://releases.stackgen.com/cce/lenses/secrets-hygiene/latest/secrets-hygiene_lenses.yaml) | `cce -folder . -language AUTO -mapper-file https://releases.stackgen.com/cce/lenses/secrets-hygiene/latest/secrets-hygiene_lenses.yaml -filter all -format json -output secrets.json` |
| `regulatory-scope` | Regulatory scope (PCI / HIPAA / SOC) | `all` | [URL](https://releases.stackgen.com/cce/lenses/regulatory-scope/latest/regulatory-scope_lenses.yaml) | `cce -folder . -language AUTO -mapper-file https://releases.stackgen.com/cce/lenses/regulatory-scope/latest/regulatory-scope_lenses.yaml -filter all -format json -output scope.json` |

## Packs

### `modernization-pack`

SDK uplift, tech-debt inventory, and cloud entitlements in one merged report.

**Recipes:** `cloud-entitlements`, `sdk-uplift`, `tech-debt-inventory`

```bash
cce run -folder . -language AUTO -pack modernization-pack -output modernization-pack.json
```

### `security-governance-pack`

Cloud entitlements plus change-control oriented scans for PR gates.

**Recipes:** `cloud-entitlements`, `pre-deploy-iam-review`

```bash
cce run -folder . -language AUTO -pack security-governance-pack -output security-governance-pack.json
```

### `platform-governance-pack`

Cloud entitlements, platform adoption, and regression gates in one report.

**Recipes:** `cloud-entitlements`, `platform-adoption`, `regression-gates`

```bash
cce run -folder . -language AUTO -pack platform-governance-pack -output platform-governance-pack.json
```

## Remote catalog

```bash
cce catalog --remote
cce run -folder . -language AUTO -pack modernization-pack -remote -output pack.json
```

Published: [catalog.json](https://releases.stackgen.com/cce/recipes/latest/catalog.json) · [packs.json](https://releases.stackgen.com/cce/recipes/latest/packs.json)

## Register a new recipe

1. Add lens YAML under `docs/use-cases/guides/<id>/`.
2. Add an entry to `pkg/recipes/catalog.json` with `lens_url` pointing at releases.stackgen.com.
3. Run `./scripts/sync-recipe-catalog.sh` and `make docs-generate`.
