By dzwduan
Validate ASCII box-drawing diagrams for alignment issues. Automatically validates and iteratively fixes diagrams created or modified by Claude.
A Perl script and Claude Code skill for validating ASCII box-drawing diagrams for alignment issues. Designed to be used standalone or as an automatic validation step whenever Claude creates ASCII diagrams.
validate_ascii.pl checks ASCII diagrams for:
│ characters must align across rows⟶ ⇒) that render wider than 1 columnOutput includes PASS/FAIL status and actionable FIX: instructions for each issue.
/plugin marketplace add dzw/ascii-diagram-validator
/plugin install ascii-diagram-validator@dzw
cp validate_ascii.pl ~/.local/bin/validate_ascii.pl
chmod +x ~/.local/bin/validate_ascii.pl
validate_ascii.pl diagram.txt
validate_ascii.pl diagrams/*.txt
cat > /tmp/diagram.txt << 'EOF'
┌─────────────────────┐
│ My ASCII Diagram │
└─────────────────────┘
EOF
validate_ascii.pl /tmp/diagram.txt
ASCII Diagram Validator
==============================================================================
Checking 1 file(s)...
File: /tmp/diagram.txt
==============================================================================
Status: FAIL
Lines: 3, Expected Width: 23 characters
Issues Found:
------------------------------------------------------------------------------
1. Line 2, Col 23: [WIDTH_MISMATCH] Line has width 22, expected 23 (off by -1). FIX: Add 1 space(s) to pad this line to width 23
Summary
==============================================================================
Total files: 1
Passed: 0
Failed: 1
Single line: ─ │ ┌ ┐ └ ┘ ├ ┤ ┬ ┴ ┼
Double line: ═ ║ ╔ ╗ ╚ ╝ ╠ ╣ ╦ ╩ ╬
Heavy line: ━ ┃ ┏ ┓ ┗ ┛
Rounded: ╭ ╮ ╰ ╯
Arrows: → ← ↑ ↓ ↔ ↕
NEVER: ⟶ ⟵ ⟹ ⟸ ⟷ ⟺ (render 3-4x normal width)
AVOID: ⇒ ⇐ ⇔ ⇑ ⇓ (render 1.5-2x normal width)
The included skill (SKILL.md) instructs Claude to automatically validate any ASCII diagram it creates or modifies and iterate until the validator reports PASS. It also handles diagrams embedded in mixed-content files (markdown, source code with comment blocks, etc.) by extracting, validating, fixing, and re-inserting diagram regions.
The skill is triggered automatically when Claude produces box-drawing characters — no manual invocation needed.
ascii-diagram-validator/
├── validate_ascii.pl # The validator tool
├── README.md # This file
├── .claude-plugin/
│ ├── marketplace.json # Marketplace metadata
│ └── plugin.json # Plugin definition
└── skills/
└── ascii-validator/
└── SKILL.md # Claude Code skill definition
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Humanize - An iterative development plugin that uses Codex to review Claude's work. Creates a feedback loop where Claude implements plans and Codex independently reviews progress, ensuring quality through continuous refinement.
npx claudepluginhub dzwduan/ascii-diagram-validator --plugin ascii-diagram-validatorComprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
This skill should be used when users need to generate ideas, explore creative solutions, or systematically brainstorm approaches to problems. Use when users request help with ideation, content planning, product features, marketing campaigns, strategic planning, creative writing, or any task requiring structured idea generation. The skill provides 30+ research-validated prompt patterns across 14 categories with exact templates, success metrics, and domain-specific applications.
Develop, test, build, and deploy Godot 4.x games with Claude Code. Includes GdUnit4 testing, web/desktop exports, CI/CD pipelines, and deployment to Vercel/GitHub Pages/itch.io.
A growing collection of Claude-compatible academic workflow bundles. Covers scientific figures, manuscript writing and polishing, reviewer assessment, citation retrieval, data availability, paper reading, literature search, response letters, paper-to-PPTX conversion, and evidence-grounded Chinese invention patent drafting. Rules are organized as reusable skill folders with explicit workflows and quality checks.
Upstash Context7 MCP server for up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your LLM context.
Consult multiple AI coding agents (Gemini, OpenAI, Grok, Perplexity, plus codex, antigravity, and grok CLIs when installed) to get diverse perspectives on coding problems