run-app
Skill18 starsChanged 2 months agoApache-2.0View on GitHub
USE WHEN: running, smoke-testing, or visually checking the apps - starting the worker-api / front-app dev servers, probing health, CORS, the 404 envelope and the SPA shell, rendering the SPA in a headless browser, reading local request traces, or probing a Worker Preview URL the user deployed. This is the project skill the built-in /run looks for. DO NOT USE WHEN: running unit tests (`pnpm turbo run test --filter=<ws>`) or the CI gate (`pnpm run ci`).
- Reads credentials
3 other projects use a version of this.
Adopted by
Most recently taken up by
- macro-inc/macrotheir own version, first seen Sep 16, 2026
- giulio333/ClaudeLenstheir own version, first seen Sep 9, 2026
- WtotdeD/agentic-resume-buildertheir own version, first seen Aug 21, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- macro-inc/macro★ 4.6ksame name
- giulio333/ClaudeLens★ 64same name
- WtotdeD/agentic-resume-builder★ 2same 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 repository60 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- hooks/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- hooks/CLAUDE.mdCLAUDE.md
- .cursor/rules/backend/hono-gateway.mdcCursor rule
- .cursor/rules/backend/ports.mdcCursor rule
- .cursor/rules/backend/service-bindings.mdcCursor rule
- .cursor/rules/backend/workers-cache.mdcCursor rule
- .cursor/rules/backend/workers-config.mdcCursor rule
- .cursor/rules/contracts/contracts.mdcCursor rule
- .cursor/rules/core/agent-instructions.mdcCursor rule
- .cursor/rules/core/boundaries.mdcCursor rule
- .cursor/rules/core/guardrails.mdcCursor rule
- .cursor/rules/core/turborepo.mdcCursor rule
- .cursor/rules/core/worktrees.mdcCursor rule
- .cursor/rules/frontend/react.mdcCursor rule
- .cursor/rules/frontend/tailwind.mdcCursor rule
- .cursor/rules/frontend/tanstack-query.mdcCursor rule
- .cursor/rules/frontend/tanstack-router.mdcCursor rule
- .cursor/rules/frontend/vite-config.mdcCursor rule
- .cursor/rules/ops/cd.mdcCursor rule
- .cursor/rules/ops/changesets.mdcCursor rule
- .cursor/rules/ops/ci.mdcCursor rule
- .cursor/rules/ops/previews.mdcCursor rule
- .cursor/rules/ops/quality-report.mdcCursor rule
- .cursor/rules/ops/release.mdcCursor rule
- .cursor/rules/quality/code-style.mdcCursor rule
- .cursor/rules/quality/comments.mdcCursor rule
- .cursor/rules/quality/knip.mdcCursor rule
- .cursor/rules/quality/lint-config.mdcCursor rule
- .cursor/rules/quality/markdown-style.mdcCursor rule
- .cursor/rules/quality/naming.mdcCursor rule
- .cursor/rules/quality/simplicity.mdcCursor rule
- .cursor/rules/quality/testing.mdcCursor rule
- .cursor/rules/quality/typescript-config.mdcCursor rule
- .cursor/rules/tests/front-react.mdcCursor rule
- .cursor/rules/tests/hono-workers.mdcCursor rule
- cfSkill
- changesetSkill
- front-vitestSkill
- git-commitSkill
- honoSkill
- monorepo-agent-setupSkill
- playwright-cliSkill
- pnpmSkill
- react-doctorSkill
- reviewSkill
- review-stackSkill
- security-auditSkill
- skills-updateSkill
- tanstack-configSkill
- tanstack-devtoolsSkill
- tanstack-querySkill
- tanstack-routerSkill
- turborepoSkill
- ui-ux-design-best-practicesSkill
- vercel-react-best-practicesSkill
- workers-best-practicesSkill
- skills-updateSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
2
Distinctive
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 8
Run everything from the repository root.
- Very specific: line 12
Start each dev server as its own background Bash task (never a bare &).
- Very specific: line 16
Wait with one capped until grep -q 'localhost:<port>' ….
- Distinctive: line 29
Stop both background tasks when done.
- Distinctive: line 51
Run the same browser loop against the front Preview URL.
“Common” is measured: kept by at least 6 in 10 of the 3 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
Run and verify the apps
Run everything from the repository root. The smoke script discovers apps from apps/*/package.json (monorepo.role, monorepo.healthPath, monorepo.devPort), so a new app is covered without editing it.
Local loop
Start each dev server as its own background Bash task (never a bare
&). Both scripts arecf dev, which runs Vite:pnpm --filter=worker-api dev- ready when Vite printsLocal: http://localhost:8700/pnpm --filter=front-app dev- ready when Vite printsLocal: http://localhost:5174/
Wait with one capped
until grep -q 'localhost:<port>' …; do sleep 0.5; doneon each task's output file. If the SessionStart context reported a port as already listening, reuse that server instead of starting a second one.node .github/actions/lib/smoke.mjs --traces- every line must readok.--tracesprints the latest requests the gateway captured, newest first.Browser check (the SPA is only verified once it has rendered):
pnpm exec playwright-cli open http://localhost:5174 pnpm exec playwright-cli snapshot # API health indicator + version footer rendered pnpm exec playwright-cli console error # expect no errors pnpm exec playwright-cli requests # the /api/v1/health call returned 200 pnpm exec playwright-cli closeAlways type the
pnpm exec playwright-cliprefix. The binary is a repo devDependency and is not onPATH, and that exact prefix is whatsandbox.excludedCommandslets out of the sandbox: Chrome cannot start inside it. The upstreamplaywright-cliskill documents every other command - apply the same prefix to its examples. If the browser is missing on a new machine:pnpm exec playwright-cli install-browser chromium.- Stop both background tasks when done.
Inside the Claude Code sandbox this loop needs sandbox.network.allowLocalBinding and two settings env entries: a sandbox-writable CLOUDFLARE_REGISTRY_PATH (cf's dev registry, which it also hands to Wrangler and Miniflare in place of any WRANGLER_REGISTRY_PATH; the default lives in cf's global config directory, outside the sandbox's writable paths) and NODE_USE_ENV_PROXY=1 (routes Node's fetch through the sandbox proxy, so non-localhost probes such as a Preview URL resolve). cf dev aborts on an env file the sandbox will not let it read, so the settings env entry SKIP_ENV_FILES=1 makes a Worker's vite.config.ts skip its .env (gitignored local secrets): the sandboxed loop starts without those values, and Sentry stays off. Where a user-level Bash(curl *) deny applies, probe with node -e 'fetch(process.argv[1]).then(async (r) => { console.log(r.status, await r.text()); process.exitCode = r.ok ? 0 : 1; })' <url>.
Debugging a failing request locally
The Local Explorer that cf dev serves exposes read-only SQL over the traces and console logs it captured:
POST http://localhost:8700/cdn-cgi/local/explorer/api/local/observability/querywith{"sql": "SELECT … FROM spans | logs …"}.spanshastrace_id,span_id,parent_id,name,outcome,error,duration_ms,start_ms.logshasspan_id,seq,level, andmessage, where seq 0 is the request line.GET http://localhost:8700/cdn-cgi/local/explorer/api/local/workers- the bindings the local Worker sees.
The same API is served on :5174 for front-app's assets Worker.
Without a dev server
There is no bindings-aware smoke without cf dev: hono request loads bindings through Wrangler's getPlatformProxy, and --runtime workerd needs a Wrangler config the apps no longer have, so neither sees the gateway's bindings. Start the dev server and probe it instead. pnpm --filter=worker-api run routes (hono routes) still lists the routes offline.
Worker Preview
Agents never deploy. The user runs pnpm preview:deploy and pastes the printed URLs, or you read the Previews comment on the PR (gh pr view <n> --comments). Contract: .claude/rules/ops/previews.md.
node .github/actions/lib/smoke.mjs --url worker-api=<gateway Preview URL> --url front-app=<front Preview URL>. With any--url, only the named apps are probed, each retried for ~25 s until it serves;deploy-previews.shand CD run this same script. If Cloudflare Access protects the URL, the script sendsCF_ACCESS_CLIENT_ID/CF_ACCESS_CLIENT_SECRETfrom the environment.- Run the same browser loop against the front Preview URL.
- Logs and traces come from the
cloudflare-observabilityMCP server, filtered by theX-Request-Idthe smoke printed. The Local Explorer andpnpm exec wrangler taildo not reach Previews.
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.

