leadtype

Guides MDX component rendering, markdown conversion, llms.txt generation, and docs linting with leadtype.

1.9k|209|Updated Jan 13, 2025
One-click install
npx skills add https://github.com/c15t/c15t --skill leadtype
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: leadtype
Source: https://github.com/c15t/c15t/tree/main/.agents/skills/leadtype
Command: npx skills add https://github.com/c15t/c15t --skill leadtype

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Working with the leadtype package requires knowing which APIs handle MDX components, markdown conversion, LLM bundle generation, and docs linting, and where the authoritative documentation lives. This Skill routes you to the correct packaged docs topic so you use the right function for each docs tooling task.

Core Features & Use Cases

  • Topic Routing: Directs you to the smallest relevant docs page (components, convert, markdown, llm, or lint) starting from llms.txt.
  • Path Priority Resolution: Prefers the installed package docs in node_modules and falls back to generated workspace docs or repo-root MDX sources.
  • API Coverage: Covers mdxComponents, CommandTabs, TypeTable, convertMdxToMarkdown, generateLlmsTxt, generateLLMFullContextFiles, and lintDocs.
  • Use Case: When asked to flatten MDX docs into markdown for an LLM context bundle, the Skill points you to convert.md and llm.md so you apply convertAllMdx and generateLlmsTxt correctly.

Quick Start

Ask how to convert the docs MDX files into markdown and generate an llms.txt bundle using leadtype.

Frequently Asked Questions about leadtype

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

FAQPage Schema
How do I convert MDX files to markdown with leadtype?

Use convertMdxToMarkdown for single conversions, writeMdxFileAsMarkdown to persist output, or convertAllMdx for batch processing. The convert.md topic page in the leadtype docs describes each function and its options.

How do I generate an llms.txt file for my docs site?

Use generateLlmsTxt for the summary index and generateLLMFullContextFiles for full topic bundles. The llm.md docs page explains topic design and how to structure the generated output.

What MDX components does leadtype provide?

leadtype provides mdxComponents along with CommandTabs, TypeTable, and ExtractedTypeTable for rendering docs content. The components.md topic page covers MDX rendering and component usage.

How do I lint docs content with leadtype?

Use the lintDocs function or the leadtype lint command to validate docs content. The lint.md page documents schema overrides and configuration options for custom validation rules.

Which leadtype docs should I trust when versions differ?

Prefer the installed package copy under node_modules/leadtype/docs first, then generated workspace docs. If the workspace version differs from the installed dependency, follow the local workspace code and flag the mismatch.