
safe-push
by Bedriftsgrafen
Full-stack business intelligence platform tracking 1.1M+ Norwegian companies with real-time analytics | React 19 | FastAPI | PostgreSQL
SKILL.md
name: Safe Push description: Validates code locally before pushing to prevent CI failures.
Safe Push Skill
Purpose
To ensure that code is validated locally before being pushed, preventing "hook fatigue" and server overload.
1. Local Validation (MANDATORY)
Before committing/pushing, you MUST validate your changes locally.
If modifying Backend (backend/):
# 1. Format code
backend/.venv/bin/ruff format backend
# 2. Check types and lint
backend/.venv/bin/ruff check backend --fix
backend/.venv/bin/mypy backend
# 3. Run relevant tests (do not rely on pre-push hook for this!)
backend/.venv/bin/pytest backend/tests/unit/<path_to_relevant_test>.py
If modifying Frontend (frontend/):
cd frontend
# 1. Full validation (Types + Lint)
npm run validate
# 2. Run relevant tests
npm test <path_to_relevant_test>
2. Incremental Push Strategy
CRITICAL: The pre-push hook runs the entire test suite. Pushing many commits at once creates multiple heavy jobs.
-
Check commits to be pushed:
git log --oneline origin/main..HEAD -
Push ONE by ONE:
git push origin <oldest_commit_hash>:mainWait for the hook to pass successfully. Repeat until all commits are pushed.
Score
Total Score
Based on repository quality metrics
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
Reviews
Reviews coming soon