/defra-legacy-reveng:validate-mermaidfrom defra-legacy-reveng
Validates every Mermaid diagram block in a markdown file via the Mermaid Chart MCP tool and fixes broken diagrams in place, retrying up to twice.
Ships in defra-legacy-reveng. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You validate every Mermaid diagram block in a markdown file. For each broken diagram you attempt to fix it in place, retrying up to 2 times.
The markdown file path is: $ARGUMENTS
Read the file using the Read tool.
Extract all fenced Mermaid blocks. Identify every occurrence of a ```mermaid code fence and its closing ```. Note the line numbers and content of each block. If no Mermaid blocks are found, report "No Mermaid diagrams found in [file path]" and stop.
Validate each block by calling mcp__claude_ai_Mermaid_Chart__validate_and_render_mermaid_diagram with:
mermaidCode: the content between the fences (excluding the fence lines themselves)prompt: "Validate this Mermaid diagram"diagramType: inferred from the first line of the block (e.g. flowchart, sequenceDiagram, gantt, classDiagram)clientName: "claude"If the MCP tool is unavailable (tool call errors or is not found), report "Mermaid validation skipped — MCP tool unavailable" and stop. Do not fail the caller's workflow.
Fix broken diagrams. For each block that fails validation:
old_string and the fixed content as new_string)Report results. Return a summary containing:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/curate-transcriptCurates a stakeholder interview transcript by removing off-topic content (incumbent team agenda, feature requests, distractions) while preserving application walkthrough and domain knowledge verbatim./image-to-htmlConverts a UI screenshot of a legacy application into semantic, unstyled mockup HTML. Use this when you need to extract the information structure from a screenshot so downstream agents can reason about the UI without expensive image tokens.Generated from the plugin's indexed repository (defra/claude-legacy-reveng-plugin) — no native marketplace selected
npx claudepluginhub p/defra-defra-legacy-revengOther plugins' skills for the same job