Ape style markdown

From arpitbbhayani/ape-skills · View interactive version

Ape style markdown is an AI agent skill from the GitHub repository arpitbbhayani/ape-skills. Apply consistent, professional Markdown formatting rules whenever producing or reformatting Markdown output. Use this skill when generating any Markdown document, when the user asks to reformat or clean up existing Markdown, when producing README files, technical docs, notes, or any other content th

How to use this skill

Skill file

Markdown Style Guide

Apply these rules to every piece of Markdown you produce or reformat.

Core Principles

Line Width

Never hard-wrap lines at a fixed column width. Every prose line -- paragraphs, list items, block quotes, table cells -- must be a single unbroken line. Let the renderer handle wrapping. This applies everywhere in the document without exception: do not wrap at 80, 100, 120, or any other column limit.

The only text that may contain newlines is content inside fenced code blocks, where newlines are part of the code itself.

Prohibited Formatting

Punctuation

Use only ASCII punctuation. Do not use Unicode typographic substitutes.

When reformatting existing Markdown, replace any prohibited punctuation found in prose with its ASCII equivalent.

Readability

Write prose that is easy to scan and understand on the first read.

Headings

Example:

## Installation

Run the following command to install dependencies.

### macOS

Use Homebrew to install the required packages.

Paragraphs

Lists

Example:

The release includes three changes:

- Fix for the authentication timeout bug
- Upgrade of the database driver to v5
- Removal of the legacy config parser

Code

Example:

export DATABASE_URL="postgres://localhost:5432/mydb"

Math

Use LaTeX syntax for all mathematical expressions. Do not write formulas as plain text or inline code.

$$
P(A \mid B) = \frac{P(B \mid A)\,P(A)}{P(B)}
$$

Never write formulas as plain text (O(n log n)) or as code spans (` O(n log n) `) unless the expression is inside a code block that is specifically illustrating source code.

Block Quotes

Links

Tables

Blank Lines -- Summary

| Context | Rule |

| ----------------------------- | -------------------------------- |

| After any heading | Exactly one blank line |

| Before a list | One blank line |

| Between list items | No blank lines |

| Between paragraphs | One blank line |

| Between any two elements | At most one blank line |

| Inside a fenced code block | Only if the code itself requires |

Reformatting Existing Markdown

When the user asks to reformat or clean up an existing Markdown document:

  1. Apply all rules above.
  2. Preserve all content: do not add, remove, or reword any text.
  3. Preserve all code blocks, inline code, and block quotes verbatim.
  4. Fix heading levels only if they are structurally broken (e.g. jumping from # to ###).
  5. Do not introduce new sections or headings.
  6. Return the reformatted document only, with no preamble or commentary.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.