Breaf
  • Deals
  • Models
  • News
  • Learn
  • Library
Log inJoin free
  • Home
  • Library
  • Assist
  • Models
  • News
  • Learn

Prompt Vault

212 prompts that work: fill in the blanks and copy

1 free sample, Premium includes every prompt, See Premium

Coding, 19 prompts

  • Coding

    SQL Query Optimizer

    Optimize the following SQL query for better performance. Query: [PASTE QUERY]. Database: [MYSQL/POSTGRESQL/SQL SERVER]. Table sizes: [APPROXIMATE ROW COUNTS]. Current performance: [EXECUTION TIME]. Provide: optimized query, indexing recommendations, EXPLAIN plan interpretation, a

  • Coding

    Unit Test Generator

    Write comprehensive unit tests for the following [LANGUAGE] function. Code: [PASTE FUNCTION]. Testing framework: [JEST/PYTEST/PHPUNIT]. Include tests for: normal cases, edge cases, error conditions, boundary values, and async behavior if applicable. Follow AAA pattern (Arrange, A

  • Coding

    Algorithm Explanation Generator

    Explain the [ALGORITHM NAME] algorithm in detail. Include: plain English explanation, step-by-step walkthrough, time complexity analysis, space complexity analysis, pseudocode, [LANGUAGE] implementation, example with visualization description, common use cases, and comparison wit

  • Coding

    Code Refactoring Assistant

    Refactor the following [LANGUAGE] code to improve: readability, maintainability, performance, and adherence to [DESIGN PATTERN/PRINCIPLE]. Code: [PASTE CODE]. Current issues: [ISSUES]. Refactoring goals: [GOALS]. Provide: refactored code, explanation of changes, before/after comp

  • Coding

    Regex Pattern Generator

    Create a regular expression pattern that matches: [DESCRIPTION]. Requirements: case [SENSITIVE/INSENSITIVE], match [FULL STRING/PARTIAL], capture groups for [ELEMENTS], and reject: [EXAMPLES TO EXCLUDE]. Provide: the regex pattern, explanation of each component, test cases showin

  • Coding

    Code Documentation Generator

    Generate comprehensive documentation for the following [LANGUAGE] code. Include: function descriptions, parameter explanations, return values, usage examples, edge cases, and inline comments. Code: [PASTE CODE]. Documentation style: [JSDoc/Docstring/PHPDoc]. Target audience: [BEG

  • Coding

    Bug Fix & Debug Assistant

    Debug the following code that produces [ERROR/DESCRIPTION]. Code: [PASTE CODE]. Expected behavior: [DESCRIPTION]. Actual behavior: [DESCRIPTION]. Error message: [ERROR MESSAGE]. Environment: [LANGUAGE/VERSION/OS]. Please identify: root cause, step-by-step fix, prevention tips, an

  • Coding

    API Integration Code Generator

    Write [LANGUAGE] code to integrate with [API NAME]. Include: authentication setup, GET/POST request examples, error handling, response parsing, rate limiting implementation, and a complete working example. API documentation reference: [LINK]. Required endpoints: [ENDPOINT 1], [EN

  • Coding

    Debug This Code

    Debug this code. Don't just fix it — explain the root cause. Language: [LANGUAGE] What it should do: [EXPECTED BEHAVIOR] What it actually does: [ACTUAL BEHAVIOR / ERROR MESSAGE] Code: [PASTE CODE] Steps: 1. Identify the exact line(s) causing the issue 2. Explain WHY it fails (

  • Coding

    Explain This Codebase

    I'm joining a project and need to understand this code quickly. [PASTE CODE — UP TO 4000 WORDS OR A KEY FILE] Give me: 1. One-paragraph summary of what this code does 2. Architecture diagram (describe the flow in text) 3. Key functions/classes and what each is responsible for 4

  • Coding

    API Endpoint Design

    Design a REST API for [FEATURE/RESOURCE]. Context: [APPLICATION DESCRIPTION] Users: [WHO CALLS THIS API] Authentication: [AUTH METHOD] For each endpoint, provide: - Method + path - Request body/params (with types and validation rules) - Response format (success and error) - Sta

  • Coding

    Write Tests for This Code

    Write comprehensive tests for this code. Code: [PASTE CODE] Test framework: [jest / pytest / go test / etc.] Include: - Happy path tests for each public function - Edge cases (empty input, null values, boundary conditions) - Error cases (what should throw/return errors) - At l

  • Coding

    Build a Feature From Scratch

    Build [FEATURE] for my [APPLICATION TYPE]. Tech stack: [LANGUAGES, FRAMEWORKS, DATABASE] Existing code context: [RELEVANT ARCHITECTURE DETAILS] Requirements: - [REQUIREMENT 1] - [REQUIREMENT 2] - [REQUIREMENT 3] Provide: 1. File structure (which files to create/modify) 2. Compl

  • Coding

    Refactor for Readability

    Refactor this code for readability without changing its behavior. Code: [PASTE CODE] Rules: - Preserve all functionality and edge case handling - Improve variable/function names to be self-documenting - Break long functions into smaller ones with clear responsibilities - Remove

  • Coding

    Database Schema Design

    Design a database schema for [APPLICATION/FEATURE]. Requirements: - [DATA REQUIREMENT 1] - [DATA REQUIREMENT 2] - [DATA REQUIREMENT 3] - Expected scale: [NUMBER OF ROWS/USERS] Database: [PostgreSQL / MySQL / MongoDB / etc.] Provide: 1. Table/collection definitions with columns

  • Coding

    Database Schema Designer

    Design a database schema for [APPLICATION TYPE]. Include: table definitions with columns and data types, primary keys, foreign keys, indexes, relationships, normalization level justification, and sample CREATE TABLE statements for [DATABASE SYSTEM]. Requirements: [REQUIREMENT 1],

  • Coding

    Code Review

    Review this code like a senior engineer. Be specific and actionable. Language: [LANGUAGE] Context: [WHAT THIS CODE DOES, WHERE IT FITS] Code: [PASTE CODE] Evaluate: - Bugs or logic errors (priority 1) - Security vulnerabilities (priority 2) - Performance issues (priority 3) -

  • Coding

    Docker Container Setup

    Create a Docker setup for a [TECH STACK] application. Include: Dockerfile with multi-stage build, docker-compose.yml with services for [SERVICES], .dockerignore file, environment variable configuration, volume mounting for development, health checks, and production optimization.

  • Coding

    Structured code review, not a vibe check

    A structured review prompt that forces correctness, security, and test-coverage passes before style — pair with a pasted diff.