Skill v1.0.0
currentAutomated scan100/100version: "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
- Resolve exact installed SDK/runtime/API version and product features in use.
- Read version-matched direct official documentation before writing provider calls.
- Reuse project conventions; implement validation and authorization before provider effect.
- Add idempotency, limits, safe failure, redaction, and environment separation where applicable.
- Add successful, denied, cross-tenant, malformed, replay/retry, and provider-failure tests.
Implementation recipes
- Supported versions — resolve compatible SDK, runtime, and API surfaces.
- Secure implementation recipe — provider-specific boundaries and coding sequence.
- Security-focused tests — positive, denied, replay, failure, and version tests.
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.