← スキル一覧に戻る

backend-verification
by mesbahtanvir
ishkul.org
⭐ 1🍴 0📅 2026年1月18日
SKILL.md
name: backend-verification description: Automatically runs required Go checks after any backend code changes. Ensures go vet, gofmt, and go test pass before commits. Use whenever modifying files in the backend/ directory.
Backend Verification
This skill ensures all Go code changes pass required CI checks before committing.
Required Commands
After ANY changes to Go files in backend/, run these commands in order:
1. Format Code
cd /home/user/ishkul/backend && gofmt -w .
Automatically formats all Go files to standard style.
2. Run Static Analysis
cd /home/user/ishkul/backend && go vet ./...
Catches common errors like:
- Printf format string issues
- Unreachable code
- Suspicious constructs
3. Run Tests
cd /home/user/ishkul/backend && go test ./...
Ensures all unit tests pass.
Quick One-Liner
Run all checks at once:
cd /home/user/ishkul/backend && gofmt -w . && go vet ./... && go test ./...
When to Use
- After creating new handlers in
internal/handlers/ - After modifying existing Go code
- Before committing any backend changes
- After adding new packages or dependencies
CI Integration
These checks run automatically in the CI pipeline. Running them locally first:
- Catches issues early
- Speeds up the PR review process
- Prevents failed deployments
Common Issues
go vet Failures
- Check for unused variables
- Verify printf format strings match arguments
- Look for unreachable code after return statements
Test Failures
- Check test file naming:
*_test.go - Verify test function naming:
Test* - Run specific test:
go test -run TestFunctionName ./...
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です