Awesome-omni-skill mastergo
Retrieve and analyze MasterGo design DSL data. Use when users provide MasterGo links (https://mastergo.com/file/xxx or /goto/xxx) to fetch design structure, component documentation, and DSL metadata.
git clone https://github.com/diegosouzapw/awesome-omni-skill
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/design/mastergo" ~/.claude/skills/diegosouzapw-awesome-omni-skill-mastergo-dda847 && rm -rf "$T"
skills/design/mastergo/SKILL.mdMasterGo Skill
Retrieve and analyze design data from MasterGo files using self-contained Python scripts.
Prerequisites
Environment variable required:
export MASTERGO_TOKEN="mg_your_token_here"
Get token: MasterGo Settings > Security > Personal Access Token
Requirements: Team Edition account, files in Team Projects (not Drafts).
CRITICAL: Secure Token Handling
NEVER do this:
- exposes secret in outputecho $MASTERGO_TOKEN
- exposes secretecho "Token: $MASTERGO_TOKEN"
- exposes secretprintenv MASTERGO_TOKEN- Any command that prints the token value
Secure verification method:
test -n "$MASTERGO_TOKEN" && echo "Token is set" || echo "Token is NOT set"
This only prints whether the token exists, never its value.
Script Location
Scripts are in
scripts/ relative to this SKILL.md file. Use absolute path when executing:
{this_skill_directory}/scripts/mastergo_*.py
Workflow
Step 1: Analyze DSL Structure
Always analyze first to understand the page structure:
python scripts/mastergo_analyze.py "https://mastergo.com/goto/xxx"
Output shows:
- Node tree (type, name, size)
- Text contents
- Component doc links
- Navigation targets
Step 2: Get Full DSL (if needed)
For detailed DSL data:
python scripts/mastergo_get_dsl.py "https://mastergo.com/goto/xxx"
Output: JSON with
{ dsl, componentDocumentLinks, rules }
Step 3: Fetch Component Docs
If
componentDocumentLinks is non-empty, fetch relevant docs:
python scripts/mastergo_get_dsl.py URL | python scripts/mastergo_fetch_docs.py --from-dsl
Or fetch individually:
python scripts/mastergo_fetch_docs.py "https://example.com/button.mdx"
Scripts Reference
| Script | Purpose | Output |
|---|---|---|
| Structure summary | Human-readable tree to stdout |
| Full DSL data | JSON to stdout |
| Component docs | Doc content to stdout |
| Utility functions | Import as module |
DSL Key Concepts
fields: Design tokens for colors, shadows, fonts (convert to CSS variables when generating code)token
: Component metadata including documentation linkscomponentInfo
fields: User interactions including page navigation targetsinteractive
array: Guidelines returned with DSL responserules
CRITICAL: Do NOT Pollute User Projects
FORBIDDEN actions:
- Creating
or any DSL cache file in user project.temp_dsl.json - Creating
or any analysis script in user projectanalyze_dsl.py - Creating any temporary files in user project directory
- Writing any skill-related files outside of skill directory
ALLOWED:
- Running scripts and capturing stdout output
- Using output directly in memory
- Reading user's existing project files for context
All script output goes to stdout only. Use the output directly; do not save intermediate files to user's project.
References
- references/dsl-types.md - Complete DSL type definitions
- references/dsl-structure.md - Key fields and patterns
- references/multi-page-workflow.md - Multi-page workflow