一键导入
sylo-skill-author
Meta-skill to scaffold a new Pi Agent Skill with Sylo-friendly frontmatter and optional widget or route surfaces.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Meta-skill to scaffold a new Pi Agent Skill with Sylo-friendly frontmatter and optional widget or route surfaces.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Set health profile and daily calorie targets, log meals (text or photo), and suggest foods that fit remaining macros. Uses sylo_health_* tools; looks up restaurant items via web search (prefers sylo-web-access when enabled).
Personal trainer workflows — log workouts in natural language, look up lift history, plan weeks/months, analyze muscle gaps. Uses sylo_health_workout_* tools plus journal for pain/preferences.
Offline ME/CODESYS terminology, ST syntax, and bundled Schneider PDF manuals — read before writing PLC code or answering ME/M262 questions; do not search the web for basics covered here.
Edit Machine Expert file-based (.fbsproj) Structured Text on disk — no cds-text-sync or GitHub setup.
Search schematic PDFs by text/OCR, then confirm details with region crops and OCR — not full-page re-reads.
Read Excel (.xlsx) and LibreOffice (.ods) workbooks as structured JSON via read_spreadsheet.
| name | sylo-skill-author |
| description | Meta-skill to scaffold a new Pi Agent Skill with Sylo-friendly frontmatter and optional widget or route surfaces. |
| metadata | {"sylo":{"category":"authoring","icon":"edit"}} |
When invoked:
Interview (required) — Before creating files:
show_widget) or UI the operator opens from the sidebar any time route?nav_section should the sidebar use: domain, tools, library, or dev? (Default mentally: domain for everyday product surfaces; tools for utilities; library for references; dev for authoring/diagnostics-aligned panels. Unknown strings fall back to domain per host.)Copy templates — do not hand-roll from memory
Canonical scaffolds live in @sylo/skill-builder:
| Surface | Template path |
|---|---|
| Widget | Copy templates/widgets/starter/ into the skill tree as assets/widgets/<widget-id>/ (replace <widget-id> with a kebab-case name that matches widgets: in SKILL.md). |
| Route | Copy templates/routes/starter/ into the skill tree as routes/<route-id>/ (same id as the routes: item entry in frontmatter). |
After copy: rename starter placeholders — set manifest.json id to the real widget/route id (must match folder + frontmatter).
Write SKILL.md under ~/.pi/agent/skills/<skill-name>/ (or project .pi/skills/) including YAML frontmatter:
name, description, optional metadata.sylo (category, icon, …).widgets: listing each widget folder id + widget_protocol_version: 1.routes: (each item has id, title, nav_section as chosen, entry, fallback, required_capabilities as needed) + route_protocol_version: 0.Every widget directory must keep fallback.md; every route directory must keep fallback.md (Sylo refusal rule).
Offer params.schema.json / metadata.sylo.paramsSchema only when the skill needs operator-editable configuration (unchanged convention).
Surface styling: Use classes from @sylo/skill-builder assets/sylo-surface.css (sylo-surface-lead, sylo-surface-btn, …). Sylo injects this CSS into iframes; starter templates already use it.
Companion-ready UI (phone): Sylo can expose skill routes on a phone via the desktop Companion server (Settings → Companion). Skill route HTML should:
<meta name="viewport" content="width=device-width, initial-scale=1" /> (starter templates do).After writing, remind the operator to /reload (and restart the host when route discovery caches apply).
For brownfield attach (operator already has a folder / HTML UI), prefer /skill:sylo-attach-ui instead of this skill.