用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Guiziweb/guiziweb-plugins --skill init命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Add an admin autocomplete form type for a Sylius Resource (translatable or not), optionally injected into another form via an extension
Add an admin FormType for an existing Sylius Resource
Add a Sylius admin grid for an existing Sylius Resource
基于 SOC 职业分类
正在显示 SKILL.md
| name | init |
| description | Bootstrap a new Symfony project with the Sylius Stack (Bootstrap Admin UI, Resource, Grid, Twig Hooks) |
| argument-hint | [project_directory] |
| allowed-tools | AskUserQuestion, Bash, Read, Edit, Write, Glob, Grep |
Ask the user for the project directory name if not provided.
composer create-project symfony/skeleton:"8.0.*" {project_directory}
cd {project_directory}
composer require webapp
composer config extra.symfony.allow-contrib true
composer require -W \
doctrine/orm \
doctrine/doctrine-bundle \
pagerfanta/doctrine-orm-adapter \
symfony/asset-mapper \
sylius/bootstrap-admin-ui \
sylius/ui-translations
When prompted by Symfony Flex, type a or p to apply all recipes automatically.
In .env, set a real secret:
APP_SECRET=UseYourOwnSecretPlease
Since sylius/bootstrap-admin-ui auto-initializes Stimulus and injects its own stylesheets, you need to take control of that to avoid duplicate Ajax calls.
Disable the default Stimulus app and Symfony UX stylesheets, and register your own JS hook in config/packages/sylius_bootstrap_admin_ui.yaml :
# config/packages/sylius_bootstrap_admin_ui.yaml
sylius_twig_hooks:
hooks:
'sylius_admin.base#stylesheets':
symfony_ux:
enabled: false
'sylius_admin.base#javascripts':
app:
priority: 200
template: 'base/javascripts/app.html.twig'
symfony_ux:
enabled: false
Create the template that loads your AssetMapper entry point:
{# templates/base/javascripts/app.html.twig #}
{{ importmap('app') }}
Make sure your Stimulus app is started in assets/bootstrap.js:
// assets/bootstrap.js
import { startStimulusApp } from '@symfony/stimulus-bundle';
const app = startStimulusApp();
And imported in assets/app.js:
// assets/app.js
import './bootstrap.js';
docker compose up -d
Retrieve the dynamic port assigned by Docker and write the correct DATABASE_URL to .env.local:
docker compose port database 5432
Create or update .env.local with the correct port:
DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:{port}/app?serverVersion=16&charset=utf8"
Then create the database and start the web server:
bin/console doctrine:database:create --if-not-exists
symfony serve -d
| Service | URL |
|---|---|
| App | https://127.0.0.1:8000 |
| Admin | https://127.0.0.1:8000/admin |
| Database | PostgreSQL via docker compose |
Next steps:
/sylius-stack:add-resource to create your first resource/sylius-stack:add-menu to add it to the admin sidebar