name: adding-an-anchor description: Use when adding a new anchor integration to this project — creating an anchor client, its server singleton, API wrappers, proxy routes, and flow pages, or deciding whether a new anchor belongs in ANCHORS vs HONORABLE_MENTIONS.
Adding a new curated anchor
Each curated anchor owns its own client, server-side instance singleton, client-side API wrapper, API routes, and bespoke flow pages. Nothing is shared — see the per-provider isolation decision in CLAUDE.md.
src/lib/anchors/<name>/{client,types,index}.ts— shaped however the anchor's API actually works. No interface to satisfy. Define your own error class. Include thedebug?: booleanflag described inCLAUDE.mdand cover both logging behaviors with tests.src/lib/server/<name>Instance.ts— singleton getter reading env vars, passingdebug: devfrom$app/environment.src/lib/api/<name>.ts— client-side fetch wrappers per route. Mirror the per-provider shape inetherfuse.ts/testanchor.ts.src/routes/api/anchor/<name>/<operation>/+server.ts— one route per operation.src/routes/anchors/<name>/+page.svelte(landing) and<name>/<flow>/+page.svelteper flow. Compose primitives fromsrc/lib/components/. UseAnchorRegionSelectorfor the region section. Don't try to share flow logic with another anchor in this PR — let it duplicate.- Add the provider to
src/lib/constants.ts(PROVIDER). - Add to
src/lib/config/anchors.ts(ANCHORS). - Add to
src/lib/config/regions.tsif the anchor serves a region. - Add tests under
tests/anchors/<name>/. - Document in
src/lib/anchors/<name>/README.md.
If it doesn't clear the bar
Add it to HONORABLE_MENTIONS in src/lib/config/anchors.ts instead — no client code needed. Give it a scorecard (via makeCriteria) so its gaps render. For a candidate you're still researching rather than rejecting, use the assessing-an-anchor skill.
Adding SEP support
If the anchor needs a SEP this project doesn't implement yet: create src/lib/anchors/sep/sep<N>.ts modeled on the existing modules (pure functions, optional fetchFn), add types to sep/types.ts, export from sep/index.ts, and cover it under tests/anchors/sep/.
Next.js App Router Expert
Development
A skill that turns Claude into a Next.js App Router expert.
README Generator
Development
Creates professional and comprehensive README.md files for your projects.
API Documentation Writer
Development
Generates comprehensive API documentation in OpenAPI/Swagger format.