<< All versions

Skill v1.0.0

currentAutomated scan100/100
iamruzaini/secod/secod-clerk
──Details
PublishedOctober 22, 2026 at 11:30 PM
Content Hashsha256:3e15a90a381f4588...
Git SHAb3402d7530b5
──Files
Files (1 file, 3.5 KB)
SKILL.md3.5 KBactive
SKILL.md · 71 lines · 3.5 KB

version: "1.0.0" name: secod-clerk description: >- Help coding agents securely implement Clerk features using version-matched official APIs, secure defaults, and provider-specific tests. Use when Clerk SDKs, middleware, sessions, organizations, callbacks, or Clerk webhooks. license: Apache-2.0 metadata: secod-category: "provider-feature" secod-format: "implementation-v1" secod-maturity: "provisional"


Secure Clerk implementation

Purpose

Implement Clerk features securely. Provider-family router supplies shared context; this skill owns exact product decisions and version-qualified SDK/runtime use.

When to use

Use when Clerk SDKs, middleware, sessions, organizations, callbacks, or Clerk webhooks. Do not activate from package presence alone when current feature does not use Clerk.

Context to inspect

Inspect current feature, imports and calls, manifest/lockfile, runtime configuration, environment, identity/tenant model, data classes, trust boundaries, provider-family context, and nearby tests. Never collect secret values.

Secure defaults

  • Validate provider credentials and tokens at trusted server boundary.
  • Keep client/server redirect, cookie, state, nonce, PKCE, and secret boundaries intact.
  • Map provider identity to local user/tenant using immutable identifiers.
  • Authorize each application resource and action independently.
  • Verify Clerk sessions server-side and authorize local tenant/resources independently.

Implementation workflow

  1. Resolve exact installed SDK/runtime/API version and product features in use.
  2. Read version-matched direct official documentation before writing provider calls.
  3. Reuse project conventions; implement validation and authorization before provider effect.
  4. Add idempotency, limits, safe failure, redaction, and environment separation where applicable.
  5. Add successful, denied, cross-tenant, malformed, replay/retry, and provider-failure tests.

Implementation recipes

Unsafe patterns to avoid

  • Inventing SDK methods, options, model capabilities, service behavior, or dashboard state.
  • Copying examples for another major version or runtime without checking installed version.
  • Trusting client-controlled identity, tenant, resource, price, tool, or authority fields.
  • Replacing implementation with findings, score, account audit, or certification language.

Tests to add

Test version-compatible setup, expected success, missing identity, wrong tenant/resource, malformed input, duplicate/replay where applicable, timeout/provider failure, secret/log redaction, and unavailable external configuration.

Provider and deployment steps

Implement repository-owned code first. For required external settings, name exact official page and verification action. If inaccessible, do not claim setting was checked.

Official sources

Use source register. llms.txt indexes aid discovery only; direct provider documentation governs implementation.

Completion handoff

State SDK/runtime/API version used, secure boundary implemented, tests run, provider-family defaults applied, assumptions, and exact external step remaining. Never claim whole application or provider account is secure.

All versions