Development

A shared folder with AI prompts and code snippets

From workspace: Perplexity

Team: Main

Total snippets: 12

Perplexity

Development

12 snippets

Monorepo vs Polyrepo Decision Framework

We’re deciding whether to adopt a monorepo or polyrepo architecture for our growing dev team (10+ engineers). Please provide: – Pros and cons of each approach – Tooling considerations (build, test, deploy) – Communication overhead vs velocity...

Codebase Cleanup Checklist

List tasks and metrics to measure a successful refactor or technical debt sprint.

We’re planning a technical debt sprint to clean up the codebase. Please give a cleanup checklist with: – File and folder restructuring – Removing unused dependencies and dead code – Naming consistency and documentation – Metrics to track...

Migration Plan Generator

Help plan a database migration from one stack to another (e.g., Firebase to Supabase).

We are migrating our backend from Firebase Realtime DB to Supabase (PostgreSQL). Please help generate a step-by-step migration plan: – Data export and transformation strategy – Authentication mapping and migration – Feature parity...

Open Source License Explainer

Break down what a license (MIT, Apache 2.0, AGPL) allows and restricts.

Can you explain the difference between these open-source licenses? – MIT – Apache 2.0 – AGPL Please include: – What they allow in terms of reuse and commercial projects – Whether attribution or share-alike is required – Risks to startups...

Edge Case Generator for Unit Tests

Generate smart edge cases to test a given function or component.

I have the following function: [Insert function code] Please: – List possible edge cases – Suggest test input and expected output – Cover invalid inputs and boundary conditions – Bonus: suggest how to mock dependencies if any

Code Review Assistant

Review pasted code and give improvement suggestions on logic, readability, and performance.

Please review the following code snippet and provide suggestions: [Insert code here] Review for: – Logic correctness – Code style and readability – Performance optimizations – Edge cases and test coverage Keep tone constructive and precise.

Dev Tooling Stack Suggestions

Recommend modern tools for development, testing, and monitoring based on team size.

We’re building a SaaS product with a small team (5 devs). Stack: Next.js, Supabase, TypeScript Please recommend: – Local dev tools (e.g., linters, formatters) – Testing frameworks – Monitoring/logging solutions – DevOps or DX tools for...

Database Schema Design Helper

Suggest optimal schema design for a new feature or product module.

I’m designing a schema for a new module in my app. Feature: [e.g., user comments with upvotes and nested replies] Please suggest: – Table structure with field names and types – Relationships and foreign keys – Indexing strategy for...

Frontend Component Refactor Plan

Break down how to refactor a bloated frontend component into smaller reusable parts.

Here’s a React component that’s grown too large: [Paste code] Please: – Identify logical blocks that should be extracted – Suggest component breakdown (e.g., Header, Form, List) – Propose file structure and prop strategy – Explain benefits...

API Contract Validator

Check if frontend matches the backend API contract (e.g., types, params, returns).

Here is my frontend API call: [Paste fetch/Axios call] And here is the backend API spec: [Paste Swagger/OpenAPI or backend code snippet] Please check: – Are all parameters used correctly? – Is the response handled as expected? – Are there...

Prompt Engineering Research

Prompt engineer looking for reusable Claude prompt flows

Show examples of prompt chaining techniques optimized for Claude 3.5 Sonnet — particularly in research or analytical use cases. I’m looking for: - Multi-step workflows with role definition - Techniques like step-by-step reasoning, context...

Instant Tech Troubleshooting

eveloper debugging a crash in a Next.js + Supabase app

My Next.js application crashes after a user logs in or the Supabase session updates. I'm using Supabase Auth and `createBrowserClient` with React. The issue seems to occur during hydration or session persistence. Can you help me: 1. Identify the...

Perplexity - Development - AI Prompts & Code Snippets | Snippets AI