Use this skill when creating or reviewing Next.js Route Handlers (app/api), adding rate limiting, input validation, or auth to API endpoints. Trigger words: API ルート, Route Handler, app/api, エンドポイント, レート制限, 入力検証, CORS, ヘッダー, 認証付き API, hardening.
ci-github-actions
Use this skill when setting up or modifying CI pipelines, GitHub Actions workflows, or automated checks (lint, typecheck, test, build) for this project. Trigger words: CI, GitHub Actions, ワークフロー, パイプライン, 自動テスト, lint チェック, typecheck, ビルド検証, .github/workflows.
インストール方法を見る含まれるファイル(1)
- SKILL.md2.0 KB
SKILL.md(原文)
インストールする前に、エージェントに与えられる指示の中身を確認できます。
CI(GitHub Actions)
いつ使うか
- CI パイプラインを新規作成・変更するとき。
- PR で自動的に lint / typecheck / test / build を走らせたいとき。
やること
- pnpm + Node 22 をセットアップし、依存はキャッシュする。
- ジョブは「lint → typecheck → unit test → build」を最低限通す。
- E2E は別ジョブ/必要時のみ(時間とコスト管理)。
- 秘密は GitHub Secrets。ワークフロー YAML に値を書かない。
- 失敗を握りつぶさない(
continue-on-errorを安易に使わない)。
守るルール
- ✅ Node 22 / pnpm / 依存キャッシュ。
- ✅ lint・typecheck・test・build を必須チェックに。
- ✅ 秘密は Secrets 経由のみ。
- ❌ YAML にトークン/接続文字列をハードコードしない。
- ❌ テスト失敗を
|| trueで無視しない。
典型例(コード片)
# .github/workflows/ci.yml
name: CI
on: { pull_request: {}, push: { branches: [main] } }
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with: { node-version: 22, cache: pnpm }
- run: pnpm install --frozen-lockfile
- run: pnpm lint
- run: pnpm typecheck
- run: pnpm test --run
- run: pnpm build
アンチパターン
- ローカルでしか通らない手順を CI に書かず「自分の環境では動く」状態。
- 秘密を YAML にベタ書きしてリポジトリに残す。
- 失敗ジョブを無視するフラグで「常に緑」を演出する。
レビュー
まだレビューはありません。使ってみた感想をお寄せください。
同じリポジトリのスキル
概要と使いどころ
Use this skill when implementing full-text search, autocomplete, or vector/semantic search and RAG with MongoDB Atlas. Trigger words: 全文検索, あいまい検索, オートコンプリート, ベクトル検索, セマンティック検索, 類似検索, Atlas Search, $search, $vectorSearch, RAG, embedding.
Use this skill when implementing sign-in, sessions, authorization checks, or protecting routes and Server Actions. Trigger words: 認証, ログイン, サインイン, セッション, 認可, 権限チェック, Better Auth, Auth.js, 保護, ミドルウェア, getSession.
Use this skill when starting a new session, opening this project for the first time, or when you need to recall the project's tech stack, hard rules, and which other skills exist. Trigger words: セッション開始, このプロジェクト, 全体像, どのスキル, 何から, getting started, overview.
Use this skill when writing end-to-end tests, browser automation, or verifying user flows in a real browser. Trigger words: E2E, Playwright, ブラウザテスト, ユーザーフロー, 結合テスト, シナリオテスト, ログインテスト, getByRole, expect.
Use this skill when handling runtime errors, adding error.tsx or not-found.tsx, designing fallback UI, or deciding what to surface to users vs logs. Trigger words: エラー処理, error.tsx, not-found, 例外, フォールバック, エラーバウンダリ, try catch, ユーザー向けエラー, ログ.