A skill for mastergo design tool.
npx skills add https://github.com/jeasonstudio/mastergo-skills --skill mastergoInstallez cette compétence avec la CLI et commencez à utiliser le flux de travail SKILL.md dans votre espace de travail.
A Cursor/Claude AI Agent Skill for parsing MasterGo design files and retrieving DSL data. Enables AI assistants to understand design structures, extract component information, and generate code from MasterGo designs.
npx skills add https://github.com/jeasonstudio/mastergo-skills
# Required
export MASTERGO_TOKEN="mg_your_token_here"
# Optional (for enterprise deployments)
export MASTERGO_API_URL="https://your-mastergo-domain.com"
python scripts/mastergo_analyze.py "https://mastergo.com/goto/LhGgBAK"
This provides a human-readable summary of the design:
python scripts/mastergo_get_dsl.py "https://mastergo.com/goto/LhGgBAK"
Returns JSON with { dsl, componentDocumentLinks, rules }.
# From DSL output
python scripts/mastergo_get_dsl.py URL | python scripts/mastergo_fetch_docs.py --from-dsl
# Individual URL
python scripts/mastergo_fetch_docs.py "https://example.com/button.mdx"
Simply provide a MasterGo link to your AI assistant:
Parse this design: https://mastergo.com/goto/LhGgBAK
The agent will automatically:
| Script | Purpose | Output |
|---|---|---|
mastergo_analyze.py |
Structure summary | Human-readable tree to stdout |
mastergo_get_dsl.py |
Full DSL data | JSON to stdout |
mastergo_fetch_docs.py |
Component docs | Doc content to stdout |
mastergo_utils.py |
Utility functions | Import as module |
Error: TOKEN_INVALID
Solution: Regenerate token in MasterGo Personal Settings → Security Settings
Error: PERMISSION_DENIED
Solution:
Error: SHORT_LINK_FAILED
Solution: Use full URL format https://mastergo.com/file/{fileId}?layer_id={layerId}
MIT