From frontend-setup
Start the dev server and open the Buildertrend frontend in your browser. Use when someone asks to run the code, preview their changes, or see the frontend.
npx claudepluginhub buildertrend/product-toolkit --plugin frontend-setupThis skill uses the workspace's default tool permissions.
You are helping a non-engineering user see the Buildertrend frontend in their browser. They have already completed the initial setup using `/frontend-setup:first-time-setup` and now want to view or preview the UI.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
You are helping a non-engineering user see the Buildertrend frontend in their browser. They have already completed the initial setup using /frontend-setup:first-time-setup and now want to view or preview the UI.
/frontend-setup:first-time-setup to complete the initial setup first, then stopIMPORTANT: Never combine commands with shell operators. No &&, ||, ;, |, >, <, `, $(...), or eval. Always run each command as a separate Bash tool call.
Look for a BTNet directory. Check common locations:
~/BTNet)~/Desktop/BTNet)~/dev/BTNet, ~/repos/BTNet, ~/code/BTNet)Run ls on each candidate path to find it. If you can't find it anywhere, tell the user:
/frontend-setup:first-time-setup to set everything up from scratch."Then stop — do not continue with the remaining steps.
Once found, cd into the BTNet directory.
Run these checks silently (no need to explain each one to the user unless something is wrong):
node --version — must be >=22.12.0 <23. If wrong, run fnm use 22. If fnm is missing, tell the user to run /frontend-setup:first-time-setup.pnpm --version — must be >=10.0.0. If missing, tell the user to run /frontend-setup:first-time-setup.Clients.App/.env.development.local exists. If missing, create it with this content:VITE_WARN_FLAGS=true
VITE_APIX_PROXY=https://api.test.buildertrend.net
VITE_WEBFORMS_URL=https://test.buildertrend.net
On Mac: Read /etc/hosts and look for a line containing local.buildertrend.net. If it's already there, skip to the next step.
If missing, walk the user through adding it:
sudo sh -c 'echo "127.0.0.1 local.buildertrend.net" >> /etc/hosts'On Windows: Read C:\Windows\System32\drivers\etc\hosts and look for local.buildertrend.net. If missing, walk the user through editing it:
C:\Windows\System32\drivers\etc\127.0.0.1 local.buildertrend.netAfter adding the entry on either OS, verify it worked by reading the hosts file again.
On Mac: Run lsof -i :443. If the output shows a process listening on port 443, the server is already running — skip to Step 6.
On Windows: Run netstat -ano -p TCP and look for :443 in the output. If present, the server is already running — skip to Step 6.
First, change into the Clients.App directory:
cd Clients.App
On Mac, the dev server needs elevated permissions:
sudo pnpm run start
Tell the user they may be prompted for their Mac login password.
On Windows:
pnpm run start
If you are unable to run the dev server (permission issues, hangs, gets blocked), walk the user through doing it manually:
cd command with the full path)sudo pnpm run start and enter their password if promptedpnpm run startTell the user to open their browser and go to: https://local.buildertrend.net:443/
Confirm with the user that they can see the Buildertrend UI in their browser.
rm -rf node_modules && pnpm install from the BTNet root directory.fnm use 22 to switch to the correct version.lsof -i :443 to see what it is. The user may need to stop that process first.If you can't resolve an issue, tell the user to reach out to Michael Hanson for help.