CLAUDE.md
CLAUDE.mdCLAUDE.mdroot
Quality
88/100
Scores the file, not the repository.Length
810 words
29 headings · 3 code blocksRepository
17
— · pushed 200 days agoLast changed
3 days ago
First indexed 3 days ago.1# Project: Megarepo - AI Setup Repository23## Overview4Megarepo is a minimal repository template designed for AI-related projects and development. It serves as a foundational setup repository that provides basic configuration files and structure for Node.js/Next.js AI applications. The repository is currently in a minimal state and is intended to be expanded with AI-specific tooling, configurations, and project scaffolding.56## Architecture7- **Current Structure**: Minimal setup with basic configuration files8- **Target Architecture**: Node.js/Next.js based AI applications9- **Key Directories** (when populated):10 - `src/` - Main source code directory11 - `src/pages/` - Next.js pages (if Next.js project)12 - `src/components/` - React components for AI interfaces13 - `src/utils/` - Utility functions and AI helpers14 - `public/` - Static assets and files15- **Configuration Files**:16 - `.gitignore` - Pre-configured for Node.js/Next.js projects17 - `LICENSE` - MIT license18 - `.github/copilot-instructions.md` - Detailed AI agent instructions1920## Technology Stack21- **Frontend**: Next.js, React (intended)22- **Runtime**: Node.js23- **Package Manager**: npm24- **License**: MIT25- **AI Integrations**: To be determined based on project needs (OpenAI, LangChain, Hugging Face, etc.)2627## Coding Preferences2829### General Guidelines30- Follow existing patterns established in the repository31- Prioritize minimal, surgical changes over large refactors32- Maintain consistency with the existing file structure33- Use TypeScript when adding JavaScript code (based on .gitignore patterns)3435### AI Development Specific36- Use environment variables for API keys and sensitive configuration37- Never commit API keys or secrets to the repository38- Structure AI-related code in logical, modular components39- Document AI model dependencies and version requirements40- Include error handling for AI service failures4142### Code Style43- Follow standard Node.js/Next.js conventions44- Use meaningful variable and function names, especially for AI-related functionality45- Include JSDoc comments for complex AI algorithms or integrations46- Organize imports: external dependencies first, then internal modules4748### File Organization49- Keep configuration files in the root directory50- Place source code in `src/` directory when added51- Use clear, descriptive file names52- Group related functionality together5354## Instructions for Claude5556### Project Understanding57- This repository is currently minimal and serves as a template/setup for AI projects58- No build system or source code exists yet - do not attempt to build, test, or run code59- The repository is pre-configured for Node.js/Next.js development patterns60- Focus on the intended AI setup purpose when making recommendations6162### When Adding New Code631. **Always check for existing package.json before running npm commands**642. **Follow the patterns established in `.github/copilot-instructions.md`**653. **Set appropriate timeouts for long-running operations** (builds: 60+ minutes, installs: 10+ minutes)664. **Validate changes don't break existing minimal structure**6768### AI-Specific Considerations69- When adding AI dependencies, verify compatibility with the intended Node.js/Next.js stack70- Create `.env.example` files to document required environment variables71- Consider rate limiting and error handling for AI service integrations72- Document AI model requirements, versions, and expected behavior7374### Testing Strategy75- When source code is added, include tests for AI functionality76- Test error scenarios (API failures, rate limits, invalid responses)77- Include integration tests for AI service connections78- Document how to run tests with mock AI services for CI/CD7980### Documentation Requirements81- Update README.md when adding significant functionality82- Document AI service setup and configuration steps83- Include examples of AI integrations and usage84- Maintain this claude.md file as the project evolves8586### Constraints and Limitations87- Repository is currently minimal - respect this intentional simplicity88- Do not add unnecessary complexity or dependencies prematurely89- Maintain compatibility with the existing MIT license90- Follow the existing .gitignore patterns for Node.js/Next.js projects91- Respect the established minimal change philosophy outlined in copilot-instructions.md9293## Development Workflow9495### Initial Setup (when code is added)96```bash97# Verify package.json exists before running commands98test -f package.json && echo "Node.js project detected" || echo "No package.json found"99100# Install dependencies if package.json exists101npm install102103# Check for environment variables104ls .env* || echo "No environment files found"105```106107### AI Service Integration108```bash109# Check for AI-related packages110grep -E "(openai|langchain|tensorflow|pytorch|huggingface)" package.json111112# Validate environment configuration113test -f .env.example && echo "Environment template found" || echo "Create .env.example for required variables"114```115116### Before Committing117```bash118# Run linting if configured119npm run lint 2>/dev/null || echo "No lint script found"120121# Run tests if configured122npm run test 2>/dev/null || echo "No test script found"123124# Check for secrets in staged files125git diff --cached --name-only | xargs grep -l "api.*key\|secret\|token" || echo "No potential secrets found"126```127128## Notes129- This configuration file should be updated as the repository evolves from its current minimal state130- The repository is designed to be a foundation for AI projects, so expect significant expansion131- Always refer to `.github/copilot-instructions.md` for additional context and detailed workflows132- Maintain the minimal, focused approach that characterizes this repository template
Also in HerringtonDarkholme/megarepo
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| HerringtonDarkholme/megarepo.clinerules/03-documentation.md · 17 | Cline rules | securitydocs | 50/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.cursor/rules/code-quality.mdc · 17 | Cursor rules | teststyletypestesting-strategy+3 | 58/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.cursor/rules/project-structure.mdc · 17 | Cursor rules | stylearchui | 66/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.github/copilot-instructions.md · 17 | Copilot instructions | setupbuildtestlint-format+7 | 100/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.clinerules/README.md · 17 | Cline rules | archdo-not | 55/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.clinerules/01-core-principles.md · 17 | Cline rules | gitsecuritydeploymentdo-not+1 | 51/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.clinerules/02-development.md · 17 | Cline rules | setupbuildteststyle+3 | 92/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.clinerules/04-security.md · 17 | Cline rules | setupstylesecurityapi+1 | 65/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.cursor/rules/ai-development.mdc · 17 | Cursor rules | stylesecuritydependenciesapi+1 | 54/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.cursor/rules/prompt-engineering.mdc · 17 | Cursor rules | teststylearch | 70/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.cursor/rules/security.mdc · 17 | Cursor rules | setupstylesecuritydatabase+1 | 54/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.cursor/rules/testing-advanced.mdc · 17 | Cursor rules | teststyletesting-strategyperformance | 58/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.cursorrules · 17 | .cursorrules | setupbuildtestlint-format+13 | 96/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.windsurf/rules/README.md · 17 | Windsurf rules | typesdo-not | 51/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.windsurf/rules/ai-development-core.md · 17 | Windsurf rules | do-notdocs | 45/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.windsurf/rules/ai-optimization.md · 17 | Windsurf rules | no sections | 30/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.windsurf/rules/documentation-standards.md · 17 | Windsurf rules | docs | 30/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.windsurf/rules/security-api-keys.md · 17 | Windsurf rules | securityapido-not | 37/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.windsurf/rules/testing-ai-components.md · 17 | Windsurf rules | testtesting-strategy | 34/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.windsurf/rules/typescript-javascript.md · 17 | Windsurf rules | styletypesdo-not | 49/100 | 3 days ago |
Diff against .clinerules/03-documentation.md Diff against .cursor/rules/code-quality.mdc Diff against .cursor/rules/project-structure.mdc Diff against .github/copilot-instructions.md Diff against .clinerules/README.md Diff against .clinerules/01-core-principles.md Diff against .clinerules/02-development.md Diff against .clinerules/04-security.md Diff against .cursor/rules/ai-development.mdc Diff against .cursor/rules/prompt-engineering.mdc Diff against .cursor/rules/security.mdc Diff against .cursor/rules/testing-advanced.mdc Diff against .cursorrules Diff against .windsurf/rules/README.md Diff against .windsurf/rules/ai-development-core.md Diff against .windsurf/rules/ai-optimization.md Diff against .windsurf/rules/documentation-standards.md Diff against .windsurf/rules/security-api-keys.md Diff against .windsurf/rules/testing-ai-components.md Diff against .windsurf/rules/typescript-javascript.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| Adit-Jain-srm/NightmareNetCLAUDE.md · 45 | CLAUDE.md | buildtestlint-formatstyle+6 | 100/100 | 3 days ago | |
| nimbalyst/nimbalystpackages/android/CLAUDE.md · 1.4k | CLAUDE.md | setupbuildstylearch+2 | 100/100 | 3 days ago | |
| dotCMS/corecore-web/CLAUDE.md · 949 | CLAUDE.md | teststylearchtesting-strategy+3 | 100/100 | 3 days ago | |
| microsoft/playwrightCLAUDE.md · 94k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 3 days ago | |
| filamentphp/filamentCLAUDE.md · 32k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 3 days ago | |
| livewire/livewireCLAUDE.md · 24k | CLAUDE.md | setupbuildteststyle+4 | 100/100 | 3 days ago | |
| bagisto/bagistoCLAUDE.md · 28k | CLAUDE.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| dotCMS/coreCLAUDE.md · 949 | CLAUDE.md | setupbuildteststyle+7 | 99/100 | today |
