push
Validate, commit, and push.
What this skill does
# Push Skill Atomic test-commit-push workflow. Catches failures before they reach the remote. ## Steps ### Step 1: Detect Project Type Determine which test suites apply: - **Go:** Check for `go.mod` (or `cli/go.mod`). If found, Go tests apply. - **Python:** Check for `requirements.txt`, `pyproject.toml`, or `setup.py`. If found, Python tests apply. - **Shell:** Check for modified `.sh` files. If found, shellcheck applies (if installed). ### Step 2: Run Tests Run ALL applicable test suites. Do NOT skip any. **Go projects:** ```bash cd cli && go vet ./... cd cli && go test ./... -count=1 -short ``` **Python projects:** ```bash python -m pytest --tb=short -q ``` **Shell scripts (if shellcheck available):** ```bash shellcheck <modified .sh files> ``` If ANY test fails: **STOP.** Fix the failures before continuing. Do not commit broken code. ### Step 3: Stage Changes ```bash git add <specific files> ``` Stage only the files relevant to the current work. Do NOT use `git add -A` unless the user explicitly requests it. Review untracked files and skip anything that looks like secrets, temp files, or build artifacts. ### Step 4: Write Commit Message Write a conventional commit message based on the diff: - Use conventional commit format: `type(scope): description` - Types: `feat`, `fix`, `refactor`, `docs`, `test`, `chore`, `style`, `perf` - Keep subject line under 72 characters - Focus on WHY, not WHAT ### Step 5: Commit ```bash git commit -m "<message>" ``` ### Step 6: Sync with Remote ```bash git pull --rebase origin $(git branch --show-current) ``` If rebase conflicts occur: resolve them, re-run tests, then continue. ### Step 7: Push ```bash git push origin $(git branch --show-current) ``` ### Step 8: Report Output a summary: - Files changed count - Tests passed (with suite names) - Commit hash - Branch pushed to ## Guardrails - NEVER push to `main` or `master` without explicit user confirmation - NEVER stage files matching: `.env*`, `*credentials*`, `*secret*`, `*.key`, `*.pem` - If tests were not run (no test suite found), WARN the user before committing - If `git pull --rebase` fails, do NOT force push — ask the user ## Examples ### Pushing Changes **User says:** `/push` **What happens:** 1. Runs Go and Python tests 2. Commits with conventional message 3. Pushes to current branch **Result:** Verified, committed, and pushed changes in one atomic workflow. ## Troubleshooting | Problem | Cause | Fix | |---------|-------|-----| | Tests fail | Code has errors | Fix failing tests before retrying | | Push rejected | Remote has new commits | Pull and rebase, then retry | | No changes to commit | Working tree is clean | Make changes first | ## Reference Documents - [references/push.feature](references/push.feature) — Executable spec: detect project type, run tests first, block push on failure, commit+push on green (soc-qk4b)
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.