基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/javimosch/superlandings-go --skill sl-cli-mastery命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Deploy SuperLandings Go to remote servers with hotify-cli and Traefik
Asset management, CLI output conventions, and template helpers for SuperLandings Go
hotify-cli integration for SuperLandings Go - DNS, Traefik, and reverse proxy configuration
| name | sl-cli-mastery |
| description | Create sites with templates, assets, blog, admin panel — full mastery guide |
sl-cli site create --name "My Site" --slug "my-site"
sl-cli site version create my-site --version "v1"
sl-cli site upload my-site "logo.png" --file ./logo.png
sl-cli site write my-site v1 "index.html" --content '{{>include "nav.html"}}<h1>{{.title}}</h1>{{asset "logo.png"}}'
echo '{"title":"My Site"}' > ~/.superlandings/sites/my-site/v1/index.html.data.json
sl-cli backend start --daemon --port 3099 --no-systemd
{{>layout "layout.html"}} — wraps content, replaces {{.content}}{{>include "nav.html"}} — inlines file, recursively processed{{.var}}, {{if}}, {{range}}, {{asset "file"}}{{asset "filename"}}assets/ directory tree by filename{{asset "logo.png"}} → /my-site/logo.png or /my-site/img/logo.png (whichever found first)index.html.data.json{
"title": "My Site",
"items": [{"name": "A"}, {"name": "B"}]
}
<h1>{{.title}}</h1>
{{range .items}}<p>{{.name}}</p>{{end}}
Enable per site via admin-schema.json (at site level, not in version dir):
sl-cli site admin configure <site> --auto-detect # auto-generate schema
sl-cli site admin create <site> # generate token
sl-cli user create --email admin --password pass # create user
sl-cli user grant <site> admin # grant access
"auth": "none" — /admin/{slug}/{token}, tokens never expire"auth": "password" — /admin/{slug} shows login form, JWT sessions, logout"type": "form", source: "*.html" → CodeMirror (configurable layout.editorHeight)"type": "form", source: "*.data.json" → text/textarea for non-technical users"type": "markdown", source: "blog" → EasyMDE editor with metadata, drafts, deletemkdir -p ~/.superlandings/sites/{slug}/v1/blog
# Write post.md + post.md.data.json {"title":"...","published":true}
# Add {{>include "blog-preview.html"}} to your index.html
# Create layout.html for blog post styling (nav, footer, CSS)
Posts auto-discovered from blog/*.md. Drafts hidden (published:false). Metadata: title, author, date, reading_time.
html/template requires .Funcs() before .Parse(). The {{asset}} helper is registered this way — if you add custom functions, do the same.{{range}} as example text: Go's template engine will interpret it as a real action. Use plain text descriptions instead.filename.html.data.json (e.g., index.html.data.json).{{>include}} can include other files.{"version":"1.0","success":true,...}. Errors on stderr with semantic exit codes (81=missing flag, 90=not found, 101=external error).# Create
sl-cli site create --name "Demo" --slug "demo"
sl-cli site version create demo --version "v1"
# Assets
echo 'body{font-family:sans-serif}' > /tmp/style.css
python3 -c "open('/tmp/logo.png','wb').write(open('/dev/urandom','rb').read(100))"
sl-cli site upload demo "style.css" --file /tmp/style.css
sl-cli site upload demo "logo.png" --file /tmp/logo.png
# Templates
sl-cli site write demo v1 "nav.html" --content '<nav><img src="{{asset \"logo.png\"}}" height="32"> <a href="/">Home</a></nav>'
sl-cli site write demo v1 "index.html" --content '<!DOCTYPE html><html><body>{{>include "nav.html"}}<h1>{{.title}}</h1><p>{{.desc}}</p></body></html>'
# Data
echo '{"title":"Demo","desc":"Created in under 60s"}' > ~/.superlandings/sites/demo/v1/index.html.data.json
# Serve
sl-cli backend start --daemon --port 3099 --no-systemd
curl http://localhost:3099/demo/
superlandings-go-assets skill for asset detailshotify-integration skill for DNS/Traefiksync-mechanism skill for SSH syncAGENTS.md for project structure and limits