Safe Push

Validate backend and frontend code locally before pushing commits.

Updated Jan 10, 2026
One-click install
npx skills add https://github.com/Bedriftsgrafen/bedriftsgrafen.no --skill safe-push
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Safe Push
Source: https://github.com/Bedriftsgrafen/bedriftsgrafen.no/tree/main/.agent/skills/safe_push
Command: npx skills add https://github.com/Bedriftsgrafen/bedriftsgrafen.no --skill safe-push

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Safe Push Skill reduces CI failures by ensuring code is validated locally before pushing, preventing hook fatigue and server overload.

Core Features & Use Cases

  • Enforces local validation for backend and frontend changes.
  • Guides through formatting, linting, type checks, and targeted tests before commit.
  • Supports a safe, incremental push strategy to minimize heavy jobs and retries.

Quick Start

Validate your changes locally before pushing to ensure CI stability.

Frequently Asked Questions about Safe Push

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate code locally before pushing to prevent CI failures?

To validate code locally before pushing, run formatting, linting, type checks, and targeted tests on backend and frontend changes prior to commit. This enforces mandatory local validation steps to prevent CI failures and server overload.

What is the best way to run pre-push checks for backend and frontend changes?

The best way to run pre-push checks is to apply specific validation commands for both backend and frontend components, ensuring formatting, linting, type checks, and targeted tests pass before committing code.

Why does pushing commits one by one help reduce CI hook fatigue?

Pushing commits one by one helps reduce CI hook fatigue by using a safe, incremental push strategy that minimizes heavy jobs and retries, preventing server overload and ensuring CI stability.

Can I run type checks and linting locally before a commit?

Yes, you can run type checks and linting locally before a commit. The process guides developers through these validation steps to catch issues early and prevent CI failures.

Do I need specific dependencies to run targeted tests locally before pushing?

No specific dependencies are required to run targeted tests locally before pushing. The validation process relies on your existing backend and frontend environment setup to execute the necessary checks.