Skip to content
Back to skills

Mermate Tab Markdown

ASecurity

Stage 2 tab (Markdown Spec) of the Mermate pipeline — markdown architecture spec intake (paste/upload .md/.markdown/.txt), agent planning and spec refinement, and the Markdown → Mermaid unlock. Use when editing md-stage UI, upload handling, or spec refinement behavior.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 11, 2026
businessrustnodeapifrontendbackend

Works with

  • cli
  • api

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add DylanCkawalec/Mermate --skill mermate-tab-markdown --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mermate Tab Markdown?

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

Security grade badge for Mermate Tab Markdown
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dylanckawalec-mermate-tab-markdown/badge)](https://www.skillsdirectory.com/skills/dylanckawalec-mermate-tab-markdown)

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: mermate-tab-markdown
description: Stage 2 tab (Markdown Spec) of the Mermate pipeline — markdown architecture spec intake (paste/upload .md/.markdown/.txt), agent planning and spec refinement, and the Markdown → Mermaid unlock. Use when editing md-stage UI, upload handling, or spec refinement behavior.
---

# Mermate Tab 2 · Markdown Spec (md)

Operates under `mermate` master invariants; Lamport standards via `specification-master-agent`.

## Stage Identity (from `STAGE_REGISTRY.md`, public/js/mermaid-gpt-app.js)
- Label: **Markdown Spec** · reveal: `STAGE 2 · MARKDOWN` · color `#38bdf8`
- Expected duration: ≈10–60s · enhance default: ON · upload: `.md,.markdown,.txt`
- **IPO contract**:
  - Input: idea artifact or pasted/uploaded .md
  - Process: agent planning + spec refinement
  - Output: corrected architecture spec, Mermaid unlocked

## Owning Code
- Frontend: `public/js/mermaid-gpt-app.js` (md input config, upload wiring)
- Backend: `server/routes/render.js` `POST /api/render` with `input_mode: 'md'`; multipart via `multer`
- Agent refinement path: `server/routes/agent.js` (`POST /api/agent/run` planning phase)
- Classification: `server/services/input-router.js` → content_state `md` (or `hybrid` when Mermaid signals are present)

## Stage Invariants
1. A successful md render emits `progressionUpdate` unlocking at least `['idea','md','mmd']` — the Mermaid tab unlocks only from this server payload.
2. Uploaded file content is treated as untrusted text: validated, size-bounded, never executed.
3. Hybrid content (markdown + Mermaid-like signals) routes through the provider-backed pipeline when enhance is requested; it must not be misclassified as pure `mmd`.

## Anti-Patterns (Reject)
- Client-side "spec correction" duplicating the agent planning phase.
- Accepting file types beyond the registry's `accept` list without updating `STAGE_REGISTRY.md` first.
- Silently dropping uploaded content on enhance failure — fall back to raw spec, say so.

## Verification
- `npm run test:fast`; pipeline behavior → `node --test test/test-e2e-pipeline.js`

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.

Comments

Loading comments…

Newsletter

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