Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

markdownMarkdown 控制

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

466

周安装

20

GitHub Stars

2

下载量

163
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:markdown(Markdown 控制)
来源仓库:https://github.com/tgautier/dotfiles
仓库路径:skills/markdown
安装命令:
npx skills add https://github.com/tgautier/dotfiles --skill markdown
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tgautier/dotfiles --skill markdown

简介

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写,帮助提炼结构、统一术语和检查链接。

  • 适用于技术文档编写、内容稿件优化和结构化文本处理等场景。
  • 通过安装命令 npx skills add https://github.com/tgautier/dotfiles --skill markdown 从 GitHub 仓库安装使用。
  • 使用时需保留项目已有事实和路径,避免将未确认信息写成确定结论,涉及对外文案时应控制语气。
  • markdown 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Markdown

Formatting and structure conventions for Markdown files. Based on CommonMark spec, GitHub Flavored Markdown (GFM) extensions, Google Markdown style guide, and markdownlint defaults.

1. Consistency choices

These are arbitrary but must be consistent within a file and across a project:

ElementConventionRationale
HeadingsATX (#)Consistent, easy to grep
Unordered listsHyphens (-)Avoids * ambiguity with emphasis
Ordered listsLazy numbering (1. for all)Diffs stay clean on reorder
EmphasisAsterisks (*italic*, **bold**)More common than underscores
Code fencesBackticks (``` ` ```)Standard, not tildes
Horizontal rules---Three hyphens, nothing else
Link styleInline for short/one-off, reference for long/repeatedBalance readability and maintainability

2. Headings

Structure

  • One # (H1) per file — the document title
  • Increment by exactly one level — never skip from ## to ####
  • Blank line before and after every heading
  • Do not end headings with punctuation (no trailing ., :, ?)
  • Do not use emphasis (**, *, ` ``) inside headings — the heading itself provides emphasis
  • Heading text must be unique within the document — enables reliable fragment links

Case

  • Sentence case for headings: capitalize the first word and proper nouns only
  • Exception: title case is acceptable for the H1 document title

Examples

# User Authentication

## Token lifecycle

### Refresh token rotation

Anti-patterns

# user authentication          <!-- lowercase H1 -->
## Token Lifecycle:             <!-- trailing punctuation -->
#### Deep heading               <!-- skipped H3 -->
## **Important** section        <!-- emphasis in heading -->

3. Lists

Markers

  • Unordered: - (hyphen), consistently throughout the file
  • Ordered: 1. for every item (lazy numbering) — renderers auto-number, diffs stay clean
  • Blank line before the first item and after the last item of a list
  • No blank lines between items in a tight list (same logical group)
  • Blank line between items only when items contain multiple paragraphs or blocks

Content

  • Single-sentence items: no trailing period
  • Multi-sentence items: use periods on all sentences
  • Indent continuation lines to align with the first character of the item text (2 spaces for -, 3 spaces for 1.)

Nesting

  • Indent nested lists to align with the parent item text
  • Maximum 3 levels of nesting — deeper nesting signals the content should be restructured

Examples

- First item
- Second item with a longer description
  that wraps to the next line
- Third item

1. Step one
1. Step two
1. Step three

4. Tables

Formatting

  • Blank line before and after every table
  • Use leading and trailing pipes: | cell | cell |
  • Align pipes vertically for source readability (not required by spec, but helps review)
  • Same number of columns in every row — no ragged tables
  • Header separator uses --- (minimum three hyphens per column), with spaces around pipes: | --- | --- |

Content

  • Keep cells concise — if a cell needs a paragraph, the data doesn't belong in a table
  • Prefer lists when data isn't truly two-dimensional
  • Use code formatting in cells when showing identifiers, commands, or paths
  • No empty tables — if you have only one column, use a list instead

Alignment

  • Default: left-align (no colons needed in separator)
  • Right-align numbers: ---: in separator
  • Use alignment sparingly — most content reads fine left-aligned

Examples

| Command | Description |
| --- | --- |
| `just check` | Run linter and typecheck |
| `just test` | Run all tests |

5. Code blocks

Fencing

  • Always use fenced code blocks (triple backticks) — never indented code blocks
  • Always declare the language after opening backticks: ``` `rust ``, `` `sql ``, `` `markdown ```
  • Use text or console for plain output with no syntax highlighting
  • Blank line before and after every code block

Shell examples

  • Do not prefix commands with $ unless showing interleaved commands and output
  • When showing command + output, use $ prefix for the command lines only
  • Use sh or bash as the language identifier for shell commands

Content

  • Keep examples minimal — show the relevant pattern, not a full file
  • Use comments sparingly — the surrounding prose should explain the example
  • Mark incorrect patterns clearly: // WRONG, // CORRECT, <!-- WRONG -->, <!-- CORRECT -->

Examples

// CORRECT — filter before aggregating let total: BigDecimal = items .iter() .filter(|i| i.currency == "USD") .sum();

6. Links

Link text

  • Descriptive text that makes sense out of context — never "click here", "here", "this", "link"
  • Screen readers navigate by link text — generic labels are inaccessible
  • Keep link text concise but meaningful: 2-6 words typical

Inline vs reference

  • Inline [text](url) for short URLs used once
  • Reference-style [text][ref] with [ref]: url at the bottom for long or repeated URLs
  • Group reference definitions at the end of the file or end of the section

URL conventions

  • Use HTTPS for all external links
  • Fragment links (#heading-text) must reference a valid heading in the document
  • Relative paths for links within the same repository
  • Verify links still resolve after renaming or moving files

Examples

<!-- Inline — short, used once -->
See the [CommonMark spec](https://spec.commonmark.org/) for details.

<!-- Reference — long URL, used multiple times -->
The [API design guide][api-guide] covers pagination patterns.

[api-guide]: https://cloud.google.com/apis/design/design_patterns#list_pagination

7. Whitespace

Line endings

  • No trailing whitespace on any line
  • No hard tabs — use spaces for indentation
  • File ends with exactly one newline (no blank line at EOF, no missing newline)

Blank lines

  • One blank line between blocks of different types (heading, paragraph, list, code, table)
  • No multiple consecutive blank lines — exactly one blank line as separator
  • Blank line before and after: headings, code blocks, tables, horizontal rules, lists

Line length

  • No hard line-length limit for prose — let the editor wrap
  • Exception: code blocks should stay under 100 characters for readability in terminals and diffs
  • Tables: keep rows on a single line — horizontal scrolling is preferable to wrapped table rows

8. Anti-patterns

Quick-reference table of common mistakes:

Anti-patternProblemFix
Mixed list markers (- and *)Inconsistent, confusing diffsPick one, use throughout
Skipped heading levelsBroken outline hierarchyIncrement by one
Indented code blocksFragile, no language hintUse fenced blocks
Bare URLsPoor accessibilityWrap in [descriptive text](url)
Emphasis with spaces (* text *)Won't render as emphasisRemove spaces: *text*
Generic link text ("click here")Inaccessible, meaningless in link listsDescribe the destination
Inline HTML (<br>, <b>)Breaks portability, harder to maintainUse Markdown equivalents
Trailing punctuation in headingsNoisy, inconsistentRemove ., :, ?
Multiple H1sAmbiguous document titleOne H1 at the top
No language on code fencesNo syntax highlightingAlways declare language
Multiple consecutive blank linesVisual noise in sourceExactly one blank line
Hard tabsInconsistent renderingSpaces only

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.45%
按下载量换算61

Claude

26.62%
按下载量换算43

Cursor

18.85%
按下载量换算31

Gemini CLI

9.45%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills