agentleFS
TanStackTanStack/ai/.agents/skills/gap-analysis/SKILL.md

gap-analysis

Skill3.2k starsChanged 2 months agoMITView on GitHub

Audit TanStack AI provider adapters for feature parity gaps and outdated model lists. Triggered as /gap-analysis <provider|feature <name>|models|--all>. Produces a dated markdown report under .agent/gap-analysis/. Maintainer tool — does not edit feature-support.ts or model-meta.ts directly.

  • Reads credentials

11 other projects use a version of this.

Trending

More talk lately.about the whole repository

Dec 2025: 2 mentionsJan 2026: 2 mentionsFeb 2026: 0 mentionsMar 2026: 1 mentionApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 2 mentionsJul 2026: 1 mentionAug 2026: 5 mentionsSep 2026: 10 mentionsOct 2026: 6 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the TanStack/ai repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about TanStack/ai

The biggest 5 of 30 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 30

Talked about on GitHub and Bluesky (30 times).

On GitHub · 28

23 more on GitHub

On Bluesky · 2

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Parse scope: If missing, AskUserQuestion with the four options above.

    line 31
  2. Distinctive:

    Research upstream: Use WebFetch against the curated URLs in references/provider-doc-urls.md.

    line 38
  3. Very specific:

    Always reference line numbers: when citing exclusions (e.g., feature-support.ts:57) so the maintainer can jump to them.

    line 68
  4. Distinctive:

    Cite sources: Every claim "upstream supports X" must link the upstream doc page you read.

    line 77
  5. Distinctive:

    Before printing the summary:

    line 135
  6. Distinctive:

    Every "real gap" entry has an upstream doc URL.

    line 141

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Gap Analysis — TanStack AI adapter audit

You are auditing TanStack AI's provider adapters against each provider's upstream documentation. This is a maintainer tool. Your only output is a markdown report under .agent/gap-analysis/. Do not edit source files.

Invocation

ArgsScope
<provider> (e.g. openai)One provider — all audit dimensions.
feature <feature> (e.g. tts)One feature row of the matrix across all providers.
modelsNew-model diff for every provider.
activitiesActivity-coverage diff: which of the 7 core activity
kinds each provider ships an adapter for, vs. what
upstream supports. (Dimension 6 only, all providers.)
--allFull sweep (fan out subagents, one per provider).
(none)Ask the user which scope via AskUserQuestion.

Workflow

  1. Parse scope. If missing, AskUserQuestion with the four options above.
  2. Load the truth files, then read the per-scope inputs you need:
    • Matrix: testing/e2e/src/lib/feature-support.ts
    • Types: testing/e2e/src/lib/types.ts (Provider + Feature unions, ALL_PROVIDERS, ALL_FEATURES)
    • Adapter index: packages/ai-<provider>/src/index.ts
    • Model meta: packages/ai-<provider>/src/model-meta.ts
    • Core types: packages/ai/src/types.ts (Modality, ContentPart, ToolCall)
  3. Research upstream. Use WebFetch against the curated URLs in references/provider-doc-urls.md. When a doc page has moved, fall back to WebSearch. For SDK API surface details use the context7 MCP server (mcp__plugin_context7_context7__resolve-library-id then mcp__plugin_context7_context7__query-docs).
  4. Walk the audit dimensions in references/audit-checklist.md:
    1. New models
    2. Cross-adapter feature parity
    3. Untracked features
    4. Capability-flag drift
    5. Telemetry / observability parity (usage tokens, cache/reasoning counts, request ids, logging asymmetry)
    6. Activity coverage (which of the 7 core activity kinds each provider ships an adapter for vs. what upstream supports) — this is the only dimension for the activities scope; it's also rolled into --all.
  5. Fan out for --all: launch one Explore subagent per provider, max 3 in parallel. Each subagent returns the multi-dimension findings for its provider; you synthesise into the combined report. The activities scope does not fan out — derive the provider×activity matrix centrally from the adapter files (see dimension 6), since it's a fast mechanical diff.
  6. Write the report to .agent/gap-analysis/YYYY-MM-DD-<scope>.md using references/report-template.md. Date is today's ISO date. <scope> is openai / feature-tts / models / activities / all.
  7. Print the report path and a 5-line summary to the user.

Critical rules

  1. Never edit feature-support.ts or any model-meta.ts. The report is read-only — the maintainer applies changes.
  2. Always reference line numbers when citing exclusions (e.g., feature-support.ts:57) so the maintainer can jump to them.
  3. Distinguish three gap classes in the report:
    • Real gap — upstream supports it, TanStack AI doesn't, no exclusion comment.
    • Tested gap — TanStack AI doesn't list it but there's an exclusion comment in feature-support.ts (e.g., aimock format limitation). Not actionable code-wise; surface in "Out-of-scope" section.
    • Stale capability flag — model-meta.ts declares a capability the model no longer has, or omits one it now has.
  4. Cite sources. Every claim "upstream supports X" must link the upstream doc page you read. No claims from training data.
  5. Use today's date from the system context (currentDate). Never invent.
  6. Quote the relevant snippet from feature-support.ts when flagging a parity gap, so the report is self-contained.

Known providers

openai, anthropic, gemini, ollama, grok, groq, openrouter, bedrock (@tanstack/ai-bedrock; three-API surface — Converse default (adapter name bedrock-converse), Chat Completions opt-in (api: 'chat', adapter name bedrock), Responses opt-in (api: 'responses', adapter name bedrock-responses)), byteplus (@tanstack/ai-byteplus; text, video, tts, transcription, image — two products/keys: ModelArk ARK_API_KEY for text/video/image, Seed Speech BYTEPLUS_VOICE_API_KEY for tts/transcription), fal (media-only), elevenlabs (TTS-only). The feature matrix tracks openai, anthropic, gemini, ollama, grok, groq, openrouter, bedrock, bedrock-converse, bedrock-responses, and byteplus; fal and elevenlabs only appear in model/media audits.

Known features (19)

Canonical list is ALL_FEATURES in testing/e2e/src/lib/types.ts — always re-read it; this list is a snapshot:

chat, one-shot-text, reasoning, multi-turn, tool-calling, parallel-tool-calls, tool-approval, text-tool-text, structured-output, structured-output-stream, agentic-structured, multimodal-image, multimodal-structured, summarize, summarize-stream, image-gen, tts, transcription, video-gen.

Known activities (7)

Features (above) are matrix rows about behaviours within an activity. Activities are the coarser-grained core capability kinds in @tanstack/ai — each has a Base<Kind>Adapter and a provider "supports" one only if its package ships an adapter of that kind. Canonical list is the AdapterKind union in packages/ai/src/activities/index.ts — always re-read it:

text, summarize, image, audio, video, tts, transcription.

A provider's activity surface is derived mechanically from its adapter files: packages/ai-<provider>/src/adapters/. Filename → activity-kind map:

Adapter fileActivity kind
text.ts / text-chat-completions.ts / responses-text.tstext
summarize.tssummarize
image.tsimage
audio.tsaudio
video.tsvideo
speech.ts / tts.tstts
transcription.tstranscription

(cost.ts is a helper, not an activity adapter.)

Verification before finishing

Before printing the summary:

  • Report file exists and is non-empty.
  • git status shows only new files under .agent/gap-analysis/ — nothing under packages/ or testing/ should have been modified. Run git status and confirm.
  • Every "real gap" entry has an upstream doc URL.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.