generate-markdown
Skill by nuotsu
Generates the Markdown for the markdown field of Sanity page and blog.post documents. Use it to fill or refresh the text served at slug.md and listed in llms.txt.
Install generate-markdown
Built from the published package, never by AI.
git clone --depth 1 https://github.com/nuotsu/studiofront /tmp/studiofront && mkdir -p ~/.claude/skills && cp -r /tmp/studiofront/web/.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/studiofront /tmp/studiofront && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/studiofront/web/.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 through the Sanity MCP connector. For blog posts it converts the Portable Text content field. For pages it walks the modules array, keeps reader-facing text, and resolves internal links to real paths. Images become Sanity CDN links built from each asset reference.
The skill writes the result to the document's draft using patch_documents and does not publish it. The source says publishing is what makes the slug.md file and the llms.txt listing go live. It is aimed at people who maintain curated Markdown for a Sanity-based site and want to generate, refresh, or fill in that field.
Written from the project's SKILL.md and checked against it.
What it can do
- whoamiConfirms the Sanity MCP connector is available.
- list_projectsLists projects so the project id and dataset can be confirmed.
- get_documentFetches the target page or blog post before conversion.
- query_documentsFinds a document by slug when only the slug is known.
- patch_documentsSets markdown.code on the document draft.
- Portable Text conversionConverts headings, lists, marks, links, and code blocks to Markdown in order.
- Image conversionBuilds Sanity CDN image links from asset references and adds captions.
What you need
- Sanity MCP connector
- Sanity project id and dataset (default production)
- Access to the site repository schema files under src/modules
Try asking
- Generate the markdown field for the About page in Sanity.
- Refresh the markdown for my latest blog post.
- Fill in the markdown field for the pricing page draft.
Good to know
- Changes go to the draft only. Publishing is needed for slug.md and the llms.txt listing.
- Nothing generates the markdown field automatically. It is hand-curated through this skill.
- Custom HTML blocks are dropped unless the user asks to keep raw HTML.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: web/.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?
No. It patches markdown.code on the draft. The source says publishing makes slug.md and the llms.txt listing go live, and publish_documents is only called if the user asks.
Which document types does it support?
The source covers page and blog.post documents. Blog posts convert the content field, and pages convert the modules array.
How are images handled?
The skill builds Sanity CDN URLs directly from each image's asset reference without an API call, and uses the image's alt text.
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 52 of 100. Grades: maintenance A, licence A, quality C. 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.
