Repository navigation
feat(skills): add github-markdown skill - #11
Conversation
A short SKILL.md (when to use GitHub features vs plain Markdown, a quick reference for alerts, footnotes, heading anchors, line breaks, autolinks, mentions and closing keywords) with reference files for raw HTML, diagrams and math, and autolink forms. Tested with and without the skill on a subagent; the baseline got heading anchors wrong. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP
…s sanitizer List the kept tags and attributes, unwrapping of removed tags, URL scheme limits and the id caveat from html-pipeline's SanitizationFilter (v2.14.3 and v3), the public basis of github.com's sanitizer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP
|
This works: One thing to note if it isn't there already: If an issue doesn't exist when the commit is made (and for the owner/repo#1 style, if it doesn't exist in owner/repo) then the auto link won't happen and adding the issue later apparently wont cause it to get autolinked. Unsure if it's just update lag somewhere back end, but to ensure auto links work the issue or pr should exist before trying to refer to it. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP
|
Thanks, that confirms the commit-message claim. Added the "create the target first" note to Still unchecked: 7-character SHA prefixes, and one keyword per closed issue. Generated by Claude Code |
No. Some other cases I did just for curiosity:
The rule seems to be something like So to be safe it should be:
|
Tested on a real PR: 'Closes #1, #2' links both issues; 'and', doubled commas or a keyword after the references end the list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP
|
Thanks. Fixed in Only the 7-character SHA prefix claim is left unchecked. Generated by Claude Code |
|
See ee45b63
|
|
Thanks, that matches Generated by Claude Code |
|
Also see 700a438 |
…s do Tested on GitHub: 'pr#3' and 'issue#1' stay plain text, and 'Fix #1 , #2' links and closes both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP
|
Ok now I'll read the whole thing. |
…t links From review: end lines with a backslash rather than two invisible spaces, and write [label](url) or <url> instead of relying on bare-URL autolinks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP
Colors, styled text, layout and animation without CSS (MathJax, Mermaid, diff blocks, nested tables, animated SVG), in its own file so the common references stay small. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP
…by theme Tested in a GitHub issue: \color works, \colorbox errors with 'macros are not allowed', and <mark> is a dim tint in dark mode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP
Tested in a GitHub issue: links to both <a id> and <a name> jump. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP
Adds
github-markdown, a skill written here for GitHub-only Markdown. It assumes plain CommonMark knowledge and covers only what github.com adds or changes.What's in it
SKILL.md(short): when to use GitHub features vs plain Markdown (root README, GitHub-only text such as templates and comments, and everything else), then a quick reference for alerts, footnotes, heading anchors, line breaks, relative links, task lists, tables, autolinks, mentions and closing keywords.references/html.md: what github.com's sanitizer removes and keeps (based onhtml-pipeline'sSanitizationFilter, v2.14.3 and v3),<details>,<picture>for dark and light mode, centering and sizing, custom anchors.references/diagrams-math.md: Mermaid, GeoJSON/TopoJSON, STL, math and$escaping, code fences.references/autolinks.md: where#123and SHAs autolink (not in repo files or wikis), reference forms, creating the target first, unfurling, avoiding backlinks, label and color chips, closing keywords.skills.sh.json, the README skill table, AGENTS.md andskills/index.json.Sources: GitHub Docs "Basic writing and formatting syntax" and "Working with advanced formatting", the GFM spec 0.29,
github/markupandhtml-pipeline.Testing (writing-skills, Haiku subagents)
_from formatting)$escaping, avoiding backlinksREADME features, an MkDocs page, PR mentions and README issue links already passed without the skill.
Checked by hand on GitHub
user@; 6-character prefixes don't.Closes #1, #2);and, a doubled comma or a keyword after the references ends it (the skill was corrected).The plugin version is not bumped here; adding a skill is a minor bump at release.
bash scripts/ci.sh,claude plugin validate .andclaude plugin validate . --profile directorypass locally (the one warning, about the rootCLAUDE.md, is already onmain).🤖 Generated with Claude Code
https://claude.ai/code/session_01QT6szzQoh3BvFC1BY1KxyP