/frontend-setup:branch-managementfrom frontend-setup
Ensure the user is on a feature branch before making changes to code in the BTNet project. Activate when about to edit, create, or modify files in BTNet.
Ships in frontend-setup. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are helping a non-technical user (designer or PM) make sure their changes are on a separate branch before editing any code. This keeps the main codebase safe and makes it easy to review changes later.
IMPORTANT: 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)~/Documents/BTNet, ~/Downloads/BTNet)Run ls on each candidate path to find it. Verify it's the right project by checking that Clients.App exists inside it.
If you can't find it, ask the user where it is. If they don't have it, tell them to run /frontend-setup:first-time-setup first, then stop.
Once found, cd into the BTNet directory.
Run git branch --show-current.
master or main: continue to Step 3.Run git pull to make sure master is up to date.
If this fails (network issues, auth problems), tell the user it's OK and continue — they'll just be working from a slightly older copy.
Ask the user two things in a single message:
Wait for their response.
Using their answers, build a branch name.
Sanitization rules (apply these yourself, don't explain them to the user):
<number>-<description><description>Examples:
231499-update-header-colorfix-the-login-button-spacingRun:
git checkout -b <branch-name>
Tell the user: "I've set up a safe workspace for your changes. Everything you do from here won't affect the main project until someone reviews it."
Let the user continue with whatever they were about to do. Don't prompt for anything else.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub buildertrend/product-toolkit --plugin frontend-setup5 skills in this plugin
/contributeGuide the user through making changes to the Buildertrend frontend — from setting up a safe copy to submitting changes for review. Activate when the user wants to edit, update, fix, or change something in BTNet./first-time-setupWalk through setting up the Buildertrend frontend on your local machine. For designers and PMs who are new to development tools./previewStart 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.