smoke-check
Skill127 starsChanged 11 days agoMITView on GitHub
Run a local libxmtp smoke check with web chat and two Node SDK bots, only when the user explicitly requests this skill or a smoke check.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- striderZA/OpenCodeGameStudiostheir own version, first seen Nov 4, 2026
- Donchitos/Claude-Code-Game-Studiostheir own version, first seen Oct 19, 2026
- venus2099/codex-game-studiostheir own version, first seen Oct 17, 2026
- HunLuanZhiZhu/Game-Studios-Plugintheir own version, first seen Oct 5, 2026
- SimonKreis-Richard/oracle-fusion-agentic-toolkittheir own version, first seen Sep 27, 2026
- dawn840705/claude-code-studiostheir own version, first seen Aug 28, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- Donchitos/Claude-Code-Game-Studios★ 27ksame name
- striderZA/OpenCodeGameStudios★ 118same name
- cenconq25/claude-code-app-studio★ 40same name
- dawn840705/codex-code-studios★ 17same name
- lilangMax/ClaudeCodeGameStudios★ 8same name
- hongyuanc/codex-game-studios★ 5same name
- dawn840705/claude-code-studios★ 1same name
- HunLuanZhiZhu/Game-Studios-Plugin★ 1same name
- venus2099/codex-game-studios★ 1same name
- SimonKreis-Richard/oracle-fusion-agentic-toolkit★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- .github/workflows/AGENTS.mdAGENTS.md
- nix/AGENTS.mdAGENTS.md
- proto/AGENTS.mdAGENTS.md
- sdks/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/workflows/CLAUDE.mdCLAUDE.md
- nix/CLAUDE.mdCLAUDE.md
- proto/CLAUDE.mdCLAUDE.md
- sdks/CLAUDE.mdCLAUDE.md
- authoring-specsSkill
- check-ciSkill
- checking-spec-complianceSkill
- reviewing-specsSkill
- working-with-nixSkill
- working-with-worktreesSkill
- writing-agent-docsSkill
- writing-rustSkill
- writing-rust-testsSkill
- writing-typescriptSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. 0 are common, 13 are distinctive, and 10 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
13
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill only when the user explicitly requests it or asks for a smoke check.
- Distinctive: line 11
Use the local Node SDK and web chat to check real message delivery.
- Distinctive: line 13
Use the built-in browser when the user requests it.
- Very specific: line 17
Read the repository rules.
- Distinctive: line 21
Run these commands from the repository root:
- Very specific: line 32
Read the backend URL from the status output.
- Very specific: line 33
Do not assume port 5050. Check inherited XMTP_BACKEND_URL values: the environment loader preserves an existing value.
- Very specific: line 59
Wait for each bot's ready event.
- Very specific: line 77
Keep wallet keys and databases out of source control and reports.
- Distinctive: line 80
Start web chat in a third terminal:
- Very specific: line 86
When the SDK sources match a trunk commit, set XMTP_SDK_BUILD=nix before these commands: they then copy the release-profile Nix products …
- Distinctive: line 89
Read the frontend URL from Vite output.
- Distinctive: line 97
Use the app's navigation menu for new DMs and groups.
- Distinctive: line 101
Do not take over an unrelated user session.
- Distinctive: line 103
Run these checks. Wait for each expected reply before sending the next trigger.
- Distinctive: line 104
Use a bounded wait, such as 15 seconds.
- Very specific: line 118
Check sender IDs and request/reply IDs in the JSON logs.
- Very specific: line 120
Verify that those preceding request IDs have no replied records.
- Distinctive: line 125
Use the UI to verify visible replies, and logs to check exact totals and IDs.
- Distinctive: line 126
Do not create clients or send messages through browser page evaluation.
- Very specific: line 136
When changing these scripts or the test procedure, prove that the relevant check can fail.
- Very specific: line 139
Stop the correct ping process, run the copy with the same state, and send Ping.
- Distinctive: line 154
Do this before removing the worktree so its containers and port claim are gone.
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Smoke check
Use this skill only when the user explicitly requests it or asks for a smoke check. Do not run it as routine validation after other changes.
Use the local Node SDK and web chat to check real message delivery. The agent must have a browser tool. Run all web chat steps through the browser UI. Use the built-in browser when the user requests it.
Setup
Read the repository rules. Use the checkout the user selects. Create a worktree
from origin/main only when the user requests one. Record which processes,
containers, and tabs this run starts so cleanup can stop the correct resources.
Run these commands from the repository root:
dev/nix-shell 'just install-js'
dev/nix-shell 'just backend status'
# Start the stack if it is not already running.
dev/nix-shell 'just backend up'
dev/nix-shell 'just backend status'
dev/nix-shell 'just js sdk-products'Read the backend URL from the status output. Each worktree has its own ports.
Do not assume port 5050. Check inherited XMTP_BACKEND_URL values: the environment
loader preserves an existing value. Both bots and web chat must use the same
local backend.
The first SDK build can compile the native library, SDK generator, WebAssembly, and pure codecs. Let the build finish. Check compiler progress if output is quiet. Give progress updates. Do not start another generation against the same output folders while it is running.
Start the two bots
The skill includes ping-bot.mjs,
bleep-bot.mjs, and their shared
run-bot.mjs. Use the bundled scripts in place;
they load the SDK and viem from the selected repository. No separate package
installation in the skill folder is needed.
Set XMTP_SMOKE_SKILL to the folder that contains this SKILL.md. In separate
terminal sessions, run:
export XMTP_SMOKE_SKILL="$PWD/.agents/skills/smoke-check"
dev/nix-shell '. dev/docker/load-env && node "$XMTP_SMOKE_SKILL/scripts/ping-bot.mjs" "$PWD"'
dev/nix-shell '. dev/docker/load-env && node "$XMTP_SMOKE_SKILL/scripts/bleep-bot.mjs" "$PWD"'Wait for each bot's ready event. Record its inbox ID, backend URL, run ID,
log path, and process handle. Each script prints its inbox ID on startup.
The ping bot replies to exact plain text ping with pong. The bleep bot replies
to exact plain text bleep with bloop. They ignore all other text, nontext
content, and their own messages. Responses use message.reply, so web chat
shows threaded replies. Logs include the request ID and reply ID. Group update
receipts also include groupUpdated, with membership and metadata field changes.
A group rename records group_name, its old value, and its new value.
The scripts call client.conversations.streamAllMessages() and await
ready() for the local reader to open. Readiness does not prove that the backend
is online or catch-up is complete. The scripts do not sync or replace a reader
for each message or new group. The next read acknowledges the previous item
after the loop finishes processing it.
Bot state and JSON logs stay under target/smoke-check/, separated by backend
origin and bot. A restart against the same backend uses the same inbox ID.
Keep wallet keys and databases out of source control and reports. Logs append
across restarts; use runId to select one process run.
Start web chat in a third terminal:
dev/nix-shell 'just web-chat dev'When the SDK sources match a trunk commit, set XMTP_SDK_BUILD=nix before
these commands: they then copy the release-profile Nix products from the cache
instead of running a cargo debug build. Keep the package stager's validation.
Read the frontend URL from Vite output; its port can change.
Browser checks
Open the frontend URL. Select an ephemeral wallet and connect to the exact backend URL used by the bots. Check the connected backend label. Dismiss the app's informational notice if it appears.
Use the app's navigation menu for new DMs and groups. A direct navigation that
reloads the page can disconnect the client. In the observed run, a reload also
left an app session lock. If this happens for this test account, use
Disconnect other session, close the takeover notice, and connect again.
Do not take over an unrelated user session.
Run these checks. Wait for each expected reply before sending the next trigger. Use a bounded wait, such as 15 seconds. On failure, save the visible state and bot logs. Diagnose the failure; do not report a pass from startup alone.
| Check | Browser action | Required result |
| Ping DM | Create a DM with the ping inbox ID. Send ping three times. | One pong reply for each request, from the ping bot. |
| Ping exact match | Send hello, Ping, and ping?, then ping. | Only the last request gets a reply. |
| Bleep DM | Create a DM with the bleep inbox ID. Send bleep three times. | One bloop reply for each request, from the bleep bot. |
| Group membership | Create a named group. Add both inbox IDs through the Members section. | The browser account and both bots are members. |
| Group delivery | Send ping, bleep, ping, and bleep. | Each trigger gets one reply from the correct bot. |
| Group name change | Open Manage Conversation > Metadata. Change Name to a distinct value, such as Renamed smoke test, and save. Check the header and sidebar, then send ping and bleep. | Both bots log a received record for the same group with contentKind: "groupUpdated". Its groupUpdated.metadataFieldChanges contains fieldName: "group_name", the original name as oldValue, and the new name as newValue. Neither bot replies to the update. Both still reply to their text triggers. |
| Group exact match | Send hello, Ping, Bleep, ping?, and bleep?, then ping and bleep. | Only the last two messages get replies. |
| Bot-to-bot receipt | Read both bots' group logs. | The ping bot receives the bleep bot's bloop reply IDs. The bleep bot receives the ping bot's pong reply IDs. Neither responds to those replies. |
Check sender IDs and request/reply IDs in the JSON logs. The later valid trigger
is a marker: its reply shows that the bot processed preceding ignored messages.
Verify that those preceding request IDs have no replied records. This avoids
relying only on a short period with no visible response.
Web chat uses a virtual message list. Old DOM nodes can disappear as new messages arrive. Do not use a count of all current DOM matches as the full message count. Use the UI to verify visible replies, and logs to check exact totals and IDs. Do not create clients or send messages through browser page evaluation.
Evidence and cleanup
Save a screenshot that shows both group replies, the group membership count, and the backend label. Save the relevant bot JSON logs and a short result report. Report each check as passed, failed, or not run. Include the tested commit, backend URL, bot inbox IDs, group ID, original and new group names, and any failure or workaround. Include the group rename receipt from each bot.
When changing these scripts or the test procedure, prove that the relevant check
can fail. For example, copy the scripts folder to a test-only directory. Change
the comparison in its run-bot.mjs to use lowercase text.
Stop the correct ping process, run the copy with the same state, and send Ping.
The incorrect pong must fail the exact-match check. Stop the copy, remove it,
restart the correct bot, and repeat the ignored-message check followed by a valid
trigger. Keep mutation logs separate in the report. Do not leave the incorrect
bot running or alter the shared script for other runs.
Unless the user asks to leave the test running, stop the bots and frontend, then close the test tab. Leave a pre-existing stack running. If the check started extra services in that stack, stop only those services. For a worktree stack this run created, use:
dev/nix-shell 'just backend release'Do this before removing the worktree so its containers and port claim are gone. Preserve useful evidence outside the worktree first: managed worktree archives do not preserve ignored files. Use the app's archive tool for an app-managed worktree. Verify that the checkout is removed and the stack is stopped. Keep pre-existing backend stacks and user checkouts unless the user asks to remove them.
To check the bot matching contract after a script change, run:
dev/nix-shell 'node --test .agents/skills/smoke-check/scripts/run-bot.test.mjs'These tests check bot matching, group rename logs, and reply errors. They do not replace the live browser and backend checks.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

