Skip to content

About

A list of useful prompts for Software Development purposes.

Resources

Stars

16 stars

Watchers

0 watching

Forks

Repository files navigation

Prompts For Software Engineers

A list of useful prompts for Software Development purposes.

Cheatsheet
Code Generation Prompts
Debugging and Error Resolution
Code Review and Best Practices
Documentation and Explanation
AI for DevOps and Automation
Create Regular Expressions
Data Processing and Analysis
AI Assisted Coding and Example spec.md


Creating MVP / Fast Mockups
12 Rules for Vibe Coding
Design Inspiration Stack


Official LLM Platforms
Claude Docs (Prompt Library)
OpenAI Codex
Google Code Gen Tools


Context Engineering Strategies
Basic PRD Creation Template
AI Prompts Strategies


Creating Documentation & Guides
AI Powered Software Documentation Tools


Articles
Worth Reading
Notable Git Repositories & Resources
10 Levels Of Automation
Forward Deployed Engineer Job Description
How To Choose A Local LLM To Use With Your AI Coding IDE
Make Claude Code Free/Cheaper with DeepSeek V4
Turn your Obsidian into an AI second brain For Code Enthusiasts





1. Code Generation Prompts

Basic Code Generation (Zero-Shot Prompting)

You are an expert [programming language] developer. Write a function that [describe the task].

Ensure the function is:
- Well-documented: Add clear comments explaining each step.
- Optimized for performance: Use efficient data structures and algorithms where applicable.
- Robust: Handle edge cases such as empty inputs, incorrect data types, and large datasets.
- Modular: Keep the function reusable and avoid hardcoded values.

Optimized Code Generation (Few-Shot Prompting)

Here’s a basic implementation of [algorithm/function] in [programming language]:
[code snippet]

Now, improve this implementation by optimizing it using [optimization technique, e.g., memoization, dynamic programming, vectorization].

Explain:
- Why the optimized version is better in performance and efficiency.
- Time complexity improvements compared to the original.
- Any trade-offs

Code Translation (Cross-Language Prompting)

Convert the following [source language] function into [target language]. Ensure that you:

- Maintain equivalent functionality in the new language.
- Explain key differences in syntax and behavior between the two languages.
- Highlight any necessary modifications due to differences in data types, function definitions, or execution models.

2. Debugging and Error Resolution

Error Explanation and Fixes

I’m seeing this error in my [programming language] code:
[error message]

Explain:

- Why is this error occurring
- How to fix it - provide one or more solutions.
- Best practices to prevent similar errors in the future.
- For AI errors, you can also refer to our AI error library

Bug Identification

Here’s a function that isn’t returning the expected output:
[code snippet]

Describe:

- Why the function is failing and identify the root cause
- How to fix it,
- Best practices to avoid similar bugs in the future

Performance Optimization

Analyze the following [programming language] function and suggest optimizations to improve its [performance/memory usage/time complexity]:
[code snippet]

Provide:

- An explanation of the current inefficiencies and why they impact performance.
- A step-by-step optimization strategy, including specific improvements.
- A revised version of the function with the applied optimizations.
- A comparison of time complexity before and after optimization

3. Code Review and Best Practices

Code Review for Best Practices

Review the following [programming language] function and suggest improvements for Readability, Performance, and Security
[code snippet]

Security Vulnerability Detection

Analyze the following SQL query and identify potential security risks:
[SQL query]

Provide a safer alternative and explain why it’s secure.

4. Documentation and Explanation

Generating Docstrings

Write a detailed docstring for the following [programming language] function:
[code snippet]

Make sure the docstring includes:

- A brief description of what the function does.
- Parameters with expected data types and descriptions.
- Return value with its type and meaning.
- Edge cases or exceptions the function may handle.
- Usage example (optional) to demonstrate correct usage.

5. AI for DevOps and Automation

Dockerfile Generation

Generate a Dockerfile to containerize a [technology/framework] application with the following requirements:

- Use a lightweight and optimized base image.
- Ensure all required dependencies are copied and installed efficiently.
- Expose the necessary ports for the application.
- Use an appropriate CMD or ENTRYPOINT to start the application.
- Keep the image size minimal and follow best practices for security and performance.

