Yao GEOFlow Design
Use this skill to discover, preview, clone, or improve a GEOFlow frontend without breaking its Laravel Blade rendering contract.
What This Skill Owns
- GEOFlow theme discovery and target selection
- preview-first theme edit sessions for existing templates
- reference-site cloning into GEOFlow-compatible modules
- current-template optimization and incremental design adjustment
- confirmation flow for replace-base vs publish-as-new decisions
What This Skill Does Not Cover
- direct deployment of a new frontend into production
- arbitrary page scraping and raw HTML copying
- changing GEOFlow data queries, routing, or SEO contracts
Required Preconditions
- Confirm the target workspace is a GEOFlow Laravel codebase with
artisan,routes/web.php,resources/views/site, andresources/views/theme. - Read references/geoflow-frontend-map.md and references/template-boundary.md before proposing changes.
- Discover available themes in
resources/views/themebefore editing. Default to the user-selected theme, otherwise use the active theme if known. - Preserve the existing module/data contract unless the user explicitly asks for a system change.
- Never hard-code the admin base path. Current GEOFlow can customize the admin URL path; frontend themes should use public routes and route helpers only.
- Choose a work mode:
edit_theme: adjust a specified existing themeclone: map a reference site into a new GEOFlow themehybrid: use a reference site to guide edits on a specified existing theme
- Treat preview and activation as separate steps. Never edit the live target first when a preview fork can be created.
Default Workflow
- Identify the GEOFlow workspace and confirm the canonical frontend and theme-system files.
- Run
scripts/discover_themes.pyto list existing themes, preview routes, and editable files. - Resolve a
target_theme_idor decide to create a brand-new theme from a reference site. - For
edit_themeorhybrid, create a preview fork withscripts/prepare_theme_edit_session.pyinstead of editing the target live. - For
cloneorhybrid, inspect the reference URL for tokens and layout rhythm. Foredit_themeorhybrid, audit the target theme for hierarchy, spacing, density, responsiveness, and module consistency. - Edit only the allowed theme files:
*.blade.php,partials/*.blade.php,assets/theme.css,manifest.json, and optionaltokens.json/mapping.json. - Preserve SEO/meta/schema output, markdown-rendered article HTML, image rendering rules, footer copyright, and public language behavior unless the user explicitly asks to change them.
- Keep the work in preview status until the operator reviews the generated preview URLs.
- After confirmation, choose one finalize path:
publish_as_new_theme: keep or rename the preview fork so it becomes a selectable admin themereplace_base_theme: back up the target theme, then replace it from the confirmed preview forkactivate_after_confirmation: perform activation only after preview approval
- Call out safe restyle surface, fixed contracts, and live-risk warnings before any finalize step.
Reference Map
- references/geoflow-frontend-map.md: authoritative frontend module and variable map
- references/laravel-theme-contract.md: current Laravel Blade theme contract
- references/template-boundary.md: safe and unsafe modification boundaries
- references/theme-package-contract.md: expected output shape for theme edit sessions and clone flows
- references/design-optimization-playbook.md: optimization heuristics and preferred outputs
- references/theme-edit-workflow.md: end-to-end workflow for discover -> preview -> adjust -> finalize