quality
コード品質チェックスキル。ビルド、リント、フォーマット、テストを実行してエラーがないことを確認する。使用ケース:コーディング完了後の品質確認
When & Why to Use This Skill
This Claude skill automates the essential code quality assurance workflow by sequentially executing build, lint, format, and test commands. It serves as a local CI/CD gatekeeper, ensuring that code changes are structurally sound, follow style guidelines, and pass functional requirements before being committed or deployed.
Use Cases
- Post-Development Quality Check: Run a comprehensive suite of checks immediately after finishing a coding task to catch build errors or broken tests early.
- Automated Code Styling: Use the integrated linting and formatting tools to automatically fix style inconsistencies and maintain a clean, professional codebase.
- Regression Prevention: Execute unit tests automatically to verify that new code changes haven't negatively impacted existing functionality.
- Pre-Merge Validation: Ensure the project is in a 'green' state by verifying that the build process completes successfully without any manual intervention.
| name | quality |
|---|---|
| description | | |
品質チェックスキル
以下のコマンドを順番に実行し、すべてエラーがないことを確認する。
実行手順
1. ビルドチェック
npm run build
ビルドエラーがあれば修正する。
2. リントとフォーマットのチェックと自動修正
npm run lint:fix
このコマンドはリントエラーの自動修正とコードのフォーマットを同時に行います。 コマンド実行後もエラーが残っている場合は、手動で修正してください。
3. テスト
ユニットテストを実行します。
npm test
完了条件
- すべてのコマンドがエラーなく完了すること
- エラーがあった場合は修正し、再度チェックを実行すること