clerk-nextjs-patterns SKILL.md skillA
clerk-nextjs-patterns from sutchan/agent-skills-hub is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add sutchan/agent-skills-hub/clerk-nextjs-patterns@v2.2.0Pins v2.2.0 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- sutchan/agent-skills-hub
- Path
skills/clerk-nextjs-patterns/SKILL.md- Versions recorded
- 11
- Latest version
- v2.2.0, committed Nov 5, 2026
- First version recorded
- Aug 21, 2026
- Size
- 12,191 bytes
- Repository stars
- 2
- License
- MIT
高级 Next.js 模式——middleware、Server Actions、缓存等,帮助在 Clerk + Next.js 应用中落地稳健的认证与集成模式。.
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
# Next.js Patterns > **Version**: Check `package.json` for the SDK version — see `clerk` skill for the version table. Core 2 differences are noted inline with `> **Core 2 ONLY (skip if current SDK):**` callouts. For basic setup, see `clerk-setup` skill. > **Route protection:** call `await auth.protect()` in each page, Route Handler, and Server Function. Keep `clerkMiddleware()` bare. `createRouteMatcher` is deprecated in `@clerk/nextjs` 7 and will be removed in the next major version. Don't add it. If a project already uses it, leave it working and point the user to the [migration guide](https://clerk.com/docs/guides/development/upgrading/upgrade-guides/migrate-from-create-route-matcher). ## What Do You Need? | Task | Reference | |------|-----------| | Server vs client auth (`auth()` vs hooks) | references/server-vs-client.md | | Protect routes (check in each page, handler, and Server Function) | references/middleware-strategies.md | | Protect Server Actions | references/server-actions.md | | API route auth (401 vs 403) | references/api-routes.md | | Cache auth data (user-scoped caching) | references/caching-auth.md | …
Read the whole file at its exact version.
How to install
mdr add sutchan/agent-skills-hub/clerk-nextjs-patterns@sha256:8129bb2fe27f360dThe line at the top of this page pins the label v2.2.0, 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_37r7qp65kwgm6htl)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 11 versions of this file, between Aug 21, 2026 and Nov 5, 2026, about one every 8 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v2.2.0 latest | 2026-11-05 | e32a079 | 12,191 B | A | view · diff |
| v2.2.0 | 2026-11-03 | e8273b5 | 12,193 B | A | view · diff |
| v2.2.0 | 2026-11-03 | 0c63106 | 11,949 B | A | view · diff |
| git:20261007.ab00264 | 2026-10-07 | ab00264 | 9,214 B | A | view · diff |
| v2.2.0 | 2026-10-07 | 3e74f1b | 9,017 B | A | view · diff |
| git:20261001.6c38d68 | 2026-10-01 | 6c38d68 | 8,494 B | A | view · diff |
| v2.2.0 | 2026-09-09 | 998370c | 8,302 B | A | view · diff |
| v2.2.0 | 2026-08-22 | 6662c18 | 8,522 B | A | view · diff |
| v2.2.0 | 2026-08-21 | 3c8c941 | 8,510 B | A | view · diff |
| v2.2.0 | 2026-08-21 | 714d067 | 8,510 B | A | view · diff |
| v2.2.0 | 2026-08-21 | 6eecafd | 8,543 B | A | view |
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 (12191 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
sutchan/agent-skills-hub · 2 stars · license MIT · pushed 2026-11-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_37r7qp65kwgm6htl GET https://markdownregistry.com/api/v1/resolve?ref=sutchan/agent-skills-hub/clerk-nextjs-patterns GET https://markdownregistry.com/api/v1/blob/8129bb2fe27f360d9c5cabd367e43fb187e28522f832a9006a6dd412a5d566cb
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.