Command Palette

Search for a command to run...

Назад к скиллам
скилл № 90573

adapt-lab

Turn one or more shipped labs into a custom lab and spec for the user's own requirements, prove it on their cluster, and hand it off. Use when the user wants…

БесплатноБез исполняемых скриптов
solo-ioот solo-io★ 21 звезда на GitHub

Установить adapt-lab в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Adapt a lab

Work from the repo root. Follow the steps in order. The four hard rules in AGENTS.md apply throughout. One session builds one custom lab.

A custom lab lives in custom-labs/<name>/, which is gitignored. Everything the harness writes for the lab stays in that folder, so deleting it removes the lab and all its run files:

custom-labs/<name>/
  <name>.md      the lab
  spec.yaml      the e2e spec; its lab: is custom-labs/<name>/<name>.md
  CHANGES.md     source labs, deltas, requirement-to-assertion table
  reports/       written by --report-only
  assets/        optional files the lab applies
  .work/run/     the last run: outcome, steps, driver.sh, blocks/, leftovers.txt

Never edit a shipped lab under labs/ or a shipped spec under e2e/specs/.

1. Set expectations

First follow the startup connection check in skills/ask-the-docs/SKILL.md. Report missing Solo tools or connection failures before cluster changes, and stop before writing CRD YAML if the required schemas cannot be read.

Tell the user, in four sentences:

  • Nothing touches the cluster until they approve a written proposal.
  • The result is a lab they can run by hand plus a spec that re-runs the proof, both under custom-labs/<name>/.
  • Nothing about the cluster or their requirements is sent anywhere; the only outbound call is a generic product question to the Solo docs server.
  • At the end they choose whether the custom configuration stays on the cluster.

2. Intake

Run:

./e2e/lib/detect-env.sh

Exit 0: continue. Any other exit: handle it as step 1 of skills/evaluate/SKILL.md does. If existing_install in e2e/.work/env.json is empty, the base is missing: offer to install it and run this on a yes:

./e2e/run-e2e.sh --install-base --only-base

Recommend once that the user run the source labs, or the track that contains them, with /evaluate first, so the custom work starts from a known-good cluster. They may decline.

Start a fresh session log:

e2e/lib/session-log.sh start

The user names one or more source labs or describes the use case. When they describe it, find the closest labs from the tables in README.md and tracks/, read each candidate lab and its spec under e2e/specs/, and confirm the choice with the user. The request is usually one of these:

  • Extend: keep one lab's pattern and scale it, for example tiered rate limits instead of one counter.
  • Compose: join two labs, for example JWT auth from an OIDC provider plus rate limits keyed on a token claim.
  • Reskin: keep a lab's mechanics and swap in the user's organization: team names, models, budgets.

Ask only for what you cannot infer from the labs: tiers, claims, team names, models, thresholds. Ask one question at a time. Agree a name for the lab with the user. Use lowercase letters, digits, and hyphens, starting with a letter or digit, for example oidc-tiered-rate-limits; the harness refuses any other name. Pick a name that does not exist yet under custom-labs/.

Write every requirement as a numbered, testable statement in the user's terms, for example: "R1: Gold tier gets 1000 input tokens per minute, silver 200, and a token without a tier claim is rejected." Push an untestable statement back to the user and ask for a testable version.

3. Proposal

Before you write any CRD YAML, read the local openAPIV3Schema for each target kind and served version, as skills/ask-the-docs/SKILL.md describes. Never emit a field the schema does not define. Stop if the schema is unavailable. Docs queries contain generic product concepts only, never the user's requirements, org names, or lab text.

Write custom-labs/<name>/CHANGES.md from this template and show it:

# <name>

## Source labs

- labs/<category>/<lab>.md: keeps <sections>, changes <sections>, drops <sections>

## Configuration

| Kind | Name | Namespace | What it does |
|------|------|-----------|--------------|

## Requirements

| Id | Requirement | Lab section | Positive assertion | Negative assertion |
|----|-------------|-------------|--------------------|--------------------|
| R1 | <statement> | <heading> | <step and expected result> | <step and expected deny> |

## Interaction check

<For a compose: which source-lab assertions must still hold with both configurations applied.>

## Open questions

<What the labs and the docs server could not confirm, with the user's options.>

## Cluster footprint

- Namespaces: <list>
- Cluster-scoped resources: <list>
- External endpoints: <list, marking each one that costs money>

## Changes during validation

<Filled in at hand-off.>

The user approves, edits, or stops. Nothing is written beyond CHANGES.md, and no cluster command runs, before the user approves the proposal.

e2e/lib/session-log.sh add decision custom/<name> "proposal approved: sources=<labs> requirements=<count>"

4. Build and validate

Write custom-labs/<name>/<name>.md following "Writing the lab"

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл adapt-lab?

Turn one or more shipped labs into a custom lab and spec for the user's own requirements, prove it on their cluster, and hand it off. Use when the user wants to extend, combine, or reskin a lab for their scenario.

Как установить скилл adapt-lab?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл adapt-lab запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить adapt-lab с