Symmony Skin
ร้านค้าออนไลน์สกินแคร์
Access URLs
ข้อมูลทางเทคนิค
Directory
apps/symmonyskin
Schema
app_symmonyskin
Dev Port
3204
Type
E-commerce
Agent Rules (CLAUDE.md)
Symmony Skin — AI Agent Scope Rules
This file defines the strict boundaries for any AI agent working on this app. Violations of these rules may break other websites in the monorepo.
Identity
- App: Symmony Skin (ร้านค้าออนไลน์ Symmony Skin)
- Directory:
apps/symmonyskin/ - Database Schema:
app_symmonyskin - CMS Admin:
/cms - Dev Port: 3204
- Type: E-commerce (ใช้ @platform/cms-ecommerce)
Allowed Scope
You may ONLY modify files inside apps/symmonyskin/. Specifically:
apps/symmonyskin/src/app/ — Pages, layouts, routes
apps/symmonyskin/src/components/ — UI components
apps/symmonyskin/src/lib/ — Utilities, queries, types
apps/symmonyskin/src/payload/ — CMS collections and globals
apps/symmonyskin/public/ — Static assets (images, icons)
apps/symmonyskin/src/styles/ — CSS/Tailwind styles
Forbidden Actions
NEVER do any of the following:
-
Modify files outside
apps/symmonyskin/— especially:apps/bhwc/,apps/pollaphat/,apps/horhomeplus/packages/cms-core/,packages/cms-theme/,packages/cms-ecommerce/- Root config files (
pnpm-lock.yaml,turbo.json,tsconfig.json)
-
Modify database configuration — never change:
schemaNameinpayload.config.tsDATABASE_URIin.env.local- Any migration files that affect other schemas
-
Modify payment processing logic — never change:
- Payment gateway credentials or config
- Order calculation logic (pricing, tax, shipping)
- Payment callback/webhook handlers
- ถ้าต้องแก้ pricing → แก้ผ่าน CMS Admin เท่านั้น
-
Install/remove packages at root level — never run:
pnpm addat workspace rootpnpm removeat workspace root
-
Push directly to
mainordevelop— always use feature branches -
Delete data — never run destructive database operations
-
Modify shared package types — never change anything in
packages/
E-commerce Specific Rules
- Product prices → change via CMS Admin (
/cms), never in code - Order status → change via CMS Admin, never via scripts
- Inventory → manage via CMS Admin
- Payment settings → only admin can change, never via agent
- Coupon/discount logic → comes from shared package, do not override
Safe Package Installation
# Correct — scoped to symmonyskin
pnpm --filter symmonyskin add <package-name>
# WRONG — affects entire monorepo
pnpm add <package-name>
Branch & Commit Convention
- Branch:
feat/symmonyskin-<topic>orfix/symmonyskin-<topic> - Commit:
feat(symmonyskin): <summary>orfix(symmonyskin): <summary> - PR title:
[symmonyskin] <summary>
Before Submitting a PR
- Run
pnpm --filter symmonyskin build— must pass - Verify no files outside
apps/symmonyskin/were modified - Extra for e-commerce: Test checkout flow end-to-end if UI was changed
- Provide tunnel URL for team review
- List all changed files in PR description
CMS Data Management
- Content/product changes → do through CMS Admin at
/cms, not code - Schema changes → modify files in
apps/symmonyskin/src/payload/ - After schema changes → restart dev server to apply migrations
Cross-Site Change Request
If a task legitimately requires changes to shared packages:
- STOP — do not proceed
- Report to the team: "This task requires changes to shared code that affects all websites"
- Wait for explicit approval with
cross-site-change: approved - Only then proceed, with extra caution and testing of ALL affected apps