verify-junior
Skill425 starsChanged 11 days agoApache-2.0View on GitHub
Prove what Junior does by launching the local example app (`pnpm dev`) and driving it the way a user does, through the dashboard (Conversations, Inbox, Automations, System) with Playwright, and capturing the action, the resulting state, and the side effects. Use when asked to verify or prove a Junior behavior, to check a sub-feature such as `inbox#waiting` or `guardian#decision-recorded`, or to collect live evidence for a PR. Do not use for writing tests or evals, or for Slack or GitHub behavior on a machine with no Slack workspace or GitHub App.
- Reads credentials
In this repository56 other files it gives its agents.
- AGENTS.mdAGENTS.md
- packages/docs/public/llms.txtllms.txt
- build-toolsSkill
- nitroSkill
- pi-agent-integrationSkill
- public-docsSkill
- slack-developmentSkill
- vercel-queuesSkill
- vercel-sandboxSkill
- verify-skill-alphaSkill
- verify-skill-betaSkill
- verify-skill-chain-endSkill
- verify-skill-chainSkill
- verify-skill-codexSkill
- verify-skill-openSkill
- example-bundle-helpSkill
- example-localSkill
- agent-browserSkill
- demo-videoSkill
- visual-web-qaSkill
- amplitudeSkill
- cloudflareSkill
- datadogSkill
- eval-authSkill
- eval-oauthSkill
- coding-workspace-fixtureSkill
- github-headless-pr-fixtureSkill
- pantry-stockSkill
- eval-directorySkill
- eval-guardian-actionsSkill
- eval-mcpSkill
- incident-briefSkill
- launch-checksSkill
- launch-reviewSkill
- launch-signoffSkill
- resilient-working-directorySkill
- source-handbookSkill
- weather-lookupSkill
- figmaSkill
- github-codeSkill
- github-issuesSkill
- hexSkill
- linearSkill
- self-updateSkill
- notionSkill
- octolensSkill
- pagerdutySkill
- sentrySkill
- design-automation-skillSkill
- jr-rpcSkill
- eval-authSkill
- ttsSkill
- vercelSkill
- xdotcomSkill
- junior-qaSkill
- juniorSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 39
Run node $S/instance.mjs doctor $RUN_DIR before the first drive, after any failed drive, and when anything looks wrong.
- Very specific: line 69
Put all evidence in $RUN_DIR/evidence/<feature>/.
- Distinctive: line 71
Use the real user path: the dashboard composer, its buttons and forms, the Inbox, and the dashboard pages.
- Distinctive: line 73
Check side effects: the Inbox count and tab title, the item in search, the event log of the Conversation, the System page counts.
- Very specific: line 96
Read features/README.md. Cite a sub-feature as <file>#<id>, for example inbox#first-answer-closes.
≈ “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
Verify Junior
Users touch Junior in Slack (Turns and Inbox item cards), in the dashboard (Conversations, Inbox, Automations, System), and on GitHub (PRs, issues). The local example app (apps/example) serves the dashboard and runs real Turns, with a real model, in a queue worker. A message sent from the dashboard composer runs the same agent, tools, Guardian review, and Inbox as Slack. Slack and GitHub need their own credentials (see each feature's Gotchas).
Helpers are Node scripts in scripts/. Run them from the repo root. The feature map is features/README.md.
S=.agents/skills/verify-junior/scriptsLaunch
- Once per checkout:
pnpm installandpnpm build. Once per machine:pnpm exec playwright install chromium. - A live Turn needs a model:
AI_GATEWAY_API_KEYorVERCEL_OIDC_TOKENin.env.local(pnpm dev:env). Check it with theone-replydrive infeatures/background-work.md. A reply that says the model is not configured means no credential. Start the instance:
RUN_DIR=$(node $S/instance.mjs launch | tail -1)- Each run gets a new, empty Postgres database (
verify_junior_<run>) and an empty Redis database (1 to 15) in the compose services.pnpm devmigrates the database. Yourjuniordatabase and Redis database 0 are not touched. --mocksetsJUNIOR_DASHBOARD_MOCK_CONVERSATIONS=true. The dashboard then shows fixed Conversations, Inbox items, Automations, and stats, and the composer runs no agent. Use it only where a feature file says so.launchrefuses when port 3000 or 8970 is in use.pnpm devbinds 3000 and the run's Sentry Local receiver binds 8970, so only one instance can run on a machine.launchstarts a Sentry Local receiver on port 8970 beforepnpm devand setsSENTRY_SPOTLIGHTto it, so Nitro reports there and not to thejuniorsession of a plainpnpm dev. The receiver writes every event to$RUN_DIR/telemetry.ndjson. See Telemetry.- It generates a disposable
JUNIOR_ENCRYPTION_KEYSand never writes it to a file. - It deletes the injected
distsymlinks that an earlierpnpm devleft undernode_modules/.pnpm/@sentry+junior*. With them, pnpm 12 fails the build withERR_PNPM_INJECTED_DEPS_SYNC_READ_DIR. - A cold start takes 2 to 4 minutes.
- Each run gets a new, empty Postgres database (
- Ready means
GET /andGET /api/healthboth return200.launchwaits for both, then printsready: http://localhost:3000 (mock=false)and the run directory. Local development has no sign-in. The viewer isdev@example.com.
Teardown is Cleanup.
Doctor
Run node $S/instance.mjs doctor $RUN_DIR before the first drive, after any failed drive, and when anything looks wrong. It is read-only and exits 0 only when every line is ok:
pnpm devfrom this run is up, and the port 3000 listener descends from it.- The telemetry tail of this run is up.
GET /api/healthreturns200.- The mock mode matches the launch.
HEADis still the launched revision.- Compose
postgresandredisrun, and the run database exists.
Doctor cannot see a wedged page or a stuck Turn on a healthy process. Then open a new Conversation, or stop and launch again.
Drive
node $S/browse.mjs --out DIR [--width PX] [--touch] [--timeout MS] STEP... drives the dashboard with Playwright. --touch emulates a phone with a touch screen. Use it with --width 390. Steps run in order:
--goto PATH_OR_URL,--back NAME(the URL that an earlier--snap NAMEsaved),--click SELECTOR,--fill SELECTOR=TEXT,--type SELECTOR=TEXT(key by key, as a person types),--press KEY,--hover SELECTOR,--tap SELECTOR(needs--touch).--upload SELECTOR=PATH[,PATH]sets the files of a file input, such asrole=button[name="Choose files"].--select SELECTORselects the text of the element, as a mouse drag does.--expect SELECTORwaits until it is visible.--absent SELECTORwaits until none is visible, and it also passes when the element never showed.--title PREFIXwaits for the tab title.--order A|B|Cwaits for the texts in that order.--idlewaits until the open Conversation has no running Turn for 3 seconds.--snap NAMEwritesNAME.aria.yml,NAME.png,NAME.title.txt, andNAME.url.txt.
Selectors are Playwright selectors. Use ARIA handles, such as role=textbox[name="Start a conversation"] or role=region[name="Needs you"]. The run stops at the first failed step and saves failure.png. A live Turn takes 10 seconds to several minutes, so drives that wait for a reply use --timeout 300000.
Most recipes start a Conversation from the composer and come back to it later. Junior renames a Conversation after the first reply, so go back by URL, not by title: --snap after --idle records the URL. The same drive goes back with --back NAME, and a later drive with --goto "$(cat DIR/NAME.url.txt)".
node $S/instance.mjs crash-worker $RUN_DIR [--when FILE] makes Nitro replace the app worker of this run, the way a code change does. This stops a running Turn. See features/background-work.md.
Evidence
Put all evidence in $RUN_DIR/evidence/<feature>/. $RUN_DIR defaults to ${TMPDIR:-/tmp}/verify-junior/<UTC time>-<pid>, outside the checkout.
- Use the real user path: the dashboard composer, its buttons and forms, the Inbox, and the dashboard pages. Do not call internal setters, test-only endpoints, or write database rows.
- Capture the action and the result. A
--snapafter the action, and a second view (another page, a search, a count), is the proof. A toast or the agent's own words alone are not. - Check side effects: the Inbox count and tab title, the item in search, the event log of the Conversation, the System page counts.
- The model is real. Do not mock it.
--mockreplaces Junior's own API, so it proves only what the dashboard shows. dev.login$RUN_DIRhas the server logs. Use it to explain a failure, not as proof.
Telemetry
$RUN_DIR/telemetry.ndjson has one JSON object per line for each error, span, and log that Nitro sends. Use it to explain a result or a failure, such as which tool ran, which model call failed, or which step was slow. It is not proof of what a user sees.
typeiserror,span,log, orsession. Logs havelevelandmessage, which is the event name, such asagent.turn.timed_out. Errors haveerror_type,message, the top frame, andtrace_id.- Spans have
label,duration_ms,status, andattributes.sdk["sentry.op"], the full span name:gen_ai.invoke_agent,gen_ai.chat,gen_ai.execute_tool,queue.process.TELEMETRY.mdhas the names and attributes. - Turn spans and logs carry
gen_ai.conversation.id. It is the last path segment of the Conversation URL, URL-decoded, such aslocal:web:9a15.... - One Conversation:
grep '"gen_ai.conversation.id":"local:web:<id>"' $RUN_DIR/telemetry.ndjson. Its errors:grep '"type":"error"' $RUN_DIR/telemetry.ndjson | grep '"trace_id":"<trace>"', with atrace_idfrom its spans.
Cleanup
node $S/instance.mjs stop $RUN_DIRIt stops the pnpm dev process tree that launch recorded, never processes found by name. It drops the run database and flushes the run Redis database. It stops only the compose services that were not running before launch. It keeps $RUN_DIR and its evidence. A failed launch runs it by itself. Run it after a failed drive too, so that no process keeps port 3000. Then check that $RUN_DIR/evidence still has the artifacts.
Map
Read features/README.md. Cite a sub-feature as <file>#<id>, for example inbox#first-answer-closes. Keep the map current with the maintain-verification-skill skill.
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.

