agentleFS
Jeff-TianJeff-Tian/agent-skills/markdown-output/SKILL.md

markdown-output

Skill1 starsChanged 7 months agoMITView on GitHub

Enforce Markdown output formatting policy whenever the user asks for full Markdown source code, raw Markdown, or copyable Markdown documents. Use whenever the user says "output markdown", "give me the markdown source", "markdown 源码", "raw markdown", or similar requests for Markdown content that is meant to be copied as-is rather than rendered.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Never: use triple backticks ( `) as the outermost fence.

    line 20
  2. Distinctive:

    After a bare URL (not inside a link), always insert one space before any following character, including punctuation:

    line 34
  3. Distinctive:

    Do not produce output like this:

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Markdown Output Policy

This skill defines mandatory formatting rules for generating full Markdown source code. These rules have higher priority than any stylistic formatting preferences.

Fencing Rules

  1. Always wrap the entire Markdown document in triple tildes (~~~).
  2. Never use triple backticks (```) as the outermost fence.
  3. Triple backticks (```) are allowed only inside the document for code examples.
  4. Avoid nested triple backticks. If a code block inside the document itself needs to show triple backticks, use an increased-count fence (e.g. ~~~~) or indent-based code blocks instead.
  5. The output must be copyable in its entirety without rendering breaks.

Link Formatting Rules

  1. In Markdown links, insert one space between the URL and the closing parenthesis:
    • Correct: [text](https://example.com )
    • Wrong: [text](https://example.com)
  2. After a bare URL (not inside a link), always insert one space before any following character, including punctuation:
    • Correct: https://example.com ,下一段文字
    • Wrong: https://example.com,下一段文字

Examples

Fencing — correct

My Document

Some text and a code block:

console.log("hello");

Fencing — wrong (uses triple backticks as outer fence)

Do not produce output like this:

```
# My Document
…
```

Link — correct

See [GitHub](https://github.com ) for details.

Link — wrong

See [GitHub](https://github.com) for details.

Language Policy

  • Detect user language
  • Respond in same language

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.