Command Palette

Search for a command to run...

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

contribute-lab

Promote a custom lab that passed adapt mode to a shipped lab, conform it to the style guide, prove it as a shipped spec, commit it on a new version branch…

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

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

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

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

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

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

Contribute a lab

Work from the repo root. Follow the steps in order. The four hard rules in AGENTS.md apply throughout. One session promotes one custom lab from custom-labs/<name>/ into one PR on solo-io/fe-enterprise-agentgateway-workshop. It works from a clone of that repo, or from a clone of a fork with the main repo added as the upstream remote.

Run this only when the user asks for it. Adapt mode never calls it. The user's request covers the local commit in step 6. Nothing is pushed until the user says yes to the diff.

Before cluster changes, follow the startup connection check in skills/ask-the-docs/SKILL.md and tell the user whether Solo docs is connected.

The user's folder custom-labs/<name>/ is never edited. You scrub a staging copy, and the promoter copies from that staging copy into the repo. The folder stays re-runnable with ./e2e/run-e2e.sh --custom <name>.

Session files live under e2e/.work/contribute/<name>/:

e2e/.work/contribute/<name>/
  stage/          the staging copy you scrub
  manifest.json   files the promoter created and repo files you recorded
  before/         copies of recorded repo files, for --undo
  lint.before     ./e2e/run-e2e.sh --lint output before the promote
  pr-body.md      the CHANGELOG bullets, used as the PR body
  staged.patch    the staged diff, scanned again before the commit

Contribute mode makes no call to the Solo docs server. The scrub list, the lab text, and the diff stay on the machine.

1. Preflight

Run these checks in order. Stop on the first failure with the message shown, and do nothing else.

  1. The custom lab is complete and passed. custom-labs/<name>/ holds <name>.md, spec.yaml, and CHANGES.md, and the newest report under reports/ has the passing row | custom/<name> | PASS | and a passing row for every requirement:

    ls custom-labs/<name>/<name>.md custom-labs/<name>/spec.yaml custom-labs/<name>/CHANGES.md
    R=$(ls -t custom-labs/<name>/reports/*.md | head -1); echo "$R"
    grep -F "| custom/<name> | PASS |" "$R"
    awk '/^## Requirements/{on=1; next} /^## /{on=0} on && /^\| R[0-9]+ /' "$R"
    

    The grep must print the row, and every requirement row the awk prints must end in | PASS |. An older passing report does not count: the newest run is the one that proves the lab as it is now.

    Stop message: "custom-labs// has no passing report. Run /adapt-lab to finish and validate it first."

  2. No unfinished session exists. Check this before the working tree, because a half-promoted session leaves the tree dirty:

    ls e2e/.work/contribute/<name>/manifest.json
    

    If the file exists, a previous session stopped. Check whether its files are still uncommitted:

    jq -r '.created[], .recorded[].path' e2e/.work/contribute/<name>/manifest.json | tr '\n' '\0' | xargs -0 -r git status --porcelain --
    
    • The command prints nothing, or the manifest lists no paths: the previous session's work is already committed. Tell the user, and offer to retire the manifest. On a yes, run mv e2e/.work/contribute/<name>/manifest.json e2e/.work/contribute/<name>/manifest.stale.json and continue with check 3. On a no, stop the session and print the manifest path.
    • The command prints lines: those files are uncommitted. Show the manifest and offer the undo from step 8. On a yes, run the undo, then continue with check 3. On a no, stop the session and print the manifest path, e2e/.work/contribute/<name>/manifest.json, so the user can finish or revert by hand.

    Never start a new run on top of an old manifest.

  3. gh is logged in, and the clone reaches the main repo directly or through a fork:

    gh auth status
    git remote get-url origin
    git remote get-url upstream    # fork clones only; it fails in a direct clone
    gh repo view solo-io/fe-enterprise-agentgateway-workshop --json defaultBranchRef -q .defaultBranchRef.name
    

    A URL names the main repo when it ends in github.com/solo-io/fe-enterprise-agentgateway-workshop or github.com:solo-io/fe-enterprise-agentgateway-workshop, with or without .git.

    • gh auth status fails. Stop message: "gh is not logged in to github.com. Run gh auth login, then start again."

    • origin names the main repo: direct mode. <up> is origin.

    • origin names another repo and upstream names the main repo: fork mode. <up> is upstream, and <fork> is the owner/name in the origin URL. Check that origin is a fork of the main repo:

      gh repo view <fork> --json parent -q .parent.nameWithOwner
      

      It must print solo-io/fe-enterprise-agentgateway-workshop. Stop message: "origin is , which is not a fork of solo-io/fe-enterprise-agentgateway-workshop. Contribute from a clone of the main repo or of your fork."

    • Neither. Stop message: "origin is . Contribute from a clone of solo-io/fe-enterprise-agentgateway-workshop, or from

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

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

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

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

FAQ

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

Promote a custom lab that passed adapt mode to a shipped lab, conform it to the style guide, prove it as a shipped spec, commit it on a new version branch, and open a PR only after the user approves the diff. Use only when the user runs /contribute-lab or asks to contribute a custom lab.

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

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

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

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

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

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