Back to skills
SkillHub ClubShip Full StackFull Stack
mermaid-reverse-attempt
Imported from https://github.com/plurigrid/asi.
Packaged view
This page reorganizes the original catalog entry around fit, installability, and workflow context first. The original raw source lives below.
Stars
10
Hot score
84
Updated
March 20, 2026
Overall rating
C3.3
Composite score
3.3
Best-practice grade
B82.7
Install command
npx @skill-hub/cli install plurigrid-asi-mermaid-reverse-attempt
Repository
plurigrid/asi
Skill path: skills/mermaid-reverse-attempt
Imported from https://github.com/plurigrid/asi.
Open repositoryBest for
Primary workflow: Ship Full Stack.
Technical facets: Full Stack.
Target audience: everyone.
License: Unknown.
Original source
Catalog source: SkillHub Club.
Repository owner: plurigrid.
This is still a mirrored public skill entry. Review the repository before installing into production workflows.
What it helps with
- Install mermaid-reverse-attempt into Claude Code, Codex CLI, Gemini CLI, or OpenCode workflows
- Review https://github.com/plurigrid/asi before adding mermaid-reverse-attempt to shared team environments
- Use mermaid-reverse-attempt for development workflows
Works across
Claude CodeCodex CLIGemini CLIOpenCode
Favorites: 0.
Sub-skills: 0.
Aggregator: No.
Original source / Raw SKILL.md
---
name: mermaid-reverse-attempt
description: Mermaid URL codec - encodes/decodes #base64: (amp CLI) and #pako: (mermaid.live) formats
version: 1.0.0
---
# Mermaid Reverse Attempt
Encode diagrams to shareable URLs, decode URLs back to source.
## Formats Discovered
| Prefix | Source | Method |
|--------|--------|--------|
| `#base64:` | amp CLI | `JSON.stringify({code}) → base64` |
| `#pako:` | mermaid.live | `pako.deflate(JSON.stringify({code})) → base64` |
## Usage
```bash
# Encode diagram to pako URL (compressed)
node scripts/codec.js encode-pako < diagram.mmd
# Encode to base64 URL (amp style)
node scripts/codec.js encode-base64 < diagram.mmd
# Decode URL to diagram
node scripts/codec.js decode "https://mermaid.live/edit#pako:..."
```
## Quick Reference
```javascript
// Decode
const hash = url.split('#')[1];
if (hash.startsWith('pako:')) {
return JSON.parse(pako.inflate(Buffer.from(hash.slice(5), 'base64'), {to:'string'})).code;
}
if (hash.startsWith('base64:')) {
return JSON.parse(Buffer.from(hash.slice(7), 'base64').toString()).code;
}
// Encode pako
`https://mermaid.live/edit#pako:${Buffer.from(pako.deflate(JSON.stringify({code:diagram}))).toString('base64')}`
```
## GF(3)
- Trit: 0 (ERGODIC)
- decode ∘ encode = id