Skip to content
cccskills
FreePublished on GitHub

nextjs-better-auth-postgres-docker

Next.js + Better Auth + PostgreSQL を Docker で構築し、Cloud Run へデプロイするスキル。

ローカル開発環境のセットアップから Docker Compose、Dockerfile 作成、Cloud Run + Cloud SQL + Secret Manager を使った本番デプロイまでをカバーする。

「Next.js と Better Auth でアプリを作りたい」「Docker で PostgreSQL を使いたい」「Docker で構築したい」「Docker Compose を使いたい」「アプリを Docker 化したい」「Dockerfile を書きたい」「Cloud Run にデプロイしたい」「Cloud SQL や Secret Manager を使いたい」ときに使う。

The English summary is being prepared. Showing the original description.

See how to install

Files included (3)

  • SKILL.md2.7 KB
  • references/cloud-run-deploy.md11.9 KB
  • references/local-setup.md8.3 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Next.js + Better Auth + PostgreSQL + Docker

Next.js App Router + Better Auth + PostgreSQL を Docker で構築し、Cloud Run へデプロイするためのスキルです。

対象スタック

  • フレームワーク: Next.js (App Router, TypeScript)
  • 認証: Better Auth
  • DB: PostgreSQL 16
  • パッケージマネージャ: pnpm
  • インフラ: Docker / Docker Compose、Google Cloud Run、Cloud SQL、Secret Manager

参照ドキュメント

詳細な手順は以下の reference ファイルに分けています。

ファイル内容
references/local-setup.mdローカル開発環境の構築(Docker Compose + アプリ Docker 化まで)
references/cloud-run-deploy.mdCloud Run へのデプロイ(Cloud SQL + Secret Manager 使用)

どちらを参照するか

  • ローカル環境を構築したい → references/local-setup.md を読む
  • Cloud Run にデプロイしたい → references/cloud-run-deploy.md を読む
  • 両方やりたい → local-setup.md を完了してから cloud-run-deploy.md に進む

環境変数の切り替えまとめ

実行環境によって値が変わる変数を把握しておく。

変数名ローカル直実行Docker Compose (app コンテナ)Cloud Run
DATABASE_URL のホストlocalhostdbCloud SQL Unix socket
BETTER_AUTH_URLhttp://localhost:3000http://localhost:3000Cloud Run サービス URL
INTERNAL_API_BASE_URLhttp://localhost:3000http://app:3000Cloud Run サービス URL

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

AGENTS.md / CLAUDE.mdの作成・編集・整理を行うスキル。CLAUDE.mdを50行以下を推奨とし、詳細ルールはrules/やスキルにモジュール化して分割管理する。以下のリクエストで使用する: (1)「CLAUDE.mdを作って」「AGENTS.mdを整理して」などCLAUDE.mdの新規作成・編集、(2)「ルールを追加して」「rules/に分割して」などルールの追加・分離、(3)「ディレクトリ構成を更新して」など参照の更新、(4) 新しいディレクトリやルールファイルを作成した後のCLAUDE.md反映。

The English summary is being prepared. Showing the original description.

hukusuke1007/agent-skills8Updated Sep 12, 2026

複雑なコードベースを体系的に分析し、アーキテクチャを可視化・ドキュメント化して新規開発者のオンボーディングを支援する汎用スキル。成果物は必ず `docs/` 配下に分割出力する。以下のリクエストで使用する:(1)「このコードベースを分析して」「全体像を教えて」など概要把握、(2)「アーキテクチャドキュメントを作って」「C4図を生成して」など設計ドキュメント生成、(3)「オンボーディング資料を作って」など新規開発者向け資料作成、(4)「技術的負債を洗い出して」など負債評価、(5)「機能一覧を出して」など機能インベントリ生成、(6)「この機能を操作したら何が起きるか追跡して」などユーザー操作フロー追跡、(7)「新機能の実装手順を出して」などフロント/バック横断の実装ガイド生成。特定の言語・フレームワーク・ディレクトリ構成に依存せず、どのリポジトリでも利用できる。

The English summary is being prepared. Showing the original description.

hukusuke1007/agent-skills8Updated Sep 12, 2026

AIコーディングエージェント向けの共通コーディングルール。コードの実装・修正・リファクタリング・レビュー時に使用し、前提確認、最小限の変更、検証に加え、空行・処理の区切り・目的と理由のコメントによる人間が後で理解できる可読性を厳守する。

The English summary is being prepared. Showing the original description.

hukusuke1007/agent-skills8Updated Sep 12, 2026

URL・画像・テキスト要件からAIコーディングエージェント向けのDESIGN.mdを生成するスキル。「example.comをDESIGN.md化して」「このサムネをDESIGN.md化して」「クールでポップなLP用のDESIGN.mdを作って」といったリクエストで使用する。Claude Code / Cursor / Stitch に渡せば一貫したUIを生成できる、getdesign.md / awesome-design-md 準拠の9セクション構成のデザイン仕様書を出力する。CSS解析・画像目視抽出・要件生成の3パターンに対応。

The English summary is being prepared. Showing the original description.

hukusuke1007/agent-skills8Updated Sep 12, 2026

Implement Feature-First architecture with Riverpod state management and Flutter Hooks in Flutter applications

The English summary is being prepared. Showing the original description.

hukusuke1007/agent-skills8Updated Sep 12, 2026

添付された複数の画像を一括で圧縮・リサイズするスキル。「画像を圧縮して」「このスクショを軽くして」「リサイズして」「画像を小さくして」などのリクエストで使用する。Pillowで長辺1920pxにリサイズし、JPEG/PNGで出力先ディレクトリに保存する。

The English summary is being prepared. Showing the original description.

hukusuke1007/agent-skills8Updated Sep 12, 2026

See all skills by hukusuke1007

Report a problem with this skill