Agent skill

Markdown Formatting

by athola in athola/claude-night-market

Enforces markdown line-wrap and structure rules for clean git diffs.

MITAuto-check passedDocuments & Office

Install Markdown Formatting

skills CLI
$ npx skills add athola/claude-night-market --skill markdown-formatting -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install athola/claude-night-market markdown-formatting --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/athola/claude-night-market.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/leyline/skills/markdown-formatting .claude/skills/markdown-formatting && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
markdown-formatting
GitHub stars
342
Token cost
~1.1k tokens
SKILL.md length
498 words
Files
2
Skills in repo
159
Repo updated
First seen
Licence
MIT

At a glance

Enforces markdown line-wrap and structure rules for clean git diffs.

  • Works in 5 steps: Wrap prose at 80 chars using hybrid… → Blank line before and after every heading → ATX headings only (# Heading, never… → …
  • Editing any committed markdown documentation
  • SKILL.md covers When To Use, When NOT To Use, Quick Reference and What to Wrap, plus 4 more sections
  • Reaches google.github.io

What it does

Markdown Formatting is an agent skill from athola/claude-night-market. Enforces markdown line-wrap and structure rules for clean git diffs. Use when writing or editing any committed markdown documentation or skill file.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `modules/wrapping-rules.md`).

It sits in Documents & Office, covering Markdown. It works with Git. The repository describes itself as: 23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context… The licence is MIT.

When your agent uses it

  • Editing any committed markdown documentation
  • Tasks that involve Markdown