CI/CD Pipeline Configuration

Write a [CI/CD tool] workflow to automate the deployment of a [technology/framework] application to [deployment platform] with the following requirements:

- Runs on specific events (e.g., code push to main).
- Installs necessary dependencies and prepares the application for deployment.
- Deploy the application to [target platform] efficiently.
- Ensures minimal permissions, caching, and optimized build processes.
- Provides logging and alerts for failures.

6. Create Regular Expressions

Regular expressions help us to match, locate, and manage text, providing a quick and relatively easy way to manipulate data, particularly in large complex programs.
Be careful, it's prone to mistakes, so it's always a good idea to test it on an app like https://regex101.com/

Create regex to match all email addresses in list.

Create regex to match all strings that looks like a credit card number.

Create regex to match all words that start with "ban".

Create regex to match 8-digit password.

7. Data Processing and Analysis

Data Cleaning with Pandas

Write a Pandas script to clean and preprocess a dataset with the following steps:

- Remove duplicate rows efficiently.
- Fill missing values using an appropriate strategy (e.g., mean, median, or interpolation).
- Convert all column names to a consistent format (e.g., lowercase, snake_case).
- Save the processed DataFrame in a specified format (e.g., CSV, Parquet).

SQL Query Optimization

Optimize the following SQL query for faster execution on a large dataset:
[SQL query]

Provide:

- Inefficiencies in the current query
- Optimized version of the query
- Explanation of performance improvements
- Best practices for writing efficient SQL queries on large dataset

12 Rules for Vibe Coding

  1. Start with vibe PMing
  2. Keep your tech stack simple
  3. Give Al the right rules & documentation
  4. Ask Al NOT to code
  5. Ask Al for options and pick the simple one
  6. Break tasks into small steps
  7. Include images to give Al context
  8. Test ruthlessly after every change
  9. Don't hesitate to revert
  10. Use Github for version control
  11. Use your voice to feel the vibes
  12. Ask Al to explain the code

Credits To Peter Yang


Design Inspiration Stack

Colors

Others (Marketing)

  • AppLaunchpad: App Store Screenshot Inspiration
  • Landingfolio: Landing page inspiration
  • Logosystem: Logo Inspiration
  • Magritte: Social media Ad Inspiration

UI / UX Case Studies of Good Websites (Learning)

Good resource if you intend to actually UNDERSTAND the reason behind each design decision
https://growth.design/case-studies


Prompting Framework

Might be useful when you build AI Assistants (System Prompts) https://buttercms.com/blog/chatgpt-prompt-frameworks/


Claude Code

** Note that Claude Code is only available on PRO Plan and Above.

Common Workflows

Prompt Library
https://code.claude.com/docs/en/prompt-library

Best Practices
https://code.claude.com/docs/en/best-practices


OpenAI Codex

** Note that you can try Codex on Free Account with limits.

Official Prompting Guide (Short)
https://developers.openai.com/codex/prompting/

OpenAI's Codex: A Guide With 3 Practical Examples
https://www.datacamp.com/tutorial/openai-codex

OpenAI Codex CLI Tutorial (Datacamp)
https://www.datacamp.com/tutorial/open-ai-codex-cli-tutorial


Google Code Gen Tools

Google Antigravity

Website | Google CodeLabs Orchestrate Multiple Coding Agents, Desktop IDE (VSCode fork).

** Gemini Code Assist already depreciated since June 2026.


Google Jules

Website An Asynchronous Coding Agen, Web Based.

Free Plan

  • 15 tasks per day
  • 3 concurrent tasks
  • Powered by Gemini 2.5 Pro



Side Note : Jules and Antigravity are Google's AI-powered developer tools, but they serve different roles:

  • Jules is an autonomous coding assistant for tasks like tests/bugs within repos
  • Antigravity is a full AI-first IDE that orchestrates multiple agents (including Jules) for complex workflows, handling browser/UI tasks alongside code, creating a unified experience for planning and executing development.

    Think of Jules as the skilled worker handling code changes, and Antigravity as the project manager that directs Jules and other agents (like browser bots) from a central IDE, coordinating the whole process with human oversight.

Gemini CLI (Command Line Interface)

Website | GitHub


