tanstack/markdown/production-pipelines
Claude Code and agent skill by tanstack/markdown
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Audit and ship a production Markdown pipeline with explicit trust boundaries, external syntax highlighting, parse-ahead caching, compatibility checks, deterministic output, and bundle budgets. Load before deploying blogs, docs, or untrusted-content rendering.
Install
npx vskill@latest install tanstack/markdown/production-pipelinesSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as tanstack/markdown/production-pipelines.
This skill builds on render-markdown. Read it first for the supported syntax, AST, parser options, and renderer contracts.
TanStack Markdown — Production Pipeline Checklist
Run every section before deploying a blog, documentation site, or user-content renderer.
Trust Boundary Checks
Check: Classify every Markdown source
Expected:
Fail condition: Untrusted input reaches allowHtml, an unaudited extension renderHtml hook, or an unaudited highlighter.
Fix: Separate trusted and untrusted entry points, keep trusted callbacks disabled for untrusted content, and enforce application link, image, and final-HTML policy.
Highlighting Checks
Check: Return trusted code contents only
Expected:
Fail condition: The callback returns a complete <pre><code> tree, does not escape source code, or comes from an unreviewed transform.
Fix: Return only escaped markup for the renderer-owned <code> contents, and run highlighting during ingestion, build, or server rendering.
Compatibility Checks
Check: Validate the actual content corpus
Expected:
Fail condition: Adoption relies only on CommonMark examples or a comparison table instead of the site's Markdown.
Fix: Add downstream content directories, preserve practical regressions with focused fixtures, and require renderer and bundle accounting for new syntax.
Check: Verify deterministic output
Expected:
Fail condition: Identical source and options produce different serialized AST or HTML.
Fix: Remove time, randomness, environment state, and unstable ordering from extensions and render callbacks.
Performance and Cache Checks
Check: Parse once with final options
Expected:
Fail condition: Stable content is reparsed per request, or parser options/extensions change after the AST is cached.
Fix: Build the AST with final parse options, version persisted cache keys, invalidate stored ASTs when node contracts change, and use only narrow entry points.
Check: Enforce bundle budgets
Expected:
Fail condition: Any measured entry exceeds its checked gzip budget or starts bundling a highlighter.
Fix: Inspect the bundle diff and justify any syntax or dependency cost before adjusting a budget.
Release Checks
Check: Run the complete package gate
Expected:
Fail condition: Tests, typechecking, build, docs validation, conformance accounting, sizes, benchmarks, or the npm dry run fail.
Fix: Resolve every gate before publishing, including HTML/React/Octane parity; audit raw HTML, highlighter output, HTML hooks, and component replacements separately.
Common Production Mistakes
CRITICAL Enabling HTML for untrusted Markdown
Wrong:
Correct:
allowHtml emits raw nodes and is not a sanitization step.
Source: docs/core-concepts/security.md
HIGH Returning highlighter containers
Wrong:
Correct:
The renderer owns <pre><code>; the callback supplies only the code element's trusted contents.
Source: docs/guides/syntax-highlighting.md
CRITICAL Trusting arbitrary highlighter output
Wrong:
Correct:
Highlighter output is inserted without further escaping in every renderer.
Source: docs/core-concepts/security.md
MEDIUM Bundling highlighting into static clients
Wrong:
Correct:
Tokenizer runtimes, grammars, and themes can outweigh Markdown parsing and should remain build-time or server-side for static content.
Source: docs/guides/performance.md
CRITICAL Treating defaults as a sanitizer
Wrong:
Correct:
Core escaping and protocol filtering do not enforce application-specific outbound-link, image, or final-HTML policy.
For parsed Markdown destinations, urlTransform(url, kind, defaultUrl) can return the screened default, a trusted replacement, or null to remove the link or image while retaining its label content. Only allow data images after application validation of their content, MIME type, and size. Keep the default policy for other destinations. Callback results are not screened again, and the callback does not apply to raw HTML, extension-created URLs, or ASTs supplied directly to renderers. Do not enable raw HTML to allow images. Include URL-policy changes in persisted AST cache invalidation.
Source: docs/core-concepts/security.md
HIGH Assuming complete CommonMark behavior
Wrong:
Correct:
The package implements a documented docs/blog profile, not complete CommonMark, GFM, MDX, or arbitrary plugin behavior.
Source: docs/core-concepts/syntax-profile.md
MEDIUM Reparsing unchanged content
Wrong:
Correct:
String render inputs parse the complete document, while a cached MarkdownDocument skips that work.
Source: docs/core-concepts/document-model.md
HIGH Injecting HTML into React
Wrong:
Correct:
The HTML string adds a trusted insertion boundary and bypasses React component replacement.
Source: docs/guides/react.md
MEDIUM Expecting fence metadata to highlight
Wrong:
Correct:
Fence metadata enters the AST, but token markup requires an external highlighter.
Source: docs/core-concepts/syntax-profile.md
Tensions
Compatibility breadth versus bundle budget
Do not maximize conformance by default. Require target-corpus evidence, renderer coverage, and measured bundle cost before adding syntax.
Rich trusted output versus untrusted-content safety
Do not enable raw HTML, extension HTML, or highlighter markup globally to solve presentation needs. Scope each trusted callback to controlled content.
Parse-ahead performance versus option timing
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/production-pipelines/SKILL.md
Popularity
- Repository stars
- 419
- Repository forks
- 8
- 7-day trend score
- 30
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tanstack/markdown/production-pipelines)