Ana içeriğe geç

Dev Promptları

Yazılım geliştirme için promptlar

İnceleme
Kod İncelemesi

Kodunuz için kapsamlı bir inceleme alın

Review the following code for:
1. Bugs and potential issues
2. Performance optimizations
3. Security vulnerabilities
4. Code style and best practices
5. Readability improvements

Provide specific suggestions with examples.

```[language]
[code]
```
Test
Birim Testi Yaz

Kapsamlı birim testleri üretir

Write comprehensive unit tests for the following code using [testing framework].

Include:
- Happy path tests
- Edge cases
- Error handling tests
- Mock setup if needed

Code to test:
```[language]
[code]
```
Refactoring
Kodu Refactor Et

Kod yapısını ve kalitesini iyileştirir

Refactor the following code to:
1. Improve readability
2. Follow [language] best practices
3. Apply SOLID principles where applicable
4. Optimize performance
5. Add proper error handling

Explain each change you make.

```[language]
[code]
```
Debugging
Debug Yardımcısı

Hataları bulmaya ve düzeltmeye yardım eder

Help me debug this issue:

Expected behavior: [expected]
Actual behavior: [actual]
Error message (if any): [error]

Code:
```[language]
[code]
```

Provide:
1. Likely cause of the bug
2. Step-by-step debugging approach
3. Suggested fix with explanation
Mimari
API Tasarımı

RESTful API uç noktaları tasarlar

Design a RESTful API for [feature/resource].

Include:
- Endpoint URLs and HTTP methods
- Request/response schemas (JSON)
- Authentication requirements
- Error response formats
- Rate limiting considerations

Follow REST best practices and include OpenAPI/Swagger documentation format.
Veritabanı
SQL
SQL Sorgu Oluşturucu

Optimize edilmiş SQL sorguları üretir

Write an optimized SQL query for the following requirement:

[Requirement]

Tables available:
[Table schemas]

Include:
- The query
- Explanation of the approach
- Index recommendations
- Performance considerations
Yardımcılar
Regex Üretici

Regex desenleri oluşturur ve açıklar

Create a regex pattern to [requirement].

Provide:
1. The regex pattern
2. Explanation of each part
3. Test cases that should match
4. Test cases that should NOT match
5. Common edge cases to consider

Language/flavor: [language]
TypeScript
TypeScript
TypeScript Tipleri

TypeScript tip tanımları üretir

Generate TypeScript type definitions for:

[API response / data structure description]

Include:
- Proper interface/type definitions
- Optional fields where appropriate
- Union types if needed
- Generic types if applicable
- JSDoc comments for documentation
Git
Commit Mesajı

Conventional commit mesajları yazar

Write a conventional commit message for the following changes:

[Changes description]

Follow the format: type(scope): description

Types: feat, fix, docs, style, refactor, perf, test, chore

Include:
- Subject line (50 chars max)
- Body with details (if needed)
- Breaking changes (if any)
- Related issue references
DevOps
Dockerfile Üretici

Optimize edilmiş Dockerfile'lar oluşturur

Create an optimized Dockerfile for a [language/framework] application.

Requirements:
- [List requirements]

Include:
- Multi-stage build if beneficial
- Security best practices
- Proper caching of layers
- Non-root user
- Health check
- Comments explaining each step