big-prod-e2e-test
Skill12 starsChanged 7 days agoMITView on GitHub
Manual pre-prod test, only when the user explicitly invokes /big-prod-e2e-test. Builds a disposable amd64 stand from the working tree, onboards users through the UI, installs the hook into five fixture repos plus the previous-release hook into a sixth, runs the installed hook on every current Node.js LTS line in Docker, runs eleven isolated claude -p sessions (MCP, Bash ok/error, a denied call, a background subagent, repo-relative Bash paths and a linked worktree) and one legacy-hook session, verifies each in the UI with per-scenario checks, checks local hook config, file categories and team/admin visibility and writes a report. Takes 30-90 min and spends real Claude credits.
- Reads credentials
In this repository28 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- adlc-scriptingSkill
- architect-assistantSkill
- ceSkill
- changelogSkill
- check-fix-buildSkill
- db-state-updateSkill
- git-branchingSkill
- github-issuesSkill
- hook-debuggingSkill
- migrations-data-integritySkill
- morning-checkSkill
- nodejs-scriptSkill
- pocSkill
- post-impl-check-client-component-sizeSkill
- post-impl-check-cost-calc-no-autoSkill
- post-impl-check-indexesSkill
- post-impl-check-kb-actualSkill
- post-impl-check-migrationsSkill
- post-impl-check-performance-no-autoSkill
- post-impl-check-security-no-autoSkill
- security-checkSkill
- server-e2e-testsSkill
- session-kb-suggestSkill
- sql-reviewSkill
- ui-componentsSkill
- update-install-instructionsSkill
- use-playwrightSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 48
If it is not, STOP at once.
- Distinctive: line 52
Only continue once you have confirmed this is the first user message of the session.
- Very specific: line 75
Never start a second instance while one runs: both would use ports 3001/5433.
- Very specific: line 80
Do not poll in a loop and do not sleep.
- Very specific: line 88
Delegate the analysis: Read .claude/skills/big-prod-e2e-test/models.json and take its analysis value.
- Very specific: line 91
read _report/index.md and _report/report.json.
- Very specific: line 98
treat a verdict field with status skipped (only cost, when the telemetry cost did not arrive) as neither pass nor fail.
- Very specific: line 120
if the exit code is 2 and the failed step is preflight, the fix from the KB troubleshooting section (busy port, missing tool, missing …
- Distinctive: line 124
Do not fix anything as part of this skill.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Big pre-prod e2e test
Arguments: $ARGUMENTS (optional: --keep leaves the stand running after the run).
The whole test is a deterministic Node orchestrator,
.claude/skills/big-prod-e2e-test/scripts/run.mjs. It runs every phase, writes the report and
exits 0 (PASS), 1 (FAIL) or 2 (an infra step failed). This skill only launches it, waits
for it, and relays the result. Do not re-implement or "help" any phase by hand.
Background and the report layout: docs/knowledgebase/test/big-prod-e2e-test.md.
What the run covers
- Phases: P0 preflight → P1 build → P2 stand → P3 repos → P4 onboarding → P5 hooks →
P5b legacy hook (builds the previous-release installer from git and installs it into
legacy-hook) → P5c Node LTS (the installed plugin on every current Node.js LTS line in Docker) → P6 teams → P7 smoke → P8 sessions → P9 verify → P9b file categories → P10 visibility → P11 final → P12 teardown. - AC rows:
FR-2…FR-11,FR-FC1,FR-FC2, plusFR-LC(local hook config, P5),FR-UP(upgrade over a committedlog-hub.json, P5),FR-OLD(previous-release hook, P5b + P9),FR-WT(S11 lands in the worktree'sai_work_dir, P8) andFR-NODE(hook algorithm tests and a hook smoke in a CommonJS, an ESM and a package.json-less repo on the engines floor plus every live Node.js LTS line, P5c). - Sessions: S1–S7 (plain edit + Bash, skill, subagent, workflow, rule, skill + subagent, MCP),
S8 (Bash ok/error + a denied
Write), S9 (background subagent + work time), S10 (an absolute repo path in a Bash command shown repo-relative), S11 (the same at the root of a linked worktree withARTISYN_PROJECT_ROOT); every session starts at the project root (a subdirectory cwd is out of scope for now), and L1 (a session recorded by the previous-release hook). - Visibility rows: V1–V7 (personal and team lists) and V8 (admin sees no repo; another user's session URL — the first of S1/S5/S6/S3 its owner can open — returns 403 with no session data).
- Run dir (
<git-root>/../log_hub_big_test-<stamp>/, never inside the repo):_log_hub/(stand),_claude-config/,_state/,_verify/,_report/, the five fixture repos pluslegacy-hook/,ts-webapp-wt/(S11's linked worktree),_prev-src/and_prev-hook/(the P5b previous-release source and installer build).
Clean-context check
This skill must run against a clean context. Before step 1, check whether the message that invoked it is the FIRST user message in the current conversation, with no prior user prompts and no work already done in this session.
If it is not, STOP at once. Do not run step 1 or take any other action. Tell the user:
This skill must run on a clean context. Run
/clear, then re-invoke/big-prod-e2e-test.
Only continue once you have confirmed this is the first user message of the session.
Credentials warning (tell the user before starting)
Say this to the user in one short paragraph, then continue without waiting:
The run gives every nested
claudean isolated config (<run-dir>/_claude-config). IfANTHROPIC_API_KEYorCLAUDE_CODE_OAUTH_TOKENis set, it is passed through. Otherwise~/.claude/.credentials.jsonis copied into the isolated config, and a nested session may refresh and rotate the OAuth refresh token. If that happens, your main Claude Code login can drop and you will need to log in again. To avoid it, setCLAUDE_CODE_OAUTH_TOKEN(claude setup-token) before the run.
Steps
Launch in the background. From the repo root, start a single Bash call with
run_in_background: true:node .claude/skills/big-prod-e2e-test/scripts/run.mjs $ARGUMENTSPass only
--keepor nothing; the script rejects any other argument with exit2. Never start a second instance while one runs: both would use ports 3001/5433. The local Postgres fromserver/.env(orBIG_TEST_MCP_PG_URL) must be running: P0 creates the S7 MCP test databasebig_test_mcpthere additively and never drops it.- Wait. The run takes 30–90 minutes. The first image build alone can take about 7 min.
Do not poll in a loop and do not sleep. You are notified when the background command exits.
You may read its output file once or twice if the user asks for progress. Every line starts
with
[<step>], and the[preflight] run dir: …line names the run dir. - Find the report. Near its end the output prints
[run] report: <path>/_report/index.html (also index.md)and[run] overall PASS|FAIL — exit <code>. If the output was lost, the run dir is the newestlog_hub_big_test-<stamp>directory next to the git root (<git-root>/../). Delegate the analysis. Read
.claude/skills/big-prod-e2e-test/models.jsonand take itsanalysisvalue. Spawn oneAgentsubagent withmodelset to that value. Give it the run dir and ask it to:- read
_report/index.mdand_report/report.json; - for every failed infra step, AC check, session, feature check (FC) and visibility row, read
the relevant evidence:
_report/<S#>/verdict.json,_report/FC/, the mismatch and evidence screenshots, the_state/sessions/<S#>.result.json/.attempt-<n>.stream.jsonl/.verify.stderr.log,_state/installer-<repo>.log,_state/prev-hook-build.log(P5b),_state/node-lts.json(P5c),_state/stand-up.log,_state/app-container.log(server container output, e.g. a boot crash), the hook state in<repo>/.artisyn/ai_work_dir/(andts-webapp-wt/for S11) and_state/run.logas needed; - treat a verdict field with status
skipped(onlycost, when the telemetry cost did not arrive) as neither pass nor fail; - explain each failure: what was expected, what happened, the likely cause, and whether it looks like a product defect (server, client or hook) or a test-script defect (the orchestrator, a selector, a flaky wait);
- a check that did not run (a missing precondition such as "repository id unknown", "not evaluated", "no session to open") is always a test-script defect, even when the precondition was lost to a product defect elsewhere: each check must have its own, independent source of data, so one product bug never blinds an unrelated check;
- return a short structured summary. It must not edit any file or re-run anything.
The main session does no heavy analysis itself: no reading screenshots or stream logs here.
- read
- Relay to the user, briefly:
- the overall result (PASS / FAIL), the exit code and the run dir;
- each failure with the subagent's one-line cause and its product/script classification, and
a link to
_report/index.html(opens in a browser with every evidence screenshot inline;index.mdhas the same content as Markdown); - the stand info from the report's "Stand" section: with
--keep, the URLhttp://localhost:3001and the exactdocker compose … downcommand; in every case, thedocker image rm artisyn-log-hub:big-test-<stamp>command, because the image is kept on disk; - if the exit code is
2and the failed step ispreflight, the fix from the KB troubleshooting section (busy port, missing tool, missing credentials, unreachable local Postgres).
Do not fix anything as part of this skill. Product defects are reported, not fixed here.
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.

