Release Sample Sweep 标志

Release Sample Sweep

组织热门
Atmosphere
release-sample-sweep

Run the pre-release end-to-end sweep of every user-facing surface — the 33 samples under samples/ (booted from their packaged artifacts and driven in a real browser via chrome-devtools MCP), the Expo/React Native client, and the atmosphere CLI. Use before cutting a release, and after any change to the Console bundle, a shared module, atmosphere.js, the CLI, or several samples at once. Covers preconditions, the keyless Ollama backend, the per-sample launch/drive/collect/teardown loop, the evidence ledger, the fix phase (every issue gets a biting regression test in the right suite), the re-test subset, and the report.

概览

发布者Atmosphere
代码仓库atmosphere
技能名称release-sample-sweep
星标数
3.8K
复刻数
764
附带文件
9
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 9 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 Atmosphere 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Release Sample Sweep AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Atmosphere/atmosphere/tree/main/.claude/skills/release-sample-sweep
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Atmosphere/atmosphere.git /tmp/atmosphere
mkdir -p .claude/skills
cp -r /tmp/atmosphere/.claude/skills/release-sample-sweep .claude/skills/release-sample-sweep
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Release Sample Sweep,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Release Sample Sweep。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Release Sample Sweep 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Release sample sweep (chrome-devtools)

Before a release, every user-facing surface is exercised the way a user exercises it. This skill is that procedure written down.

Three surfaces, three drivers — all three are release gates:

SurfaceWhatDriver
Samples (33)samples/*, booted from packaged artifactschrome-devtools MCP, or the wire protocol for the headless ones
Expo client (1)samples/spring-boot-ai-classroom/expo-client/iOS simulator MCP — it is a native app, chrome-devtools cannot reach it
CLIatmosphere run / new / compose / import / checkpoint + its four distributionsShell, then chrome-devtools against what atmosphere run booted

When to run it

  • Before cutting any release. Non-negotiable — it is the last gate before release-4x.yml.
  • After a change to the Console bundle (modules/spring-boot-starter/frontend/), since the Console is both the shipped sample UI and the validation surface.
  • After a change to a shared module that every sample transitively depends on (modules/cpr, modules/ai, modules/spring-boot-starter, modules/admin).
  • After a dependency bump wave — two of the last three sweeps found a version-skew bug that compiled clean and only failed at runtime.

What it catches that CI does not

CI builds and tests modules; this sweep exercises packaged artifacts in a browser. The gap between those is where the real bugs live:

SweepBug foundWhy CI was green
2026-06-30quarkus-ai-chat would not start — OTel api/common version skew from a Dependabot bumpModule tests never boot the sample's fast-jar
2026-07-17spring-boot-orchestration-demo crashed on every tool turn — the sample pom hardcoded langchain4j-open-ai:1.15.0 while the reactor manages 1.17.0The module built against 1.17.0; only the sample's own jar bundled 1.15.0

scripts/release-gate-samples.sh automates the boot-and-assert half of this in CI. This sweep is the browser half on top of it — the layer that sees rendering, streaming, transport headers, tool cards, and console errors.

The shape of the sweep

Step 0   Preconditions  — build everything, start Ollama, free the ports, open the ledger
Step 1a  Samples        — 33 samples: launch → drive → collect → verdict → teardown
Step 1b  Expo client    — the RN client in the iOS simulator
Step 1c  CLI            — atmosphere run/new/compose/import/checkpoint + distributions
                           ALL OF PHASE 1 IS COLLECT-ONLY. Do not fix anything mid-sweep.
Step 2   Triage         — classify every finding, rank by blast radius
Step 3   Fix            — root-cause fix + a regression test per issue, in the right
                           suite, each proven to bite
Step 4   Re-test        — the failed surfaces in full, plus the blast-radius subset
                           of already-passing ones
Step 5   Report         — vault report, CI green, memory updated

Step 1 is deliberately fix-free. Fixing mid-sweep changes the artifact under test and invalidates every sample already verified against the old one. The one exception: a defect that blocks the sweep itself from continuing — fix it, say so in the ledger, and note which already-passed samples were re-run.

Non-negotiables

  1. chrome-devtools, never curl, for validation. curl is allowed only for port readiness and for headless wire protocols (A2A/MCP/REST) that serve no HTML. A "works via curl" claim skips the whole JS layer and is a false pass.
  2. The Atmosphere Console is the UI. Drive /atmosphere/console/ (Spring Boot samples redirect / there). A sample that needs a bespoke page instead of the Console is itself a finding.
  3. Assert the rendered element, not the payload. An image node with a src is a rendered screenshot; the same base64 in a StaticText node means nothing rendered it. "Server started", "HTTP 200", and "bytes present in the DOM" are not passes.
  4. Boot the packaged artifact. java -jar (or quarkus-run.jar), never spring-boot:run / quarkus:dev. Both historical bugs above existed only at artifact level.
  5. Kill by PID, never pkill -f. Never touch a port or process the sweep did not start — if a port is occupied, move to another port. The same rule covers the machine's network: never run networksetup, never take an interface down, never touch VPN/DNS/proxy settings. The host's Wi-Fi carries every session the maintainer has open, and a sweep interrupted mid-toggle can leave the machine offline indefinitely. Any assertion that needs real network loss is recorded PARTIAL with its unit coverage cited — see references/expo-sweep.md.
  6. Model limitation ≠ framework bug. A small local model emitting invalid tool-call arguments is a model limitation; record it as such and prove it by re-running the same flow on a capable model before calling it a regression.
  7. Never write "flaky". Reproduce it, or explain the mechanism. If neither is possible yet, it is a FAIL with an open question, not a dismissal.
  8. Report honestly. PASS / PARTIAL / FAIL with one line of concrete evidence each. PARTIAL must name what was not proven and why.

Step 0 — Preconditions

bash
git status --porcelain                    # must be clean
git rev-parse --short HEAD                # record this SHA in the ledger
grep -m1 '<version>' pom.xml              # record the version under test

./mvnw install -DskipTests -Pfastinstall  # full reactor: framework + every sample jar
./scripts/sync-console-bundle.sh --check  # the Console you will drive must be current

ollama list                               # qwen2.5:3b + qwen2.5:7b-instruct-q4_K_M
curl -s -o /dev/null -w '%{http_code}\n' http://localhost:11434/v1/models
  • LLM backend is local Ollama, keyless. Use qwen2.5:3b for streaming samples and qwen2.5:7b-instruct-q4_K_M for tool-heavy agents — 3b emits invalid tool-call arguments and Ollama answers 400. Note real-ollama is a CI-harness alias only; AiConfig matches the literal local.

  • The launcher scrubs ambient LLM env (LLM_API_KEY, LLM_BASE_URL, LLM_MODE, LLM_MODEL, and the provider keys) from every sample it boots, so the sweep is reproducible on any machine. SWEEP_KEEP_ENV=1 inherits instead. If you boot a sample by hand, scrub them yourself — a maintainer's profile routinely exports these.

  • Always read the resolved endpoint out of the boot log before driving:

    grep 'AI config:' target/sweep/<sample>.log

    Expect mode=local … endpoint=http://localhost:11434/v1. Anything else means the sample is not talking to Ollama and the turn's result says nothing about this build. An explicit LLM_BASE_URL outranks the mode by design, so an inherited one silently redirects a "local" run to a remote provider — that is what happened on the 2026-08-07 shakedown before the scrub existed.

  • Do not use a paid key. The paid-LLM lane is retired; quota starvation is what made the 2026-06 sweep report nine samples as plumbing-only.

  • Do not use embacle (embacle-server --provider claude_code) for tool-calling samples — it applies the host CLI's own configuration to responses and its tool-call fidelity is inconsistent. It is only useful to demonstrate "a capable model completes this flow cleanly", then stop it.

  • Ports: the sweep runs on the 9101+ block so it never collides with the samples' own defaults or the Playwright fixture's 8080–8104. Assignments are in references/sample-matrix.md.

  • Open the ledger at claude_docs/sample-sweep-<YYYY-MM-DD>.md (a gitignored symlink into the vault, so it survives context compaction). Template: assets/ledger-template.md. Write each row as you finish that sample, never in a batch at the end.

Step 1a — The per-sample loop

Work through references/sample-matrix.md in order. For each sample:

bash
# 1. Launch (the helper refuses to boot if the port is already answering)
.claude/skills/release-sample-sweep/scripts/sweep-sample.sh start <sample> \
    --port <9101+n> --ready-path <path> --env LLM_MODE=local --env LLM_MODEL=qwen2.5:3b
  1. Fresh browser page per sample — new_page on the drive URL. Never reuse the previous sample's page: stale state and leftover console noise both corrupt the evidence.
  2. Snapshot — take_snapshot. Confirm the Console mounted and the transport badge reads what the matrix expects (Connected · websocket / · webtransport / · grpc / · ag-ui). A transport that silently fell back is a finding.
  3. Drive the headline flow for that sample — the exact interaction is in the matrix, the mechanics per surface class are in references/driving-recipes.md.
  4. Wait for the rendered result — wait_for the expected text/element, then re-take_snapshot and confirm the node type (see non-negotiable #3).
  5. Collect the evidence, all three sources:
    • list_console_messages — every error and warning, verbatim
    • list_network_requests — any non-2xx/failed request
    • sweep-sample.sh warnings <sample> — server-side WARN/ERROR/exception/SLF4J Record warnings even when the sample passes. The warning inventory is half the value of the sweep and is what the next release's triage starts from.
  6. Verdict + one-line evidence into the ledger:
    • PASS — headline feature observed rendered, no unexplained console error, no server exception.
    • PARTIAL — plumbing proven, headline feature not observed, reason named (missing third-party key, Docker unavailable, model limitation).
    • FAIL — feature broken, error frame, exception, or the sample won't boot.
  7. Teardown — close_page, then sweep-sample.sh stop <sample>. The helper verifies the port is actually released; if it is not, stop and investigate before the next sample claims it.

Step 1b — The Expo client

samples/spring-boot-ai-classroom/expo-client/ is a native Expo/RN app. It is not a Maven module, not in cli/samples.json, and unreachable by the Playwright suites — this sweep is its only gate. It links atmosphere.js by file path, so it is also the only pre-release check that the client library's ./react-native export works in a real RN runtime.

Driven with the iOS simulator MCP, not chrome-devtools. Full procedure, including the SERVER_URL port trap and the AppState/NetInfo assertions nothing else covers: references/expo-sweep.md.

Step 1c — The CLI

The CLI is the documented Quick Start and ships as four distributions (curl installer, npx, Homebrew tap, SDKMAN). CI covers list/info, argument validation, the runtime overlays, and the installers — it never boots a sample through atmosphere run and looks at the UI, and it has no coverage for compose or checkpoint.

The manual pass closes that: atmosphere run → browser-driven, atmosphere new → scaffold + compile against Maven Central, plus the thin-coverage commands and a post-publish check of the actually-shipped artifacts. Watch the jar cache — a stale $ATMOSPHERE_HOME/cache/v<version> boots the previous release and fakes a pass. Full procedure: references/cli-sweep.md.

Step 2 — Triage

With all samples tested, classify each finding before touching any code:

ClassMeaningAction
Framework bugA module under modules/ is wrongFix + regression spec. Release-blocking.
Sample bugOnly that sample's code/pom/config is wrongFix + regression spec. Release-blocking if the sample ships.
Config/envSample needs a key, Docker, a collectorNot a bug — document the graceful-degradation behaviour and assert that
Model limitationSmall local model can't drive the flowProve with a capable model, record, no code change
Sweep environmentPort conflict, stale ~/.m2, half-built reactorFix the environment and re-run that sample

Rank by blast radius: shared-module findings first (they can invalidate other samples' passes), then per-sample.

Step 3 — Fix, with a regression test per issue

Every issue gets a test, but in the suite that can actually run it:

Surface the issue is onRegression home
Sample / Console / frameworkPlaywright spec → references/regression-specs.md
CLIA case in cli/test-cli.sh (a Playwright spec is the wrong vehicle for a shell CLI)
Expo / React NativeAn atmosphere.js vitest covering the ./react-native export path; if the defect is genuinely RN-runtime-only, name it in the report as manual-sweep-only rather than faking a gate

For every issue in the framework-bug or sample-bug class:

  1. Root-cause it first. Read the failing path; do not pattern-match a fix.
  2. Smallest change that fixes the cause — the 2026-07 langchain4j fix was a single pom property.
  3. Write a Playwright e2e spec that reproduces the failure, in the right home, wired into the right CI lane, and proven to bite: it must fail against the pre-fix artifact and pass after. Recording only "it passes now" proves nothing. Full authoring + wiring recipe: references/regression-specs.md.
  4. Where a build-time lint can close the whole class, add that too — the langchain4j fix shipped both a spec and SampleLangChain4jVersionLintTest, which fails the build if any sample pom hardcodes a LangChain4j version.
  5. Rebuild the affected modules and samples before re-testing.
  6. One commit per fix class, conventional-commit prefixed. No CHANGELOG edits — the CHANGELOG is touched only at release time.

Step 4 — Re-test

  1. Re-run the failed sample end to end — the full headline flow, not just the broken step.
  2. Re-run the blast-radius subset of already-passing samples. The fix changed the artifact those passes were recorded against, so their evidence is only still valid if the fix could not reach them. The mapping from "what the fix touched" to "which passing samples must be re-driven" is in references/retest-subset.md.
  3. Say what you did not re-run and why. A subset is a deliberate scope decision; leaving it unstated reads as "everything was re-verified".
  4. Repeat triage → fix → re-test until the sweep is clean.

Step 5 — Report

  • Vault report via the obsidian-writer skill → Claude Outputs/Sample-Sweep-chrome-devtools-<date>.md. Promote the ledger: full matrix with the evidence column, the issues-found-and-fixed section with commit hashes, methodology caveats, and non-blocking follow-ups.
  • Every number verified — sample count from ls samples/ (minus shared-resources) and cli/samples.json, never from memory.
  • CI green on the fix commits before the release proceeds — all workflows, not just the one you were watching.
  • Update memory with anything reusable: a new trap, a new drive recipe, a changed port, a sample added or removed.

Files in this skill

FileUse
references/sample-matrix.mdEvery sample: boot type, sweep port, drive surface, headline assertion, gating
references/driving-recipes.mdchrome-devtools call sequences per surface class + browser-layer traps
references/expo-sweep.mdStep 1b — the RN client in the iOS simulator
references/cli-sweep.mdStep 1c — what CI already covers, the real gaps, and the CLI pass
references/regression-specs.mdWhere a Playwright spec lives, how to wire it into CI, how to prove it bites
references/retest-subset.mdBlast radius → which passing samples to re-drive after a fix
references/troubleshooting.mdKnown traps: PNA, long-poll probes, stale jars, port collisions, Quarkus LLM config
assets/ledger-template.mdThe sweep ledger to copy into claude_docs/
scripts/sweep-sample.shBoot one sample from its packaged artifact on a sweep port and leave it running

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Release Sample Sweep AI 技能有什么作用?

Run the pre-release end-to-end sweep of every user-facing surface — the 33 samples under samples/ (booted from their packaged artifacts and driven in a real browser via chrome-devtools MCP), the Expo/React Native client, and the atmosphere CLI. Use before cutting a release, and after any change to the Console bundle, a shared module, atmosphere.js, the CLI, or several samples at once. Covers preconditions, the keyless Ollama backend, the per-sample launch/drive/collect/teardown loop, the evidence ledger, the fix phase (every issue gets a biting regression test in the right suite), the re-te...

为什么在 TypingMind 中使用 Release Sample Sweep?

因为您只需安装一次,就能搭配任何模型使用。Release Sample Sweep 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Release Sample Sweep?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Atmosphere/atmosphere/tree/main/.claude/skills/release-sample-sweep。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Release Sample Sweep?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Release Sample Sweep 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Release Sample Sweep 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Release Sample Sweep AI 技能免费吗?

是的。Atmosphere 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