# MyProjectThis is a Next.js application with TypeScript and Tailwind CSS.## Architecture- `/app` - Next.js 13+ app directory- `/components` - React components (use functional components with hooks)- `/lib` - Utility functions and shared logic- `/types` - TypeScript type definitions## Coding Standards- Use TypeScript for all new files- Prefer named exports over default exports- Use Tailwind CSS for styling (no CSS modules)- Write tests for all utility functions## Development Workflow1. Create feature branch from `main`2. Make changes with descriptive commits3. Run `npm test` before pushing4. Create PR with description
CLAUDE.md files are automatically loaded when you work in the directory where they’re located.
## Coding Standards### TypeScript- Use strict mode- Prefer interfaces over types for objects- Use `unknown` instead of `any`- Add JSDoc comments for public APIs### React- Use functional components with hooks- Prefer composition over inheritance- Keep components small (< 200 lines)- Use custom hooks for shared logic### Naming- Components: PascalCase (`UserProfile.tsx`)- Hooks: camelCase with `use` prefix (`useAuth.ts`)- Utilities: camelCase (`formatDate.ts`)- Constants: UPPER_SNAKE_CASE
## Development Workflow### Branch Strategy- `main` - Production-ready code- `develop` - Integration branch- `feature/*` - New features- `fix/*` - Bug fixes### Before Committing1. Run `npm run lint`2. Run `npm test`3. Run `npm run type-check`4. Update tests for new features### Pull Requests- Use PR template- Add screenshots for UI changes- Request review from team lead- Must pass CI checks
## Testing### Unit Tests- Test utilities and pure functions- Use Jest + Testing Library- Aim for 80% coverage- Location: `__tests__/` next to source### Integration Tests- Test API endpoints- Use supertest- Mock external services- Location: `tests/integration/`### E2E Tests- Test critical user flows- Use Playwright- Run on staging before deploy- Location: `tests/e2e/`
# MyProject{import:https://raw.githubusercontent.com/company/standards/main/CLAUDE.md}## Project-Specific NotesAdditional context specific to this project...
External imports require user approval the first time. Claude will show:
### Data Flow1. User action in React component2. API call via `lib/api-client.ts`3. Express route handler4. Service layer (business logic)5. Prisma (database)6. Response back up the chain## Coding Standards### TypeScript- Strict mode enabled- Use Zod for runtime validation- Prefer `type` for unions, `interface` for objects- No `any` - use `unknown` or proper types### React Components```typescript// Functional components with TypeScriptimport { FC } from 'react';interface UserCardProps { user: User; onEdit: (id: string) => void;}export const UserCard: FC<UserCardProps> = ({ user, onEdit }) => { return ( <div className="rounded-lg border p-4"> {/* Component content */} </div> );};
## Next Steps<Card title="plugin.json Reference" icon="puzzle-piece" href="/reference/config/plugin-json"> Learn about plugin configuration and structure</Card>