new-feature-branch
Create a new git branch following the Conventional Branch naming convention.
What this skill does
# Create New Feature Branch Create a new git branch following the Conventional Branch naming convention. Branch naming rules are inlined below so the skill is self-contained. ## Branch Naming Convention Branches must follow this pattern: ``` <type>/<ticket>-<description> ``` The ticket segment is Finstreet-specific (see below). Pure Conventional Branch uses `<type>/<description>`. ### Types | Type | Alias | Description | | ---------- | ------ | ----------------------------------- | | `feature` | `feat` | New feature or enhancement | | `bugfix` | `fix` | Bug fix (non-production) | | `hotfix` | — | Urgent production fix | | `release` | — | Release preparation | | `docs` | — | Documentation only | | `refactor` | — | Code refactoring | | `test` | — | Adding or updating tests | | `chore` | — | Maintenance, deps, tooling | Prefer the full names (`feature`, `bugfix`) over the aliases for consistency across the team. ### Trunk Branches (no prefix) `main`, `master`, and `dev` are trunk branches and do not use a prefix. You never create these via this skill — you branch _off_ them. ### Ticket Number (optional) Some Finstreet projects use tickets (e.g., `eb-XXXX` like `eb-1250`), others do not. The skill supports both: - **If a ticket is provided** in `$ARGUMENTS` or by the user: include it as `<type>/<ticket>-<description>`. Use the ticket format the user provides — lowercase it and hyphenate if needed. - **If no ticket is provided**: use `<type>/<description>` and proceed without asking. Do not block the flow. The user will mention a ticket when they have one. Don't prompt for it. ### Description - kebab-case: lowercase letters, digits, and hyphens only - Short but descriptive (2–5 words) ## Naming Rules (strict) Branch names must follow these rules or they will be rejected by CI: - **Lowercase only** — no uppercase letters anywhere - **Alphanumerics and hyphens** — `a-z`, `0-9`, `-` - **No underscores, spaces, or special characters** - **No consecutive hyphens** (`--`) or dots (`..`) - **No leading or trailing hyphens or dots** in any segment - **Dots allowed only** in `release/` version descriptions (e.g., `release/v1.2.0`) ### Invalid examples (do not produce these) | Branch | Problem | | ----------------------------- | ------------------------------ | | `Feature/Add-Login` | Uppercase letters | | `feature/new--login` | Consecutive hyphens | | `feature/-new-login` | Leading hyphen in description | | `release/v1.-2.0` | Hyphen adjacent to dot | | `fix/header_bug` | Underscore | | `feature/eb-1250_add login` | Underscore and space | ### Valid examples - `feature/eb-1250-user-authentication` - `bugfix/eb-1189-fix-login-redirect` - `hotfix/eb-1300-critical-payment-fix` - `refactor/eb-1275-cleanup-api-calls` - `release/v1.2.0` - `chore/update-dependencies` (no ticket — rare) ## Workflow Execute these steps in order: ### 1. Gather Information If arguments were provided via `$ARGUMENTS`, parse them for ticket (if any), type, and description. Otherwise, ask the user for: - **Branch type** (default: `feature`) - **Brief description** of what the branch is for Do **not** ask for a ticket. The user will mention one if the project uses tickets. Before proceeding, validate the assembled name against the **Naming Rules** above. If any rule fails, fix it silently (e.g. lowercase, replace underscores with hyphens). ### 2. Detect the Base Branch Different repos use different trunk branches (`dev`, `main`, or `master`). Detect which one this repo uses: ```bash # Prefer the remote's default branch when set git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null | sed 's|^origin/||' ``` If that returns nothing, fall back by checking which trunk branch exists locally, in priority order: `dev`, `main`, `master`: ```bash for b in dev main master; do git show-ref --verify --quiet "refs/heads/$b" && echo "$b" && break done ``` Use the detected branch name as `<base>` in the next step. ### 3. Prepare Local Repository ```bash git checkout <base> git pull origin <base> ``` ### 4. Create and Checkout New Branch ```bash git checkout -b <type>/<ticket>-<description> # or, without ticket: git checkout -b <type>/<description> ``` ### 5. Confirm Success After creating the branch, confirm to the user: - The branch name that was created - That they are now on the new branch - Remind them to push with `git push -u origin <branch-name>` when ready
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.