testing-vending-machine
Skill by dabit3
Runs and tests the Vending Machine app locally (Next.js, Convex and Clerk). It is for developers who need to verify admin flows like creating and deleting events, or set up an authenticated admin session for testing.
Install testing-vending-machine
Built from the published package, never by AI.
git clone --depth 1 https://github.com/dabit3/vending-machine /tmp/vending-machine && mkdir -p ~/.claude/skills && cp -r /tmp/vending-machine/.agents/skills/testing-vending-machine ~/.claude/skills/testing-vending-machineRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install testing-vending-machine in Claude Code
git clone --depth 1 https://github.com/dabit3/vending-machine /tmp/vending-machine && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/vending-machine/.agents/skills/testing-vending-machine ~/.gemini/antigravity-cli/skills/testing-vending-machineAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install testing-vending-machine in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill explains how to run the Vending Machine app on localhost:3000 with npm run dev, using a deployed Convex dev backend and a Clerk dev instance for admin sign-in. It covers local setup from repo-scoped secrets, pushing Convex changes with npx convex dev --once, and inspecting backend tables such as auditLogs and flaggedEmails.
It walks through signing in as an admin, either with a browser cookie or with a single-use Clerk sign-in ticket minted through the Clerk API. It also documents the create and delete event flow, the two-block Codes card, and a method for testing close race conditions in the UI. It is written for developers and testers working on this specific repository.
Written from the project's SKILL.md and checked against it.
What it can do
- Local app setupCreates an env file from repo secrets, then installs dependencies and starts the Next.js dev server.
- Admin sign-in for testsAuthenticates a browser session as an admin using a Clerk sign-in ticket or a stored cookie.
- Create event flowWalks through creating an event on /admin and confirming it on the public claim page.
- Delete event flowWalks through deleting an event and checking that its claim page shows Event not found.
- Convex deploy and inspectionPushes changed Convex functions with npx convex dev --once and lists backend data with npx convex data.
- Codes card testingDescribes how to verify two named code blocks, renames, merges and uploads on the Codes card.
- Race condition testingDescribes side-by-side windows and timed clicks to test sold-out paths in reactive Convex UI.
What you need
- Access to the repo-scoped secrets file for the Vending Machine repository
- Node.js with npm to install and run the app
- A Convex dev deployment for the app
- A Clerk dev instance with CLERK_SECRET_KEY for the sign-in fallback
- Google Chrome for browser-driven sign-in
Try asking
- Set up the Vending Machine app locally and start the dev server
- Sign me in as an admin so I can test the admin pages
- Test creating and then deleting an event in the Vending Machine app
Good to know
- Written for one specific repository and its shared dev environment, with hardcoded secret paths.
- The CLERK_COOKIE secret may be signed out and fail to authenticate on its own.
- Shared Convex dev data can drift from the schema and make deploys fail until it is cleaned up.
- Sign-in tickets are single-use and must be minted again for each attempt.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/testing-vending-machine/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to testing-vending-machine
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
testing-vending-machine: common questions
Do I need to run npx convex dev to test the app?
No. The source says the Convex functions are already deployed, so you only need it when the branch under test changes convex/ files.
Why does /admin redirect me to sign in?
The source says the stored CLERK_COOKIE may only hold a signed-out dev-browser token. In that case you need to mint a sign-in ticket with the Clerk API or re-export the cookie while signed in.
Who is an admin in the Vending Machine app?
The source says the admins table in Convex is an allowlist. While it is empty, any signed-in user is admin, and dabit3@gmail.com is a global admin.
How do I install testing-vending-machine?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is testing-vending-machine free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is testing-vending-machine safe to use?
It scores 56 of 100. Grades: maintenance A, licence F, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to testing-vending-machine?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
