Когда я наткнулась на статью «Ultimate Prompts for Every Developer», сразу стало интересно: "какие там такие промпты, которые действительно полезны в работе?"
Собрала для вас короткую подборку самых практичных — их можно просто копировать и использовать при необходимости 👇
---
1️⃣ Фреймворк для рефакторинга и оптимизации
I have a [language] function in a [framework] project that needs refactoring.
Current code:
[paste code]
Issues I'd like to address:
[specific issue, e.g., low readability]
[specific issue, e.g., non-optimal O(n^2) time complexity]
What I've considered:
[ideas you've already tried]
Constraints:
[must remain backward compatible, no new dependencies]
Please suggest refactored code with explanations,
including trade-offs and potential edge cases.
2️⃣ Code Review от трёх «персон»
Please review this code from three different perspectives:
1. Security specialist:
- Identify vulnerabilities / injection risks
- Mention any OWASP Top 10 concerns
2. Performance engineer:
- Highlight inefficiencies or bottlenecks
- Suggest better data structures or algorithms
3. Maintainability expert:
- Point out unclear naming / complex logic
- Suggest improvements for testability and structure
CONTEXT:
- Tech stack: [React/Node/TS]
- Constraints: [e.g., no new dependencies]
CODE:
[YOUR CODE]
3️⃣ Постепенное проектирование API
I'm designing a RESTful API for a [SPECIFIC DOMAIN] system.
Let's develop this progressively:
STAGE 1: Core resources
- Define resources + relationships
- Primary attributes
- Basic CRUD
STAGE 2: Interaction patterns
- Non-CRUD endpoints
- Filtering, sorting, pagination
STAGE 3: Advanced
- Auth & permissions
- Rate limiting
- Versioning
- Caching (ETag, directives)
- Error format standardization
STAGE 4: Documentation
- Generate OpenAPI spec
- Provide request/response examples
4️⃣ Документация по компоненту/модулю
Generate comprehensive developer documentation for this [FUNCTION/COMPONENT/MODULE]:
[YOUR CODE]
Structure the documentation as follows:
1. OVERVIEW
- Purpose, functionality, when to use
2. TECH SPECS
- API, params, return values, types
- State management (if applicable)
- Events
3. EXAMPLES
- Basic example
- Advanced usage
- Customization cases
4. TROUBLESHOOTING
- Common errors
- Debugging tips
- Performance considerations
5. RELATED COMPONENTS
- Dependencies
- Components frequently used together
---
Полный список из 11 промптов — по ссылке 👇
https://medium.com/@onix_react/ultimate-prompts-for-every-developer-031a6d26a569