5 бесплатных промптов для разработчика
Пять бесплатных текстовых шаблонов запросов: обзор кода, отладка, выбор архитектуры, подготовка тестов и разбор старого кода. Скопируйте нужный шаблон, заполните контекст своей задачи и проверьте полученный ответ. Примеры ниже на английском.
Use these templates with your chosen language model. Review its output against your code and requirements.
---
1. CODE REVIEW PROMPT
Review this code for:1. Bugs and potential runtime errors2. Security vulnerabilities (injection, XSS, data exposure)3. Performance issues (N+1 queries, memory leaks, unnecessary re-renders)4. Code style and readability improvements
Code: [PASTE YOUR CODE HERE]
Format your response as:- CRITICAL: issues that must be fixed- WARNING: issues that should be fixed- SUGGESTION: nice-to-have improvements
How to use it: Ask for a severity-based list, then verify each reported issue.
---
2. DEBUG ASSISTANT PROMPT
I have a bug in my [LANGUAGE/FRAMEWORK] application.
Expected behavior: [WHAT SHOULD HAPPEN]Actual behavior: [WHAT ACTUALLY HAPPENS]Error message (if any): [ERROR]
Relevant code: [PASTE CODE]
Steps I've already tried:- [STEP 1]- [STEP 2]
Help me debug this step-by-step. Start with the most likely cause.
How to use it: Include the observed behavior, expected behavior and the steps you already tried.
---
3. ARCHITECTURE DECISION PROMPT
I need to choose an architecture for:- Project type: [web app / mobile app / API / microservice]- Expected scale: [users, requests/sec]- Team size: [number]- Timeline: [weeks/months]
Compare these approaches:1. [Option A]2. [Option B]
For each, provide: Pros and cons, when to use vs. when to avoid, implementation complexity (1-10), long-term maintenance cost (1-10).
Give your recommendation with reasoning.
Why it works: Gets you a structured comparison instead of a generic "it depends" answer.
---
4. UNIT TEST GENERATOR PROMPT
Write comprehensive unit tests for this function/class:
[PASTE CODE]
Requirements:- Test framework: [Jest / pytest / XCTest / etc.]- Cover: happy path, edge cases, error cases- Use descriptive test names (should_returnX_when_Y format)- Include at least one test for boundary conditions- Mock external dependencies
How to use it: Set coverage goals, then review and run the generated tests in your project.
---
5. LEGACY CODE EXPLAINER PROMPT
Explain this code as if I'm a mid-level developer joining the team:
[PASTE CODE]
Provide:1. High-level summary (2-3 sentences)2. Step-by-step walkthrough of the logic3. Why it was likely written this way4. Potential issues or technical debt5. How to safely modify or extend it
Why it works: The "joining the team" framing produces practical, team-oriented explanations.
---
MORE GUIDES
Historical AI Agent Toolkit — prompts and code examples for manual adaptation:https://boosty.to/swiftuidev/posts/9785bea8-da63-4e4d-b16a-6d616ffa6136
More digital tools for developers and freelancers:https://pease163.github.io/digital-products/
---
Kornilov Tools · Daniil Kornilov
Updates: https://t.me/SwiftUIDaily
GitHub: Pease163
Use these templates with your chosen language model. Review its output against your code and requirements.
---
1. CODE REVIEW PROMPT
Review this code for:1. Bugs and potential runtime errors2. Security vulnerabilities (injection, XSS, data exposure)3. Performance issues (N+1 queries, memory leaks, unnecessary re-renders)4. Code style and readability improvements
Code: [PASTE YOUR CODE HERE]
Format your response as:- CRITICAL: issues that must be fixed- WARNING: issues that should be fixed- SUGGESTION: nice-to-have improvements
How to use it: Ask for a severity-based list, then verify each reported issue.
---
2. DEBUG ASSISTANT PROMPT
I have a bug in my [LANGUAGE/FRAMEWORK] application.
Expected behavior: [WHAT SHOULD HAPPEN]Actual behavior: [WHAT ACTUALLY HAPPENS]Error message (if any): [ERROR]
Relevant code: [PASTE CODE]
Steps I've already tried:- [STEP 1]- [STEP 2]
Help me debug this step-by-step. Start with the most likely cause.
How to use it: Include the observed behavior, expected behavior and the steps you already tried.
---
3. ARCHITECTURE DECISION PROMPT
I need to choose an architecture for:- Project type: [web app / mobile app / API / microservice]- Expected scale: [users, requests/sec]- Team size: [number]- Timeline: [weeks/months]
Compare these approaches:1. [Option A]2. [Option B]
For each, provide: Pros and cons, when to use vs. when to avoid, implementation complexity (1-10), long-term maintenance cost (1-10).
Give your recommendation with reasoning.
Why it works: Gets you a structured comparison instead of a generic "it depends" answer.
---
4. UNIT TEST GENERATOR PROMPT
Write comprehensive unit tests for this function/class:
[PASTE CODE]
Requirements:- Test framework: [Jest / pytest / XCTest / etc.]- Cover: happy path, edge cases, error cases- Use descriptive test names (should_returnX_when_Y format)- Include at least one test for boundary conditions- Mock external dependencies
How to use it: Set coverage goals, then review and run the generated tests in your project.
---
5. LEGACY CODE EXPLAINER PROMPT
Explain this code as if I'm a mid-level developer joining the team:
[PASTE CODE]
Provide:1. High-level summary (2-3 sentences)2. Step-by-step walkthrough of the logic3. Why it was likely written this way4. Potential issues or technical debt5. How to safely modify or extend it
Why it works: The "joining the team" framing produces practical, team-oriented explanations.
---
MORE GUIDES
Historical AI Agent Toolkit — prompts and code examples for manual adaptation:https://boosty.to/swiftuidev/posts/9785bea8-da63-4e4d-b16a-6d616ffa6136
More digital tools for developers and freelancers:https://pease163.github.io/digital-products/
---
Kornilov Tools · Daniil Kornilov
Updates: https://t.me/SwiftUIDaily
GitHub: Pease163
ai prompts
developer tools
free
coding