generate-markdown
Skill by nuotsu
Generates the verbatim Markdown for the markdown field on a Sanity page or blog.post document. It converts Portable Text and modules, resolves image and link references, and writes the result to the draft via the Sanity MCP connector.
Install generate-markdown
Built from the published package, never by AI.
git clone --depth 1 https://github.com/nuotsu/sanitypress /tmp/sanitypress && mkdir -p ~/.claude/skills && cp -r /tmp/sanitypress/.agents/skills/generate-markdown ~/.claude/skills/generate-markdownRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/nuotsu/sanitypress /tmp/sanitypress && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/sanitypress/.agents/skills/generate-markdown ~/.gemini/antigravity-cli/skills/generate-markdownAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The generate-markdown skill fills the markdown field on a Sanity page or blog.post document. That field is served verbatim at <slug>.md and determines whether the document appears in /llms.txt. The skill converts Portable Text or page modules into Markdown and keeps the source wording unchanged.
Images are turned into Sanity CDN links built from the asset reference, and internal links are resolved to real paths. The result is written to the draft through the Sanity MCP connector, and nothing is published automatically. The skill is intended for cases where the Studio Assist action is unavailable, such as when a user asks for it from chat.
Written from the project's SKILL.md and checked against it.
What it can do
- Portable Text conversionConverts blog post content blocks into Markdown headings, lists, links, emphasis and code fences.
- Page module conversionPulls reader-facing text from each module in a page's modules array, in document order.
- Image CDN linksBuilds Sanity CDN image URLs from the asset reference and uses the image alt text.
- Internal link resolutionLooks up referenced documents and builds real hrefs for internal links and CTAs.
- Draft patchingWrites markdown.code to the draft document using the Sanity MCP connector.
What you need
- Sanity MCP connector
- A Sanity project with page or blog.post documents
- Sanity Studio access to the markdown field (optional, for the Assist action)
Try asking
- Generate the markdown field for the About page in my Sanity project
- Refresh the markdown for the latest blog post and update the draft
- Fill in the markdown field for the pricing page from its modules
Good to know
- Writes to the draft only; publishing is needed for the .md route and /llms.txt listing to go live
- Custom HTML embeds are dropped unless the user asks to keep them
- Intended as a fallback when the Studio Assist action is not available
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/generate-markdown/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to generate-markdown
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
generate-markdown: common questions
Does this skill publish the markdown automatically?
No. Changes land in the draft only, and publish_documents is called only if the user asks. Publishing is what makes the .md route and the /llms.txt listing go live.
How are images handled in the generated Markdown?
Image URLs are built directly from the asset reference using the Sanity CDN pattern, without an API call. The image's own alt text is used, and a figcaption is rendered as an italic line below.
Which documents does this skill work on?
It is designed for page and blog.post documents. For blog posts it converts the content field, and for pages it converts the modules field.
How do I install generate-markdown?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is generate-markdown free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is generate-markdown safe to use?
It scores 70 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to generate-markdown?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
