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★ 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.
The custom lab is complete and passed.
custom-labs/<name>/holds<name>.md,spec.yaml, andCHANGES.md, and the newest report underreports/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
grepmust print the row, and every requirement row theawkprints 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."
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.jsonIf 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.jsonand 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.
- 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
ghis 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.nameA URL names the main repo when it ends in
github.com/solo-io/fe-enterprise-agentgateway-workshoporgithub.com:solo-io/fe-enterprise-agentgateway-workshop, with or without.git.gh auth statusfails. Stop message: "gh is not logged in to github.com. Run gh auth login, then start again."originnames the main repo: direct mode.<up>isorigin.originnames another repo andupstreamnames the main repo: fork mode.<up>isupstream, and<fork>is theowner/namein theoriginURL. Check thatoriginis a fork of the main repo:gh repo view <fork> --json parent -q .parent.nameWithOwnerIt 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
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…