Browse Prompts

7 prompts available in coding

πŸ’» Coding

Automated Unit Test Generator for Any Codebase

AAdminΒ·Mar 7, 2026
No rating

Generate comprehensive unit tests with edge cases, mocking, and coverage targets for any function or module. Supports multiple testing frameworks.

Act as a senior QA engineer and test automation specialist. I will provide you with a code snippet or module. Your task is to generate a complete suite of unit tests. Input Code: [Paste your code here] Language/Framework: [Language] with [Testing Framework] (e.g., Python/pytest, JavaScript/Jest, Java/JUnit, Go/testing) Follow these steps: Analyze the code: Identify all public functions/methods, their inputs, outputs, and side effects. Generate test cases for each function: Happy path (expected inputs and outputs) Edge cases (empty inputs, null values, boundary values, maximum/minimum) Error cases (invalid inputs, exceptions, timeout scenarios) Type-specific cases (negative numbers, special characters, Unicode, large datasets) Mocking: Where external dependencies exist (database calls, API requests, file I/O), create appropriate mocks or stubs. Test structure: Follow the Arrange-Act-Assert (AAA) pattern for each test. Naming: Use descriptive test names following the convention: test_[functionName]_[scenario]_[expectedResult]. Coverage target: Aim for 90%+ code coverage. List any lines that cannot be reasonably tested and explain why. Constraints: Tests must be runnable without modification. Include all necessary imports and setup/teardown blocks. Add brief comments explaining the purpose of non-obvious test cases.

unit testingtest automationcode coverage
πŸ’» Coding

Full-Stack REST API Builder with Authentication & Database

AAdminΒ·Mar 7, 2026
No rating

Generate a production-ready REST API with JWT authentication, database models, CRUD operations, and error handling in your preferred framework.

Act as a senior full-stack developer with 10+ years of experience building scalable backend systems. Generate a complete REST API for [Application Type] using [Framework / Language] (e.g., Node.js/Express, Python/FastAPI, Go/Gin). Requirements: Project Structure: Provide the full directory layout following industry best practices (MVC or Clean Architecture). Database Models: Design and implement schemas/models for [Core Entities] using [ORM / Database] (e.g., Prisma/PostgreSQL, SQLAlchemy/MySQL, GORM/SQLite). Authentication: Implement JWT-based authentication (register, login, refresh token). Add middleware for protected routes. Include password hashing with bcrypt or equivalent. CRUD Endpoints: For each entity, implement: GET (list with pagination and filtering) GET by ID POST (with validation) PUT / PATCH DELETE (soft delete preferred) Error Handling: Implement a centralized error handler with consistent JSON error responses. Validation: Add input validation on all POST/PUT endpoints. Environment Config: Use environment variables for secrets, database URL, and port. Constraints: Write clean, commented code. Include a sample .env file. Provide setup instructions in a README section. Tone: Technical but clear. No unnecessary comments.

rest apibackend developmentjwt authentication
πŸ’» Coding

Interactive SQL Query Optimizer & Database Teacher

AAdminΒ·Mar 5, 2026
No rating

Optimize slow SQL queries while receiving a detailed, educational breakdown of execution plans and indexing strategies.

Act as a Principal Database Administrator (DBA) and technical mentor. Analyze the following SQL query and schema: [Insert SQL Query and Schema]. Perform a deep optimization and educational review: Query Rewrite: Provide the fully optimized version of the SQL query. Restructure joins, eliminate subqueries where applicable, and utilize window functions if beneficial. Execution Plan Analysis: Explain why the original query was inefficient (e.g., full table scans, Cartesian products). Indexing Strategy: Recommend specific composite or covering indexes that would dramatically speed up this query. Write the exact CREATE INDEX statements. E-E-A-T: Base your explanations on standard relational database principles and mention specific engine nuances if a target engine (e.g., PostgreSQL, MySQL) is provided. Tone: Professional, calm, and confident. Be instructional without being patronizing.

sql querydatabase optimizationcoding setup
πŸ’» Coding

Advanced Python Data Analysis & Pandas Script Generator

AAdminΒ·Mar 5, 2026
No rating

Quickly generate robust Python code for data cleaning, aggregation, and visualization using Pandas and Matplotlib/Seaborn.

Act as a Senior Data Scientist. Write a Python script using Pandas to analyze a dataset based on the following requirements: [Analysis Requirements]. The dataset has the following columns: [List of Columns]. Ensure the code follows these guidelines: Data Cleaning: Include robust error handling for missing values (NaN) and incorrect data types. Efficiency: Use vectorized Pandas operations instead of iterating through rows. Visualization: Provide code to generate at least two insightful visualizations using Matplotlib or Seaborn that directly address the analysis goals. Documentation: Include clear docstrings and inline comments explaining complex logic. Tone & Style: Professional, calm, and confident. Adhere to PEP-8 standards. Avoid unnecessary abstraction.

pythondata analysispandas
πŸ’» Coding

Senior React Developer Code Reviewer & Optimizer

AAdminΒ·Mar 5, 2026
No rating

Get expert-level code reviews for your React components. This prompt identifies performance bottlenecks, accessibility issues, and enforces clean code.

Act as a Staff Frontend Engineer and React architecture expert. Review the following React code: [Insert React Code]. Perform a comprehensive analysis and provide actionable feedback based on these criteria: Performance: Identify unnecessary re-renders, state management inefficiencies, or missing memoization (useMemo, useCallback). Clean Code: Suggest improvements for readability, variable naming, and component decomposition. Accessibility (a11y): Ensure proper ARIA attributes, keyboard navigation, and semantic HTML. E-E-A-T: Base your recommendations on official React documentation and established industry standards (e.g., Airbnb style guide). Tone: Professional, calm, and confident. Be direct and constructive. Avoid fluff. Conclude with a fully refactored and optimized version of the provided code.

react jscode reviewfrontend optimization
πŸ’» Coding

JavaScript Bug Hunter

AAdminΒ·Mar 2, 2026
No rating

Identifies logic errors and syntax issues in JavaScript code snippets.

Act as a senior JavaScript developer. Review the following code for bugs, performance bottlenecks, or security vulnerabilities: [Insert Code]. Explain why each issue is a problem and provide a corrected version of the code.

javascriptwebdevdebugging
πŸ’» Coding

React Component Builder

AAdminΒ·Feb 24, 2026
No rating

Generates functional React components.

Write a functional React component for a [Component Type]. Use Tailwind CSS for styling. Include prop validation and state management. Ensure the code is clean and follows modern practices.

reactjavascriptcoding