Skip to content
Back to skills

Markdown Vague

ASecurity

Markdown parsing skipping fenced code blocks in step validation

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentstesting

Works with

  • cli

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add D-Shey/autoharness --skill markdown-vague --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Markdown Vague?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Markdown Vague
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/d-shey-markdown-vague/badge)](https://www.skillsdirectory.com/skills/d-shey-markdown-vague)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: markdown-vague
description: Markdown parsing skipping fenced code blocks in step validation
---

# markdown-vague

## When to use
Use when extracting lists, steps, and procedures from Markdown documents while ignoring nested or illustrative code snippets.

## Steps
1. Detect fenced code blocks in Markdown:
   - Identify triple backtick (` ``` `) or triple tilde (` ~~~ `) delimiters with optional language tags.
   - Maintain a boolean `in_fence` state across line iterations.
2. In list item extraction (`vague.items`):
   - When encountering a fence delimiter, toggle `in_fence` and reset any current item accumulator.
   - While `in_fence` is true, ignore list item markers (`-`, `*`, `+`, `1.`) so code lines are never treated as procedural steps.
3. Validate steps outside code blocks:
   - Run vague step heuristics (`vague_step`) only on genuine procedural items.

## How to verify
1. Run pytest testing `vague.vague_steps` on Markdown containing fenced code blocks with dash lines (e.g. `- do it properly`).
2. Verify that no false positive warnings or trailing fence markers are produced.

## Facts found here
- Standard Markdown fenced code blocks start and end with at least three consecutive backticks or tildes at line start (source: https://spec.commonmark.org/0.31.2/#fenced-code-blocks).
- Lines inside code blocks frequently use dash prefixes for CLI flags, bullet comments, or diffs that must not be parsed as CommonMark list items.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.