Atomic page builder

From ilandahan/AID · View interactive version

Atomic page builder is an AI agent skill from the GitHub repository ilandahan/AID. Build pages using ONLY existing atomic-design components. REQUIRES atomic-design skill. Use for composing pages, creating views/features from existing components.

How to use this skill

Skill file

Atomic Page Builder

Critical rule: design spec is source of truth. NEVER guess layout. ALWAYS extract EXACT page specs from design spec first.

Rules

| Forbidden | Required |

|---|---|

| Creating new atoms/molecules/organisms | Use existing components only |

| Guessing layout values | Extract from design spec |

| External UI libs (MUI, Chakra) | Design system imports only |

| Hardcoded values (#333, 24px) | CSS Modules + tokens |

| Rounding values | Exact design spec values |

Skill Switching

| Situation | Action |

|---|---|

| Missing atom/molecule/organism | -> atomic-design |

| Need new tokens | -> atomic-design |

| Token value changed in design spec | -> atomic-design (update first) |

| Composing from existing | Stay here |

Workflow

Step 0: EXTRACT FROM design spec (mandatory)

Step 1: INVENTORY (scan existing components)

Step 2: GAP ANALYSIS (map requirements to components)

Step 3: BUILD OR STOP

Page Composition

/**
 * Dashboard Page
 * @design-source ./design-spec.md
 * @extracted 2024-01-15
 * Layout specs from design spec - DO NOT MODIFY
 */

import { DashboardLayout } from '@/templates/DashboardLayout';
import { Card } from '@/molecules/Card';
import { DataTable } from '@/organisms/DataTable';
import styles from './Dashboard.module.css';

export const Dashboard = () => (
  <DashboardLayout>
    <div className={styles.statsGrid}>
      <Card title="Revenue">$12,450</Card>
    </div>
    <DataTable columns={columns} data={data} />
  </DashboardLayout>
);
/* Dashboard.module.css - ALL values from design spec */
.statsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* From design spec */
  gap: var(--spacing-6);                   /* From design spec */
}

@media (max-width: 768px) {
  .statsGrid {
    grid-template-columns: 1fr;            /* design spec mobile */
    gap: var(--spacing-4);
  }
}

Import Pattern

import { Button } from '@/design-system/atoms/Button';
import { Card } from '@/design-system/molecules/Card';
import { Header } from '@/design-system/organisms/Header';
import { DashboardLayout } from '@/design-system/templates/DashboardLayout';

Details

Output Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.