> ## Documentation Index
> Fetch the complete documentation index at: https://docs-staging.poolside.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Example prompts

> Common development tasks and example prompts you can use with Poolside.

Explore a diverse range of development tasks with these example prompts, covering everything from code generation and bug fixing to security vulnerability detection and cloud deployment.

These prompts are intentionally generic. In practice, you can refine them by referencing files, folders, or project context so Poolside has the context it needs to work on your codebase.

## Code generation

```text theme={null}
Generate a Python function that retrieves user data from a PostgreSQL database.
```

## Bug detection and fixing

```text theme={null}
Identify and fix the null pointer exception in this Java code.
```

## Code refactoring

```text theme={null}
Refactor this JavaScript function to eliminate nested callbacks using async/await.
```

## Unit test generation

```text theme={null}
Generate unit tests for this Python function that processes user input.
```

## Documentation generation

```text theme={null}
Generate detailed comments for each method in this Java class.
```

## Data mocking for testing

```text theme={null}
Generate mock data for a shopping cart app, including products and prices.
```

## Performance optimization

```text theme={null}
Optimize this Python algorithm to reduce its time complexity.
```

## Security vulnerability detection

```text theme={null}
Check this Node.js code for SQL injection and other vulnerabilities.
```

## API integration assistance

```text theme={null}
Generate code to authenticate with the Twitter API and retrieve a user's timeline.
```

## Automated code reviews

```text theme={null}
Review this JavaScript file and suggest improvements for readability and performance.
```

## DevOps automation

```text theme={null}
Create a Jenkinsfile for a Node.js app that runs tests and deploys to AWS EC2.
```

## Legacy code understanding

```text theme={null}
Explain this COBOL function's purpose and how to modernize it.
```

## Code style and linting enforcement

```text theme={null}
Ensure this Python code adheres to PEP 8 standards and fix any issues.
```

## Configuration file generation

```text theme={null}
Generate a Docker Compose file to run a Flask app with a PostgreSQL database.
```

## Assistance for analyzing and generating regular expressions

```text theme={null}
Write a regular expression that validates email addresses.
```

## Analysis of JSON and YAML files

```text theme={null}
Analyze this Kubernetes YAML file and ensure proper syntax for resource configuration.
```

## Debugging based on logs and stack traces

```text theme={null}
Analyze this stack trace and suggest the root cause of the exception: _stack trace_.
```

## Cloud deployment automation

```text theme={null}
Deploy this Node.js app to AWS using Terraform.
```

## Database schema design

```text theme={null}
Design a SQL schema for a task management app with users, tasks, and projects.
```

## CLI command assistance

```text theme={null}
Write a Bash script that finds and lists all files modified in the last 24 hours in a directory.
```
