Skip to content
Back to skills

Query Docs Library Metadata

ASecurity

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

  • 67 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 10, 2026
ai-agentsbashreactgit

Works with

  • cli

Security analysis

A100/100

Scanned November 10, 2026

npx -y skills add ComeOnOliver/skillshub --skill query-docs-library-metadata --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Query Docs Library Metadata?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Query Docs Library Metadata
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/comeonoliver-query-docs-library-metadata/badge)](https://www.skillsdirectory.com/skills/comeonoliver-query-docs-library-metadata)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Query Docs And Library Metadata

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

## Setup

```bash
npx @tanstack/cli libraries --json
```

## Core Patterns

### Resolve valid library ids before doc fetch

```bash
npx @tanstack/cli libraries --json
```

### Fetch a specific docs page with explicit version

```bash
# 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

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

## Common Mistakes

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

Wrong:
```bash
# 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:
```bash
# 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:
```bash
npx create-tsrouter-app --list-add-ons
```

Correct:
```bash
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

- [Discovery command output schemas](references/discovery-command-output-schemas.md)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.