gh-rendered-markdown
Skill0 starsChanged 3 months agoMITView on GitHub
Use when Markdown must render: never hard-wrap issue-body paragraphs; fix GitHub code fences, fold logs into details, and pin source links to tags.
In this repository110 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- action-worktreeSkill
- action-worktreesSkill
- agent-messaging-session-relaySkill
- business-case-study-internalSkill
- business-case-study-publicSkill
- business-pr-releaseSkill
- business-report-leadershipSkill
- business-report-org-wideSkill
- business-researchSkill
- changelog-refreshSkill
- changelog-rewrite-aggressivelySkill
- changelogSkill
- commitSkill
- disk-reclaimSkill
- diskSkill
- disk-usageSkill
- double-check-alignSkill
- double-checkSkill
- gh-create-issueSkill
- git-branch-redo-from-scratchSkill
- git-branch-soft-reset-and-recommitSkill
- github-actions-bumping-github-actionsSkill
- github-actions-update-actionSkill
- github-actions-update-actionsSkill
- lean-tightenSkill
- lean-trim-commentsSkill
- lean-writingSkill
- merge-pr-multipleSkill
- merge-pr-thisSkill
- model-cli-agySkill
- model-cli-codexSkill
- model-cli-cursorSkill
- model-cli-geminiSkill
- model-cli-gptSkill
- package-updater-update-packageSkill
- package-updater-updateSkill
- package-updater-update-toolchainSkill
- package-updater-updating-packagesSkill
- pr-deslopSkill
- pr-merge-commitSkill
- pr-refreshSkill
- pr-review-prSkill
- pr-rewriteSkill
- prSkill
- pytest-optimizer-00-scanSkill
- pytest-optimizer-01-benchmarkSkill
- pytest-optimizer-02-planSkill
- pytest-optimizer-03-executeSkill
- pytest-optimizerSkill
- rebaseSkill
- release-bumpSkill
- release-cutSkill
- release-update-downstream-packagesSkill
- research-assessSkill
- research-continueSkill
- research-foraySkill
- research-releaseSkill
- research-reportSkill
- The first 60 shown.
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
- Distinctive: line 13
Write the body so it renders, and link it so it still resolves in three years.
- Distinctive: line 43
Strip local paths and PII: before publishing: absolute home paths, hostnames, emails, tokens, internal URLs.
- Very specific: line 64
Read ./AGENTS.md and ./CLAUDE.md.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
Rendered markdown
Write the body so it renders, and link it so it still resolves in three years.
Two references carry the rules, and they are the same ones
the gh-create-issue skill follows:
references/rendered-markdown.md— wrapping, symbols, code fences,<details>, structure, and what to leave out.references/source-links.md— pinning, autolinking, cross-repo references, and the project link set.
The test
Will a maintainer three years from now find this helpful? They will not have the conversation, the open tab, or the branch. What survives is the text and what it links to.
For a pull request that test also picks the subject: the branch's net change, not the route it took.
Core moves
- Know which surface you are on. GitHub renders a single newline as a line break in issue, pull request, and comment bodies, and as a space in a markdown file. So a comment body is never hard-wrapped, and a repository file follows the repository's own convention. Do not re-wrap a file to match a body.
- Backtick every symbol — functions, flags, paths, env vars,
packages, types, verbatim errors. In the title too. Backticks are
also how you stop
#123or@namefrom linking. - Strip local paths and PII before publishing: absolute home paths, hostnames, emails, tokens, internal URLs. Pasted logs are where they hide.
- Fence liberally, one command per block, no comments inside the
fence, language tagged. A long command may wrap with
\. - Fold long output into
<details>with a blank line after</summary>— without it the whole block renders as raw HTML. - Nested sections, not tables. Rendered tables scroll sideways instead of reflowing and hide their right-hand columns.
- Link at every opportunity, and pin what you link. A release tag
first, else a 7-character commit reachable from trunk, never
blob/main. Name an open-source project once with its whole set: repository, homepage, docs, the changelog at that release, and its registry page. - Use the autolinks that already exist. Bare
#123and a bare 7-character ref inside a GitHub body;[REPO#123](url)across repositories; a bare tracker key only when that repository actually resolves it.
Calibrate to the project
Read ./AGENTS.md and ./CLAUDE.md. Where they define a house voice,
a slop rubric, or a wrap convention, that governs.
Verify before publishing
Render the draft through GitHub's own renderer and read the output —
literal ** means a <details> block lost its blank line, and a
<br> inside prose means the body is hard-wrapped.
gh api --method POST /markdown -f mode=gfm -f context=OWNER/REPO -f text="$(cat body.md)"Common mistakes
Hard-wrapping an issue body at 72 columns. Correct for a commit message, correct for most repository files, wrong here — every newline becomes a line break and the paragraph renders as ragged stubs.
A <details> block with no blank line after </summary>. The
fences, lists, and bold inside it all render as literal text. It is
the most common way a body ships broken.
An alert inside <details> or a list item. > [!WARNING]
degrades silently to a plain blockquote showing the marker.
Linking blob/main/… with a line anchor. It resolves forever and
points at different code every week.
A table of contents linking to the body's own headings. Issue-body headings get no anchor ids; every one of those links is dead.
@mentions as attribution. They send mail. Name someone only when you are asking them for something.
Reformatting the repository to match. This skill governs what you are writing, not the files around it.
Portability notes
- Bundled files — every relative path in this skill points at a file shipped inside this skill directory. Read them from here, not from the host's plugin tree.
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
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.

