MA

markdown-writer

A secure and atomic tool for creating or updating markdown files within your repository.

Install

mkdir -p .claude/skills/markdown-writer && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12323" && unzip -o skill.zip -d .claude/skills/markdown-writer && rm skill.zip

Installs to .claude/skills/markdown-writer

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Write markdown content to file paths using the MCP markdown-writer server. Use when you need to save generated markdown content to a file, especially in contexts where (1) The Write tool is unavailable or restricted, (2) You need guaranteed atomic writes with verification, (3) Writing markdown files for documentation, reports, or research outputs, (4) An agent needs to persist markdown without user permission prompts.
421 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Beginner

Key capabilities

  • Write markdown content to specified file paths
  • Create parent directories automatically
  • Overwrite existing files without prompting
  • Perform atomic writes via temporary files and rename
  • Validate paths to prevent traversal attacks
  • Return file size and statistics after writing

How it works

The skill writes markdown content to disk using an MCP markdown-writer server, which handles file operations, creates directories, and ensures atomic writes.

Inputs & outputs

You give it
Markdown content and a file path
You get back
Markdown content written to the specified file path on disk

When to use markdown-writer

  • Saving documentation output
  • Writing report files
  • Automating markdown file generation
  • Verifying file integrity

About this skill

Markdown Writer

Write markdown content to disk reliably using the MCP markdown-writer server with atomic writes and verification.

Usage

Write a file

Use the mcp__markdown-writer__write tool directly:

Example:

Use mcp__markdown-writer__write to write the following content to /path/to/file.md:

# Your Markdown Content

Multi-line content works fine.

## Sections supported
- Lists
- Code blocks
- All markdown features

Parameters:

  • path: Absolute path (e.g., /tmp/test.md) or relative path from repository root (e.g., docs/test.md)
  • content: Markdown content to write

Verify a file (optional)

Use the mcp__markdown-writer__verify tool:

Example:

Use mcp__markdown-writer__verify to check /path/to/file.md

Parameters:

  • path: Absolute path (e.g., /tmp/test.md) or relative path from repository root (e.g., docs/test.md)

Key Behaviors

  • Creates parent directories automatically
  • Overwrites existing files without prompting
  • Atomic writes via temporary files and rename
  • Supports absolute paths (e.g., /tmp/file.md) and relative paths from repository root (e.g., docs/file.md)
  • Path validation prevents traversal attacks (../)
  • Returns file size and statistics

When to Use This Skill

Use this skill when:

  • You need to write markdown files from within an agent/subagent
  • The Write tool is restricted or unavailable
  • You need guaranteed atomic writes
  • You're generating documentation, reports, or research outputs
  • You want to avoid user permission prompts for file writes

Notes

  • The MCP server handles all file operations
  • No external Python dependencies required
  • All operations are logged for debugging

When not to use it

  • When the Write tool is available and unrestricted
  • When writing non-markdown content
  • When user permission prompts for file writes are acceptable

Limitations

  • Requires the MCP markdown-writer server to be running
  • Only writes markdown content
  • Overwrites existing files without confirmation

How it compares

This skill provides guaranteed atomic writes and path validation through a dedicated server, offering more reliability and security than a direct file write operation.

Compared to similar skills

markdown-writer side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
markdown-writer (this skill)08moNo flagsBeginner
update-release-notes128dReviewAdvanced
blogpost-creator13moReviewBeginner
audio-transcriber14moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry