agentleFS
ElasticKnown publisherelastic/docs-builder/.claude/skills/mcp-search/SKILL.md

mcp-search

Skill25 starsChanged 3 months agoApache-2.0View on GitHub

Search, analyze, and author Elastic documentation using the remote MCP server. Use this when the user asks about Elastic product documentation, features, or APIs; wants to find, read, or verify existing docs pages; is writing or editing documentation; mentions cross-links between repos; asks about documentation structure, coherence, or consistency; wants to generate templates following Elastic content type guidelines; or references elastic.co/docs URLs or Elastic product names.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Trigger words: search, find, docs, documentation, look up, examples, query, what docs, Elastic features

    line 16
  2. Distinctive:

    Returns: Search results with URLs, titles, descriptions, AI summaries, scores, and navigation context.

    line 25
  3. Distinctive:

    Trigger words: verify, check, accurate, coherent, validate, consistency, coverage, align with docs, audit

    line 48
  4. Very specific:

    For general searches: Start with SemanticSearch to find relevant documentation.

    line 228
  5. Very specific:

    For content verification: Use CheckCoherence to see how well a topic is documented.

    line 229
  6. Very specific:

    For quality checks: Use FindInconsistencies to identify potential documentation conflicts.

    line 230
  7. Very specific:

    For specific pages: Use GetDocumentByUrl when you have an exact URL.

    line 231
  8. Very specific:

    For deep analysis: Use AnalyzeDocumentStructure to understand page organization.

    line 232
  9. Very specific:

    For cross-linking: Use ResolveCrossLink to turn a cross-link URI into a real URL, ListRepositories to discover available repos, and …

    line 233
  10. Very specific:

    For authoring: Use ListContentTypes to pick the right type, GenerateTemplate to get a starter, and GetContentTypeGuidelines to write or …

    line 234

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Elastic Documentation MCP

This skill provides access to Elastic documentation through a remote MCP server. Use these tools to search, analyze, author, and validate documentation content.

Available Tools

1. SemanticSearch

When to use: User asks about Elastic product features, needs to find existing docs pages, verify published content, or research what documentation exists on a topic.

Trigger words: search, find, docs, documentation, look up, examples, query, what docs, Elastic features

Parameters:

  • query (required): The search query — can be a question or keywords
  • pageNumber (optional, default: 1): Page number (1-based)
  • pageSize (optional, default: 10, max: 50): Number of results per page
  • productFilter (optional): Filter by product ID (e.g., 'elasticsearch', 'kibana', 'fleet', 'logstash')
  • sectionFilter (optional): Filter by navigation section (e.g., 'reference', 'getting-started')

Returns: Search results with URLs, titles, descriptions, AI summaries, scores, and navigation context.


2. FindRelatedDocs

When to use: User wants to explore what documentation exists around a subject, build context for writing, or discover related content they should be aware of.

Trigger words: related, similar, links, content reuse, related documentation, see also, what else

Parameters:

  • topic (required): Topic or search terms to find related documents for
  • limit (optional, default: 10, max: 20): Maximum number of related documents to return
  • productFilter (optional): Filter by product ID

Returns: List of related documents with URLs, titles, descriptions, AI summaries, and relevance scores.


3. CheckCoherence

When to use: User wants to review documentation quality, audit coverage of a feature or concept, or check whether a topic is documented consistently across products and sections.

Trigger words: verify, check, accurate, coherent, validate, consistency, coverage, align with docs, audit

Parameters:

  • topic (required): Topic or concept to check coherence for
  • limit (optional, default: 20, max: 50): Maximum number of documents to analyze

Returns: Coherence analysis including:

  • Total documents covering the topic
  • Section coverage (how topic is spread across navigation sections)
  • Product coverage (which products document this topic)
  • AI enrichment status (docs with summaries)
  • Coverage score (0-100)
  • Top documents for the topic

4. FindInconsistencies

When to use: User wants to audit docs quality, verify that instructions don't contradict each other, or check for overlapping content within a product area.

Trigger words: inconsistencies, contradictions, conflicts, discrepancies, compare, differences, overlaps

Parameters:

  • topic (required): Topic or concept to check for inconsistencies
  • focusArea (optional): Specific area to focus on (e.g., 'installation', 'configuration', 'api')

Returns: Analysis of potential inconsistencies including:

  • Documents that may have overlapping or conflicting content
  • Product breakdown showing document distribution
  • Pairs of documents that cover similar topics and may need review

5. GetDocumentByUrl

When to use: User provides an elastic.co/docs URL, references a known page, or you need the full content and metadata of a specific doc.

Trigger words: get document, fetch, URL, specific page, retrieve, show page, elastic.co

