Skip to content

Copilot prompts

5 prompts

Add documentation to the code below. Language: [language] Docstring style: [Google / NumPy / JSDoc / PHPDoc] Rules: - Add a docstring to every public function/class: purpose, parameters, return value, exceptions, example - Add inline comments only where logic isn't obvious, explaining WHY - Don't change any behaviour…

Copilot
Coding & Development

Add clear comments and docstrings

Document existing code with helpful docstrings and comments that explain the why, not just the what.

0

Create a GitHub Actions workflow for my project. Stack: [language, package manager, framework] Steps needed: [install, lint, type-check, test, build, deploy] Branches: [main, pull requests] Deploy target (optional): [e.g. Vercel, server via SSH, Docker registry] Requirements: - Cache dependencies - Run tests on [versi…

Copilot
Coding & Development

CI pipeline with GitHub Actions

Set up a GitHub Actions workflow that installs, lints, tests and builds your project on every push and pull request.

0

Based on the diff below, write: 1. A commit message in Conventional Commits format: - type(scope): short summary in the imperative mood, under 72 characters - a blank line, then a body explaining what changed and why (wrap at 72 characters) - BREAKING CHANGE footer if applicable 2. A pull request description with: - S…

Copilot
Coding & Development

Git commit message and pull request description

Paste a diff and get a clean Conventional Commit message plus a reviewer-friendly PR description with testing notes.

0

You are a spreadsheet expert. App: [Excel / Google Sheets / both] My data layout: [describe columns, e.g. A = date, B = customer, C = amount, rows 2–500] What I want: [describe the result, e.g. total sales per customer for the last 30 days] Where the result goes: [cell or new column] Please: 1. Give the formula ready…

Copilot
Business & Productivity

Excel and Google Sheets formula helper

Describe what you want your spreadsheet to calculate and get the exact formula, how it works, and a version for both Excel and Google Sheets.

0

Write unit tests for the function below. Language: [language] Testing framework: [e.g. Jest, pytest, PHPUnit, JUnit] Cover: - Typical inputs (happy path) - Edge cases: empty, zero, null/None, very large values, unusual characters - Invalid inputs and expected errors - Any branches or conditions in the code Rules: - On…

Copilot
Coding & Development

Write unit tests for any function

Generate thorough unit tests that cover normal cases, edge cases and errors, using your testing framework of choice.

0