Agent skill

tidb-doc-finder

TiDB-specific documentation lookup guided by this repo's llms.txt hub: read llms.txt, pick the best linked source (tidb-dev-guide llms-full.txt, TiDB user guide llms.txt, or Uber Go style guide), fetch it, then search within it to answer with precise references. Use when asked to find docs, research, or provide doc-grounded answers about TiDB development or usage.

Stars 1
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/hawkingrei/tidb-dev-prompt/tree/main/tidb-doc-finder

SKILL.md

tidb-doc-finder

Use llms.txt in the current repo as the single source of truth for "where to look".

Workflow

  1. Read the hub

    • Open llms.txt and extract the doc endpoints (URLs).
    • Do not hardcode URLs elsewhere; llms.txt is authoritative.
  2. If MCP tidb-doc-ext is available, prefer it

    • Use the MCP to fetch documentation content.
    • Only request markdown sources; do not fetch HTML or URLs without a file extension.
    • If MCP is available, use it instead of the local fetch/cache scripts; otherwise fall back to the scripts below.
  3. Select the best source

    • TiDB dev / contribution / architecture -> TiDB Developer Guide (llms-full.txt)
    • TiDB SQL behavior / user-facing features / releases -> TiDB User Guide (llms.txt)
    • Go style / idioms -> Uber Go Style Guide (style.md)
  4. Fetch to a local cache file (recommended)

    • Use tidb-doc-finder/scripts/fetch.sh to download and cache the selected source.
    • Keep the cache so subsequent searches are fast and can be done offline.
  5. Search within the fetched file

    • Use tidb-doc-finder/scripts/search.sh <cached_file> <query> to:
      • find the most relevant sections,
      • show a small excerpt,
      • and capture headings/anchors if present.
  6. Answer with doc-grounded output

    • Provide a direct answer.
    • Include the source URL from llms.txt and the matched heading/section name.
    • If the doc does not contain the answer, say so and propose the next-best source (still chosen from llms.txt).

Commands

  • Fetch: bash tidb-doc-finder/scripts/fetch.sh <url>
  • Search: bash tidb-doc-finder/scripts/search.sh <cached_file> <query>

References

  • Query patterns: tidb-doc-finder/references/query-patterns.md

Expand your agent's capabilities with these related and highly-rated skills.

hawkingrei/tidb-dev-prompt

tidb-optimizer-bugfix

Fix TiDB optimizer bugs with minimal diffs, hypothesis-driven validation, and regression tests aligned with tidb-test-guidelines. Use when reproducing, fixing, and validating planner/optimizer behavior bugs.

1 0
Explore
hawkingrei/tidb-dev-prompt

plan-replayer-testing

Expertise in adding new test cases for the TiDB plan replayer. Use when the user provides a plan replayer zip file and wants to create a new test.

1 0
Explore
hawkingrei/tidb-dev-prompt

pr-review-helper

Gather PR review context: all comments (including review suggestions), diff context, and CI status; download GitHub Actions logs on failures. Prefer GitHub MCP for reads, fall back to gh CLI when needed.

1 0
Explore
hawkingrei/tidb-dev-prompt

tidb-profiler-analyzer

Processes and analyzes TiDB profiler zip packages (CPU or heap) for components like TiDB, TiKV, PD, or TiFlash. It unzips, aggregates the profiler data, and uses `go tool pprof` to report on the most time-consuming functions (CPU) or highest memory allocations (heap).

1 0
Explore
hawkingrei/tidb-dev-prompt

context-management

Use for projects, tasks, or code that involve context engineering and context management for AI agents: keep prompt prefixes stable for KV-cache, use append-only context, prefer tool masking over tool removal, offload large observations into filesystem memory, recite goals/todos to control attention, preserve errors for recovery, and avoid few-shot pattern lock-in. Use when building or debugging agent loops, prompt/context schemas, memory strategies, or tool-availability policies.

1 0
Explore
mattpocock/skills

edit-article

Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.

111,310 9,758
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results