用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/spryker-sdk/ai-dev --skill propel-schema命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | propel-schema |
| description | Use the skill to create, update, or review Propel schema definitions for Spryker modules. |
Create Propel schema definitions following Spryker conventions.
spy_ for core/feature modules, pyz_ for project-level modulesid_{table_name} — INTEGER, autoIncrement, requiredfk_{referenced_table} — INTEGER<id-method-parameter value="{table_name}_pk_seq"/>{table}-fk_{column}{table}-{column}{table}-unique-{column}| Use Case | Type |
|---|---|
| IDs, counters | INTEGER |
| Short strings | VARCHAR |
| Long text / JSON | LONGVARCHAR |
| Flag | BOOLEAN |
| Fixed options | ENUM |
| UUID | VARCHAR size="36" |
| Timestamps | TIMESTAMP |
| Date only | DATE |
| Decimal | DECIMAL |
timestampable — adds created_at, updated_atuuid — auto-generates UUID; requires <parameter name="key_columns" value="id_{table}"/>event — triggers sync events; requires <parameter name="{table}_all" column="*"/>synchronization — syncs data to Redis/Elasticsearchid_{table_name} pattern<foreign-key> element<index> element for performanceonDelete="CASCADE" on foreign keys only when child rows should be deleted with parentidMethod="native" and <id-method-parameter> on tables with primary keys<?xml version="1.0"?>
<database xmlns="spryker:schema-01"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="spryker:schema-01 https://static.spryker.com/schema-01.xsd"
name="zed"
namespace="Orm\Zed\{Module}\Persistence"
package="src.Orm.Zed.{Module}.Persistence">
Create a Propel schema for a Company Catalog feature. A catalog belongs to a company and has a name, is_active flag, and timestamps. Use timestampable behavior. Do not add extra indexes or behaviors.
<?xml version="1.0"?>
<database xmlns="spryker:schema-01"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="spryker:schema-01 https://static.spryker.com/schema-01.xsd"
name="zed"
namespace="Orm\Zed\CompanyCatalog\Persistence"
package="src.Orm.Zed.CompanyCatalog.Persistence">
<table name="pyz_company_catalog" idMethod="native" allowPkInsert="true">
<column name="id_company_catalog" required="true" type="INTEGER" autoIncrement="true" primaryKey="true"/>
<column name="fk_company" required="true" type="INTEGER"/>
<column name="name" required="true" type="VARCHAR" size="255"/>
<column = = = =/>
<!-- Junction table: catalog ↔ category -->
<table name="pyz_company_catalog_category" idMethod="native" allowPkInsert="true">
<column name="id_company_catalog_category" required="true" type="INTEGER" autoIncrement="true" primaryKey="true"/>
<column name="fk_company_catalog" required="true" type="INTEGER"/>
<column name="fk_category" required="true" type="INTEGER"/>
<foreign-key name="pyz_company_catalog_category-fk_company_catalog" foreignTable="pyz_company_catalog" onDelete="CASCADE">
<reference local="fk_company_catalog" foreign="id_company_catalog"/>
</foreign-key>
<foreign-key name="pyz_company_catalog_category-fk_category" =>