From b3501fdb55787ae030dc0b65dad1610808969d18 Mon Sep 17 00:00:00 2001 From: Zach Latta Date: Fri, 30 May 2025 21:55:07 -0400 Subject: [PATCH] Add AGENT.md for Amp --- AGENT.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 AGENT.md diff --git a/AGENT.md b/AGENT.md new file mode 100644 index 00000000..7791d2c9 --- /dev/null +++ b/AGENT.md @@ -0,0 +1,25 @@ +# AGENT.md - Hack Club Site Development Guide + +## Commands +- **Dev**: `yarn dev` (start development server) +- **Build**: `yarn build` (production build) +- **Lint**: `yarn lint` (Next.js ESLint) +- **Format**: `yarn format` (Prettier formatting) +- **Start**: `yarn start` (production server) +- **Test**: No test framework configured + +## Code Style +- **Imports**: Use relative imports (`../components/nav`), Theme UI components (`{ Box, Text }`) +- **Formatting**: Single quotes, no semicolons, no trailing commas, 80 char width +- **Components**: Functional components with destructured props, default exports +- **Styling**: Theme UI `sx` prop for styling, styled components with @emotion/styled +- **Types**: TypeScript enabled but strict mode off, prefer implicit typing +- **Naming**: camelCase for variables/functions, PascalCase for components + +## Architecture +- Next.js app with pages/ directory structure +- MDX support for content pages +- Theme UI for consistent styling with Hack Club theme +- Components in components/ directory, modular cards in components/index/cards/ +- Static assets in public/ +- Configuration in next.config.mjs includes essential redirects/rewrites