wi-site
Installation
SKILL.md
Wonder Site (new-site based)
Overview
Use this skill inside wonder-image/new-site or any project scaffolded from it. The repo is the runtime owner. The framework lives in vendor/wonder-image/app (Composer, see wi-app for changes there) and the JS/CSS design system lives under assets/lib/wonder-image/dist/ (copied from npm wonder-image/lib). Treat both as upstream — never edit them in place.
Glossary
Shared vocabulary across wi-app and wi-site (identical wording in both skills):
- framework —
wonder-image/app(Composer package, github.com/wonder-image/app). Lives at the repo root when wi-app is active; lives atvendor/wonder-image/app/inside a site. - lib —
wonder-image/lib(npm package, github.com/wonder-image/lib). The JS / CSS design system. Source atnode_modules/wonder-image/src/; compiled copy atassets/lib/wonder-image/dist/. - scaffold —
wonder-image/new-site(github.com/wonder-image/new-site). The site template. The scaffold itself is also a valid site. - site — any project whose
composer.jsondepends onwonder-image/app(i.e. installs the framework undervendor/wonder-image/app). Typically the scaffold or a project derived from it. Canonical term — prefer "site" over older mixed uses like "consumer project" / "consumer app". - module — external Composer package
wonder-image/<slug>discovered via Composer (or filesystem fallback). Ships its own models / resources / routes viamodule.json+ aModuleInterfaceentrypoint. custom/— site-only directory for project pages, components, layouts, routes, config, and helpers. Never present inside the framework.app/Models/app/Resources— site PSR-4 roots (App\Models\.../App\Resources\...). Distinct from the framework'sclass/App/Models/class/App/Resources(Wonder\App\Models\.../Wonder\App\Resources\...).