detection

Detect project language and documentation framework by scanning filesystem markers.

6|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/xiaolai/docs-guardian-for-claude --skill detection-xiaolai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: detection
Source: https://github.com/xiaolai/docs-guardian-for-claude/tree/main/skills/docs-guardian/detection
Command: npx skills add https://github.com/xiaolai/docs-guardian-for-claude --skill detection-xiaolai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically detects the project language and the documentation framework by scanning filesystem markers, enabling hands-off configuration and downstream tooling.

Core Features & Use Cases

  • Detects language by inspecting marker files such as Cargo.toml, go.mod, pyproject.toml, tsconfig.json, and package.json, applying a clear priority.
  • Detects documentation framework by locating framework configs such as mkdocs, vitepress, docusaurus, or sphinx, then suggests the appropriate doc root.
  • Produces a structured discovery result that can drive auto-configuration of the docs toolchain in new or existing projects.

Quick Start

Run the detection on your repository to auto-identify language and documentation framework and return a config proposal.

Frequently Asked Questions about detection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I auto-detect my project language and docs framework from config files?

To auto-detect project language and docs framework, the skill scans filesystem markers like Cargo.toml, go.mod, pyproject.toml, and package.json, returning a structured JSON object with language, framework, docRoot, and markers keys.

What filesystem markers are used to identify a project's programming language?

Filesystem markers used to identify programming language include Cargo.toml, go.mod, pyproject.toml, tsconfig.json, and package.json. The detection applies a clear priority order to these marker files to determine the primary language.

How do I find the documentation framework and doc root for an existing repository?

Finding the documentation framework and doc root involves locating framework configs for mkdocs, vitepress, docusaurus, or sphinx. The skill returns the identified framework and suggests the appropriate documentation root directory.

Does the detection skill support VitePress, Docusaurus, Sphinx, and MkDocs?

Yes, the detection skill supports VitePress, Docusaurus, Sphinx, and MkDocs. It identifies the active documentation framework by scanning for the respective configuration files of these frameworks within the project filesystem.

What is the output format when scanning a repository for language and framework markers?

The output format when scanning for language and framework markers is a structured JSON object. This discovery result contains four specific keys: language, framework, docRoot, and markers, driving auto-configuration of the docs toolchain.