Audit expo skill

From clerk/skills · View interactive version

Audit expo skill is an AI agent skill from the GitHub repository clerk/skills. Audits the bundled `clerk-expo` skill against the @clerk/expo SDK source and clerk-docs, then proposes or applies updates. Use when the user says "audit the expo skill", "update the clerk-expo skill", "check clerk-expo against the SDK", "resync clerk-expo skill", "run audit-expo-skill", or after @cl

How to use this skill

Skill file

Clerk Expo Skill Audit

Cross-check skills/clerk-expo/ in this repository against the actual @clerk/expo SDK source and the clerk-docs content it cites. The SDK source is the source of truth for API shape; clerk-docs is the source of truth for recommended patterns; the skill must track both. When the two conflict on a factual claim (an API exists, a signature, a default, a version floor), SDK source wins — always. Docs win only on prescriptive questions source cannot answer (which flow to recommend, prop placement in examples, dashboard prerequisites).

The skill intentionally hardcodes verified code snippets (see its freshness gate). This audit is the maintenance half of that contract: it runs after SDK releases so the snippets stay verified rather than becoming folklore.

Inputs

Source Checkout Resolution

Resolve each checkout in this order:

  1. Use --sdk <path> / --docs <path> when supplied. The SDK path must contain packages/expo/package.json; the docs path must contain docs/getting-started/quickstart.expo.mdx.
  2. Look for sibling checkouts of this repository: ../javascript and ../clerk-docs or ../clerk/clerk-docs (the standard Clerk projects layout), and ../clerk-expo-quickstart for corroboration.
  3. If CLERK_JAVASCRIPT_REPO / CLERK_DOCS_REPO are set, use those paths.
  4. If a checkout is missing and network access is acceptable, shallow-clone into .context/:
mkdir -p .context && cd .context
git clone --depth 1 https://github.com/clerk/javascript.git
git clone --depth 1 https://github.com/clerk/clerk-docs.git

If neither is available, stop and ask the user for paths. Do not audit from memory or from an installed node_modules copy alone; the audit exists precisely because memory drifts.

Workflow

1. Establish the version delta

Report "no drift" and stop only when @clerk/expo and every companion package match their stamped versions and none of their changelogs show anything new.

2. Inventory the SDK surface

Build a structured inventory from source (prefer src/ over dist/):

3. Inventory the docs claims

For every canonical docs URL cited in the skill's references:

4. Extract the skill's claims

Read SKILL.md, every references/*.md, and evals/evals.json. Extract each concrete claim:

5. Diff and bucket

Produce a structured diff with four buckets:

  1. Missing from skill: new exports, hooks, props, flows, or prerequisites in SDK/docs that the skill should cover (or explicitly scope out).
  2. Stale in skill: claims contradicted by source or docs — renamed/removed APIs, changed defaults, changed peer floors, moved props, dead docs URLs, evals asserting outdated strings.
  3. Thin in skill: covered but under-specified relative to real footgun surface (e.g. a new error code developers will hit).
  4. Over-specified: detail the docs or installed .d.ts cover better; propose shrinkage where it reduces drift risk.

Cite source file and line for every bucket-1/2/3 entry, plus the target skill location.

6. Propose edits

Emit a review-ready proposal grouped by target file. For each change include severity (drift, gap, or polish), the source citation, the target location, and a unified diff or concise before/after. Always include, when any change is applied:

Do not rewrite accurate neighboring sections. Skill shrinkage is a valid proposal.

7. Apply or hand back

Default: present the proposal and stop for review.

With --apply: apply drift and gap edits, update the version stamps, list polish for review, then validate — JSON files parse, every relative reference path in SKILL.md resolves, and every canonical docs URL maps to an existing clerk-docs file.

Guardrails

Output Shape

# clerk-expo skill audit - <YYYY-MM-DD>

## Summary
<stamped vs current version for `@clerk/expo` and each companion package, changelog entries reviewed, counts per bucket, largest drift>

## skills/clerk-expo/SKILL.md
### <section>
- [drift|gap|polish] <one-line description>
  - source: packages/expo/src/<...>:<line> (or docs/<...>.mdx:<line>)
  - target: skills/clerk-expo/SKILL.md:<line>
  - change: <diff or concise before/after>

## skills/clerk-expo/references/<file>.md
...

## skills/clerk-expo/evals/evals.json
...

## Open questions
...

Keep the result skimmable so a maintainer can approve, reject, or apply each entry independently.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.