format-markdown

format-markdown is a skill for Claude Code, Codex from soulcodex/agentic. It costs 56 tokens per session (527 once invoked), scanned A, original, MIT.

A tool for applying consistent formatting rules to Markdown files, which are plain-text documents that use simple symbols for headings, lists, and links. It uses the project's own formatting setup when available and checks the result.

In plain words
What is it for?
Use it to tidy README files, format documentation, and validate Markdown changes with the repository's formatter or checks.
Why use it?
It removes inconsistent spacing and Markdown style drift that can make documentation harder to read or fail project checks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; mentions OpenCode.

Good fit Use it to tidy README files, format documentation, and validate Markdown changes with the repository's formatter or checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/soulcodex/agentic/format-markdown
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add soulcodex/agentic --skill format-markdown
Clone the repo
git clone --depth 1 https://github.com/soulcodex/agentic

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for format-markdown

README.md
[![agentmods](https://agentmods.dev/badge/skills/soulcodex/agentic/format-markdown/github.svg)](https://agentmods.dev/skills/soulcodex/agentic/format-markdown)
Your own site
<a href="https://agentmods.dev/skills/soulcodex/agentic/format-markdown"><img src="https://agentmods.dev/badge/skills/soulcodex/agentic/format-markdown/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for format-markdown

Your own site · 80×15
<a href="https://agentmods.dev/skills/soulcodex/agentic/format-markdown"><img src="https://agentmods.dev/badge/skills/soulcodex/agentic/format-markdown.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 527 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00056 $0.00527
Opus 5.5 $0.00022 $0.00211
Sonnet 5.5 $0.00011 $0.00105
Haiku 4.5 $0.00006 $0.00053

Measured 1mo ago against content hash 86d07029b0ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

format-markdown scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/documentation/format-markdown/SKILL.md · 70 lines

What it actually says

Markdown Formatting Skill

Format Markdown files so they are structurally correct, readable, and consistent with the repository's formatting/lint rules.

Step 1 - Determine Scope

  • If the user provides files, format only those files.
  • Otherwise format changed Markdown files in the current branch/diff.
  • If no changed Markdown files exist, ask for explicit paths before proceeding.

Step 2 - Load Local Conventions

  • Read project formatting/lint config when present (for example .prettierrc*, .markdownlint*, lint scripts in package.json, justfile, Makefile).
  • Apply the repository's conventions over generic defaults.
  • Read rules.md and treat those rules as baseline behavior.

Step 3 - Apply Formatter (Preferred Order)

  1. Run repository-native formatting command if one exists (for example just, make, or package script targeting markdown).
  2. If none exists, use a standard Markdown formatter available in the repo toolchain (for example Prettier).
  3. If Markdown linter auto-fix is configured, run it after formatting.

Do not introduce formatting tools that are not already part of the repository unless the user asks.

Step 4 - Validate

  • Run markdown checks/lint commands available in the repository.
  • If checks fail with auto-fixable findings, apply fixes and re-run checks.
  • Report any remaining non-auto-fixable violations with file paths.

Step 5 - Safety Rules

  • Preserve document meaning and code block content.
  • Do not rewrite prose for style unless the user asks.
  • Do not alter links/anchors in ways that break navigation.
  • Keep frontmatter valid and unchanged semantically.

Step 6 - Output

Report:

  • files formatted
  • command(s) used
  • verification command(s) and results
  • any remaining manual fixes required
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 70 lines · 56 tokens per session scan A 86d07029b0ce

Subscribe to this mod's changes

format-markdown is a skill published in the GitHub repository soulcodex/agentic (10 stars, last pushed 1mo ago), licensed MIT. It adds 56 tokens to every session and 527 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

crit-cli

Use when an agent needs to author or reply to crit inline comments programmatically (including multi-agent workflows commenting on shared code/plans/docs/proposals), publish or unpublish a crit review with crit share, sync a crit review to or from a GitHub PR or GitLab MR, or read/interpret a crit review JSON file.…

tomasz-tomczyk/crit · 110 tokens

crit

Review code changes, a plan, a live page (running dev server), or a local HTML file with Crit inline comments and structured human feedback. Use only when the user explicitly invokes /crit or directly asks to use Crit; a generic review request does not count.

tomasz-tomczyk/crit · 55 tokens

crit-story

Author a crit story and continue the interactive review loop only when the user explicitly invokes crit-story or directly asks you to generate a crit story. Do not infer this skill from generic review, PR, or diff-review requests.

tomasz-tomczyk/crit · 47 tokens

alive:demo

Generate a believable, lived-in ALIVE world from a free-text persona description (custom path) or a deterministic sandbox preset. Routes the create/list/activate/deactivate/delete/status surface and orchestrates the 5-stage subagent generation pipeline.

alivecontext/alive · 52 tokens

alive:system-upgrade

Upgrade ALIVE to the current version. Handles v1/v2/v3.x source states, multi-surface aware (alive-mcp / Hermes / Codex), retroactive version detection, partial-failure resume, dry-run previews, and rollback inspection.

alivecontext/alive · 57 tokens

alive:save

The human wants to checkpoint. Or: the stash has grown heavy — 5+ items, 30+ minutes, a natural pause in the work. The squirrel doesn't decide when to save. It surfaces the need and lets the human pull the trigger. Runs the full save protocol: confirms stash, writes log, updates state, generates projections…

alivecontext/alive · 78 tokens