better-auth-google-gate SKILL.md skillA
This file is byte-identical to the first copy the registry indexed, one of 3 indexed copies. Same content hash, so the same checks give both the same grade.
better-auth-google-gate from daishiman/harness-dev is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add daishiman/harness-dev/better-auth-google-gate@git:20261002.c0e127dPins git:20261002.c0e127d in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- daishiman/harness-dev
- Path
.agents/skills/better-auth-google-gate/SKILL.md- Versions recorded
- 1
- Latest version
- git:20261002.c0e127d, committed Oct 2, 2026
- Size
- 15,167 bytes
- Repository stars
- 10
- License
- none declared
Webアプリのアクセス制御・認証・認可の実装はすべてこのスキルを使う。遮断だけならCloudflare Access、アプリ内identity・role・session・WebSocket等が必要ならBetter Authとする単一決定表の正本。「認証を付けて」「ログイン機能」「Googleでログインできるように」「社員だけに限定」「特定企業だけに公開」「許可リスト/招待制」「メール+パスワード認証」「セッション管理」「ロール・権限管理」「OAuth設定」「redirect_uri_mismatchを直す」「認証のセキュリティレビュー」などの文脈で、ユーザーが「認証」と明示しなくてもログイン要件が含まれるなら必ず読む。特にNext.js App Router+OpenNext+D1、Hono、素のWorkersでのBetter Auth+Google OAuth導入を自動化し、Google Cloud Consoleで人間にしかできない操作は日本語のクリック手順と直リンクへ切り分ける。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Better Auth Google Gate Cloudflare上のアプリへGoogle認証を導入する。既定はGoogle Workspaceの単一組織限定とし、個人Gmail・別Workspace・グループアドレス・メールエイリアスをログイン主体として扱わない。 ## 実行原則 - コード、依存関係、D1、migration、Wrangler、テスト、デプロイは可能な限り自動実行する。 - Google Cloud ConsoleのOAuthアプリ作成、Audience選択、Client ID/Secret取得だけをユーザー作業として切り出す。 - Secret値をチャット、コマンド引数、Git、ログ、`wrangler.jsonc`、`NEXT_PUBLIC_*`へ出さない。 - 既存コードと設定を先に調査し、既存認証やユーザー変更を上書きしない。 - Google Workspace制限にはメール末尾比較でなく、Google署名済みIDトークンの`hd` claimをBetter Authの`socialProviders.google.hd`で検証する。 - ルート保護はCookieの存在だけで完了させず、保護ページ、Server Action、API、データアクセス直前で`auth.api.getSession`を検証する。 - Better Authの認証テーブルを記憶で手書きしない。CLIで現在の導入バージョンに対応したスキーマを生成する。 - ユーザーが「実装して」と依頼した場合、検証済みの安全な次工程が残る限り、案内だけで止まらず実行する。 - 通常は事前質問ゼロで、既存コードと設定から認証モデルを再構成し、secretを必要としない実装・テスト・設定ガイドを先に完成させる。複数方式を並べず、証拠に合う安全な構成を1つ選ぶ。 ## 0. アクセス制御の単一決定表(正本、INV-4) v0/v1 の呼び方で分岐させず、**アプリが利用者のidentityを必要とするか**で決める。 | 要件 | 採用方式 | v1 での扱い | |---|---|---| | 社内利用者以外をエッジで遮断するだけ。全員が同じデータを使い、アプリ内のidentity・role・session・ユーザー単位データが不要で、WebSocketも使わない | **Cloudflare Access** | そのまま継続可。Better Auth への移行を残課題にしない | | アプリ内のidentity、role/認可、session、ユーザー単位データのいずれかが必要、または WebSocket を使う | **Better Auth** | v0 から必須。Access だけを一時利用して後送りにしない | …
Read the whole file at its exact version.
How to install
mdr add daishiman/harness-dev/better-auth-google-gate@sha256:ac60498fa878782dThe line at the top of this page pins the label git:20261002.c0e127d, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_hl3ddpu7d4to4tpl)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Oct 2, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (15167 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
daishiman/harness-dev · 10 stars · license none declared · pushed 2026-10-19 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_hl3ddpu7d4to4tpl GET https://markdownregistry.com/api/v1/resolve?ref=daishiman/harness-dev/better-auth-google-gate GET https://markdownregistry.com/api/v1/blob/ac60498fa878782dfbde5772423d1467a2b46c6e4a6fb3f705c028bb05de9dc4
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from daishiman/harness-dev
Every file in daishiman/harness-dev