Cline rules
.clinerules/02-development.mdCline rules
Quality
92/100
Scores the file, not the repository.Length
467 words
15 headings · 3 code blocksRepository
17
— · pushed 199 days agoLast changed
3 days ago
First indexed 3 days ago.1# Development Guidelines23## Technology Stack4This repository is pre-configured for **Node.js/Next.js development** with AI integrations.56### When Source Code is Added7Follow these patterns based on existing repository guidelines:89```bash10# Always verify package.json exists first11test -f package.json && echo "Node.js project detected" || echo "No package.json found"1213# Install dependencies with appropriate timeout14npm install # Allow 10+ minutes for completion1516# Build with extended timeout for AI projects17npm run build # Allow 60+ minutes - AI projects can have complex builds1819# Run tests with adequate time20npm test # Allow 30+ minutes for comprehensive test suites21```22# Build with reasonable timeout for most projects23npm run build # Allow 15-30 minutes for most Node.js/Next.js builds with AI integrations2425# Run tests with adequate time26npm test # Allow 30+ minutes for comprehensive test suites27## AI Integration Best Practices2829### Preferred AI Dependencies30When adding AI functionality, use these established packages:31- `openai` - Official OpenAI API client32- `@langchain/core` - LangChain framework for AI workflows33- `@vercel/ai` - Vercel AI SDK for streaming and UI integration34- `@huggingface/inference` - Hugging Face API client35- `@anthropic-ai/sdk` - Anthropic Claude API client3637### Code Organization38- Place AI client configurations in `src/lib/` directory39- Create reusable AI components in `src/components/ai/`40- Implement API routes for AI services in `src/app/api/` (Next.js App Router)41- Define TypeScript types for AI responses in `src/types/`4243### Error Handling Pattern44```javascript45// Implement comprehensive error handling for AI services46try {47 const response = await aiClient.chat.completions.create({48 model: "gpt-4",49 messages: [{ role: "user", content: prompt }]50 });51 return response.choices[0].message.content;52} catch (error) {53 if (error.code === 'rate_limit_exceeded') {54 throw new AIRateLimitError('Rate limit exceeded, please try again later');55 }56 if (error.code === 'insufficient_quota') {57 throw new AIQuotaError('API quota exceeded');58 }59 throw new AIServiceError(`AI service failed: ${error.message}`);60}61```6263## File Structure Standards64Follow the established minimal structure and expand thoughtfully:6566```67.68├── .clinerules/ # Cline AI rules (this directory)69├── .github/ # GitHub workflows and Copilot instructions70├── .kiro/steering/ # Kiro AI steering files71├── .cursorrules # Cursor AI development rules72├── CLAUDE.md # Claude AI specific configuration73├── GEMINI.md # Gemini CLI configuration74├── AGENT.md # Universal AI agent instructions75├── package.json # Dependencies and scripts (when added)76├── src/ # Source code (when added)77│ ├── lib/ # AI clients and utilities78│ ├── components/ # React components including AI components79│ ├── app/ # Next.js App Router (pages and API routes)80│ └── types/ # TypeScript definitions81└── public/ # Static assets82```8384## Development Workflow851. **Before Changes**: Check repository state and existing patterns862. **During Development**: Follow TypeScript best practices and AI patterns873. **Testing**: Include AI service mocks and error scenario testing884. **Documentation**: Update relevant AI configuration files as needed
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/01-core-principles.md · 17 | Cline rules | gitsecuritydeploymentdo-not+1 | 51/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.clinerules/04-security.md · 17 | Cline rules | setupstylesecurityapi+1 | 65/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.cursor/rules/testing-advanced.mdc · 17 | Cursor rules | teststyletesting-strategyperformance | 58/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 | |
| HerringtonDarkholme/megarepoAGENTS.md · 17 | AGENTS.md | archagent-behaviour | 52/100 | 3 days ago | |
| HerringtonDarkholme/megarepoCLAUDE.md · 17 | CLAUDE.md | setupteststylearch+6 | 88/100 | 3 days ago | |
| HerringtonDarkholme/megarepoGEMINI.md · 17 | GEMINI.md | setupstylearchtypes+5 | 50/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.clinerules/03-documentation.md · 17 | Cline rules | securitydocs | 50/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/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.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.cursorrules · 17 | .cursorrules | setupbuildtestlint-format+13 | 96/100 | 3 days ago |
Diff against .clinerules/01-core-principles.md Diff against .clinerules/04-security.md Diff against .cursor/rules/testing-advanced.mdc 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 Diff against AGENTS.md Diff against CLAUDE.md Diff against GEMINI.md Diff against .clinerules/03-documentation.md Diff against .cursor/rules/ai-development.mdc Diff against .cursor/rules/code-quality.mdc Diff against .cursor/rules/project-structure.mdc Diff against .cursor/rules/prompt-engineering.mdc Diff against .cursor/rules/security.mdc Diff against .cursorrules
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| bashdeban/fastmind.clinerules/.project-consistency-keeper2.md · 5 | Cline rules | setupbuildtestlint-format+11 | 100/100 | 3 days ago | |
| JCodesMore/ai-website-cloner-template.clinerules · 31k | Cline rules | buildlint-formatstylearch+3 | 97/100 | 2 days ago | |
| BryaanF/LiantPortfolio.clinerules/project-guidelines.md · 0 | Cline rules | buildstylearchgit+2 | 96/100 | 3 days ago | |
| u9401066/zotero-keeper.clinerules/50-pubmed-project.md · 7 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| u9401066/zotero-keepervscode-extension/resources/repo-assets/pubmed-search-mcp/.clinerules/50-pubmed-project.md · 7 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| VaillerTeeter/HoshimiNest.clinerules/project-identity.md · 1 | Cline rules | setuparchtypesdo-not | 93/100 | yesterday | |
| prabhakar267/paper-games.clinerules/git-commit-guidelines.md · 0 | Cline rules | lint-formatstylearchgit+3 | 93/100 | 2 days ago | |
| blendsdk/codeops-mcp.clinerules/project.md · 0 | Cline rules | buildteststylearch+7 | 91/100 | 3 days ago |
