writing-doc-summaries

Generate compliant YAML front matter summaries for Markdown documents.

5|19|Updated Jul 22, 2022
One-click install
npx skills add https://github.com/pingcap/docs-staging --skill writing-doc-summaries
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-doc-summaries
Source: https://github.com/pingcap/docs-staging/tree/main/markdown-pages/en/tidb/master/.ai/skills/writing-doc-summaries
Command: npx skills add https://github.com/pingcap/docs-staging --skill writing-doc-summaries

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps maintain accurate and consistent YAML front matter by creating or updating the 115–145 character summary for Markdown docs in pingcap/docs and pingcap/docs-cn, ensuring discoverability and compliance with documentation guidelines.

Core Features & Use Cases

  • Generates compliant 115–145 character summaries that pass length requirements and opening-verb guidance.
  • Updates existing summaries to reflect the document scope and tone, without repeating the title.
  • Applies to files missing a summary or with low-quality or outdated summaries across docs and docs-cn.

Quick Start

Target a Markdown document and the skill will generate and insert a compliant summary into its front matter.

Frequently Asked Questions about writing-doc-summaries

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

FAQPage Schema
How do I write a YAML front matter summary for Markdown documentation?

To write a YAML front matter summary for Markdown documentation, generate a self-contained, reader-focused summary between 115 and 145 characters that matches the document scope, language, and tone without repeating the title.

What is the minimum character limit for a Markdown front matter summary?

The minimum character limit for a Markdown front matter summary is 45 characters. Summaries must also fall within the 115–145 character target range to pass length requirements and comply with documentation guidelines.

How do I fix a missing or outdated summary in Markdown files?

To fix a missing or outdated summary in Markdown files, target the document to automatically generate a compliant summary and insert it directly into the YAML front matter, ensuring it reflects current document scope and tone.

Does the front matter summary need to follow opening-verb guidelines?

Yes, the front matter summary must follow opening-verb guidelines. It applies these rules alongside the 45-character minimum and 115–145 character target to produce summaries that pass quality checks and ensure discoverability.

Can I update summaries for Chinese Markdown documentation?

Yes, you can update summaries for Chinese Markdown documentation. The process operates on documents in both pingcap/docs and pingcap/docs-cn, generating summaries that match the specific language and tone of the targeted file.