Parameters:

  • url (required): The document URL. Accepts a full URL (e.g., https://www.elastic.co/docs/deploy-manage/api-keys) or a path (e.g., /docs/deploy-manage/api-keys). Query strings, fragments, and trailing slashes are ignored.
  • includeBody (optional, default: false): Include full body content (set true for detailed analysis)

Returns: Full document content including:

  • Title, URL, type, description
  • Navigation section and parent hierarchy
  • AI summaries (short summary and RAG-optimized summary)
  • AI-generated questions and use cases
  • Headings list
  • Product and related products
  • Body content (if includeBody=true)

6. AnalyzeDocumentStructure

When to use: User wants to evaluate page quality, check heading hierarchy, or assess AI enrichment status.

Trigger words: structure, hierarchy, organization, headings, parents, layout, analyze, quality

Parameters:

  • url (required): The document URL to analyze. Accepts a full URL (e.g., https://www.elastic.co/docs/deploy-manage/api-keys) or a path (e.g., /docs/deploy-manage/api-keys). Query strings, fragments, and trailing slashes are ignored.

Returns: Structure analysis including:

  • Heading count and list of headings
  • Link count
  • Parent count and parent hierarchy
  • Body length
  • AI enrichment status (has summary, has questions, has use cases)

7. ResolveCrossLink

When to use: User references a cross-link, needs to verify a link target, or wants to know what anchors are available on a page.

Trigger words: cross-link, resolve, cross link, docs-content://, URI, anchor

Parameters:

  • crossLink (required): The cross-link URI to resolve (e.g., docs-content://get-started/intro.md)

Returns: Resolved URL, repository, path, available anchors, and any fragment.


8. ListRepositories

When to use: User needs to know which repositories publish documentation or wants to explore the docs ecosystem.

Trigger words: list repos, repositories, available repos, cross-link index, docs ecosystem

Parameters: None

Returns: List of repositories with names, branches, paths, git refs, and last-updated timestamps.


9. GetRepositoryLinks

When to use: User wants to explore what a repository publishes, build a cross-link, or look up available anchor targets.

Trigger words: repository links, pages in repo, anchors, what does repo publish

Parameters:

  • repository (required): The repository name (e.g., docs-content, elasticsearch)

Returns: Repository metadata, URL path prefix, page count, cross-link count, and a list of pages with their anchors.


10. FindCrossLinks

When to use: User wants to analyze inter-repository dependencies, check what links into or out of a repository, or audit cross-link usage.

Trigger words: find cross-links, links between repos, who links to, links from, dependencies

Parameters:

  • from (optional): Source repository to find links from
  • to (optional): Target repository to find links to

Returns: Count and list of cross-links with source repository, target repository, and the link URI.


11. ValidateCrossLinks

When to use: User wants to check link health, prepare a release, or diagnose broken cross-references.

Trigger words: validate cross-links, broken links, check links, link validation, link health

Parameters:

  • repository (required): Target repository to validate links to (e.g., docs-content)

Returns: Valid link count, broken link count, and details of any broken links (source repo, link URI, errors).


12. ListContentTypes

When to use: User is deciding what type of page to create or asks about Elastic docs structure.

Trigger words: content types, what type, overview vs how-to, tutorial, troubleshooting, changelog type

Parameters: None

Returns: List of all content types (overview, how-to, tutorial, troubleshooting, changelog) with descriptions and when-to-use guidance.


13. GenerateTemplate

When to use: User wants to create a new documentation page, needs a starting point with correct frontmatter and structure, or asks for a template.

Trigger words: template, generate, starter, scaffold, new page, new doc

Parameters:

  • contentType (required): One of overview, how-to, tutorial, troubleshooting, or changelog
  • title (optional): Pre-fill the page or changelog title
  • description (optional): Pre-fill the frontmatter description
  • product (optional): Pre-fill the product field

Returns: A ready-to-use Markdown template (or YAML for changelogs) with correct frontmatter and structure.


14. GetContentTypeGuidelines

When to use: User is writing new content, reviewing existing pages against standards, or asks about Elastic docs best practices.

Trigger words: guidelines, best practices, how to write, checklist, evaluate, anti-patterns

Parameters:

  • contentType (required): One of overview, how-to, tutorial, troubleshooting, or changelog

Returns: Detailed guidelines including required elements checklist, recommended sections, best practices, and anti-patterns for the content type.


Usage Guidelines

  1. For general searches: Start with SemanticSearch to find relevant documentation. Prefer this over a general web search for Elastic docs content.
  2. For content verification: Use CheckCoherence to see how well a topic is documented.
  3. For quality checks: Use FindInconsistencies to identify potential documentation conflicts.
  4. For specific pages: Use GetDocumentByUrl when you have an exact URL.
  5. For deep analysis: Use AnalyzeDocumentStructure to understand page organization.
  6. For cross-linking: Use ResolveCrossLink to turn a cross-link URI into a real URL, ListRepositories to discover available repos, and ValidateCrossLinks to find broken links.
  7. For authoring: Use ListContentTypes to pick the right type, GenerateTemplate to get a starter, and GetContentTypeGuidelines to write or evaluate content correctly.

Product IDs

Common product filters:

  • elasticsearch - Elasticsearch
  • kibana - Kibana
  • fleet - Fleet and Elastic Agent
  • logstash - Logstash
  • beats - Beats
  • cloud - Elastic Cloud
  • ecs - Elastic Common Schema
  • apm - APM
  • security - Elastic Security
  • observability - Elastic Observability

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.