wiki-markdown-structure-gate

Detect and block structural markdown defects in wiki pages before publishing.

8|1|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/bordenet/superpowers-plus --skill wiki-markdown-structure-gate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wiki-markdown-structure-gate
Source: https://github.com/bordenet/superpowers-plus/tree/main/skills/wiki/wiki-markdown-structure-gate
Command: npx skills add https://github.com/bordenet/superpowers-plus --skill wiki-markdown-structure-gate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents structurally broken wiki pages from being published by catching malformed tables, escaped internal-link artifacts, unbalanced code or callout fences, heading hierarchy defects, and missing manual TOCs that lead to broken rendering or poor navigation.

Core Features & Use Cases

  • Validates table structure and separator rows to detect collapsed or inconsistent rows before publish.
  • Detects escaped wiki-link artifacts and reports them as BLOCK findings to avoid broken internal links.
  • Ensures balanced fenced code blocks and callout fences and enforces heading hierarchy rules so rendering and navigation remain predictable.
  • Enforces TOC requirements for platforms configured with manual TOC behavior, failing closed on missing adapter configuration.
  • Use case: run as Stage 5.5 in a bulk wiki publishing pipeline to block pages with structural defects and produce a line-numbered report for editors to fix.

Quick Start

Run the wiki-markdown-structure-gate on a draft page to identify and fix BLOCK findings such as malformed tables, unbalanced fences, or missing manual TOC before publishing.

Frequently Asked Questions about wiki-markdown-structure-gate

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

FAQPage Schema
How do I validate wiki markdown structure before publishing?

To validate wiki markdown structure before publishing, run a pre-publish gate that checks for balanced code and callout fences, table separator rows, heading hierarchy order, and escaped internal-link artifacts. It outputs a line-numbered report of BLOCK or WARN findings for editors to fix.

What causes broken wiki pages with malformed tables and unbalanced code fences?

Broken wiki pages with malformed tables and unbalanced code fences are caused by collapsed table rows, missing separator rows, and unclosed callout or code blocks. Detecting these structural defects requires deterministic checks that report line numbers before the page reaches production.

How do I check markdown heading hierarchy and table separators in bulk wiki pipelines?

To check markdown heading hierarchy and table separators in bulk wiki pipelines, apply deterministic lint checks at a pre-publish stage. The gate enforces heading level order and validates table separator rows, producing line-numbered BLOCK findings to halt publication of defective pages.

Does wiki markdown validation require a platform adapter for manual TOC behavior?

Wiki markdown validation requires a platform adapter that exposes toc_behavior to enforce manual TOC requirements. If the adapter configuration is missing, the validation fails closed to prevent publishing pages without a proper table of contents.

Why are escaped internal-link artifacts blocking my wiki page publication?

Escaped internal-link artifacts block wiki page publication because they create broken internal links when rendered. The markdown structure gate detects these artifacts and reports them as BLOCK findings, requiring editors to remove the escape characters before the page can pass validation.

Can I use a markdown lint gate for wiki pages with toggles and callouts?

You can use a markdown lint gate for wiki pages with toggles and callouts by running deterministic checks for balanced callout fences. The gate detects unclosed or malformed callout blocks and reports them as line-numbered findings before the page enters the publish pipeline.