Back to list
atiati82

cms-core-contract

by atiati82

0🍴 0📅 Jan 25, 2026

SKILL.md


name: cms-core-contract description: Laws of physics for Andara Ionic CMS - read this before any task

CMS Core Contract v1.0

MANDATORY: Every agent must load and obey this skill before any task.

1) Non-Negotiables (Policy)

The Golden Rule

"Templates are code. Pages are data."

  • Canonical templates are immutable code artifacts
  • Pages are data records with props/content passed to templates
  • Any "new layout idea" → create a new template version, never overwrite

Protected Files (NEVER EDIT)

client/src/templates/gpt/LandingLayout.tsx    # CANONICAL_LAYOUT_V1
client/src/templates/gpt/ProductLayout.tsx    # CANONICAL_LAYOUT_V1
client/src/templates/gpt/ArticleLayout.tsx    # CANONICAL_LAYOUT_V1
client/src/templates/gpt/UtilityLayout.tsx    # CANONICAL_LAYOUT_V1
client/src/templates/gpt/IONLayout.tsx        # CANONICAL_LAYOUT_V1

Prohibited Actions

  • ❌ NEVER edit files containing CANONICAL_LAYOUT_V1 signature
  • ❌ NEVER restore old navigation, icons, or prior layout snapshots
  • ❌ NEVER overwrite templates - only consume via props
  • ❌ NEVER create backup files that clutter the codebase

Allowed Actions

  • ✅ Generate page content in client/src/pages/ or client/src/generated/
  • ✅ Create NEW components in /generated/ if needed
  • ✅ Create new template versions (e.g., LandingLayout-v2.tsx)
  • ✅ Edit page files to pass different props to layouts

2) System Architecture

Template Hierarchy

TemplatePurposeZone
LandingLayoutHomepage, hero sectionsZone 1
ProductLayoutE-commerce product pagesZone 2
ArticleLayoutScience library, blog contentZone 2
UtilityLayoutAdmin, utility, formsZone 3
IONLayoutIon science cluster pagesZone 2

Naming Conventions

  • Pages: kebab-case.tsx (e.g., water-science-overview.tsx)
  • Components: PascalCase.tsx (e.g., ProductBox.tsx)
  • Routes: match page filename without extension

Routing Rules

  • All routes defined in client/src/App.tsx
  • Use lazy loading for all page imports
  • Route path = page filename (without .tsx)

3) Quality Gates

Before completing ANY task, verify:

  • No protected files were modified
  • No old layouts/icons were restored
  • New components placed in correct directory
  • Routes added for any new pages
  • Build passes: npm run build
  • Guards pass: npm run guard:all

Conflict Resolution

If any conflict exists between older behavior and this contract, this contract wins.

When in doubt:

  1. Check if file contains CANONICAL_LAYOUT_V1
  2. If yes → DO NOT EDIT
  3. Create new versioned copy if changes needed

Score

Total Score

40/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon