auto-format-doc

Format Markdown files after edits using Just recipes or Prettier.

3|5|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/sparkfabrik/sf-awesome-copilot --skill auto-format-doc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auto-format-doc
Source: https://github.com/sparkfabrik/sf-awesome-copilot/tree/main/skills/system/auto-format-doc
Command: npx skills add https://github.com/sparkfabrik/sf-awesome-copilot --skill auto-format-doc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Markdown files often drift in formatting after edits. This skill automatically formats Markdown after creation or modification using Just recipes (sjust/ajust) or the standard Prettier formatter, ensuring consistent style across a project.

Core Features & Use Cases

  • Automatically format Markdown files after write/edit using Just recipes (sjust/ajust) or Prettier as fallback.
  • Platform-aware execution chooses between sjust and ajust to run formatters.
  • Non-blocking error handling; if formatting fails, warn and continue without blocking tasks.
  • Use Case: maintain consistent docs and READMEs across large repositories or multiple teams.

Quick Start

Run the appropriate formatter on the updated Markdown file by trying the Just recipe first, then falling back to npx prettier if needed.

Frequently Asked Questions about auto-format-doc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically format Markdown files after editing them?

To automatically format Markdown files after editing, this skill applies platform-aware runners and external formatters like Prettier to ensure consistent documentation style across your project after every modification.

Do I need Just recipes to format Markdown documentation?

You need Just recipes (sjust/ajust) or an equivalent Prettier setup to format Markdown documentation. The skill tries the Just recipe first, then falls back to npx prettier if the standard setup is unavailable.

What happens if Prettier fails to format a Markdown file?

If Prettier or the Just recipe fails to format a Markdown file, the skill uses non-blocking error handling to warn you and continue processing without blocking your current documentation workflow tasks.

Can I use this to maintain consistent READMEs across multiple repositories?

You can use this to maintain consistent READMEs across multiple repositories by applying automated Markdown formatting to documentation workflows, ensuring uniform styling for guides and notes written by different teams.

How does platform-aware execution choose between sjust and ajust?

Platform-aware execution automatically detects the environment and chooses between sjust and ajust runners to apply the correct formatting recipes, ensuring the documentation style remains consistent regardless of the operating system.