スキル一覧に戻る
hermanolsson

pre-push

by hermanolsson

Simple plugin to add home assistsant sensors for traffic departures. Build with help of Claude AI.

0🍴 0📅 2026年1月8日
GitHubで見るManusで実行

SKILL.md


name: pre-push description: Quick validation checklist before pushing changes. Use when about to push, before git push, or to validate changes.

Pre-Push Validation Checklist

Quick validation before pushing changes to the repository.

Instructions

Run through this checklist:

1. Manifest Validation

  • Read custom_components/sl_departures/manifest.json
  • Verify required fields: domain, name, version, codeowners, config_flow, iot_class
  • Check version is appropriate for the changes

2. Translation Completeness

  • Compare strings.json keys with translations/en.json
  • Check translations/sv.json has matching keys

3. Import Validation

Run:

python -c "import sys; sys.path.insert(0, '.'); from custom_components.sl_departures import const"

4. Git Status Review

  • Run git status and git diff --staged
  • Ensure no sensitive files (.env, credentials) are staged
  • Summarize what's being pushed

5. Quick Code Scan

Check for:

  • print() statements (should use _LOGGER)
  • Hardcoded credentials or API keys
  • TODO/FIXME comments that need addressing

Output Format

Report each check as PASS or FAIL with details:

1. Manifest:     PASS/FAIL - details
2. Translations: PASS/FAIL - details
3. Imports:      PASS/FAIL - details
4. Git Status:   X files staged
5. Code Scan:    PASS/FAIL - details

Ready to push: YES/NO

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です