Example prompts

  • “Use the markdown-formatting skill to enforce markdown line-wrap and structure rules for clean git diffs”
  • “/markdown-formatting”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Wrap prose at 80 chars using hybrid wrapping (prefer
  2. Blank line before and after every heading
  3. ATX headings only (# Heading, never setext underlines)
  4. Blank line before every list
  5. Reference-style links when inline links push lines

What it can do on your machine

Read from SKILL.md and the folder at commit 9f3eb00. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • google.github.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Markdown Formatting loads about 1.1k tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 498 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from athola/claude-night-market at commit 9f3eb00, republished under its MIT licence (© athola). 498 words, ~1,149 tokens.

Download SKILL.mdSave it as .claude/skills/markdown-formatting/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
markdown-formatting
description
Enforces markdown line-wrap and structure rules for clean git diffs. Use when writing or editing any committed markdown documentation or skill file.
globs
**/*.md
alwaysApply
false
category
cross-plugin-patterns
tags
markdown, formatting, documentation, line-wrapping, style
complexity
low
model_hint
fast
estimated_tokens
800
progressive_loading
true
modules
modules/wrapping-rules.md

Markdown Formatting Conventions

When To Use

  • Writing or editing any markdown documentation
  • Reviewing prose for line-wrapping compliance
  • Generating markdown from plugins (scribe, sanctum, etc.)

When NOT To Use

  • Editing code blocks, tables, or frontmatter (these have their own formatting rules)
  • Quick scratch notes that will not be committed

These conventions apply to all markdown documentation generated or modified by any plugin. The goal: produce prose that creates clean, reviewable git diffs and reads well on mobile devices.

Quick Reference

When writing or editing markdown prose:

  1. Wrap prose at 80 chars using hybrid wrapping (prefer sentence/clause boundaries over arbitrary word breaks)
  2. Blank line before and after every heading
  3. ATX headings only (# Heading, never setext underlines)
  4. Blank line before every list
  5. Reference-style links when inline links push lines beyond 80 chars

What to Wrap

Wrap these content types at 80 characters:

  • Paragraphs (flowing prose text)
  • Blockquote text (the content after >)
  • List item descriptions (text after - or 1. )
  • Descriptions in definition lists

What NOT to Wrap

Never wrap or reflow these content types:

  • Tables: pipe-delimited rows stay on one line
  • Code blocks: fenced (```) or indented content
  • Headings: lines starting with #
  • Frontmatter: YAML/TOML between --- or +++
  • HTML blocks: raw HTML elements
  • Link definitions: [id]: url reference lines
  • Image references: ![alt](url) on their own line
  • Single-line list items: short bullets that fit on one line

Wrapping Algorithm (Summary)

For each prose paragraph:

  1. If a sentence fits within 80 chars, keep it on one line
  2. If a sentence exceeds 80 chars, break at the nearest sentence boundary (. ! ? ) before column 80
  3. If no sentence boundary, break at the nearest clause boundary (, ; : ) before column 80
  4. If no clause boundary, break before a conjunction (and but or ) before column 80
  5. If none of the above, break at the last word boundary before column 80
  6. Never break inside backtick spans, link text, or URLs

See modules/wrapping-rules.md for the full algorithm with examples.

Show full SKILL.md (176 more words)Show less

Structural Rules

Blank Lines Around Headings
markdown
WRONG:
Some text.
## Heading
More text.

RIGHT:
Some text.

## Heading

More text.

Exception: the first line of a file may be a heading without a preceding blank line.

ATX Headings Only
markdown
WRONG:
Heading
=======

WRONG:
Subheading
----------

RIGHT:
# Heading

RIGHT:
## Subheading
Blank Line Before Lists
markdown
WRONG:
Some introductory text:
- Item one
- Item two

RIGHT:
Some introductory text:

- Item one
- Item two

When an inline link pushes a line beyond 80 characters, use reference-style syntax:

markdown
WRONG (line too long):
See the [formatting guide](https://google.github.io/styleguide/docguide/style.html) for details.

RIGHT:
See the [formatting guide][fmt-guide] for details.

[fmt-guide]: https://google.github.io/styleguide/docguide/style.html

Place link definitions at the end of the current section or at the end of the document. When the same URL appears multiple times, use a single shared reference definition.

Short inline links that keep the line under 80 chars are fine:

markdown
OK:
See [the guide](https://example.com) for details.

Exit Criteria

  • All prose lines in the edited file wrap at 80 characters or fewer; verified with awk 'length>80' <file> returning no matches on prose blocks (tables, code, headings, frontmatter excluded)
  • Every heading has a blank line before and after it (except the first line of a file); no setext-style underline headings present
  • Every list is preceded by a blank line
  • Inline links that would push a line past 80 characters converted to reference-style syntax with the URL definition at the end of the section or document

© athola, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in plugins/leyline/skills/markdown-formatting of athola/claude-night-market.

  • SKILL.md
  • modules/wrapping-rules.md

Open the folder on GitHubat commit 9f3eb00

Compare with similar skills

Markdown Formatting next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Markdown Formatting compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Markdown Formatting this skillathola/claude-night-market342—~1.1kAutomated safety check: PassMIT
Veomni Fix DocsByteDance-Seed/VeOmni2.2k—~1.4kAutomated safety check: PassApache-2.0
Cut Releasespiculedata/saiku1.3k—~502Automated safety check: PassApache-2.0
Notcrawlopenclaw/notcrawl134—~698Automated safety check: PassMIT
Ljg Pushlijigang/ljg-skills7.5k—~1.4kAutomated safety check: PassMIT
Flow Next Visualgmickel/flow-next707—~2.4kAutomated safety check: NotesMIT

Similar skills

  • Veomni Fix Docs

    ByteDance-Seed/VeOmni

    Audit and correct VeOmni documentation links, Markdown, language, and technical claims against repository sources.

    2.2k GitHub stars~1.4k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Cut Release

    spiculedata/saiku

    Cut a Saiku release via Gitflow — version bump, release branch, PR to main, tag, back-merge, and post-release chores.

    1.3k GitHub stars~502 tokensUpdated today
    DevelopmentAuto-check passed
  • Notcrawl

    openclaw/notcrawl

    A skill your agent uses for local Notion archive search, sync freshness, Markdown/database exports, git-share snapshots, and Notcrawl repo/release work.

    134 GitHub stars~698 tokensUpdated yesterday
    DatabasesAuto-check passed
  • Ljg Push

    lijigang/ljg-skills

    把 ~/.agents/skills/ljg- 里所有更新过的 skills 同步到 github repo (ljg-skills),先推 master 分支(org-mode 输出风格),再切 md 分支(markdown 输出风格)做基础 markdown 化后推。Use when user says '/ljg-push', 'push skills', '推送 skills'…

    7.5k GitHub stars~1.4k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Flow Next Visual

    gmickel/flow-next

    Restate a spec, a task, a diff, or the current topic visually as a compact markdown digest.

    707 GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check: notes
  • Markdown Article Formatter

    JimLiu/baoyu-skills

    Reformats plain text or Markdown articles with frontmatter, a title, a summary, headings, bold, lists and code blocks, and saves a separate formatted copy.

    26k GitHub starsUsed in 7 repos~3.5k tokens
    Documents & OfficeAuto-check passed

More from athola/claude-night-market

All 159 skills in this repo
  • Night Market Diagnostics Toolkit

    athola/claude-night-market

    Run and interpret repo diagnostic scripts (ratchets, validators, token stats).

    342 GitHub stars~3.4k tokensUpdated 2 days ago
    Auto-check passed
  • Skills Eval

    athola/claude-night-market

    Evaluate Claude skill quality through auditing. An agent skill from athola/claude-night-market.

    342 GitHub stars~1.6k tokensUpdated 2 days ago
    Auto-check passed
  • Agent Teams

    athola/claude-night-market

    Coordinates Claude agent teams via filesystem protocol. An agent skill from athola/claude-night-market.

    342 GitHub stars~2.5k tokensUpdated 2 days ago
    Auto-check passed
  • Delegation Core

    athola/claude-night-market

    Delegates execution to eight CLIs (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer).

    342 GitHub stars~2.5k tokensUpdated 2 days ago
    Auto-check passed
  • Elegant Code

    athola/claude-night-market

    Guide minimal code via a decision ladder with full safety, edge, and negative-case coverage.

    342 GitHub stars~2.1k tokensUpdated 2 days ago
    Auto-check passed
  • Skill Library Mission

    athola/claude-night-market

    Build a project skill library in .claude/skills/ via discovery, parallel authoring, and review.

    342 GitHub stars~1.6k tokensUpdated 2 days ago
    Auto-check passed

Works with

Questions about Markdown Formatting

What does Markdown Formatting do?

Enforces markdown line-wrap and structure rules for clean git diffs. Markdown Formatting is an agent skill from athola/claude-night-market. Enforces markdown line-wrap and structure rules for clean git diffs.

When should I use Markdown Formatting?

Markdown Formatting fits situations like: editing any committed markdown documentation; tasks that involve Markdown.

How do I install Markdown Formatting in Claude Code?

Run `npx skills add athola/claude-night-market --skill markdown-formatting -a claude-code`. Or copy the skill folder (plugins/leyline/skills/markdown-formatting in athola/claude-night-market) into .claude/skills/markdown-formatting in your project. Claude Code loads it when a task matches its description.

How do I install Markdown Formatting in Codex?

Run `npx skills add athola/claude-night-market --skill markdown-formatting -a codex`. Or copy the skill folder (plugins/leyline/skills/markdown-formatting in athola/claude-night-market) into .agents/skills/markdown-formatting in your project. Codex loads it when a task matches its description.

Can I use Markdown Formatting in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add athola/claude-night-market --skill markdown-formatting -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/markdown-formatting, .gemini/skills/markdown-formatting, .github/skills/markdown-formatting and .opencode/skills/markdown-formatting in your project.

What does Markdown Formatting need to run?

SKILL.md names no scripts, command-line tools or credentials: Markdown Formatting is instructions for the agent only.

Does Markdown Formatting access the network?

SKILL.md names 1 domain. In commands or code: google.github.io; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Markdown Formatting safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Markdown Formatting use?

Markdown Formatting is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Markdown Formatting use?

About 1.1k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Markdown Formatting?

Skills that share tags, products or a category with Markdown Formatting: Veomni Fix Docs (ByteDance-Seed/VeOmni, 2.2k stars), Cut Release (spiculedata/saiku, 1.3k stars), Notcrawl (openclaw/notcrawl, 134 stars) and Ljg Push (lijigang/ljg-skills, 7.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Markdown Formatting?

athola (a GitHub user) maintains it in athola/claude-night-market, which has 342 GitHub stars. The repository holds 159 skills in this directory. The repository was last updated on October 6, 2026.

Source: athola/claude-night-market on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.