Google AI Studio --> Gemini Build Apps Feature

Website
Prompt to Code. You can Commit the Code to GitHub, Deploy to GCP and Publish with Public Link.

You can also design and build native Android mobile apps directly using Google AI Studio and deploy or test them using an APK or direct device installation.

October 2026 Update :

  • Google AI Studio now lets you make your own personal apps.
  • The apps bypass the public Play Store, but you can share with friends.
  • Apps you create will work on your own device.

Read More


Google Stitch

Website

  • AI Design Canvas: A free experimental AI UI design tool from Google Labs that turns plain-text prompts, sketches, or reference images into multi-screen mobile and web interfaces.
  • Prototyping & Export: Allows you to generate interactive prototypes, edit themes in real time, and export designs or code directly into developer tools.
  • You can also perform "show and tell" interactive demos of your mobile app on the platform.

Google Gemini Skills

Website | Skills In Gemini 101 Guide | Create and Manage Skills For Gemini Apps

** Google Gemini Gems (Will be graduated as Skills by November 2026) News About the Transition

** Google Opal (Will be graduated as Skills by November 2026) News About the Transition

Google Labs - Playground (experiment)

** Note for now US only, 18 and up. Simple, casual games. Not Elden Ring.
Website | Read User Review
Create custom browser games in minutes.

Playground runs on three of its AI models plus a custom game-building system trained on games Google made internally:

  • Gemini is the screenwriter and game designer. It turns your description into actual game logic: rules, physics, scoring.
  • Nano Banana is the illustrator. It draws the characters, backgrounds, and art in a consistent style. You can even upload your own photos, and the AI restyles them into game assets that match.
  • Lyria is the composer. It generates the music.

Worth Reading

12 Rules to Vibe Code Without Frustration (Peter Yang)
https://creatoreconomy.so/p/12-rules-to-vibe-code-without-frustration

The Ultimate Vibe Coding Guide
https://www.reddit.com/r/ClaudeAI/comments/1kivv0w/the_ultimate_vibe_coding_guide/

BWAI PRD Creator (André Teow)
https://chatgpt.com/g/g-68235a9c5f8c8191875f682e6a6b4652-bwai-prd-creator

BWAI design system 2
https://chatgpt.com/g/g-686c02218e648191b32d13f562b60790-bwai-design-system-2

GoFullPage Chrome Extension
https://chromewebstore.google.com/detail/gofullpage-full-page-scre/fdpohaocaechififmbbbbbknoalclacl

Basic AI Prompts for Developers: Practical Examples for Everyday Tasks
https://portkey.ai/blog/basic-ai-prompts-for-developers/

ChatGPT - Prompts for Writing and Generating Codes
https://dev.to/techiesdiary/chatgpt-prompts-for-writing-and-generating-codes-59kf

ChatGPT - Prompts for Optimizing Code
https://dev.to/techiesdiary/chatgpt-prompts-for-optimizing-code-3kkg

ChatGPT - Prompts for developers
https://dev.to/techiesdiary/chatgpt-prompts-for-developers-216d

John Rush - Compilation of 74 AI Coding Agents & IDEs and tested all of them
https://x.com/johnrushx/status/1976286586351517810

GitHub Copilot with VS Code
https://medium.com/@bobmain49/github-copilot-with-vs-code-here-we-go-d9dd29512866


Notable Git Repositories & Resources:

DEV ChatGPT Prompts
https://github.com/PickleBoxer/dev-chatgpt-prompts

Pack your codebase into AI-friendly formats
https://repomix.com/

OWASP GenAI Security Project
https://genai.owasp.org/

Discover Open Source Alternatives to Popular Software
https://openalternative.co/

Integrating Gemini With Slack Bot
https://www.marketcalls.in/python/building-a-digital-assistant-in-slack-with-google-gemini-a-step-by-step-guide.html GitHub : https://github.com/marketcalls/google-gemini-slackbot

AI-ready, Markdown-first engineering workspace starter for multi-agent software development, knowledge management, and structured project execution
GitHub : https://github.com/jtampac/junmarvi-workspace-starter

About

A list of useful prompts for Software Development purposes.

Resources

Stars

16 stars

Watchers

0 watching

Forks

Contributors