Back to list
atiati82

page-generator-v1

by atiati82

0🍴 0📅 Jan 25, 2026

SKILL.md


name: page-generator-v1 description: Generate page content and props, never touch templates

Page Generator Skill v1.0

Core Rule: Generate page records + props + content. NEVER templates.

1) Non-Negotiables (Policy)

The Golden Rule

Pages are DATA. Templates are CODE.
You generate DATA, not CODE.

Allowed Actions

  • ✅ Create new page files in client/src/pages/
  • ✅ Import and use canonical layouts
  • ✅ Pass props to layout components
  • ✅ Create page-specific components in the page file
  • ✅ Add routes to App.tsx

Forbidden Actions

  • ❌ Modify any file in client/src/templates/
  • ❌ Create new layout templates (use existing)
  • ❌ Inline layout code into pages
  • ❌ Copy layout code from templates

2) Inputs & Outputs

Input Schema

interface PageRequest {
  slug: string;           // URL path (e.g., "water-science")
  title: string;          // Page title
  layout: 'Landing' | 'Product' | 'Article' | 'Utility' | 'ION';
  zone: 1 | 2 | 3;        // Strategic zone
  content: {
    hero?: HeroProps;
    sections: SectionProps[];
  };
  meta?: {
    description?: string;
    keywords?: string[];
  };
}

Output Contract

  1. Page file: client/src/pages/{slug}.tsx
  2. Route added to App.tsx
  3. Lazy import added to App.tsx

Page File Template

import { lazy } from 'react';
import { ArticleLayout } from '@/templates/gpt';

export default function PageName() {
  return (
    <ArticleLayout
      title="Page Title"
      heroProps={{...}}
      sections={[...]}
    />
  );
}

3) Quality Gates

Before completing page generation:

  • Page uses canonical layout import
  • No template files modified
  • Route added to App.tsx
  • Lazy loading configured
  • Build passes: npm run build
  • Route accessible: curl localhost:3000/{slug}

Available Layouts

LayoutImportBest For
LandingLayout@/templates/gptHomepage, marketing
ProductLayout@/templates/gptE-commerce products
ArticleLayout@/templates/gptScience library, blog
UtilityLayout@/templates/gptAdmin, tools, forms
IONLayout@/templates/gptIon science cluster

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