跳到正文
cccskills
免费在 GitHub 公开

query-docs-library-metadata

Retrieve machine-readable context with tanstack libraries, tanstack doc, tanstack search-docs, tanstack create --list-add-ons --json, and --addon-details for agent-safe discovery and preflight validation.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md2.6 KB
  • references/discovery-command-output-schemas.md3.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Query Docs And Library Metadata

Use this skill to collect authoritative context before code generation or integration selection.

Setup

npx @tanstack/cli libraries --json

Core Patterns

Resolve valid library ids before doc fetch

npx @tanstack/cli libraries --json

Fetch a specific docs page with explicit version

# Syntax: tanstack doc <library-id> <path> [--docs-version <version>]
npx @tanstack/cli doc router framework/react/guide/routing
npx @tanstack/cli doc router framework/react/guide/routing --docs-version latest

Search docs for implementation targets

npx @tanstack/cli search-docs "server functions" --library start --json

Common Mistakes

HIGH Use invalid library id/version/path for doc fetch

Wrong:

# Wrong: --library and --version are not flags on doc; path must not include /docs/ prefix
npx @tanstack/cli doc --library router --version latest --path /docs/framework/react/guide/routing

Correct:

# Step 1: resolve a valid library id
npx @tanstack/cli libraries --json
# Step 2: fetch using positional args — library id then doc path (no /docs/ prefix)
npx @tanstack/cli doc router framework/react/guide/routing

doc takes <library> and <path> as positional arguments (not flags), and the path must not include a leading /docs/ segment. Use --docs-version (not --version) to pin a specific version.

Source: packages/cli/src/cli.ts:746

MEDIUM Rely on deprecated create alias for discovery

Wrong:

npx create-tsrouter-app --list-add-ons

Correct:

npx @tanstack/cli create --list-add-ons --json

Legacy alias workflows can produce confusing outputs that do not match current CLI discovery behavior. Fixed in newer versions, but agents trained on older examples may still generate this pattern.

Source: https://github.com/TanStack/cli/issues/93

HIGH Tension: Single-command convenience vs integration precision

This domain's patterns conflict with create-app-scaffold and choose-ecosystem-integrations. Skipping discovery to run one-shot scaffold commands tends to lock in plausible defaults that miss architecture constraints.

See also: create-app-scaffold/SKILL.md § Common Mistakes

References

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Apply integrations to existing projects with tanstack add, including add-on id resolution, dependency chains, option prompts, and .cta.json project metadata preconditions.

中文简介正在准备中。当前显示原文说明。

TanStack/cli13012026年10月17日 更新

Map tanstack ecosystem partner metadata to installable add-on ids using tanstack ecosystem --json, tanstack create --list-add-ons --json, and tanstack create --addon-details --json. Covers exclusive categories, provider options, and router-only compatibility constraints.

中文简介正在准备中。当前显示原文说明。

TanStack/cli13012026年10月17日 更新

Scaffold a TanStack app with tanstack create using --framework, --build-tool, --template, --toolchain, --deployment, --add-ons, --blank, and --router-only. Covers flag compatibility, non-interactive defaults, and intent-preserving command construction.

中文简介正在准备中。当前显示原文说明。

TanStack/cli13012026年10月17日 更新

Build and iterate custom add-ons/templates with tanstack add-on init, add-on compile, add-on dev, and tanstack create --dev-watch, including sync loop preconditions, watch-path validation, and project metadata constraints.

中文简介正在准备中。当前显示原文说明。

TanStack/cli13012026年10月17日 更新

查看 TanStack 的全部技能

报告此技能的问题