skills/crearize/pre-commit-check/SKILL.md
コミット前品質チェックスキル(Lint、テスト、ビルドの高速検証)
npx skillsauth add aiskillstore/marketplace pre-commit-checkInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
コミット前の品質チェックを高速に実行するスキルです。qa-checkよりも軽量で、開発中の頻繁なチェックに適しています。
| 項目 | pre-commit-check | qa-check | |------|-----------------|----------| | 目的 | 開発中の頻繁なチェック | PR作成前の最終チェック | | 実行速度 | 高速(変更ファイルのみ) | 通常(全体チェック) | | テスト | 変更箇所のみ(オプション) | 全テスト実行 | | カバレッジ | チェックしない | 80%以上必須 | | ビルド | スキップ可能 | 必須 | | 使用タイミング | コミット直前 | PR作成直前 |
# 変更されたファイルを確認
git status --short
# ステージングされたファイルを確認
git diff --cached --name-only
# 変更ファイルからBackend/Frontendを判定
cd backend
# Checkstyle(変更ファイルのみ)
./gradlew checkstyleMain checkstyleTest
# SpotBugs(変更ファイルのみ)
./gradlew spotbugsMain spotbugsTest
# 変更されたクラスに関連するテストのみ実行
./gradlew test --tests "*[変更されたクラス名]Test"
# ビルドはスキップしてコンパイルのみ
./gradlew compileJava compileTestJava
cd frontend
# Biome Lint(全体)
pnpm run lint:check
# 変更されたファイルに関連するテストのみ実行
pnpm run test:ci --changed
# TypeScript型チェック
npx tsc --noEmit
## Pre-Commit Check 完了
### Backend
- ✅ Lint: エラーなし
- ✅ テスト: [実行数] 件成功
- ✅ コンパイル: 成功
### Frontend
- ✅ Lint: エラーなし
- ✅ テスト: [実行数] 件成功
- ✅ 型チェック: エラーなし
### 次のステップ
コミット可能です。
## Pre-Commit Check 失敗
### Backend
- ❌ Lint: エラー [数] 件
- [エラー内容]
- ❌ テスト: [失敗数] 件失敗
- [失敗テスト名]
- ✅ コンパイル: 成功
### Frontend
- ✅ Lint: エラーなし
- ✅ テスト: すべて成功
- ✅ 型チェック: エラーなし
### 修正が必要な項目
1. Backend Lintエラーを修正
2. Backend テスト失敗を修正
### 次のステップ
上記を修正してから再度チェックしてください。
documents/development/development-policy.md: 開発ガイドラインbackend/config/checkstyle/checkstyle.xml: Checkstyle設定backend/config/spotbugs/spotbugs-exclude.xml: SpotBugs設定frontend/biome.json: Biome設定development
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.