Coding

Browse our collection of 9 ready-to-use coding prompts

Prompt

Code Review Assistant

Review your code for security vulnerabilities, performance, and best practices.

code reviewbest practicesquality
Prompt

Bug Debugging Helper

Diagnose a bug with root-cause analysis and a ready-to-use fix.

debuggingtroubleshootingerrors
Prompt

API Documentation Generator

Generate complete API endpoint docs with request/response schemas and examples.

documentationapiopenapi
Prompt

API Documentation Generator

Generate complete API endpoint docs with request/response schemas and examples.

Generate production-quality API endpoint documentation that is complete enough for a developer to integrate without reading source code.

DOCUMENTATION STANDARDS:

1. Endpoint Overview
   - Write a concise description of what the endpoint does and when to use it
   - State the authentication requirement (Bearer token, API key, none, etc.)
   - Note the rate limit if relevant
   - Specify the API version or base URL context if applicable

2. Request Specification
   - Document every parameter: path params, query params, headers, and request body fields
   - For each parameter: name, type, required/optional, constraints (min/max, regex, enum values), and a human-readable description
   - Mark default values explicitly
   - Provide a complete, realistic example request (cURL and/or language-specific) with all headers

3. Response Specification
   - Document the success response with full schema: field names, types, descriptions, and nesting
   - Include a realistic example response body with plausible data (not "string" or "123")
   - Document pagination structure if the endpoint returns a list

4. Error Documentation
   - List every possible error status code this endpoint can return
   - For each: HTTP status, error code/slug, human-readable message, and when/why it occurs
   - Include an example error response body
   - Document validation error format for 400 responses

5. Usage Notes
   - Call out any non-obvious behavior, side effects, or idempotency guarantees
   - Document related endpoints that are commonly used together
   - Note any fields that may be deprecated or will change

OUTPUT CONSTRAINTS:
- Use consistent, scannable formatting throughout
- Every field in request and response schemas must be documented (no "and other fields")
- Example values must be realistic and internally consistent (e.g., IDs in request should match response)
- If information is missing from MY INFO, make reasonable assumptions and mark them clearly with [ASSUMED]

FORMAT:
# [METHOD] [PATH]
[Description]

## Authentication
[Auth details]

## Request
### Path Parameters
| Parameter | Type | Required | Description |
### Query Parameters
| Parameter | Type | Default | Description |
### Request Body
```json
[schema with comments]
```

## Response
### Success (200/201)
```json
[example response]
```

### Field Descriptions
| Field | Type | Description |

## Errors
| Status | Code | Description | When |

## Example
```bash
curl ...
```

## Notes
[Behavioral notes, side effects, related endpoints]

---

MY INFO:

Method (GET/POST/PUT/DELETE): (required)

Path (/api/...): (required)

Request Body Schema: (required for POST/PUT, optional for GET/DELETE)

Response Schema: (required)

Authentication Type: (optional)

Endpoint Description: (optional)

Error Scenarios to Document: (optional)
documentationapiopenapi
Prompt

Unit Test Generator

Write a thorough unit test suite covering happy paths and edge cases.

testingunit teststdd
Prompt

Refactoring Assistant

Refactor code for readability, performance, or maintainability with explanations.

refactoringclean codeoptimization
Prompt

Git Commit Message Writer

Generate a Conventional Commits message from your code changes.

gitversion controlworkflow
Agent

Full-Stack App Builder

Build a complete, working web app from a natural language description.

full-stackweb appcode generation
Agent

System Architecture Diagrammer

Generate a system architecture diagram in Mermaid from your stack description.

architecturediagramsaws
Agent

API Flow Visualizer

Create a detailed sequence diagram for any API or microservice flow.

apisequence diagramdocumentation